//Picture referencing on same page without reloading page
function showPic (whichpic){ 
	if (document.getElementById){ 
		document.getElementById('placeholder').src=whichpic.href;//get pic
		if (whichpic.title){ 
			document.getElementById('desc').childNodes[0].nodeValue=whichpic.title;//get title of pic
		}else{ 
			document.getElementById('desc').childNodes[0].nodeValue=whichpic.childNodes[0].nodeValue; 
		} 
		return false; 
	}else{ 
		return true; 
	} 
}
//Text referencing on same page without reloading page
//The Text Database
function makeItem(step,instruction){
	this.step=step;
	this.instruction=instruction;
	return this;
}
theItem=new Array();
theItem[0]=new makeItem('Intro 00','YSS can supply you with a special Spring Tool (YSST). This will enable you to remove a Spring from a Shock Absorber without endangering yourself or changing the Shock Absorbers Spring Pre-Load. To use this tool follow the steps from 01 to 13 on the left.');
theItem[1]=new makeItem('Step 01','Place the Shock Absorber upside down in the YSST and then adjust the height of the tool.');
theItem[2]=new makeItem('Step 02','You can now compress the Spring in the YSST tool.');
theItem[3]=new makeItem('Step 03','After compression you must now remove the open Spring Retainer.');
theItem[4]=new makeItem('Step 04','Take care and slowly release the Shock Absorber from the YSST tool.');
theItem[5]=new makeItem('Step 05','Remove the Shock Absorber and then remove the Spring. To replace the Spring, reverse the process. If you do not have this special tool you may still be able to change the Spring. NOTE: This cannot be performed on all Shock Absorbers. We recommend that you contact YSS USA if you are unsure.');
theItem[6]=new makeItem('Step 06','Measure distance between Spring Retainer Locknut and a fixed point on Shock Absorber Body. Note measurement value for reference.');
theItem[7]=new makeItem('Step 07','Place Shock Absorber in a Vice and unscrew Spring Retainer Locknut. Make sure the Threaded Tube is free from dust and dirt and is lightly lubricated.');
theItem[8]=new makeItem('Step 08','Release the Spring Pre-Load by unscrewing the Spring Retainer.');
theItem[9]=new makeItem('Step 09','Remove the open Spring Retainer before removing the Spring.');
theItem[10]=new makeItem('Step 10','After removing the open Spring Retainer you can now safely remove the Spring.');
theItem[11]=new makeItem('Step 11','SPRING PRE-LOAD OF BIKE: Set Spring Retainer and Spring Retainer Locknut to original position. Use reference value noted earlier.');
theItem[12]=new makeItem('Step 12','Measure the Free Length of the Spring you have removed earlier.');
theItem[13]=new makeItem('Step 13','Hold open Spring Retainer in original position, no force. Measure distance between Threaded and Open Retainer. Subtract value found from Free Length of Spring. Value calculated is correct Spring Pre-Load.');
//The Database referencing and collecting
var txt0=theItem[0].step+'\<br\>'+theItem[0].instruction;
var txt1=theItem[1].step+'\<br\>'+theItem[1].instruction;
var txt2=theItem[2].step+'\<br\>'+theItem[2].instruction;
var txt3=theItem[3].step+'\<br\>'+theItem[3].instruction;
var txt4=theItem[4].step+'\<br\>'+theItem[4].instruction;
var txt5=theItem[5].step+'\<br\>'+theItem[5].instruction;
var txt6=theItem[6].step+'\<br\>'+theItem[6].instruction;
var txt7=theItem[7].step+'\<br\>'+theItem[7].instruction;
var txt8=theItem[8].step+'\<br\>'+theItem[8].instruction;
var txt9=theItem[9].step+'\<br\>'+theItem[9].instruction;
var txt10=theItem[10].step+'\<br\>'+theItem[10].instruction;
var txt11=theItem[11].step+'\<br\>'+theItem[11].instruction;
var txt12=theItem[12].step+'\<br\>'+theItem[12].instruction;
var txt13=theItem[13].step+'\<br\>'+theItem[13].instruction;
//Function that writes the referenced Database bits onto page
function writeText(txt){document.getElementById('txtdesc').innerHTML=txt;}//get text
