function EmbedFlash(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(URL == null || width == null || height == null){
		//Nope, we can't.
		document.writeln("No URL, width or height entered");
	}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 + '" />');
		if (bg == null){
		document.writeln('<param name="wmode" value="transparent" />');
		document.writeln('<param name="play" value="true" />');
		document.writeln('<embed bgcolor="'+ bg2 +'" wmode="transparent" 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>');
		}else{
		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 EmbedFLV(URL, width, height, menu, quality, bg, bg2, nav, fcolor, bcolor, lcolor, autostart, overstretch){
	//Checks if the menu constant is entered (correctly)
	if(menu != true && menu != false && menu != "true" && menu != "false"){
		menu = false; //Replace with default. Default = false.
	}
	//Checks if the quality constant is entered (correctly)
	if(quality != "high" && quality != "normal" && quality != "low"){
		quality = "high";	//Replace with default. Defautl = high.
	}
	if(URL == null || width == null || height == null){
		//Nope, we can't.
		document.writeln("No URL, width or height entered");
	}else{
		document.writeln('<embed src="http://q.oxle.com/flash/flvplayer.swf" allowfullscreen="true" width="' +  width + '" height="' +  height + '" bgcolor="' + bg2 + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="best" flashvars="file=' + URL + '&shownavigation=' + nav + '&frontcolor=' + fcolor + '&backcolor=' + bcolor + '&lightcolor =' + lcolor + '&autostart=' + autostart + '&showfsbutton=true&logo=http://q.oxle.com/flash/watermark.png&overstretch=' + overstretch + '" />');
		
	}
}



function EmbedGoogleVideo(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.
	}
	//See if we can continue.	
	if(URL == null || width == null || height == null){
		//Nope, we can't.
		document.writeln("No URL, width or height entered");
	}else{
		//Add the code to the document.
		document.writeln('<object style="width:' + width + 'px; height:' + height + 'px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" data="' + URL + '&fs=true">');
		document.writeln('<param name="allowScriptAccess" value="always" />');
		document.writeln('<param name="allowFullScreen" value="true" />');
		document.writeln('<param name="movie" value="' + URL + '"/>'); 
		document.writeln('<param name="quality" value="best" />'); 
		document.writeln('<param name="bgcolor" value="#ffffff" />'); 
		document.writeln('<param name="scale" value="noScale" />');
		document.writeln('<param name="wmode" value="window" />'); 
		document.writeln('<param name="salign" value="TL" />'); 
		document.writeln('</object>');
	}
}

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 +'&fs=true" allowScriptAccess="always" allowFullScreen="true" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL"  FlashVars="playerMode=embedded"> </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 EmbedQuicktime(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 || width == null || height == null){
		//Nope, we can't.
		document.writeln("No URL, width or height entered");
	}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="' + URL + '" />');
		document.writeln('<param name="volume" value="25" />');
		document.writeln('<param name="autoplay" value="'+ autoplay +'" />');
		document.writeln('<param name="autohref" value="'+ autoplay +'" />');
		document.writeln('<param name="cache" value="true" />');
		document.writeln('<param name="scale" value="aspect" />');
		document.writeln('<embed width="' +  width + '" height="' + height + '" src="' + URL + '" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" cahce="true" scale="aspect" autohref="' + autoplay + '" AUTOPLAY="' + autoplay + '" volume="25"></embed></object>');
	}
}

function EmbedWMAudio(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){
		//Nope, we can't.
		document.writeln("No URL entered");
	}else{
		//Add the code to the document.
		document.writeln('<OBJECT ID="MediaPlayer" WIDTH="360" HEIGHT="70" CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" ');
		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="ShowControls" VALUE="true" />');
		document.writeln('<PARAM name="volume" VALUE="50" />');
		document.writeln('<param name="SHOWTRACKER" value="true" />');
		document.writeln('<param name="ShowStatusBar" value="true" />');
		document.writeln('<PARAM name="ShowDisplay" VALUE="false" />');
		document.writeln('<embed width="360" height="70" src="' + URL + '" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" autostart="'+ autostart +'" transparentstart="1" loop="0" controller="true" showstatusbar=1 showdisplay=0></embed></object>');
	}
}

function EmbedWMVideo(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){
		//Nope, we can't.
		document.writeln("No URL entered");
	}else{
		//Add the code to the document.
		document.writeln('<OBJECT ID="MediaPlayer" WIDTH="' +  width + '" HEIGHT="' +  height + '" CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" ');
		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="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 showdisplay=0></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('<PARAM NAME="allowfullscreen" VALUE="TRUE" />');
		document.writeln('<PARAM NAME="allowscriptaccess" VALUE="always" />');
		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" allowfullscreen="true" allowscriptaccess="always"></EMBED></OBJECT>');
	}
}

function EmbedScribd(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 scribd tag!&nbsp;");
	}else{
		//Add the code to the document.
		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" wmode="opaque" QUALITY="BEST" PLAY="TRUE" allowfullscreen="true" allowscriptaccess="always"></EMBED></OBJECT>');
	}
}

