// EXTRAS.JS


// Son of Suckerfish Dropdown Menu
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);

// Create Email Address
function createAddress(account, domain, tld, title) {
	emailE = account
	emailE = (emailE + '@' + domain + tld)
	document.write('<a href="mailto:' + emailE + '" title="' + title +'">' + emailE + '</a>')
}

// Load Flash File
function loadFlash(fsrc, fwidth, fheight) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + fwidth + '" height="' + fheight + '">');
	document.write('<param name="movie" value="' + fsrc + '" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<embed src="' + fsrc + '" wmode="transparent" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + fwidth + '" height="' + fheight + '"></embed>');
	document.write('</object>');
}

// For Email to Friend link
function NavTo(url){
	window.location = url;
}