// File of Sen's common javascript needs. For Millennium.

// Mah banner-window-opening crap.

function banners() {
window.open("banners.php", "banners", "width=700,height=400,scrollbars=1,status=0,resizable=0,toolbar=0");
}

function stars() {
window.open("constellations.php", "stars", "width=808,height=608,scrollbars=0,status=0,resizable=0,toolbar=0");
}

function results() {
window.open("pollresults.php", "results", "width=350,height=470,scrollbars=1,status=0,resizable=1,toolbar=0");
}


// Preload images

Image1 = new Image(782,614);
Image1.src = "../bg.gif";

Image2 = new Image(720,589);
Image2.src = "../bg2.jpg";

Image3 = new Image(159,112);
Image3.src = "../language.png";

Image4 = new Image(159,112);
Image4.src = "../language-over.png";

Image5 = new Image(754,224);
Image5.src = "../header.png";


// The hover dropdown LI code.

<!--//--><![CDATA[//><!--

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);

//--><!]]>


// Gets rid of weird spaces caused by AddThis

  jQuery(document).ready(function() {
    jQuery('#attfc').hide();
  });