/********** Function to make the 'Home' link bold on load and when clicked on the 'aumtech' logo **********/

function onloadBold()
{
	//alert("home");
	document.anchors[0].style.color="#FF0000";
	document.anchors[0].style.fontWeight="bold";
		
}

		/********** Function for the Products and Support page left hand side menu bars **********/

function handleColor(current)
{
	//alert("Total no. of anchors = " + document.anchors.length);
	for (i = 0; i < document.anchors.length; i++)
	{
		//alert("document.anchors[" + i + "] = " + document.anchors[i]);
		document.anchors[i].style.color="#474747";
		document.anchors[i].style.fontWeight="bold";
		document.anchors[i].style.hover="#FF0000";
	}
/*
	var thisAnchor = document.getElementsByName(current.name);
	thisAnchor[0].style.color='#FF0000';
	thisAnchor[0].style.fontWeight='bold';
*/	
	current.style.color='#FF0000';
	current.style.fontWeight='bold';
	//alert(current.id);
	if (current.id == "top_products")
	{
		//alert("got top_products");
		//current.href="Products2.html";
		if(screen.width == 1152)
		{
			//alert("You are in " +screen.width+ "resolution");
			current.href ="Products2.html";
		}
		else if (screen.width == 1280)
		{
			//alert("You are in " +screen.width+ "resolution");
			current.href ="Products1.html";
		}
		else 
		{
			//alert("You are in " +screen.width+ "resolution");
			current.href ="Products.html";
		}
	}
	if (current.id =="top_support")
	{
		//alert("current.href = " + current.href);
		//alert("got top_support width = " + screen.width);
		//current.href="Products2.html";
		if(screen.width == 1152)
		{
			//alert("You are in " +screen.width+ "resolution");
			current.href ="Support2.html";
		}
		else if (screen.width == 1280)
		{
			//alert("You are in " +screen.width+ "resolution");
			current.href ="Support1.html";
		}
		else 
		{
			//alert("You are in " +screen.width+ "resolution");
			current.href ="Support.html";
		}

	}

	/*
	alert("Original href = " + current.href);
	alert("New href = " + current.href);
	*/
}

		/********** Function for Products page navigation issue **********/

function redirect()
	{
		if(screen.width == 1152)
		{
			top.location.href ="Products2.html";
			top.location.target="_top";
		}
		if(screen.width == 1280)
		{
			top.location.href ="Products1.html";
		}
	}

function redirect1()
	{
		if(screen.width == 1024)
		{
		top.location.href ="Products.html";
		}
		if(screen.width == 1280)
		{
		top.location.href ="Products1.html";
		}
	}

function redirect2()
	{
		if(screen.width < 1024)
		{
		top.location.href ="Products.html";
		}
	}


		/********** Function for Support page navigation issue **********/

function supportredirect()
	{
		if(screen.width == 1152)
		{
		top.location.href ="Support2.html";
		}
		if(screen.width == 1280)
		{
		top.location.href ="Support1.html";
		}
	}

function supportredirect1()
	{
		if(screen.width == 1024)
		{
		top.location.href ="support.html";
		}
		if(screen.width == 1280)
		{
		top.location.href ="Support1.html";
		}
	}

function supportredirect2()
	{
		if(screen.width < 1024)
		{
		top.location.href ="support.html";
		}
	}

