// JavaScript Document
var VideoDisplayScript	= function(VideosDisplayPath,Width,Height,AutoPlay)	{
		strConfigFile = "config.xml";
		var EmbedSrc  = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" id="/YouTube_video/youtube" width="'+ Width +'" height="'+ Height +'">';
		EmbedSrc +='<param name="allowFullScreen" value="true" />';
		EmbedSrc +='<param name="wmode" value="transparent" />';
		EmbedSrc +='<param name="movie" value="renchenza.swf?xml=' + strConfigFile + '&video=' + VideosDisplayPath + '" />';
		EmbedSrc +='<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />';
		EmbedSrc +='<embed src="renchenza.swf?xml=' + strConfigFile + '&video=' + VideosDisplayPath + '" quality="high" bgcolor="#ffffff" width="'+ Width +'" height="'+ Height +'" name="/YouTube_video/youtube" align="middle" wmode="transparent" allowFullScreen="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		EmbedSrc +='</object>';
		if($("flashcontent"))
			$("flashcontent").innerHTML = EmbedSrc;	
}
