//Rollover
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}




//year
function printDate() {
  myDate = new Date();
  myYear = myDate.getFullYear();
  document.write(myYear);
}



//close button for mac Safari
function closeWindow() { 
window.opener = window; 
var win = window.open( location.href, "_self" ); 
win.close(); 
} 











/*
function flashload(swf,w,h,bgcolor){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ w +'" height="'+ h +'">');
	document.write('<param name="movie" value="'+ swf +'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="' + bgcolor + '">');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<embed src="' + swf + '" quality="high" bgcolor="' + bgcolor + '" width="'+ w +'" height="'+ h +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent"></embed>');
	document.write('</object>');
}
*/