function init() {

	try {

		I("branding").appendChild(T(I("customer"),"li")[1]).id = "contact-us";

		T(I("site-nav"),"ul")[0].appendChild(T(I("customer"),"li")[0]).id = "cart";

		I("branding").appendChild(I("search"));

		for(var i=0; i<T(I("supp-nav"),"li").length-1; i++) T(I("supp-nav"),"li")[i].innerHTML += '<span>-</span>';

		for(var i=0, ul=T("ul")[T("ul").length-1]; i<T(ul,"li").length-1; i++) T(ul,"li")[i].innerHTML += '<span class="dash">-</span>';
		I("branding").innerHTML += '<span id="quick">' + T(ul,"span")[1].innerHTML + '</span>';
		I("list").innerHTML += '<div id="call-today"><em>Call Today On</em><span>' + T(ul,"span")[1].innerHTML + '</span><a href="http://www.airpowerproducts.co.uk/fpal" target="_blank"><div style="clear: both; text-align: center; margin-left: -10px;"><img src="../images/sidebar1.gif" style="margin-top: 35px; margin-bottom: 10px;" /></div></a><a href="http://www.airpowerproducts.co.uk/uvdb" target="_blank"><div style=" margin-left: -10px;clear: both; text-align: center;"><img src="../images/image005.gif" style="margin-top: 20px; margin-bottom: 10px; margin-left: 25px;" /></div></a><a href="http://www.airpowerproducts.co.uk/bcas" target="_blank"><div style=" margin-left: -15px;clear: both; text-align: center;"><img src="../images/bcaslogo2.gif" style="margin-top: 20px; margin-bottom: 10px;" /></div></a><a href="http://www.airpowerproducts.co.uk/link_up" target="_blank"><div style=" margin-left: -10px;clear: both; text-align: center;"><img src="../images/linkup2.gif" style="margin-top: 20px; margin-bottom: 10px;" /></div></a><a href="#" target="_blank"><div style=" margin-left: -10px;clear: both; text-align: center;"><img src="../images/isologo.gif" style="margin-top: 20px; margin-bottom: 10px;" /></div></a></div><div style="position: absolute; top: 870px; text-align: center; background: url(../images/join_bg.png) no-repeat 0 0; height: 130px; padding-top: 4px; width: 204px; overflow: hidden;"><div class="newsletter-form" style="background: none; border: 0;"><form name="catemaillistform48234" onsubmit="return checkWholeForm48234(this)" method="post" action="http://airpowerproducts.co.uk/CampaignProcess.aspx?ListID=23871"><div class="form" style="padding-left: 0;"><div class="item" style="padding: 6px;"><input style="margin-right: 0px;width: 154px;padding: 5px;" class="cat_textbox_small" type="text" name="FullName" id="CLFullName" maxlength="255" value="Full Name" /></div><div class="item" style="padding: 6px;"><input style="style=margin-right: 0px;padding: 5px;width: 154px;" class="cat_textbox_small" type="text" name="EmailAddress" id="CLEmailAddress" maxlength="255" value="Email Address" /></div><div class="item" style="padding: 6px;"><input style="margin-right: 0px;" class="cat_button" type="submit" value="Receive Updates" id="catlistbutton" /></div></div><script type="text/javascript" src="http://airpowerproducts.co.uk/CatalystScripts/ValidationFunctions.js"></script><script type="text/javascript">//<![CDATA[function checkWholeForm48234(theForm){var why = "";if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);if (theForm.CaptchaV2) why += isEmpty(theForm.CaptchaV2.value, "Enter Word Verification in box below"); if (why != ""){alert(why);return false;}theForm.submit();return false;}//]]></script></form></div></div>'

		I("content").insertBefore(I("list"),I("content").firstChild);
		for(var i=0, item=T(I("list"),"li"); i<item.length; i++){
			T(item[i],"a")[0].innerHTML += '<span class="shade"></span>';
			if(T(item[i],"ul")[0]){
				T(item[i],"a")[0].innerHTML += '<span class="arrow"></span>';
				T(item[i],"ul")[0].style.left = item[i].offsetWidth + "px";
				item[i].onmouseover = function() { T(this,"ul")[0].style.display = "block" }
				item[i].onmouseout  = function() { T(this,"ul")[0].style.display = "none" }
			}
		}
		for(var i=0, ul=T(T(I("list"),"ul")[0],"ul"); i<ul.length; i++) ul[i].style.display = "none";

		if(I("new")){            /**** Homepage ****/

			document.body.id = "home";

		}

	} catch(e) {}

	var browser, os;
	if(window.opera) browser = "opera";
	else if(window.ActiveXObject){
		     if(/MSIE 6/.test(ua)) browser = "ie6 ie6-7 ie";
		else if(/MSIE 7/.test(ua)) browser = "ie7 ie6-7 ie";
		else if(/MSIE 8/.test(ua)) browser = "ie8 ie";
	}
	else if(window.GeckoActiveXObject){
		     if(/Firefox\/2/.test(ua))    browser = "ff2 ff";
		else if(/Firefox\/3\.0/.test(ua)) browser = "ff30 ff3 ff";
		else if(/Firefox\/3\.5/.test(ua)) browser = "ff35 ff3 ff";
	}
	else if(/Chrome/.test(ua)) browser = "chrome webkit";
	else if(/Safari/.test(ua)){
		     if(/Version\/3/.test(ua)) browser = "safari3 safari webkit";
		else if(/Version\/4/.test(ua)) browser = "safari4 safari webkit";
	}
	if(/Windows/.test(ua))  os = "win";
	else if(/Mac/.test(ua)) os = "mac";
	document.documentElement.className = browser + " " + os;

	if(/MSIE 6/.test(ua)) document.styleSheets[0].addRule("body", "behavior: url(js/ie6fix.htc)");
	else document.documentElement.style.visibility = "visible";

}
// enhanced onload function modified from http://dean.edwards.name/weblog/2006/06/again/
if(window.ActiveXObject){                      // for Internet Explorer
	document.write('<script src=//: defer onreadystatechange="if(this.readyState == \'complete\') init()"><\/script>');
}
else if(window.addEventListener){              // for Mozilla and newer versions of WebKit and Opera
	document.addEventListener("DOMContentLoaded", init, false);
}
else window.onload = init;                     // for other browsers



document.documentElement.style.visibility = "hidden";



function I(Id)      { return document.getElementById(Id) }
function T(obj,Tag) { return Tag?obj.getElementsByTagName(Tag):document.getElementsByTagName(obj) }



var ua = navigator.userAgent;
if(/Safari/.test(ua)) document.write('<style type="text/css">body, input, textarea { text-shadow: rgba(0,0,0,0.01) 0 0 0 }</style>');
