function EmbedGvidT(URL){
	if(URL == null || URL == "illegal"){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of GoogleVideo tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="'+ URL +'" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL"  FlashVars="playerMode=embedded"> </embed>');
	}
}

function EmbedYT(URL, width, height, menu, quality, bg, bg2){
	//Checks if the menu constant is entered (correctly)
	if(menu != true && menu != false && menu != "true" && menu != "false"){
		menu = true; //Replace with default. Default = true.
	}
	//Checks if the quality constant is entered (correctly)
	if(quality != "high" && quality != "normal" && quality != "low"){
		quality = "high";	//Replace with default. Defautl = high.
	}
	if(bg == null){
		bg = "#FFFFFF";	//Replace with default. Defautl = white.
	}
	if(bg2 == null){
		bg2 = "#FFFFFF";	//Replace with default. Defautl = white.
	}
	//See if we can continue.	
	if(URL == null || URL == "illegal" || width == null || height == null){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of flash tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<OBJECT type="application/x-shockwave-flash" data="' + URL + '" WIDTH="' +  width + '" HEIGHT="' + height + '">');
		document.writeln('<PARAM NAME="MOVIE" VALUE="' + URL + '" />');
		document.writeln('<param name="wmode" value="transparent" />');
		document.writeln('<PARAM NAME="QUALITY" VALUE="' + quality + '" />');
		document.writeln('<PARAM NAME="MENU" VALUE="' + menu + '" />');
		document.writeln('<PARAM NAME="BGCOLOR" VALUE="' + bg + '" />');
		document.writeln('<PARAM NAME="PLAY" VALUE="TRUE" />');
		document.writeln('<EMBED BGCOLOR="'+ bg2 +'" WIDTH="' +  width + '" HEIGHT="' + height + '" SRC="' + URL + '" MENU="' + menu + '" PLUGINSPAGE="http://www.adobe.com/go/getflashplayer" TYPE="APPLICATION/X-SHOCKWAVE-FLASH" QUALITY="BEST" PLAY="TRUE" wmode="transparent"></EMBED></OBJECT>');
	}
}

function EmbedFlashT(URL, width, height, menu, quality, bg, bg2){
	//Checks if the menu constant is entered (correctly)
	if(menu != true && menu != false && menu != "true" && menu != "false"){
		menu = true; //Replace with default. Default = true.
	}
	//Checks if the quality constant is entered (correctly)
	if(quality != "high" && quality != "normal" && quality != "low"){
		quality = "high";	//Replace with default. Defautl = high.
	}
	if(bg == null){
		bg = "#FFFFFF";	//Replace with default. Defautl = white.
	}
	if(bg2 == null){
		bg2 = "#FFFFFF";	//Replace with default. Defautl = white.
	}
	//See if we can continue.	
	if(URL == null || URL == "illegal" || width == null || height == null){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of flash tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<OBJECT type="application/x-shockwave-flash" data="' + URL + '" WIDTH="' +  width + '" HEIGHT="' + height + '">');
		document.writeln('<PARAM NAME="MOVIE" VALUE="' + URL + '" />');
		document.writeln('<PARAM NAME="QUALITY" VALUE="' + quality + '" />');
		document.writeln('<PARAM NAME="MENU" VALUE="' + menu + '" />');
		document.writeln('<PARAM NAME="BGCOLOR" VALUE="' + bg + '" />');
		document.writeln('<PARAM NAME="PLAY" VALUE="TRUE" />');
		document.writeln('<EMBED BGCOLOR="'+ bg2 +'" WIDTH="' +  width + '" HEIGHT="' + height + '" SRC="' + URL + '" MENU="' + menu + '" PLUGINSPAGE="http://www.adobe.com/go/getflashplayer" TYPE="APPLICATION/X-SHOCKWAVE-FLASH" QUALITY="BEST" PLAY="TRUE"></EMBED></OBJECT>');
	}
}

