function doTheBlind(theID) {
if (currentBlind != 'workCaseBox'+theID) {
  if (somethingHappening != 1) {
  somethingHappening=1;
  workArea='workCaseContainer'+theID;
  workBox='workCaseBox'+theID;
  workLogo='workLogo'+theID;
  workText='workText'+theID;
  theDamnID=theID;
  imageTextArea = 'imageText'+theID;
  imageNumberTextArea = 'imageNumberText'+theID;
  //backgroundImage2(theDamnID,1);
  $('stripImg'+theDamnID).setStyle({left:'-899px'});
  if (currentBlind!=null) {
     new Effect.ScrollTo('container1', {duration: 0.5, afterFinish: function leftIT2(){
		$('stripImg'+currentWorkLine.substring(4)).setStyle({left:'0px'});
	    document.getElementById(currentWorkArea).scrollLeft = 0;
	    new Effect.BlindUp(currentBlind)
	    clearAllTimers ()
	    new Effect.BlindDown(workBox, {delay: 1.0, afterFinish: function leftIT5(){ 
	       getWork(theDamnID,1,2);
	       document.getElementById(workArea).scrollLeft = 0;
	       new Effect.ScrollTo('work'+theDamnID, {duration: 0.5, afterFinish: function leftIT8(){
		   somethingHappening=0;
		   }});
		   currentBlind=workBox;
           currentWorkArea=workArea;
           currentWorkLine='work'+theDamnID;
           currentImage = 1;  
	    }});
     }});
  }
  else {
     new Effect.BlindDown(workBox, {afterFinish: function leftIT(){
        getWork(theDamnID,1,2);
	    document.getElementById(workArea).scrollLeft = 0;
	    new Effect.ScrollTo('work'+theDamnID, {duration: 0.5, afterFinish: function leftIT8(){
		   somethingHappening=0;
		   }});
		currentBlind=workBox;
        currentWorkArea=workArea;
        currentWorkLine='work'+theDamnID;
        currentImage = 1;
	 }});
  }
}
}
 
else {
if (somethingHappening != 1) {
   somethingHappening=1;
   currentImage = 1;
   document.getElementById(currentWorkArea).scrollLeft = 0;
   new Effect.ScrollTo('container1', {duration: 0.5, afterFinish: function leftIT3(){
      new Effect.BlindUp(currentBlind, {afterFinish: function leftIT8(){
	  somethingHappening=0;
      }});
	  $('stripImg'+theDamnID).setStyle({left:'0px'});
      currentBlind=null;
      currentWorkLine=null;
      clearAllTimers ();
	  theDamnID=null;
   }});
}
}

}

function backgroundImage2(work,inout) {
if (('work'+work != currentWorkLine) && (work != theDamnID)) {
  if (inout===1) {
  $('stripImg'+work).setStyle({left:'-899px'});

  }
  else {
  $('stripImg'+work).setStyle({left:'0px'});
  }
}
}

function backgroundImage(work,inout) {
if (('work'+work != currentWorkLine) && (work != theDamnID)) {
  if (inout===1) {
  document.getElementById('work'+work).style.backgroundPosition="-899px 0";
  }
  else {
  document.getElementById('work'+work).style.backgroundPosition="0 0";
  }
}
}