/************************************************************
*  
*  JavaScript 
* 
************************************************************/

/****************************************************************************************************************************************
*
*	JavaScript For Flash Embedding
*
***************************************************************************************************************************************/

function Flash(url, width, height)
{
	document.write("<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'");
	document.write("height='" + height + "' width='" + width + "' align='middle'>");
	document.write("<PARAM NAME='Movie' VALUE='" + url +"'>");
	document.write("<PARAM NAME='Src' VALUE='" + url +"'>");
	document.write("<PARAM NAME='WMode' VALUE='Transparent'>");
	document.write("<EMBED SRC='" + url + "' quality='high' WMode='Transparent' bgcolor='#ffffff' width='" + width + "' height='" + height + "' align='middle' allowScriptAccess='sameDomain'");
	document.write("type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</OBJECT>");
}

function FlashMenu(url, width, height, param)
{
	document.write("<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'");
	document.write("height='" + height + "' width='" + width + "' align='middle'>");
	document.write("<PARAM NAME='Movie' VALUE='" + url +"'>");
	document.write("<PARAM NAME='Src' VALUE='" + url +"'>");
	document.write("<PARAM NAME='WMode' VALUE='Transparent'>");
        document.write("<PARAM NAME='flashVars' VALUE='" + param + "' >");
	document.write("<EMBED SRC='" + url + "' quality='high' WMode='Transparent' bgcolor='#ffffff' width='" + width + "' height='" + height + "' align='middle' allowScriptAccess='sameDomain'");
	document.write("type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</OBJECT>");
}		

function Media(id, name, url, width, height)
{
	document.write("<OBJECT id='" + id + "' name='" + name + "' type='application/x-oleobject' height='" + height +"' width='" + width + "' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95'>");
	document.write("<PARAM NAME='Filename' VALUE='" + url + "'>");
	document.write("<PARAM NAME='AutoStart' VALUE='1'>");
	document.write("<PARAM NAME='AnimationAtStart' VALUE='0'>");
	document.write("<PARAM NAME='DisplayMode' VALUE='4'>");
	document.write("<PARAM NAME='Enabled' VALUE='true'>");
	document.write("<PARAM NAME='ShowControls' VALUE='0'>");
	document.write("<PARAM NAME='ShowAudioControls' VALUE='0'>");
	document.write("<PARAM NAME='ShowDisplay' VALUE='0'>");
	document.write("<PARAM NAME='ShowGotoBar' VALUE='0'>");
	document.write("<PARAM NAME='ShowPositionControls' VALUE='0'>");
	document.write("<PARAM NAME='ShowStatusBar' VALUE='0'>");
	document.write("<PARAM NAME='Volume' VALUE='0'>");
	document.write("<PARAM NAME='ShowCaptioning' VALUE='0'>");
	document.write("<PARAM NAME='TransparentAtStart' VALUE='1'>");
	document.write("<embed type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='" + id + "' name='" + name + "' height='" + height + "' width='" + width + "' src='" + url + "' invokeurls=false displaysize='4' autosize='0'  showcontrols='0' showdisplay='0' showstatusbar='0' animationatstart='1' displaymode='4' enabled='true' filename='" + url + "' showaudiocontrols='0' showgotobar='0' showpositioncontrols='0' volume='0' showcaptioning='0' transparentatstart='1'></embed>");
	document.write("</OBJECT>");
}		
