/*rollover + rolloff sample */function highlightSample(tostatus,client,sample) {	if (tostatus=="on") {		overthumb="thumb"+client+"_"+sample;		onborderstyle="#A9B981 1px solid;";		document.getElementById(overthumb).style.border=onborderstyle;	} else {		overthumb="thumb"+client+"_"+sample;		onborderstyle="#ffffff 1px solid;";		document.getElementById(overthumb).style.border=onborderstyle;	}}/*turning on a sample */function activateSample(client,sample) {	//turn everything off	samplenumbers=new Array();	for (c=0; c<20; c++) {		testthumb="thumb"+c+"_"+"1";		if (document.getElementById(testthumb)) { //test to see if there is a first sample for this client number, if so, carry on		offtitle="thumbs_header"+c;		document.getElementById(offtitle).src="images/"+offtitle+"_off.gif";			for (s=1; s<20; s++) {				offthumb="thumb"+c+"_"+s;				if (document.getElementById(offthumb)) { //test to make sure this item exists, if so, change it				samplenumbers[c-1]=s;					offtext="sample_text_"+c+"_"+s;					document.getElementById(offtext).style.visibility="hidden";				} else { //if not, restart the search					s=20				}			}		} else { //if not, stop everything and move on to turning things on			c=20;		}	}	//turn what we want back on	rows=0; //number of rows of samples so far	for (c=0; c<samplenumbers.length; c++) {		for(s=0; s<samplenumbers[c]; s++) {			if (s<3) {				xpos=(44*s)+(9*s)+123;//3				ypos=(50*rows)+(76*c)+405//329;//28				document.getElementById("thumbs_highlight").style.left=xpos+"px";				document.getElementById("thumbs_highlight").style.top=ypos+"px";			} else if(s==3) {				rows++;				xpos=(44*(s-3))+(9*(s-3))+123;				ypos=(50*rows)+(76*c)+405//329;				document.getElementById("thumbs_highlight").style.left=xpos+"px";				document.getElementById("thumbs_highlight").style.top=ypos+"px";			} else {				xpos=(44*(s-3))+(9*(s-3))+123;				ypos=(50*rows)+(76*c)+405//329;				document.getElementById("thumbs_highlight").style.left=xpos+"px";				document.getElementById("thumbs_highlight").style.top=ypos+"px";			}			if ((c+1)==client && (s+1)==sample) {				c=20;			}		}	}	//	ontitle="thumbs_header"+client;	document.getElementById(ontitle).src="images/"+ontitle+"_on.gif";	ontext="sample_text_"+client+"_"+sample;	document.getElementById(ontext).style.visibility="visible";	document.getElementById("sample_big").src="images/big_sample_"+client+"_"+sample+".jpg";}