function chgImg(imgField,newImg,num) {
			var newTemp = eval(newImg);
			var oldImage = document[imgField].src;
			var newTempStrip = newTemp.substring(newTemp.lastIndexOf("images/"));
			var oldImageStrip = oldImage.substring(oldImage.lastIndexOf("images/"));
			if(newTempStrip != oldImageStrip){
				document[imgField].src= newTemp
				if(num == 0) { 
					changeProp('url('+lhpbg0+')');
					} else if(num == 1) {
						changeProp('url('+lhpbg1+')');
						} else if(num == 2) {
							changeProp('url('+lhpbg2+')');
						}
				showHero(num);
				}
}

function showHero(num)
{
		var heroImage=new Array()
		heroImage[0]='<img src="' + lhphero0 + '" width="515" height="340" alt="' + lhphero0Alt + '" border="0" usemap="#hero0"/>';
		heroImage[1]='<img src="' + lhphero1 + '" width="515" height="340" alt="' + lhphero1Alt + '" border="0" usemap="#hero1"/>';
		heroImage[2]='<img src="' + lhphero2 + '" width="515" height="340" alt="' + lhphero2Alt + '" border="0" usemap="#hero2"/>';
	document.getElementById("heroSpot").innerHTML=heroImage[num];
	
}

function findObj(n) {
var x; 
var d=document; 
if(d.getElementById) x=d.getElementById(n); 
return x;
}

function changeProp(theValue) {
var obj = findObj('modBG');
eval("obj."+'style.backgroundImage'+"='"+theValue+"'");
}


function swap0() {
	chgImg("mod1","lhpmod1",1);
	chgImg("mod2","lhpmod2",2);
	chgImg("mod0","lhpmod0on",0);
}

function swap1() {
	chgImg("mod2","lhpmod2",2);
	chgImg("mod0","lhpmod0",0);
	chgImg("mod1","lhpmod1on",1);
}

function swap2() {
	chgImg('mod0',"lhpmod0",0);
	chgImg('mod1',"lhpmod1",1);
	chgImg('mod2',"lhpmod2on",2);
}