function insertFestivalsNavigation(the_festival_number, the_xml){
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="567" HEIGHT="85" BORDER="0">');
	document.write('	<PARAM NAME="movie"   VALUE="/common/flash/thm-box_2011_02_23.swf">');
	document.write('	<PARAM NAME="quality" VALUE="high">');
	document.write('	<PARAM NAME="bgcolor" VALUE="#C7DAE0">');
	document.write('	<PARAM NAME="WMode"   VALUE="Transparent">');
	document.write('	<PARAM NAME="FlashVars" VALUE="link_xml='+the_xml+'&selectedBtn='+the_festival_number+'">');
	document.write('<EMBED SRC="/common/flash/thm-box_2011_02_23.swf" FlashVars="link_xml='+the_xml+'&selectedBtn='+the_festival_number+'" WMODE="transparent" QUALITY="high" TYPE="application/x-shockwave-flash" WIDTH="567" HEIGHT="85" BGCOLOR="#C7DAE0"></EMBED>');
	document.write('</OBJECT>');	
}

function insertLatestBox(linkTo){
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="213" HEIGHT="264" BORDER="0">');
	document.write('	<PARAM NAME="movie"   VALUE="/common/flash/latest_2011_08_12.swf">');
	document.write('	<PARAM NAME="quality" VALUE="high">');
	document.write('	<PARAM NAME="bgcolor" VALUE="#C7DAE0">');
	document.write('	<PARAM NAME="WMode"   VALUE="Transparent">');
	document.write('	<PARAM NAME="FlashVars" VALUE="linkTo='+linkTo+'">');
	document.write('<EMBED SRC="/common/flash/latest_2011_08_12.swf" FlashVars="linkTo='+linkTo+'" WMODE="transparent" QUALITY="high" TYPE="application/x-shockwave-flash" WIDTH="213" HEIGHT="264" BGCOLOR="#C7DAE0"></EMBED>');
	document.write('</OBJECT>');	
}

function insertHomePageContentMenu(the_xml){
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="156" HEIGHT="416" BORDER="0">');
	document.write('	<PARAM NAME="movie"   VALUE="/home/flash/menu.swf?the_xml='+the_xml+'">');
	document.write('	<PARAM NAME="quality" VALUE="high">');
	document.write('	<PARAM NAME="bgcolor" VALUE="#C7DAE0">');
	document.write('	<PARAM NAME="WMode"   VALUE="Transparent">');
	document.write('	<PARAM NAME="loop"    VALUE="false">');
	document.write('<EMBED SRC="/home/flash/menu.swf?the_xml='+the_xml+'" WMODE="transparent" QUALITY="high" loop="false" TYPE="application/x-shockwave-flash" WIDTH="156" HEIGHT="416" BGCOLOR="#C7DAE0"></EMBED>');
	document.write('</OBJECT>');	
}

function insertGeeVeePlayer(media_entity_ID, live_mode){
	document.write('<OBJECT ID="MEDIA_PLAYER" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="366" HEIGHT="428" BORDER="0">');
	document.write('	<PARAM NAME="movie"   VALUE="/home/flash/gvee_player.swf?media_entity_ID='+media_entity_ID+'&live_mode='+live_mode+'">');
	document.write('	<PARAM NAME="quality" VALUE="high">');
	document.write('	<PARAM NAME="bgcolor" VALUE="#C7DAE0">');
	document.write('	<PARAM NAME="WMode"   VALUE="Transparent">');
	document.write('	<PARAM NAME="loop"    VALUE="false">');
	document.write('<EMBED ID="MEDIA_PLAYER" SRC="/home/flash/gvee_player.swf?media_entity_ID='+media_entity_ID+'&live_mode='+live_mode+'" WMODE="transparent" QUALITY="high" loop="false" TYPE="application/x-shockwave-flash" WIDTH="366" HEIGHT="428" BGCOLOR="#C7DAE0"></EMBED>');
	document.write('</OBJECT>');	
}

function insertAudioPlayer(media_entity_ID, theWidth, theHeight){
	document.write('<OBJECT ID="MEDIA_PLAYER" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="'+theWidth+'" HEIGHT="'+theHeight+'" BORDER="0">');
	document.write('	<PARAM NAME="movie"   VALUE="/common/flash/audio_player/music player.swf?media_entity_ID='+media_entity_ID+'">');
	document.write('	<PARAM NAME="quality" VALUE="high">');
	document.write('	<PARAM NAME="bgcolor" VALUE="#05377C">');
	document.write('	<PARAM NAME="WMode"   VALUE="Transparent">');
	document.write('<EMBED NAME="MEDIA_PLAYER" SRC="/common/flash/audio_player/music player.swf?media_entity_ID='+media_entity_ID+'" WMODE="transparent" QUALITY="high" TYPE="application/x-shockwave-flash" WIDTH="'+theWidth+'" HEIGHT="'+theHeight+'" BGCOLOR="#FF0000" swLiveConnect=true></EMBED>');
	document.write('</OBJECT>');	
}

function insertFlashVideo(thePath, theWidth, theHeight){
	the_return = "";
	
	theHeight=parseInt(theHeight)+15;

	the_return=the_return+'<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="'+theWidth+'" height="'+theHeight+'" align="middle">';
	the_return=the_return+'	<param name="allowScriptAccess" value="sameDomain" />';
	the_return=the_return+'	<param name="movie" value="/common/flash/player.swf" />';
	the_return=the_return+'	<param name="FlashVars" value="flvURL='+thePath+'&ControlPanelColor=0x174672&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" />';
	the_return=the_return+'	<param name="quality" value="high" />';
	the_return=the_return+'	<param name="bgcolor" value="#000000" />';
	the_return=the_return+'	<param name="scale" value="noscale" />';
	the_return=the_return+'	<param name="salign" value="lt" />';
	the_return=the_return+'		<embed src="/common/flash/player.swf" width="'+theWidth+'" height="'+theHeight+'" align="middle" quality="high" bgcolor="#000000" scale="noscale" salign="lt" FlashVars="flvURL='+thePath+'&ControlPanelColor=0x174672&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=0&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	the_return=the_return+'</object>';
	
	return the_return;
}