//MetaCafe Function
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 EmbedDM(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 WIDTH="' +  width + '" HEIGHT="' + height + '">');
		document.writeln('<PARAM NAME="movie" VALUE="' + URL + '">');
		document.writeln('<PARAM NAME="allowFullScreen" VALUE="true">');
		document.writeln('<PARAM NAME="AllowScriptAccess" VALUE="always" />');
		document.writeln('<EMBED SRC="' + URL + '" type="application/x-shockwave-flash" WIDTH="' +  width + '" HEIGHT="' + height + '" allowfullscreen="true"></EMBED></OBJECT>');
	}
}


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 WIDTH="' +  width + '" HEIGHT="' + height + '">');
		document.writeln('<PARAM NAME="MOVIE" VALUE="' + URL + '&hl=en&fs=1"></param>');
		document.writeln('<PARAM NAME="QUALITY" VALUE="' + quality + '"></param>');
		document.writeln('<PARAM NAME="AllowFullScreen" VALUE="true"></param>');
		document.writeln('<PARAM NAME="MENU" VALUE="' + menu + '"></param>');
		document.writeln('<PARAM NAME="BGCOLOR" VALUE="' + bg + '"></param>');
		document.writeln('<EMBED BGCOLOR="'+ bg2 +'" WIDTH="' +  width + '" HEIGHT="' + height + '" SRC="' + URL + '&hl=en&fs=1&rel=0" MENU="' + menu + '" PLUGINSPAGE="http://www.adobe.com/go/getflashplayer" TYPE="APPLICATION/X-SHOCKWAVE-FLASH" QUALITY="BEST" PLAY="TRUE" allowfullscreen="true"></EMBED></OBJECT>');
	}
}


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 EmbedWMAudioT(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 ID="MEDIAPLAYER" WIDTH="360" HEIGHT="70" 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="ShowControls" VALUE="true" />');
		document.writeln('<PARAM name="volume" VALUE="50" />');
		document.writeln('<param name="SHOWTRACKER" value="true" />');
		document.writeln('<param name="ShowStatusBar" value="true" />');
		document.writeln('<PARAM name="ShowDisplay" VALUE="false" />');
		document.writeln('<embed width="360" height="74" src="' + URL + '" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" autostart="'+ autostart +'" transparentstart="1" loop="0" controller="true" showstatusbar=1 showdisplay=0></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 EmbedTubeVideoT(YTPermalink, width, height, autostart) {   
	if(YTPermalink == null || YTPermalink == "illegal"){
		//Nope, we can't.
		document.writeln(" error: illegal use of video tag! ");
	}else{
		//Add the code to the document.
		genCode = YTPermalink.replace(new RegExp(/http\:\/\/www\.youtube\.com\/\?v\=/g), ""); 
		//document.writeln("gencode-"+genCode);
		document.writeln('<object width="' + width + '" height="' + height + '"><param name="movie" value="http://www.youtube.com/v/' + genCode + '&fs=1"><param name="allowFullScreen" value="true" /></param>');
		document.writeln('<embed src="http://www.youtube.com/v/' + genCode + '&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + width + '" height="' + height + '"></embed></object>');
	}
}

function EmbedTubeVideo(YTPermalink, width, height, autostart) {   
	if(YTPermalink == null || YTPermalink == "illegal"){
		//Nope, we can't.
		document.writeln(" error: illegal use of video tag! ");
	}else{
		//Add the code to the document.
		genCode = YTPermalink.replace(new RegExp(/http\:\/\/www\.youtube\.com\/\?v\=/g), ""); 
		//document.writeln("gencode-"+genCode);
		document.writeln('<object width="' + width + '" height="' + height + '"><param name="movie" value="http://www.youtube.com/v/' + genCode + '&fs=1"><param name="allowFullScreen" value="true" /></param>');
		document.writeln('<embed src="http://www.youtube.com/v/' + genCode + '&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + width + '" height="' + height + '"></embed></object>');
	}
}

function EmbedRealAudioT(URL,autostart){
	if(autostart != true && autostart != "true" && autostart != "1" && autostart != 1){
		autostart = "false" ; //Replace with default. Default = 0 (false).
		}else{
		autostart = "true" ; //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 RealAudio tag!&nbsp;");
	}else{
		//Add the code to the document.
		document.writeln('<OBJECT WIDTH="300" HEIGHT="30" CLASSID="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ');
		document.writeln('STANDBY="Please wait while the Windows Media Player components load" TYPE="application/x-oleobject" />');
		document.writeln('<PARAM NAME="SRC" VALUE="' + URL + '" />');
		document.writeln('<PARAM name="autostart" VALUE="'+ autostart +'" />');
		document.writeln('<PARAM name="controls" VALUE="ControlPanel" />');
		document.writeln('<PARAM name="volume" VALUE="50" />');
		document.writeln('<embed width="300" height="30" src="' + URL + '" type="audio/x-pn-realaudio-plugin" autostart="' + autostart + '" loop="0" controls="ControlPanel"></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>');
	}
}