function EmbedMCT(URL, width, height, menu, quality, bg, bg2){
	//Checks if the menu constant is entered (correctly)
	if(menu != true && menu != false && menu != "true" && menu != "false"){
		menu = true; //Replace with default. Default = true.
	}
	//Checks if the quality constant is entered (correctly)
	if(quality != "high" && quality != "normal" && quality != "low"){
		quality = "high";	//Replace with default. Defautl = high.
	}
	if(bg == null){
		bg = "#FFFFFF";	//Replace with default. Defautl = white.
	}
	if(bg2 == null){
		bg2 = "#FFFFFF";	//Replace with default. Defautl = white.
	}
	//See if we can continue.	
	if(URL == null || URL == "illegal" || width == null || height == null){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of metacafe tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<EMBED flashVars="altServerURL=http://www.metacafe.com&playerVars=showStats=no|autoPlay=no|blogName=oxle|blogURL=http://oxle.com" BGCOLOR="'+ bg2 +'" WIDTH="' +  width + '" HEIGHT="' + height + '" SRC="' + URL + '" MENU="' + menu + '" PLUGINSPAGE="http://www.adobe.com/go/getflashplayer" TYPE="APPLICATION/X-SHOCKWAVE-FLASH" QUALITY="BEST" PLAY="TRUE" wmode="transparent"></EMBED>');
	}
}

function EmbedMSVT(ID){
	if(ID == null || ID == "illegal"){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of MySpace Video tag!&nbsp;");
	}else{
		//Add the code to the document.
				document.writeln('<embed src="http://lads.myspace.com/videos/vplayer.swf" quality="best" bgcolor="#ffffff" flashvars="m=' + ID + '&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>');
	}
}

function EmbedQuicktimeT(URL, width, height, autoplay){
	if(autoplay != true && autoplay != "true" && autoplay != "1" && autoplay != 1){
		autoplay = 0; //Replace with default. Default = 0 (false).
		}else{
		autoplay = 1; //Replace with 1, being zero.
	}//See if we can continue.	
	if(URL == null || URL == "illegal"){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of quicktime tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" TYPE="video/quicktime" width="' +  width + '" height="' + height + '">');
		document.writeln('<param name="src" value="qtposter.jpg" />');
		document.writeln('<param name="href" value="' + URL + '" />');
		document.writeln('<param name="volume" value="25" />');
		document.writeln('<param name="autoplay" value="'+ autoplay +'" />');
		document.writeln('<param name="autohref" value="false" />');
		document.writeln('<param name="cache" value="true" />');
		document.writeln('<param name="scale" value="aspect" />');
		document.writeln('<param name="target" value="myself" />');
		document.writeln('<embed width="' +  width + '" height="' + height + '" src="qtposter.jpg" href="' + URL + '" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" cache="true" scale="aspect" autohref="false" AUTOPLAY="' + autoplay + '" volume="25" TARGET="myself"></embed></object>');
	}
}

function EmbedWMVideoT(URL, width, height, autostart){
	if(autostart != true && autostart != "true" && autostart != "1" && autostart != 1){
		autostart = 0; //Replace with default. Default = 0 (false).
		}else{
		autostart = 1; //Replace with 1, being zero.
	}//See if we can continue.	
	if(URL == null || URL == "illegal"){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of video tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<OBJECT ID="MEDIAPLAYER" WIDTH="' +  width + '" HEIGHT="' +  height + '" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ');
		document.writeln('STANDBY="Please wait while the Windows Media Player components load" TYPE="APPLICATION/X-OLEOBJECT" />');
		document.writeln('<PARAM NAME="FILENAME" VALUE="' + URL + '" />');
		document.writeln('<PARAM name="AUTOSTART" VALUE="'+ autostart +'" />');
		document.writeln('<PARAM name="VOLUME" VALUE="50" />');
		document.writeln('<PARAM name="SHOWCONTROLS" VALUE="TRUE" />');
		document.writeln('<param name="SHOWSTATUSBAR" value="TRUE" />');
		document.writeln('<param name="STRETCHTOFIT" value="TRUE" />');
		document.writeln('<param name="SHOWTRACKER" value="TRUE" />');
		document.writeln('<PARAM name="SHOWDISPLAY" VALUE="FALSE" />');
		document.writeln('<EMBED WIDTH="' +  width + '" HEIGHT="' +  height + '" SRC="' + URL + '" PLUGINSPAGE="HTTP://WWW.MICROSOFT.COM/WINDOWS/MEDIAPLAYER/" TYPE="APPLICATION/X-MPLAYER2" AUTOSTART="'+ autostart +'" TRANSPARENTSTART="1" LOOP="0" SHOWCONTROLS=1 CONTROLLER="true" SHOWTRACKER=1 SHOWSTATUSBAR=1 AUTOSIZE="TRUE" SHOWDISPLAY=0></EMBED></OBJECT>');
	}
}

