function ba(){var div=document.createElement("div");div.className="loading";var text=document.createElement("p");text.innerHTML="Loading";div.appendChild(text);return div;};function cz(o){var Q=null;var div=o.A;if(div!=undefined){Q=new n(div);if(o.T!=undefined)Q.T=o.T;if(o.ac!=undefined)Q.ac=o.ac;if(o.B!=undefined)Q.B=o.B;if(o.aF!=undefined)Q.aF(o.aF);}return Q;};function cq(f){var K=null;var A=document.getElementById(f.cs);if(A!=null){K=new F(A,f.bk);if(f.dH!=undefined)K.dH=f.dH;if(f.pause!=undefined)K.pause=f.pause;if(f.aV!=undefined)K.aV=f.aV;if(f.ax!=undefined)K.ax=f.ax;if(f.aC!=undefined)K.aC=f.aC;if(f.am!=undefined)K.am=f.am;if(f.H!=undefined)K.H=f.H;if(f.O!=undefined)K.O=f.O;}return K;};function cf(ai){var menu=null;var A=document.getElementById(ai.cs);if(A!=undefined){menu=new r(A);if(ai.al!=undefined)menu.al=ai.al;}return menu;};function cg(bG){var aU=new ApCommandNav(bG.Q);return aU;};apImportScript=function(url){bO=document.createElement("script");bO.src=url;bO.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(bO);};function googleAnylitics(){ 
	try 
	{  
		var pageTracker = _gat._getTracker("UA-8076844-2");
		pageTracker._initData();
		pageTracker._trackPageview();
	}
	catch(err) {}
	 };function Ap_Init(){document.username=document.getElementById("username");var bL=new ApAsyncLogin();if(loginAs!=null)bL.cj(bL.dq(loginAs));var K=cq({cs:"SlideShow",bk:"/SlideShow/SlideShow_Slides.htm",pause:7000});var search=document.getElementById("searchInput");search.onfocus=function(){this.className="text";if(this.value=="Search")this.value="";};search.onblur=function(){if(this.value==""){this.value="Search";this.className="";}};var ds=document.getElementById("searchGo");ds.onmouseover=function(){this.className="hover";};ds.onmouseout=function(){this.className="";};var menu=cf({cs:"MainNav",al:2500});var bZ=document.getElementById("Main");if(bZ.className== "product")el(bZ);if(bZ.className== "productList")new ci(bZ);var cP=document.getElementById("Basket");if(cP!=null){var V=new cl(cP);document.V=V;}var cQ=document.getElementById("addToBasket");if(cQ!=null){cQ.onclick=function(){var bo=document.getElementById("ApplianceID").value;var bw=document.getElementById("recycle")!=null?document.getElementById("recycle").checked:false;var bi=document.getElementById("disposal")!=null?document.getElementById("disposal").checked:false;var as=document.getElementById("installation")!=null?document.getElementById("installation").checked:false;document.V.add(bo,bw,bi,as)}}var ffterms=document.getElementById("ffterms");if(ffterms!=undefined){ffterms.onclick=function(){window.open(this.href);return false;}}var zones=document.getElementById("zones");if(zones!=undefined){zones.overlay=document.createElement("div");zones.overlay.id="zonesOverlay";zones.overlay.innerHTML="<h1>Our Delivery Zones</h1><p>GU, RH, RG, SO, SP, SN, OX, SL, HP, KT, CR, TW, UB, HA, WD, SW, SM, SE, W.</p>";var position=ap.eg(zones);zones.overlay.style.top=position.y+30+"px";zones.overlay.style.left=position.x-75+"px";zones.onmouseover=function(){document.body.appendChild(this.overlay)};zones.onmouseout=function(){document.body.removeChild(this.overlay)};}googleAnylitics();} 
//apImportScript("/scripts/cssHax.js");
apImportScript("/scripts/ApCore.js");
apImportScript("/scripts/ApAsync.js");
apImportScript("/scripts/ApSwitchMenu.js");
apImportScript("/scripts/ApSlideShow.js");
apImportScript("/scripts/ApAsyncLogin.js");
apImportScript("/scripts/ApEvents.js");
apImportScript("/scripts/ApCommandNav.js");
apImportScript("/scripts/ApBasket.js");
apImportScript("/scripts/Product.js");
apImportScript("/scripts/ProductList.js");
apImportScript("/scripts/ValidateSubmit.js");

apImportScript("http://www.google-analytics.com/ga.js");

window.onload = function(){setTimeout("Ap_Init()", 100)};

var loginAs = null;









//	*********************************************************************************************		CSS Hax


function Ap_importIECssHax()
{
	var browserType = Ap_getBrowserType();
	
	if(browserType == "MSIE 6")
	{
		Ap_importCSS("/styles/ie6Hax.css");
	}
	if(browserType == "MSIE 7")
	{
		Ap_importCSS("/styles/ie7Hax.css");
	}
	if(browserType == "MSIE 8")
	{
		Ap_importCSS("/styles/ie8Hax.css");
	}	
	if(browserType == "Safari")
	{
		Ap_importCSS("/styles/safariHax.css");
	}		
	/*
	if(browserType == "Opera")
	{
		Ap_importCSS("/styles/operaHax.css");
	}		
	*/
}

function Ap_importCSS(url)
{
	var head = document.getElementsByTagName("head")[0];

	var newStyle = document.createElement("link");
	newStyle.setAttribute("rel","stylesheet");
	newStyle.setAttribute("type", "text/css");
	newStyle.setAttribute("href", url);

	head.appendChild(newStyle);	
}

function Ap_getBrowserType()
{
	if(navigator.userAgent.indexOf("MSIE 6") > -1)
	{
		return "MSIE 6";
	}
	if(navigator.userAgent.indexOf("MSIE 7") > -1)
	{
		return "MSIE 7";
	}		
	if(navigator.userAgent.indexOf("MSIE 8") > -1)
	{
		return "MSIE 8";
	}		
	if(navigator.userAgent.indexOf("Firefox") > -1)
	{
		return "Firefox";
	}	
	if(navigator.userAgent.indexOf("Safari") > -1)
	{
		return "Safari";
	}	
	if(navigator.userAgent.indexOf("Opera") > -1)
	{
		return "Opera";
	}		
	
	return "unknown";
}

Ap_importIECssHax();