
var myImage;
var helpImage;

function preloader () {
	
	backmap = new Image();
	backmap.src ="images/backmap.png";
	descBack = new Image();
	descBack.src = "images/descBack.png";
	background = new Image();
	background.src = "images/background.png";
	leftNavbg = new Image();
	leftNavbg.src = "images/leftNavbg.png";
	helpPage = new Image();
	helpPage.src = "images/frontmapHELP.png";
	frontmap0 = new Image();
	frontmap0.src = "images/frontmap0.png";
	frontmap1 = new Image();
	frontmap1.src = "images/frontmap1.png";
	frontmap2 = new Image();
	frontmap2.src = "images/frontmap2.png";
	frontmap3 = new Image();
	frontmap3.src = "images/frontmap3.png";
	frontmap3b = new Image();
	frontmap3b.src = "images/frontmap3b.png";
	frontmap4 = new Image();
	frontmap4.src = "images/frontmap4.png";
	frontmap5 = new Image();
	frontmap5.src = "images/frontmap5.png";
	frontmap6 = new Image();
	frontmap6.src = "images/frontmap6.png";
	frontmap7 = new Image();
	frontmap7.src = "images/frontmap7.png";
	frontmap8 = new Image();
	frontmap8.src = "images/frontmap8.png";
	frontmap9 = new Image();
	frontmap9.src = "images/frontmap9.png";
	frontmap10 = new Image();
	frontmap10.src = "images/frontmap10.png";
	frontmap11 = new Image();
	frontmap11.src = "images/frontmap11.png";
	frontmap12 = new Image();
	frontmap12.src = "images/frontmap12.png";
	frontmap13 = new Image();
	frontmap13.src = "images/frontmap13.png";
	}
function changeImage (indexNum) {
	if (indexNum == 0) document.myImage.src="prodSelector/images/frontmap.ComPlan.png";
	if (indexNum == 1) document.myImage.src="prodSelector/images/frontmap.DealMaking.png";
	if (indexNum == 2) document.myImage.src="prodSelector/images/frontmap.DealStruc.png";
	if (indexNum == 3) document.myImage.src="prodSelector/images/frontmap.Go.png";
	if (indexNum == 4) document.myImage.src="prodSelector/images/frontmap.TNA.png";
	if (indexNum == 5) document.myImage.src="prodSelector/images/frontmap.IP.png";
	if (indexNum == 6) document.myImage.src="prodSelector/images/frontmap.LocTech.png";
	if (indexNum == 7) document.myImage.src="prodSelector/images/frontmap.LocVend.png";
	if (indexNum == 8) document.myImage.src="prodSelector/images/frontmap.NicheC.png";
	if (indexNum == 9) document.myImage.src="prodSelector/images/frontmap.QL.png";
	if (indexNum == 10) document.myImage.src="prodSelector/images/frontmap.TNA.png";
	if (indexNum == 11) document.myImage.src="prodSelector/images/frontmap.T2.png";
	if (indexNum == 12) document.myImage.src="prodSelector/images/frontmap.Trail.png";
	if (indexNum == 13) document.myImage.src="prodSelector/images/frontmap.Valuation.png";
	if (indexNum == 14) document.myImage.src="prodSelector/images/frontmap.VDS.png";
	if (indexNum == 20) document.helpImage.src="prodSelector/images/frontmapHELP.png", document.getElementById("helpImage").style.display ="block", document.getElementById("Descrip").style.visibility ="hidden";
	
	}

function changeBack () {
	document.myImage.src="images/frontmap0.png";
	}
function clearHelp () { document.helpImage.src="#", document.getElementById("helpImage").style.display = "none";}

function lightProduct (prodNum) {
	if (prodNum == 1) document.getElementById("prodLine(0)").style.background = "url(images/menuBG.png)",   
	document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 2) document.getElementById("prodLine(0)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)" ;;
	
	if (prodNum == 3) document.getElementById("prodLine(0)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 4) document.getElementById("prodLine(0)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 5) document.getElementById("prodLine(1)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;		
	
	if (prodNum == 6) document.getElementById("prodLine(1)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;	
	
	if (prodNum == 7) document.getElementById("prodLine(1)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)",document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 8) document.getElementById("prodLine(1)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;			
	
	if (prodNum == 9) document.getElementById("prodLine(1)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;	
	
	if (prodNum == 10) document.getElementById("prodLine(1)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;	
		
	if (prodNum == 11) document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 12) document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 13) document.getElementById("prodLine(11)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(12)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 14) document.getElementById("prodLine(11)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(12)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 15) document.getElementById("prodLine(11)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(12)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 16) document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 17) document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 18) document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(8)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 19) document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 20) document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 21) document.getElementById("prodLine(2)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(3)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(4)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 22) document.getElementById("prodLine(5)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 23) document.getElementById("prodLine(5)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 24) document.getElementById("prodLine(6)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(7)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(9)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	if (prodNum == 25) document.getElementById("prodLine(9)").style.background = "url(images/menuBG.png)", document.getElementById("prodLine(10)").style.background = "url(images/menuBG.png)";;
	
	}
function dimProduct () {
	document.getElementById("prodLine(0)").style.background = "none";
	document.getElementById("prodLine(1)").style.background = "none";
	document.getElementById("prodLine(2)").style.background = "none";
	document.getElementById("prodLine(3)").style.background = "none";
	document.getElementById("prodLine(4)").style.background = "none";
	document.getElementById("prodLine(5)").style.background = "none";
	document.getElementById("prodLine(6)").style.background = "none";
	document.getElementById("prodLine(7)").style.background = "none";
	document.getElementById("prodLine(8)").style.background = "none";
	document.getElementById("prodLine(9)").style.background = "none";
	document.getElementById("prodLine(10)").style.background = "none";
	document.getElementById("prodLine(11)").style.background = "none";
	document.getElementById("prodLine(12)").style.background = "none";
	document.getElementById("prodLine(13)").style.background = "none";
	}
	
function showDescrip() {
	document.getElementById("lightProd1").onclick = descWriter();
}

function clearDescrip(){
	document.getElementById("closeDetails").onclick= closeDescrip();
}
function closeDescrip(){
	document.getElementById("Descrip").style.visibility = "hidden";
	document.getElementById("Descrip").style.height= "112px";
	document.getElementById("Descrip").style.top= "498px";
	
	/*}
function openPriceSheet(){
	document.getElementById("priceButton").onclick= showPriceSheet();
	}
function showPriceSheet(){
	document.getElementById("Descrip").style.height= "500px";
	document.getElementById("Descrip").style.top= "100px";
	document.getElementById("Descrip").src= "catalog.html";*/
	}
	


	
