
var selected = "null";

var bn = navigator.appName;
var vn = navigator.appVersion;
var isNav = false;
if ( bn == "Netscape" )
	isNav = true;


menuimg = new Array(10);
menuimg[1]= new Image (0,0);
menuimg[1].src="images/left_nav_who.jpg";
menuimg[2]= new Image (0,0);
menuimg[2].src="images/left_nav_who_on.jpg";
menuimg[3]= new Image (0,0);
menuimg[3].src="images/left_nav_services.jpg";
menuimg[4]= new Image (0,0);
menuimg[4].src="images/left_nav_services_on.jpg";
menuimg[5]= new Image (0,0);
menuimg[5].src="images/left_nav_technology.jpg";
menuimg[6]= new Image (0,0);
menuimg[6].src="images/left_nav_technology_on.jpg";
menuimg[7]= new Image (0,0);
menuimg[7].src="images/left_nav_portfolio.jpg";
menuimg[8]= new Image (0,0);
menuimg[8].src="images/left_nav_portfolio_on.jpg";
menuimg[9]= new Image (0,0);
menuimg[9].src="images/left_nav_contact.jpg";
menuimg[10]= new Image (0,0);
menuimg[10].src="images/left_nav_contact_on.jpg";

function on_img(loc,img)
{
	// Don't roll-over if image is selected
 	if (selected != loc.name)
	{	
		loc.src=menuimg[img].src;
	}
}

function turnOffImages(img)
{
	if (isNav)
	{
		switch ( img ) 
		{
			case "p1":
				window.top.frames.Navbar.document.p1.src = menuimg[1].src;
				break;
			case "p2":
				window.top.frames.Navbar.document.p2.src = menuimg[3].src;
				break;
			case "p3":
				window.top.frames.Navbar.document.p3.src = menuimg[5].src;
				break;
			case "p4":
				window.top.frames.Navbar.document.p4.src = menuimg[7].src;
				break;
			case "p5":
				window.top.frames.Navbar.document.p5.src = menuimg[9].src;
				break;
			
		}
	}
	else
	{
	switch ( img ) 
		{
			case "p1":
				window.top.frames.Navbar.document.p1.src = menuimg[1].src;
				break;
			case "p2":
				window.top.frames.Navbar.document.p2.src = menuimg[3].src;
				break;
			case "p3":
				window.top.frames.Navbar.document.p3.src = menuimg[5].src;
				break;
			case "p4":
				window.top.frames.Navbar.document.p4.src = menuimg[7].src;
				break;
			case "p5":
				window.top.frames.Navbar.document.p5.src = menuimg[9].src;
				break;
			
		}
	}
}


function goWho()
{
 	if (selected != 'p1')
		{	
		turnOffImages( selected );
		}
		selected = "p1";
		location.replace = "who.asp";

}


function goServices()
{
 	 	if (selected != 'p2')
		{	
		turnOffImages( selected );
		}
		selected = "p2";
		window.top.frames.Main.location.href = "frame_services.htm";


}

function goTechnology()
{
 	 	if (selected != 'p3')
		{	
		turnOffImages( selected );
		}
		selected = "p3";
		window.top.frames.Main.location.href = "frame_technology.htm";

}

function goPortfolio()
{
 	 	if (selected != 'p4')
		{	
		turnOffImages( selected );
		}
		selected = "p4";
		window.top.frames.Main.location.href = "frame_portfolio.htm";
}

function goContact()
{
 	 	if (selected != 'p5')
		{	
		turnOffImages( selected );
		}
		selected = "p5";
		window.top.frames.Main.location.href = "frame_contact.htm";
}


function goHome()
{
		window.top.frames.Navbar.document.p1.src = menuimg[1].src;
		window.top.frames.Navbar.document.p2.src = menuimg[3].src;
		window.top.frames.Navbar.document.p3.src = menuimg[5].src;
		window.top.frames.Navbar.document.p4.src = menuimg[7].src;
		window.top.frames.Navbar.document.p5.src = menuimg[9].src;
		window.top.frames.Main.location.href = "frame_home.htm";
		window.top.frames.Navbar.location.href = "frame_nav.htm";

}

function thumbView(image){

window.open(image,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=1150,height=1050')

}