/*===========================================================================
	Presentational (Global)
	
	This JavaScript executes dynamic behaviors such as:
	* Preloading images
	* Flash Replacements (i.e. sIFR, UFO, SWFObject, etc.)
	* Decorate the DOM with presentational elements
===========================================================================*/

/* Fix background-image Flickering for a:hover in Internet Explorer
===========================================================================*/

/*
	No More IE6 Background Flicker - Cristi Balan
	http://evil.che.lu/2006/9/25/no-more-ie6-background-flicker
*/

try {
	document.execCommand("BackgroundImageCache", false, true);
} catch(e) {}

/* Logo Hover
===========================================================================*/

YAHOO.util.Event.addListener("logo", "mouseover", function(e) {
	var logo = document.getElementById("logo");
	var img = logo.getElementsByTagName("img");
	YAHOO.util.Dom.setStyle(img[0], "position", "absolute");
	YAHOO.util.Dom.setStyle(img[0], "top", "-51px");
});

YAHOO.util.Event.addListener("logo", "mouseout", function(e) {
	var logo = document.getElementById("logo");
	var img = logo.getElementsByTagName("img");
	YAHOO.util.Dom.setStyle(img[0], "position", "absolute");
	YAHOO.util.Dom.setStyle(img[0], "top", "0");
});
