<!--
	mxPos = 0;
	myPos = 0;

	var logged;

	var tooltips = new Array()
	tooltips['shiplap'] = "<h6>Shiplap</h6><p>Weatherboard cladding planed tongue and groove ex 16 x 125mm.</p><img src='/hints/cladding.png'>";
	tooltips['loglap'] = "<h6>Loglap</h6><p>Planed smooth to log pattern and moulded with tongue & groove ex 19 x 100mm.</p><img src='/hints/cladding.png'>";
	tooltips['standard framing'] = "<h6>Standard</h6><p>Standard framing ex 32 x 50mm</p>";
	tooltips['heavy duty framing'] = "<h6>Heavy Duty</h6><p>Heavy duty framing ex 63 x 50mm</p>";
	tooltips['Protek Primrose']="<h6>Protek Primrose</h6><img src='/hints/primrose.gif'>";
	tooltips['Protek Cornflower']="<h6>Protek Cornflower</h6><img src='/hints/cornflower.gif'>";
	tooltips['Protek Peacock']="<h6>Protek Peacock</h6><img src='/hints/peacock.gif'>";
	tooltips['Protek Lilac']="<h6>Protek Lilac</h6><img src='/hints/lilac.gif'>";
	tooltips['Protek Willow']="<h6>Protek Willow</h6><img src='/hints/willow.gif'>";
	tooltips['Protek Spruce']="<h6>Protek Square</h6><img src='/hints/square.gif'>";
	tooltips['Protek Cedar']="<h6>Protek Cedar</h6><img src='/hints/cedar.gif'>";
	tooltips['Protek Silver Fir']="<h6>Protek Silver Fir</h6><img src='/hints/silver_fir.gif'>";
	tooltips['Protek Marigold']="<h6>Protek Marigold</h6><img src='/hints/marigold.gif'>";
	tooltips['Protek Poppy']="<h6>Protek Poppy</h6><img src='/hints/poppy.gif'>";
	tooltips['Protek Teak']="<h6>Protek Teak</h6><img src='/hints/teak.gif'>";
	tooltips['Protek Chestnut']="<h6>Protek Chestnut</h6><img src='/hints/chestnut.gif'>";
	tooltips['Protek Dark Oak']="<h6>Protek Dark Oak</h6><img src='/hints/dark_oak.gif'>";
	tooltips['Protek Ebony']="<h6>Protek Ebony</h6><img src='/hints/ebony.gif'>";
	tooltips['Protek Aramanith']="<h6>Protek Aramanith</h6><img src='/hints/aramanith.gif'>";
	tooltips["Tee Hinge"]="<h6>Tee Hinge</h6><img src='/hints/T.jpg'>";
	tooltips["Light Duty- Reversible Hinge"]="<h6>Light Duty- Reversible Hinge</h6><img src='/hints/LDR.jpg'>";
	tooltips["Heavy Duty- Reversible Hinge"]="<h6>Heavy Duty- Reversible Hinge</h6><img src='/hints/HDR.jpg'>";
	tooltips["Drop Down Bolt"]="<h6>Drop Down Bolt</h6><img src='/hints/DDB.jpg'>";
	tooltips["Hasp & Staple"]="<h6>Hasp & Staple</h6><img src='/hints/HS.jpg'>";
	tooltips["Tower/Pad Bolt"]="<h6>Tower/Pad Bolt</h6><img src='/hints/TPB.jpg'>";
	tooltips["Ring Latch"]="<h6>Ring Latch</h6><img src='/hints/RL.jpg'>";
	tooltips["Suffolk Latch"]="<h6>Suffolk Latch</h6><img src='/hints/SL.jpg'>";
	tooltips["chamfered post cap"]="<h6>Chamfered Post Cap</h6><img src='/hints/post_finials.jpg'>";
	tooltips["round ball finial and cap"]="<h6>Round Ball Final and Cap</h6><img src='/hints/post_finials.jpg'>";
	tooltips["Tru-post Post Fix"]="<h6>Tru-post Post Fix</h6><img src='/hints/postfix.jpg'>";
	tooltips["- with shaped ends"]="<img src='/hints/Arrisrail-shapedends.jpg'>"
	tooltips["Arris Rail Repair Brackets"]="<img src='/hints/ArrisRailRepairBrackets.jpg'>"
	tooltips["Arris Rail mortice adaptors"]="<img src='/hints/ArrisRailmorticeadaptors.jpg'>"
	tooltips["Pad Bolt"]="<img src='/hints/PadBolt.jpg'>";
	tooltips["Tower Bolt"]="<img src='/hints/TowerBolt.jpg'>";
	tooltips["position A"]="<img src='/hints/positionA.jpg'>";
	tooltips["position B"]="<img src='/hints/positionB.jpg'>";
	tooltips["position C"]="<img src='/hints/positionC.jpg'>";
	tooltips["position D"]="<img src='/hints/positionD.jpg'>";
	tooltips["standard position"]="<img src='/hints/positionStandard.jpg'>";
	
	function LogThisRETURNFunc()
	{
        	// do nothing;
	}

	function LogThis(x,y)
	{
        	logged="YES";
	        if (window.XMLHttpRequest)
        	{
                	LogThisHTTPReq = new XMLHttpRequest();
	        }
        	else if (window.ActiveXObject)
	        {
        	        LogThisHTTPReq = new ActiveXObject("Microsoft.XMLHTTP");
	        }
        	LogThisHTTPReq.abort();
	        LogThisHTTPReq.onreadystatechange = LogThisRETURNFunc;
	        LogThisHTTPReq.open("POST", "/LogThis.php", true);
	        LogThisHTTPReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		LogThisHTTPReq.send("browser="+usragnt+"&x="+x+"&y="+y+"&xres="+window.screen.width+"&yres="+window.screen.height);
	}

        function prodcalc()
        {
		var TOT=0;
		var maxflds=document.getElementById("tflds").value;
		maxflds++;
		for (i=1; i<maxflds; i++)
		{
			GBP=document.getElementById("p_"+i+"_ID").value;
			GBP=GBP*document.getElementById("q_"+i+"_ID").value;
			GBP=GBP.toFixed(2);
			document.getElementById("t_"+i+"_ID").value = GBP;
			TOT=TOT+parseFloat(GBP);

		}
		TOT=TOT.toFixed(2);
		document.getElementById("totalb_ID").value=TOT;
		document.getElementById("totalt_ID").value=TOT;
        }


	function PopUp(url,name,height,width)
	{
		popup=window.open(url,name,"resizable=no,toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,width="+width+",height="+height);
	}



	function setproduct(PID)
	{
		opener.location="http://www.smithfencing.co.uk/product/?"+PID;
	}

	function captureMousePosition(e) 
	{
		var myPos=0;
		if (window.XMLHttpRequest)	
		{
			if (navigator.userAgent.indexOf("MSIE 7.0") == -1)
			{
				mxPos = e.pageX;
				myPos = e.pageY;
			}
			else
			{
				mxPos = mouseX(event);
				myPos = mouseY(event);
			}
		} 
		else if (window.ActiveXObject) 
		{
			mxPos = mouseX(event);
			myPos = mouseY(event);
		} 
		document.getElementById('hoverID').style.left = (mxPos-30) + "px";
		document.getElementById('hoverID').style.top = (myPos+10) + "px";
	}


	function HoverOver(PID)
	{
  		document.getElementById('hoverID').style.display= "block";
		document.getElementById('hoverID').innerHTML="<img src='/img.php?"+PID+"'>";
	}
	function HoverOver2(TipTxt)
	{
		if (document.getElementById('hoverID'))
		{
	  		document.getElementById('hoverID').style.display= "block";
			document.getElementById('hoverID').innerHTML=TipTxt;
		}
	}
	function HoverOut()
	{
  		document.getElementById('hoverID').style.display= "none";
	}

	function submitas(what)
	{
        	document.getElementById("whatID").value=what;
	        document.lf.submit();
	}

	function ZapTip()
	{
 	 	document.getElementById('hoverID').innerHTML = "";
  		document.getElementById('hoverID').style.display= "none";
	}

	function TipOut()
	{
		this.xxx=window.setTimeout('ZapTip()',3000);
	}

	function TipIn(tip)
	{
		if (this.xxx != null) { window.clearTimeout(this.xxx); }
		document.getElementById('hoverID').innerHTML= tooltips[tip];
		document.getElementById('hoverID').style.display= "block";
	}

	function TipInHTML(html)
	{
		if (this.xxx != null) { window.clearTimeout(this.xxx); }
		document.getElementById('hoverID').innerHTML= html;
		document.getElementById('hoverID').style.display= "block";
	}

	function init()
        {
                usragnt="NA";
	        if (navigator.userAgent.indexOf("MSIE 7.0") != -1) { usragnt="IE7"; LogThis(document.body.clientWidth,document.body.clientHeight); }
		if (navigator.userAgent.indexOf("MSIE 6.0") != -1) { usragnt="IE6"; LogThis(document.documentElement.clientWidth,document.documentElement.clientHeight); }
		if (navigator.userAgent.indexOf("Firefox") != -1 )  { usragnt="FF";  LogThis(window.innerWidth,window.innerHeight); }
		if (navigator.userAgent.indexOf("Safari") != -1) { usragnt="S"; LogThis(window.innerWidth,window.innerHeight); }
                if (logged != "YES") { LogThis(0,0); }
        }

	window.onload=init;
-->