var ordnum = Math.random()*10000000000000000;

/* Extra stuff to enable nav hovers in lame IE */
<!--    
sfHover = function() {	var sfEls = document.getElementById("nav").getElementsByTagName("LI");	for (var i=0; i<sfEls.length; i++) {		sfEls[i].onmouseover=function() {			this.className+=" sfhover";		}		sfEls[i].onmouseout=function() {			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");		}	}}if (window.attachEvent) window.attachEvent("onload", sfHover);

/* Sponsor toggle */
function sponsorToggle (show) {
	if (show) {
		document.getElementById('sponsor').style.display = 'block';
	} else {
		document.getElementById('sponsor').style.display = 'none';
	}
}
//-->
 
/* POPUPS */
<!--
Popup = new Object ();

Popup.open = function (url, width, height, toolbar, scroll, center) {
	var name = new Date ();
	name = name.getTime ();
	name = name.toString ();
	toolbar = toolbar ? "yes" : "no";
	scroll = scroll ? "yes" : "no";
	status = status ? "yes" : "no";
	var features = "toolbar="+toolbar+",menubar="+toolbar+",location="+toolbar+",status="+toolbar+",status="+status+",scrollbars="+scroll+",resizable="+scroll;
	if (width) features += ",width="+width;
	if (height) features += ",height="+height;
	if (center) {
		if (width && window.screen.availWidth) {
			var x = Math.round ((window.screen.availWidth - parseInt (width)) / 2);
			features += ",screenX="+x+",left="+x;
		}
		if (height && window.screen.availHeight) {
			var y = Math.round ((window.screen.availHeight - parseInt (height)) / 2);
			features += ",screenY="+y+",top="+y;
		}
	}
	window.open (url, name, features);
}
Popup.center = function (url, width, height) {
	this.open (url, width, height, false, false, true);
}
Popup.centerChrome = function (url, width, height) {
	this.open (url, width, height, true, false, true);
}
Popup.centerScroll = function (url, width, height) {
	this.open (url, width, height, false, true, true);
}
Popup.centerChromeScroll = function (url, width, height) {
	this.open (url, width, height, true, true, true);
}
Popup.centerStatus = function (url, width, height) {
	this.open (url, width, height, false, false, true);
}

-->
