// JScript source code
function flashOver (idx ,target){ 
	var obj = document.getElementById( target );
	obj.SetVariable("isover" , idx);
	obj.TPlay("_level0/over"); 
	
}

function flashPress (idx ,target){
	var obj = document.getElementById( target );
	obj.SetVariable("ispressed" , idx);
	obj.TPlay("_level0/pressed"); 	
}

function createComponentJS2Flash(id , filename , width , height , swliveconnect) {
	// Conditionally create object elements depending on browser
	// IE supports ActiveX, so create an object element that supports ActiveX
	// Mozilla supports MIME type, so if Mozilla, create an object element that supports MIME type
	swliveconnect = (!swliveconnect)? true : swliveconnect;
	if ((window.ActiveXObject) && 
		(navigator.userAgent.indexOf("MSIE")!= -1) && (navigator.userAgent.indexOf("Windows") != -1)) {

		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
		document.write(' width="' + width + '" height="' + height + '" id="' + id + '">');
		document.write(' <param name="movie" value="' + filename + '">');
		document.write(' <param name=quality value=high>');
		document.write(' <param name="swliveconnect" value="' + swliveconnect + '">');
		document.write('<' + '/object>');

	} else {
		var version_check = getFlashPluginVersion();
		//if (version_check.scriptable) {
			document.write('<object id="' + id + '" data="' + filename + '" type="application/x-shockwave-flash"');
			document.write(' width="' + width + '" height="' + height + '">');
			document.write('<param name="movie" value="' + filename + '">');
			document.write('<param name="quality" value="high">');
			document.write('<param name="swliveconnect" value="' + swliveconnect + '">');    	
			document.write('<\/object>'); 
			//} else
			//	identifyFlash();
	}

}
