if(screen.width < 800)
{
	document.write('<link href="includes/style/metcalfe800.css" rel="stylesheet" type="text/css">');
}
if(screen.width > 800)
{
	document.write('<link href="includes/style/metcalfe800.css" rel="stylesheet" type="text/css">');
}
//if(screen.width == 1024)
//{
//	document.write('<link href="includes/style/metcalfe1024.css" rel="stylesheet" type="text/css">');
//}
//if(screen.width > 1024)
//{
//	document.write('<link href="includes/style/metcalfe1024.css" type="text/css">');
//}
//startList = function()
//{
//	if (document.all&&document.getElementById)
//	{
//		navRoot = document.getElementById("nav");
//		for (i=0; i < navRoot.childNodes.length; i++)
//		{
//			node = navRoot.childNodes[i];
//			if (node.nodeName=="LI")
//			{
//				node.onmouseover=function()
//				{
//					this.className+=" over";
//				}
//				node.onmouseout=function()
//				{
//					this.className=this.className.replace(" over", "");
//				}
//			}
//		}
//	}
//}
startList = function() {

	// code for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
window.onload=startList;

function hit001(thepic)
{
	winda=window.open("","winda","scrollbars,toolbar=no,width=675,height=" + (screen.height - 60) + " top=0 left=0");
	winda.document.open();
	winda.document.write("<title>&copy; Metcalfe Pty Ltd</TITLE>");
	winda.document.write("<BODY BACKGROUND='images/metbak.jpg'>");
	winda.document.write("<center>");
	winda.document.write("<IMG HSPACE=0 VSPACE=0 " + "SRC='" + thepic + "'>");
	winda.document.write("<BR>");
	winda.document.write("<BR>");
	winda.document.write("<input type='button' value='Close this Window' onClick='top.close();'>");
	winda.document.write("</center>");
	winda.document.write("</BODY>");
	winda.document.close();
}
pic01 = "includes/pages/automotive/images/autolite.gif";
pic02 = "includes/pages/automotive/images/butec.gif";
pic03 = "includes/pages/automotive/images/chrysler.gif";
pic04 = "includes/pages/automotive/images/delcoremy.gif";
pic05 = "includes/pages/automotive/images/electrodyne.gif";
pic06 = "includes/pages/automotive/images/fiat.gif";
pic07 = "includes/pages/automotive/images/leece.gif";
pic08 = "includes/pages/automotive/images/marelli.gif";
pic09 = "includes/pages/automotive/images/motorola.gif";
pic10 = "includes/pages/automotive/images/neihoff.gif";
pic11 = "includes/pages/automotive/images/paris.gif";
pic12 = "includes/pages/automotive/images/prestolite.gif";
pic13 = "includes/pages/automotive/images/simms.gif";
pic14 = "includes/pages/automotive/images/coils.gif";
pic15 = "includes/pages/automotive/images/military.gif";
pic16 = "includes/pages/automotive/images/motorola.gif";

function getNJPic(picnum)
{
winda=window.open("","winda","scrollbars,toolbar=no,width=675,height=" + (screen.height - 60) + " top=0 left=0");
winda.document.open();
winda.document.write("<TITLE>METCALFE - NON JAP STARTERS & ALTERNATORS</TITLE>");
winda.document.write("<BODY BACKGROUND='images/metbak.jpg'>");
winda.document.write("<center>");
winda.document.write("<IMG HSPACE=0 VSPACE=0 " + "SRC='" + picnum + "'>");
winda.document.write("<BR>");
winda.document.write("<BR>");
winda.document.write("<input type='button' value='Close this Window' onClick='top.close();'>");
winda.document.write("</center>");
winda.document.write("</BODY>");
winda.document.close();
}