// JavaScript Document
if (document.images)
{
 image1= new Image();
 image2= new Image();
 image3= new Image();
 image4= new Image();
 image5= new Image();
 image6= new Image();
 image7= new Image();

 image1.src="images/home1.jpg";
 image2.src="images/design1.jpg";
 image3.src="images/configure1.jpg";
 image4.src="images/otheruses1.jpg";
 image5.src="images/qa1.jpg";
 image6.src="images/aboutus1.jpg";
 image7.src="images/contactus1.jpg";
}

var extension;
function changeState(pagename,imgHover,imgPath,btnName,mouse)
{
	currentURL =  window.location+"";
	strEditEnlargeFileName=currentURL
	position=strEditEnlargeFileName.lastIndexOf("/")+ 1
	extension=strEditEnlargeFileName.substring(position,strEditEnlargeFileName.length)

	if (currentURL.indexOf(pagename) != -1)
	{
		if (mouse == "mouseOut")
		{
			document.getElementById(btnName).src = imgHover;
		}
		else
		{
			document.getElementById(btnName).src = imgPath;
		}	
	}
	else
	{
		document.getElementById(btnName).src = imgPath;
	}
	
}
