pendingClear = "false";

clearTimer = "";





if(document.images){

	homeOn= new Image();

	homeOn.src="images/home-on.jpg";  

	homeOff= new Image();

	homeOff.src="images/home-off.jpg";

	

	aboutOn= new Image();

	aboutOn.src="images/about-on.jpg";  

	aboutOff= new Image();

	aboutOff.src="images/about-off.jpg";

	

	capabilitiesOn= new Image();

	capabilitiesOn.src="images/capabilities-on.jpg";  

	capabilitiesOff= new Image();

	capabilitiesOff.src="images/capabilities-off.jpg";

	

	portfolioOn= new Image();

	portfolioOn.src="images/portfolio-on.jpg";  

	portfolioOff= new Image();

	portfolioOff.src="images/portfolio-off.jpg";

	

	productsOn= new Image();

	productsOn.src="images/products-on.jpg";  

	productsOff= new Image();

	productsOff.src="images/products-off.jpg";

	

	contactOn= new Image();

	contactOn.src="images/contact-on.jpg";  

	contactOff= new Image();

	contactOff.src="images/contact-off.jpg";

	

	audioOn= new Image();

	audioOn.src="images/audio-on.jpg";  

	audioOff= new Image();

	audioOff.src="images/audio-off.jpg";



}

		



function waxOn(imgName,mode){

	if(document.images){

		if(document.all){

			document.all[imgName].src = eval(imgName+mode+'.src');

		}else{

			document[imgName].src = eval(imgName+mode+'.src');

		}

	}	

}



function waxOver(imgName,newSrc){

	if(document.images){

		if(document.all){

			document.all[imgName].src = "images/portfolio/" + newSrc;

		}else{

			document[imgName].src = "images/portfolio/" + newSrc;

		}

	}	

}

function createMarker(point,paddress,paddress2,pcity,pstate,pzipcode,pname,index) {
			var baseIcon = new GIcon();
			baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
			baseIcon.iconSize = new GSize(20, 34);
			baseIcon.shadowSize = new GSize(37, 34);
			baseIcon.iconAnchor = new GPoint(9, 34);
			baseIcon.infoWindowAnchor = new GPoint(9, 2);
			baseIcon.infoShadowAnchor = new GPoint(18, 25);
			// Create a lettered icon for this point using our icon class from above
			//var letter = String.fromCharCode("A".charCodeAt(0) + index);
			var icon = new GIcon(baseIcon);
			icon.image = "http://www.google.com/mapfiles/marker" + index + ".png";
			var marker = new GMarker(point, icon);
			map.addOverlay(marker);
			var pfulladdress = paddress + ', ' + pcity + ', ' + pstate + ' ' + pzipcode;
			var html = '<form action="http://maps.google.com/maps" method="get" target="_blank" style="margin:0px; width:200px;font-size:10px;line-height:12px;">';
			html += '<b>' + pname + '</b><br />' + paddress + '<br />' + paddress2 + '<br />' + pcity + ', ' + pstate + ' ' + pzipcode + '<br /><br />';
			html += '<b>Get Directions From: <br /></b><input type="text" name="saddr" value="address,city,state" style="font-size:10px; width:120px; height:21px;">';
			//html += '<input type="hidden" name="saddr" value="" />';
			html += '<input type="hidden" name="daddr" value="' + pfulladdress + '" />';
			html += '<input type="submit" value="Go"/></form><br />';
			GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(html);
		  });
	}




