function makeOverList1(idList, startString){
				 var finalList = new Array();
				 for (i in idList){
				 		 var url = startString + "tabs_hover/" + idList[i] + "_2.png";
						 finalList.push(url);		 
				 }
				 return finalList;
}

function makeOverList2(idList, startString){
				 var finalList = new Array();
				 for (i in idList){
				 		 var url = startString + "2nd_level_on/" + idList[i] + "2.png";
						 finalList.push(url);		 
				 }
				 return finalList;
}

function makeOutList1(idList, startString, currentPage){
				 var finalList = new Array();
				 for (i in idList){
				 		 if (idList[i]!== currentPage){
				 		 		var url = startString + "tabs_off/" + idList[i] + ".png";
						 		finalList.push(url);	
						} else if (idList[i]== currentPage){
								var url = startString + "tabs_on/" + idList[i] + "_1.png";
								finalList.push(url);
						}	 
				 }
				 return finalList;
}

function makeOutList2(idList, startString){
				 var finalList = new Array();
				 for (i in idList){
				 		 var url = startString + "2nd_level_off/" + idList[i] +".png";
						 finalList.push(url);
				 }
				 return finalList;
}

function linksSetup(nav1, nav2, imgOver1, imgOver2, imgOut1, imgOut2){
				 if (document.addEventListener){
				 				document.getElementById(nav1[0]).addEventListener('mouseover', function(){this.src= imgOver1[0];}, false);
								document.getElementById(nav1[0]).addEventListener('mouseout', function(){this.src= imgOut1[0];}, false);
								document.getElementById(nav1[1]).addEventListener('mouseover', function(){this.src= imgOver1[1];}, false);
								document.getElementById(nav1[1]).addEventListener('mouseout', function(){this.src= imgOut1[1];}, false);
								document.getElementById(nav1[2]).addEventListener('mouseover', function(){this.src= imgOver1[2];}, false);
								document.getElementById(nav1[2]).addEventListener('mouseout', function(){this.src= imgOut1[2];}, false);
								document.getElementById(nav1[3]).addEventListener('mouseover', function(){this.src= imgOver1[3];}, false);
								document.getElementById(nav1[3]).addEventListener('mouseout', function(){this.src= imgOut1[3];}, false);
								document.getElementById(nav1[4]).addEventListener('mouseover', function(){this.src= imgOver1[4];}, false);
								document.getElementById(nav1[4]).addEventListener('mouseout', function(){this.src= imgOut1[4];}, false);
								document.getElementById(nav1[5]).addEventListener('mouseover', function(){this.src= imgOver1[5];}, false);
								document.getElementById(nav1[5]).addEventListener('mouseout', function(){this.src= imgOut1[5];}, false);
								document.getElementById(nav2[0]).addEventListener('mouseover', function(){this.src= imgOver2[0];}, false);
								document.getElementById(nav2[0]).addEventListener('mouseout', function(){this.src= imgOut2[0];}, false);
								document.getElementById(nav2[1]).addEventListener('mouseover', function(){this.src= imgOver2[1];}, false);
								document.getElementById(nav2[1]).addEventListener('mouseout', function(){this.src= imgOut2[1];}, false);
								document.getElementById(nav2[2]).addEventListener('mouseover', function(){this.src= imgOver2[2];}, false);
								document.getElementById(nav2[2]).addEventListener('mouseout', function(){this.src= imgOut2[2];}, false);
								document.getElementById(nav2[3]).addEventListener('mouseover', function(){this.src= imgOver2[3];}, false);
								document.getElementById(nav2[3]).addEventListener('mouseout', function(){this.src= imgOut2[3];}, false);
								document.getElementById(nav2[4]).addEventListener('mouseover', function(){this.src= imgOver2[4];}, false);
								document.getElementById(nav2[4]).addEventListener('mouseout', function(){this.src= imgOut2[4];}, false);
				 } else if (document.attachEvent){
				 	 		 document.getElementById(nav1[0]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver1[0];},false);
							 document.getElementById(nav1[0]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut1[0];},false);
					 		 document.getElementById(nav1[1]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver1[1];},false);
							 document.getElementById(nav1[1]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut1[1];},false);
							 document.getElementById(nav1[2]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver1[2];},false);
							 document.getElementById(nav1[2]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut1[2];},false);
							 document.getElementById(nav1[3]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver1[3];},false);
							 document.getElementById(nav1[3]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut1[3];},false);
							 document.getElementById(nav1[4]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver1[4];},false);
							 document.getElementById(nav1[4]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut1[4];},false);
							 document.getElementById(nav1[5]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver1[5];},false);
							 document.getElementById(nav1[5]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut1[5];},false);
							 document.getElementById(nav2[0]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver2[0];},false);
							 document.getElementById(nav2[0]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut2[0];},false);
							 document.getElementById(nav2[1]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver2[1];},false);
							 document.getElementById(nav2[1]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut2[1];},false);
							 document.getElementById(nav2[2]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver2[2];},false);
							 document.getElementById(nav2[2]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut2[2];},false);
							 document.getElementById(nav2[3]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver2[3];},false);
							 document.getElementById(nav2[3]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut2[3];},false);
							 document.getElementById(nav2[4]).attachEvent('onmouseover', function(e){e.srcElement.src= imgOver2[4];},false);
							 document.getElementById(nav2[4]).attachEvent('onmouseout', function(e){e.srcElement.src= imgOut2[4];},false);
				 }
				 		
}
