
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"></param>');
         document.writeln('<param name="wmode" value="transparent"></param>');
         document.writeln('<embed src="http://www.youtube.com/v/' + URL +'&rel=0" 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;
      default:
         break;
      }
      
		
	}
}

