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.fpal.com" target="_blank"><img src="../images/image001.png" style="margin-top: 35px; margin-bottom: 10px;" /></a><a href="http://www.bcas.org.uk" target="_blank"><img src="../images/image002.gif" style="margin-top: 10px; margin-bottom: 10px;" /></a><a href="http://www.achilles.com" target="_blank"><img src="../images/image005.gif" style="margin-top: 10px; margin-bottom: 10px;" /></a></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>');