
/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

try{
	window.addEventListener("load",initRollovers,false);
}catch(e){
	window.attachEvent("onload",initRollovers);
}

function movie_play(movie_name){
w = 416;
h = 278;
document.write('<object id="MediaPlayer" width="' + w + '" height="' + h + '"  classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">');
document.write('<param name="autoStart" value="True">');
document.write('<PARAM name="filename" value="' + movie_name + '">');
document.write('<embed src="' + movie_name + '" type="application/x-mplayer2" name="MediaPlayer" width="' + w + '" height="' + h + '" autoplay="true" controller="true" volume="70">');
document.write('</EMBED>');
document.write('</OBJECT>');
}
function movie_window(url){
	var Setting;
	Setting = 'status=0,scrollbars=1,resizable=1,menubar=0,'
	+'location=0,toolbar=0,width=470,height=356';
	Tulonginnercontent = window.open(url, "movie", Setting);
	Tulonginnercontent.focus();
}



