// JAVASCRIPT

// Typography
Cufon.replace('h2')('h3')('#subtitle')('.subtitle');

// Date
function date(get) {
	var mydate=new Date()
	var year=mydate.getFullYear()
	var day=mydate.getDay()
	var month=mydate.getMonth()
	var daym=mydate.getDate()
	var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
	if(get=="month"){document.write(montharray[month]);}
	if(get=="date"){document.write(daym);}
	if(get=="year"){document.write(year);}
}

// Flash
function home_flash() {
	document.write('<object type="application/x-shockwave-flash" data="flash/home.swf" width="958" height="362"><param name="movie" value="flash/home.swf" /><param name="quality" value="best" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="wmode" value="transparent" /></object>');
}

// IE6 Rollovers
function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById('menu');
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}

}

window.onload=startList;

// Load Quotes
function loadQuote() {
	var slide = Math.ceil(Math.random()*3);
	if (slide==1) {
		document.write('<img src="gui/quote1.gif" />');
	}
	if (slide==2) {
		document.write('<img src="gui/quote2.gif" />');
	}
	if (slide==3) {
		document.write('<img src="gui/quote3.gif" />');
	}
}
