var ordnum = Math.round(Math.random() * 1000000000);

/*  Pops windowMaker */	
function windowMaker(url, name) {window.open( url, name, 'toolbar=no,resizable=no,scrollbars=no,menubar=no,location=no,width=600,height=400,top=10,left=10' );}
		
/*  Pops Photo Gallery windows */		
function photoGallery(url, name) {window.open( url, name, 'toolbar=no,resizable=no,scrollbars=no,menubar=no,location=no,width=678,height=460,top=10,left=10' );}
		
/* for AOL Webcast Offer */
function aolPop(url, name) {window.open( url, name, 'toolbar=no,resizable=yes,status=yes,scrollbars=yes,menubar=no,location=no,width=470,height=400,top=10,left=10' );}

// SAS: another popup window
function makeRemote(url){remote = window.open(url,"photos","width=700,height=420,resizable=yes,scrollbars=no,location=no"); remote.location.href = url; if (remote.opener == null) remote.opener = window;}
	
/* 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";
		        topnav("hidden");
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			topnav("visible");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
