<!--//--><![CDATA[//><!--

var mrMac = (navigator.userAgent.indexOf('Mac') != -1);
	if (!mrMac) {
	        //alert("1");
		sfHover = function() {
			var sfEls = document.getElementById("primary-nav").getElementsByTagName("LI");
			for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
					this.className+=" over";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" over\\b"), "");
				}
			}
		}
		if (window.attachEvent) window.attachEvent("onload", sfHover);
	}
	
function CreateElement()
{
        //alert("2");
	//WaitHere(50);
	// put in a wait
	var oDiv = document.createElement("DIV");
	
	oDiv.style.top = 0;
	oDiv.style.position = "absolute";
	oDiv.style.left = 0;
	
	var s="<img src='http://www.webling.com.au/images/button_feedback_n.gif' onmouseover=\"this.src='http://www.webling.com.au/images/button_feedback_r.gif'\" onmouseout=\"this.src='http://www.webling.com.au/images/button_feedback_n.gif'\" border=0>";
	
	
	
	oDiv.innerHTML = "<a href=\"Javascript:OpenBugWindow();\">"+ s +"</a>";
	
	//alert(oDiv.innerHTML);
	//document.body.appendChild(oDiv);
	document.write("<div style='position:absolute; top:0; left:0;z-index:99;'>"+ oDiv.innerHTML +"</div>")
}
function OpenBugWindow()
{
        //alert("3");
	var oWinBug;
	var url = "http://www.webling.com.au/addBug.aspx?email=arnotts_feedback@webling.com.au&url="+ document.location.href;
	oWinBug = window.open(url,"BugWindow","top=10,left=10,scrollbars=yes, width=550, height=360;");
}
function WaitHere(where)
{
        //alert("4");
	var max  = (where*1000);
	var s = "";
	for(var x = 0;x<=max;x++)
	{
		s+="af ";
	}	
}
if (!mrMac) {
        //alert("5");
	//CreateElement();
}	
	
//--><!]]>
