
function EmbedFlashT(URL, mtype){
	//See if we can continue.	
	if(URL == null || URL == "illegal" || mtype == null ){
		//Nope, we can't.
		document.writeln("<br/>Oops!: wrong use of movie tag!<br/>");
	}else{
		//Add the code to the document.
		switch (mtype)
		{
		case 1: //youtube.
         document.writeln('<object width="425" height="350">');
         document.writeln('<param name="movie" value="http://www.youtube.com/v/' + URL +'&rel=0&color1=0xe1600f&color2=0xfebd01"></param>');
         document.writeln('<param name="wmode" value="transparent"></param>');
         document.writeln('<embed src="http://www.youtube.com/v/' + URL +'&rel=0&color1=0xe1600f&color2=0xfebd01" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">');
         document.writeln('</embed>');
         document.writeln('</object>');
      break;
      case 2:  //google
         document.writeln('<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=' + URL +'&hl=en" flashvars=""> </embed>');      
         break;
      case 3: // myspace
         document.writeln('<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=' + URL +'&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>');
         break;
      case 4: // photobucket, experimental      
         document.writeln('<embed src="' + URL +'" type="application/x-shockwave-flash" width="430" height="389" wmode="transparent"></embed>');
         break;
      case 5: // comedycentral.com, thedailyshow.com
         document.writeln('<embed FlashVars="videoId=' + URL + '" src="http://www.comedycentral.com/sitewide/video_player/view/default/swf.jhtml" quality="high" bgcolor="#cccccc" width="332" height="316" name="comedy_central_player" align="middle" allowScriptAccess="always" allownetworking="external" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
         break;
      default:
         break;
      }
      
		
	}
}

