
/* New Intech NavBar - EK April 29, 2010 */

function SelectNav(thestyle) {
	
	/* defaults */
	
	var table="";
	var back="/Navimages/navbar.gif";
	var home="home";
	var homearrow="/STimages/spacer5.gif";
	var products="products";
	var productsarrow="/STimages/spacer5.gif";
	var shop="shop";
	var shoparrow="/STimages/spacer5.gif";
	var support="support";
	var supportarrow="/STimages/spacer5.gif";
	var downloads="downloads";
	var downloadsarrow="/STimages/spacer5.gif";
	var register="register";
	var registerarrow="/STimages/spacer5.gif";
	var contact="contact";
	var contactarrow="/STimages/spacer5.gif";
	
	/* preload our selection arrow */
	(new Image()).src = "/Navimages/NavArrow.gif";
	
	/* preload our highlight images */
	(new Image()).src = "/Navimages/homeOver.gif";
	(new Image()).src = "/Navimages/productsOver.gif";
	(new Image()).src = "/Navimages/shopOver.gif";
	(new Image()).src = "/Navimages/supportOver.gif";
	(new Image()).src = "/Navimages/downloadsOver.gif";
	(new Image()).src = "/Navimages/registerOver.gif";
	(new Image()).src = "/Navimages/contactOver.gif";
	
	
	/* make our selection... */
	if (thestyle != null) {
	
		if (thestyle == 1) {
		
			/* home */
			(new Image()).src = "/Navimages/navbar1.gif";
		
			back="/Navimages/navbar1.gif";
			home="home2";
			homearrow="/Navimages/NavArrow.gif";
		
		} else if (thestyle == 2) {

			/* products */		
			(new Image()).src = "/Navimages/navbar2.gif";
		
			back="/Navimages/navbar2.gif";
			products="products2";
			productsarrow="/Navimages/NavArrow.gif";
		
		} else if (thestyle == 3) {

			/* shop */		
			(new Image()).src = "/Navimages/navbar3.gif";
		
			back="/Navimages/navbar3.gif";
			shop="shop2";
			shoparrow="/Navimages/NavArrow.gif";
		
		} else if (thestyle == 4) {

			/* support */		
			(new Image()).src = "/Navimages/navbar4.gif";
		
			back="/Navimages/navbar4.gif";
			support="support2";
			supportarrow="/Navimages/NavArrow.gif";
		
		} else if (thestyle == 5) {

			/* downloads */		
			(new Image()).src = "/Navimages/navbar5.gif";
		
			back="/Navimages/navbar5.gif";
			downloads="downloads2";
			downloadsarrow="/Navimages/NavArrow.gif";
		
		} else if (thestyle == 6) {

			/* register */		
			(new Image()).src = "/Navimages/navbar6.gif";
		
			back="/Navimages/navbar6.gif";
			register="register2";
			registerarrow="/Navimages/NavArrow.gif";
		
		} else if (thestyle == 7) {

			/* contact */		
			(new Image()).src = "/Navimages/navbar7.gif";
		
			back="/Navimages/navbar7.gif";
			contact="contact2";
			contactarrow="/Navimages/NavArrow.gif";
		
		}
		
	} else {
		
		/* no selection */
		(new Image()).src = "/Navimages/navbar.gif";
		
	}
	
	table='<table width="820" bgcolor="#353535" background="'+back+'" border="0" cellspacing="0" cellpadding="0"><tr height="21"><td bgcolor="#353535" width="1" height="21"><img src="/STimages/spacer5.gif" alt="" width="1" height="21" border="0"></td><td width="74" height="21"><a id="'+home+'" href="http://www.SpeedTools.com"><img src="/STimages/spacer5.gif" alt="" width="74" height="21" border="0"></a></td><td width="2" height="21"><img src="/STimages/spacer5.gif" alt="" width="2" height="21" border="0"></td><td width="91" height="21"><a id="'+products+'" href="http://www.SpeedTools.com/PrdInfo.html"><img src="/STimages/spacer5.gif" alt="" width="91" height="21" border="0"></a></td><td width="2" height="21"><img src="/STimages/spacer5.gif" alt="" width="2" height="21" border="0"></td><td width="69" height="21"><a id="'+shop+'" href="http://www.SpeedTools2.com/shop.html"><img src="/STimages/spacer5.gif" alt="" width="69" height="21" border="0"></a></td><td width="2" height="21"><img src="/STimages/spacer5.gif" alt="" width="2" height="21" border="0"></td><td width="91" height="21"><a id="'+support+'" href="http://www.SpeedTools.com/techsupport.html"><img src="/STimages/spacer5.gif" alt="" width="91" height="21" border="0"></a></td><td width="2" height="21"><img src="/STimages/spacer5.gif" alt="" width="2" height="21" border="0"></td><td width="108" height="21"><a id="'+downloads+'" href="https://www.SpeedTools2.com/store/Login.html"><img src="/STimages/spacer5.gif" alt="" width="108" height="21" border="0"></a></td><td width="2" height="21"><img src="/STimages/spacer5.gif" alt="" width="2" height="21" border="0"></td><td width="90" height="21"><a id="'+register+'" href="http://www.SpeedTools.com/register.html"><img src="/STimages/spacer5.gif" alt="" width="90" height="21" border="0"></a></td><td width="2" height="21"><img src="/STimages/spacer5.gif" alt="" width="2" height="21" border="0"></td><td width="87" height="21"><a id="'+contact+'" href="http://www.SpeedTools.com/Contact.html"><img src="/STimages/spacer5.gif" alt="" width="87" height="21" border="0"></a></td><td width="2" height="21"><img src="/STimages/spacer5.gif" alt="" width="2" height="21" border="0"></td><td width="194" height="21"><img src="/STimages/spacer5.gif" alt="" width="194" height="21" border="0"></td><td bgcolor="#282828" width="1" height="21"><img src="/STimages/spacer5.gif" alt="" width="1" height="21" border="0"></td></tr></table><table width="820" border="0" cellspacing="0" cellpadding="0"><tr height="7"><td bgcolor="#4C4C4C" width="1" height="7"><img src="/STimages/spacer5.gif" alt="" width="1" height="7" border="0"></td><td align="center" width="75" bgcolor="white" height="7"><img src="'+homearrow+'" alt="" width="15" height="8" border="0"></td><td align="center" width="93" bgcolor="white" height="7"><img src="'+productsarrow+'" alt="" width="15" height="8" border="0"></td><td align="center" width="71" bgcolor="white" height="7"><img src="'+shoparrow+'" alt="" width="15" height="8" border="0"></td><td align="center" width="93" bgcolor="white" height="7"><img src="'+supportarrow+'" alt="" width="15" height="8" border="0"></td><td align="center" width="110" bgcolor="white" height="7"><img src="'+downloadsarrow+'" alt="" width="15" height="8" border="0"></td><td align="center" width="92" bgcolor="white" height="7"><img src="'+registerarrow+'" alt="" width="15" height="8" border="0"></td><td align="center" width="89" bgcolor="white" height="7"><img src="'+contactarrow+'" alt="" width="15" height="8" border="0"></td><td align="center" width="90" bgcolor="white" height="7"><img src="/STimages/spacer5.gif" alt="" width="1" height="7" border="0"></td><td align="center" width="105" bgcolor="white" height="7"><img src="/STimages/spacer5.gif" alt="" width="1" height="7" border="0"></td><td bgcolor="#4C4C4C" width="1" height="7"><img src="/STimages/spacer5.gif" alt="" width="1" height="7" border="0"></td></tr></table>';
	return table
	
}


/* header */
function header() {

	return '<table width="820" border="0" cellspacing="0" cellpadding="0"><tr height="56"><td align="right" width="820" height="56" background="STimages/newheader.gif"><table width="155" border="0" cellspacing="0" cellpadding="0"><tr><td width="122"></td><td width="32"></td></tr></table></td></tr></table>'
}		


/* dynamic copyright */
function copyright() {

	function getFullYear(d) {
		var y = d.getYear();
		if (y < 1000) y += 1900;
		return y;
	}
	
	today=new Date();
	return getFullYear(today)

}
