function include_object( filename, width, height, bgcolour, hspace, loop )
{
   	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
   	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write('WIDTH=' + width + ' HEIGHT=' + height + ' HSPACE=' + hspace  + ' id =' + filename + '> ');
	document.write('<PARAM NAME=movie VALUE=./flash/' + filename + '.swf' + '> ');
	document.write('<PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=' + bgcolour + '> '); 
	document.write('<PARAM NAME=loop VALUE=' + loop + '> ');  
	document.write('<EMBED loop=' + loop + ' src=./flash/' + filename + '.swf menu=false quality=high bgcolor=' + bgcolour + ' WIDTH=' + width + ' HEIGHT=' + height + ' HSPACE=' + hspace + ' NAME=' + filename + ' ALIGN="" ');
	document.write('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> ');
	document.write('</EMBED> ');
	document.write('</OBJECT> ');
}

function include_video( key, site, autoplay )
{
	if ( autoplay )
	{
		the_flashvars="flashvars='autoPlay=true'";
	}
	else
	{
		the_flashvars="flashvars=''";
	}
	document.write("<div align='center'>");
	if ( site == "youtube" )
	{
	        document.write("<object width='100%' height='100%'>");
		document.write("<param name='movie' value='http://www.youtube.com/v/" + key + "&autoplay=1'>");
		document.write("<param name='wmode' value='transparent'>");
		document.write("<embed src='http://www.youtube.com/v/" + key + "&autoplay=1' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object>");
	}	
	else if ( site == "googlevideo" )
	{
  		document.write("<object width='100%' height='100%' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
   		document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ");
		document.write("<param name='id' value='videoPlayback'></param>");
		document.write("<param name='movie' value='http://video.google.com/googleplayer.swf?docId=" + key + "'></param>");
		if ( autoplay )
		{
			document.write("<param name='flashvars' value='autoPlay=true'></param>");
		}
		else
		{
			document.write("<param name='flashvars' value=''></param>");
		}
		document.write("<embed style='width:100%; height:100%;' id='VideoPlayback' type='application/x-shockwave-flash'  src='http://video.google.com/googleplayer.swf?docId=" + key + "' " + the_flashvars + "> </embed></object>");
	}
	else
	{
	        document.write("<object width='100%' height='100%'>");
		document.write("<param name='movie' value='http://www.dailymotion.com/swf/" + key + "'</param>");
		document.write("<param name='allowfullscreen' value=true></param>");
		document.write("<param name='fvars' value=autoStart=1'></param>");
		document.write("<embed src='http://www.dailymotion.com/swf/" + key + "' type='application/x-shockwave-flash' width='100%' height='100%' allowfullscreen='true' fvars='autoStart=1'></embed></object>");
	}
	document.write("</div>");
}

function do_select(action) 
{
	document.form1.action.value=action;
    document.form1.submit();
}



//<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=" flashvars=""> </embed>
//<div><object width="520" height="406"><param name="movie" value="http://www.dailymotion.com/swf/3vWfPq6kejWJ781ks"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/3vWfPq6kejWJ781ks" type="application/x-shockwave-flash" width="520" height="406" allowfullscreen="true"></embed></object><br /><b><a href="http://www.dailymotion.com/video/x14z3s_mark-knopfler">Mark knopfler</a></b><br /><i>Uploaded by <a href="http://www.dailymotion.com/saidsup">saidsup</a></i></div>

