function madieshow(twidth,theight,url)
	{
		
		if(url.substr(url.lastIndexOf(".")).toLowerCase()=='.flv')
		{
			var texts='';
			
			document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ twidth +'" height="'+ theight +'">');
document.write('<param name="movie" value="vcastr.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name="allowFullScreen" value="true" />');
document.write('<param name="FlashVars" value="vcastr_file='+url+'&vcastr_title='+texts+'">');
document.write('<embed src="vcastr.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&vcastr_title='+texts+'" menu="false" quality="high" width="'+ twidth +'" height="'+ theight +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); 
document.write('</object>'); 
		}
		else
		{
		document.write("<object align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=OBJECT id=MediaPlayer width=\""+twidth+"\" height=\""+theight+"\">");
                document.write("<param name=ShowStatusBar value=\"0\">");
                document.write("<param name=Filename value=\""+url+"\">");
				document.write("<param name=\"EnableFullScreenControls\" value=\"0\">");
				document.write("<param name=\"Volume\" value=\"100%\">");
               /* document.write("<param name=\"AudioStream\" value=\"-1\">");
                document.write("<param name=\"AutoSize\" value=\"0\">");
                document.write("<param name=\"AutoStart\" value=\"1\">");
                document.write("<param name=\"AnimationAtStart\" value=\"-1\">");
                document.write("<param name=\"AllowScan\" value=\"-1\">");
                document.write("<param name=\"AllowChangeDisplaySize\" value=\"-1\">");
                document.write("<param name=\"AutoRewind\" value=\"0\">");
                document.write("<param name=\"Balance\" value=\"0\">");
                document.write("<param name=\"BaseURL\" value>");
                document.write("<param name=\"BufferingTime\" value=\"1\">");
                document.write("<param name=\"ClickToPlay\" value=\"-1\">");
                document.write("<param name=\"CursorType\" value=\"0\">");
                document.write("<param name=\"CurrentPosition\" value=\"-1\">");
                document.write("<param name=\"CurrentMarker\" value=\"0\">");
                document.write("<param name=\"DefaultFrame\" value>");
                document.write("<param name=\"DisplayBackColor\" value=\"0\">");
                document.write("<param name=\"DisplayForeColor\" value=\"16777215\">");
                document.write("<param name=\"DisplayMode\" value=\"0\">");
                document.write("<param name=\"DisplaySize\" value=\"4\">");
                document.write("<param name=\"Enabled\" value=\"-1\">");
                document.write("<param name=\"EnableContextMenu\" value=\"-1\">");
                document.write("<param name=\"EnablePositionControls\" value=\"-1\">");
                document.write("<param name=\"EnableTracker\" value=\"-1\">");
                document.write("<param name=\"InvokeURLs\" value=\"-1\">");
                document.write("<param name=\"Language\" value=\"-1\">");
                document.write("<param name=\"Mute\" value=\"0\">");
                document.write("<param name=\"PlayCount\" value=\"0\">");
                document.write("<param name=\"PreviewMode\" value=\"0\">");
                document.write("<param name=\"Rate\" value=\"1\">");
                document.write("<param name=\"SAMILang\" value>");
                document.write("<param name=\"SAMIStyle\" value>");
                document.write("<param name=\"SAMIFileName\" value>");
                document.write("<param name=\"SelectionStart\" value=\"0\">");
                document.write("<param name=\"SelectionEnd\" value=\"0\">");
                document.write("<param name=\"SendOpenStateChangeEvents\" value=\"0\">");
                document.write("<param name=\"SendWarningEvents\" value=\"0\">");
                document.write("<param name=\"SendErrorEvents\" value=\"0\">");
                document.write("<param name=\"SendKeyboardEvents\" value=\"0\">");
                document.write("<param name=\"SendMouseClickEvents\" value=\"0\">");
                document.write("<param name=\"SendMouseMoveEvents\" value=\"0\">");
                document.write("<param name=\"SendPlayStateChangeEvents\" value=\"-1\">");
                document.write("<param name=\"ShowCaptioning\" value=\"0\">");
                document.write("<param name=\"ShowControls\" value=\"1\">");
                document.write("<param name=\"ShowAudioControls\" value=\"-1\">");
                document.write("<param name=\"ShowDisplay\" value=\"0\">");
                document.write("<param name=\"ShowGotoBar\" value=\"0\">");
                document.write("<param name=\"ShowPositionControls\" value=\"-1\">");
                document.write("<param name=\"ShowTracker\" value=\"-1\">");
                document.write("<param name=\"TransparentAtStart\" value=\"0\">");
                document.write("<param name=\"VideoBorderWidth\" value=\"0\">");
                document.write("<param name=\"VideoBorderColor\" value=\"0\">");
                document.write("<param name=\"VideoBorder3D\" value=\"0\">");
                document.write("<param name=\"WindowlessVideo\" value=\"0\">");*/
                document.write("</OBJECT>");
				
				}
		
		}