var page = (location.href);
var myURL;

if (location.hostname == "test.proscon.com") {
	myURL = "test.proscon.com"
}
if (location.hostname == "qa.proscon.com") {
	myURL = "qa.proscon.com"
}
if (location.hostname == "www.proscon.com" || location.hostname == "search2.rockwellautomation.com" || location.hostname == "search1.rockwellautomation.com" || location.hostname == "search.rockwellautomation.com") {
	myURL = "www.proscon.com"
}

document.write("<table border=0 cellpadding=0 cellspacing=0 align=center id=banner><tr valign=top>");
document.write("<td id=leftnav><img src=http://" + myURL + "/lib/images/spacer.gif width='252' height='184' usemap='#prosconhome' border='0'></td>");
document.write("<td id=photo align=left>");

if ((page == "http://"+myURL+"/index.html") || (page == "http://"+myURL+"/") || (page.match("contacts")) ) {
	document.write("<img src=http://" + myURL + "/lib/images/bannerpix-home.gif>");
}
else if (page.match("resources")) {
	document.write("<img src=http://" + myURL + "/lib/images/bannerpix-resources.gif>");
}
else {
	document.write("<img src=http://" + myURL + "/lib/images/bannerpix-building.gif>");
}

document.write("</td>");
document.write("<td id=rightnav align=right>");
	document.write("<div id='links'><a href='http://" + myURL + "/index.html'>Home</a><a href='http://" + myURL + "/contacts/'>Contacts</a><a href='http://" + myURL + "/sitemap.html'>Sitemap</a></div>");	
	document.write("<div id='search'>");
	function getsearch() {
			document.mySearch.submit();
		}
document.write("<form method='get' action='http://search.rockwellautomation.com/search' class='searchform' name='mySearch'><INPUT TYPE=hidden NAME=site VALUE=proscon><INPUT TYPE=hidden NAME=client VALUE=proscon><INPUT TYPE=hidden NAME=filter VALUE=0><INPUT TYPE=hidden NAME=output VALUE=xml_no_dtd><INPUT TYPE=hidden NAME=proxystylesheet VALUE=proscon><input class='search' onFocus=if(this.value=='Search')value='' onBlur=if(this.value=='')value='Search'; value='' type='text' name='q' size='14'>&nbsp;<a href='javascript:getsearch()'>search</a></form></div>");
/*<input type='submit' name='submit' value='&#187;' class='submit' border='0'>*/

document.write("</td></tr></table>");	
document.write("<map name='prosconhome'><area shape='rect' coords='35,70, 235,125' href=http://" + myURL + "/index.html alt='ProsCon Home'></map>");	