function EmbedRealVideoT(URL, width, height, autostart){
	if(autostart != true && autostart != "true" && autostart != "1" && autostart != 1){
		autostart = 0; //Replace with default. Default = 0 (false).
		}else{
		autostart = 1; //Replace with 1, being zero.
	}//See if we can continue.	
	if(URL == null || URL == "illegal"){
		//Nope, we can't.
		document.writeln("&nbsp;error: illegal use of RealVideo tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<OBJECT WIDTH="' +  width + '" HEIGHT="' +  height + '" CLASSID="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" />');
		document.writeln('<PARAM NAME="SRC" VALUE="' + URL + '" />');
		document.writeln('<PARAM name="AUTOSTART" VALUE="'+ autostart +'" />');
		document.writeln('<PARAM name="CONSOLE" VALUE="' + URL + '" />');
		document.writeln('<PARAM name="VOLUME" VALUE="50" />');
		document.writeln('<PARAM name="CONTROLS" VALUE="ALL" />');
		document.writeln('<param name="NOJAVA" value="TRUE" />');
		document.writeln('<param name="CENTER" value="TRUE" />');
		document.writeln('<EMBED WIDTH="' +  width + '" HEIGHT="' +  height + '" SRC="' + URL + '" AUTOSTART="'+ autostart +'" NOJAVA="TRUE" CENTER="TRUE" CONSOLE="' + URL + '" CONTROLS="ALL" </EMBED></OBJECT>');
	}
}

function EmbedMP3(URL,autostart){
   if(autostart != true && autostart != "true" && autostart != "1" && autostart != 1){
      autostart = 0; //Replace with default. Default = 0 (false).
      }else{
      autostart = 1; //Replace with 1, being zero.
   }//See if we can continue.
   if(URL == null || URL == "illegal"){
      //Nope, we can't.
      document.writeln("&nbsp;error: illegal use of audio tag!&nbsp;");
   }else{
      //Add the code to the document.
      document.writeln('<object type="application/x-shockwave-flash" data="player.swf" id="audioplayer1" height="24" width="290"> ');
      document.writeln('<param name="movie" value="player.swf"> />');
      document.writeln('<param name="FlashVars" value="playerID=1&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefticon=0x666666&amp;rightbg=0xcccccc&amp;rightbghover=0x999999&amp;righticon=0x666666&amp;righticonhover=0xffffff&amp;text=0x666666&amp;slider=0x666666&amp;track=0xFFFFFF&amp;border=0x666666&amp;loader=0x9FFFB8&amp;loop=no&amp;autostart=no&amp;soundFile=' + URL + '"> />');
      document.writeln('<param name="quality" value="high"> />');
      document.writeln('<param name="menu" value="false"> />');
      document.writeln('<param name="wmode" value="transparent">');
      document.writeln('</object>');
   }
}

function EmbedPDF(URL,autostart){
   if(autostart != true && autostart != "true" && autostart != "1" && autostart != 1){
      autostart = 0; //Replace with default. Default = 0 (false).
      }else{
      autostart = 1; //Replace with 1, being zero.
   }//See if we can continue.
   if(URL == null || URL == "illegal"){
      //Nope, we can't.
      document.writeln(" error: illegal use of pdf tag! ");
   }else{
      //Add the code to the document.
      document.writeln('<script type="text/javascript" src="http://pdfmenot.com/embed/?url=' + URL + '&width=625&height=475" />');
      document.writeln('</script>');
   }
}

function EmbedMedia(URL){
   if(URL == null || URL == "illegal"){
      //Nope, we can't.
      document.writeln("&nbsp;error: illegal use of Media tag!&nbsp;");
   }else{
      //Add the code to the document.
      document.writeln('<a href=' + URL + ' rel="lightbox[480 380]">Play Media</a>');
   }
}