/*
	rollover script
	
	requires:
							
	can use:
	what is does:		finds all images in the document that have
						a 'lowsrc' attribute - uses that as the
						rollover image	
					
	notes:				as lowsrc is never used - seemed to be
						an obvious choice			
*/
var onClickShowF1 = false;

function initRollOverLowsrc() {
	//we want to scroll through each image with 'lowsrc' attribute 
	//adding properties and events as required
	for (var i = 0; i < document.images.length; i++)
		if (typeof document.images[i].lowsrc != 'undefined' && document.images[i].lowsrc.length > 0) {
			imgObj = document.images[i];
			//cache image
			var tmpImg = new Image; tmpImg.src = imgObj.lowsrc;
			//add properties
			imgObj.src1 = imgObj.src;
			//add events
			imgObj.onmouseover = new Function("this.src = this.lowsrc;");
			imgObj.onmouseout = new Function("this.src = this.src1;");
			if (onClickShowF1) { 
				imgObj.onmousedown = imgObj.onmouseout; 
				imgObj.onmouseup = imgObj.onmouseover;
			}
		}
}

//add onload event so we can use this script as an include easily
//this doesn't work in mozilla if there is already an onLoad function
if (window.attachEvent)	{// IE5
	window.attachEvent("onload", initRollOverLowsrc);
}
else {// IE4 / other
	window.onload = initRollOverLowsrc;
}