function ShowModalVideo(title, moviename, videotime, vwidth, vheight)
{
	if(vwidth == 720 && vheight == 405)
	{
		swidth = 750;
		sheight = 440;
	}
	else
	{
		if(vwidth == 720 && vheight == 480)
		{
			swidth = 750;
			sheight = 515;
		}
	}
	ModalPopups.Alert(moviename,
		title,
		'<center><img src="/images/spacer.gif" width="770" height="1"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+swidth+'" height="'+sheight+'">'+
          '<param name="movie" value="/flash/'+vwidth+'x'+vheight+'_player.swf?MovieName='+moviename+'&VideoTime='+videotime+'&version=8">'+
          '<param name="quality" value="high">'+
          '<param name="wmode" value="opaque">'+
          '<embed src="/flash/'+vwidth+'x'+vheight+'_player.swf?MovieName='+moviename+'&VideoTime='+videotime+'&version=8" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+swidth+'" height="'+sheight+'"></embed>'+
'	</object></center>', 
		{
			okButtonText: 'Close'
		}
	);
}
function ShowModalVideoIframe(title, src, vwidth, vheight)
{
	iframeheight = vheight + 35;
	ModalPopups.Alert(title,
	title,
	'<center><iframe src="'+src+'" width="'+vwidth+'" height="'+iframeheight+'" frameborder="0" scrolling="no" allowtransparency="yes" marginheight="0" marginwidth="0"></iframe></center>', 
	{
		okButtonText: 'Close'
	}
	);
}// JavaScript Document

function ShowViddlerVideo(title, movieid, vwidth, vheight)
{	
	htmllink = '<!--[if IE]><object width="'+vwidth+'" height="'+vheight+'" id="viddlerOuter-'+movieid+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="http://www.viddler.com/simple/'+movieid+'/" name="movie"><param value="always" name="allowScriptAccess"><param value="true" name="allowFullScreen"><param name="FlashVars" value="autoplay=t&disablebranding=t"><object id="viddlerInner-'+movieid+'"><video id="viddlerVideo-'+movieid+'" src="http://www.viddler.com/file/'+movieid+'/html5mobile/" type="video/mp4" width="'+vwidth+'" height="'+vheight+'" poster="http://www.viddler.com/thumbnail/'+movieid+'/" controls="controls"></video></object></object><![endif]--> <!--[if !IE]> <!--> <object width="'+vwidth+'" height="'+vheight+'" id="viddlerOuter-'+movieid+'" type="application/x-shockwave-flash" data="http://www.viddler.com/simple/'+movieid+'/"> <param value="http://www.viddler.com/simple/'+movieid+'/" name="movie"> <param value="always" name="allowScriptAccess"><param value="true" name="allowFullScreen"><param name="FlashVars" value="autoplay=t&disablebranding=t"><object id="viddlerInner-'+movieid+'"> <video id="viddlerVideo-'+movieid+'" src="http://www.viddler.com/file/'+movieid+'/html5mobile/" type="video/mp4" width="'+vwidth+'" height="'+vheight+'" poster="http://www.viddler.com/thumbnail/'+movieid+'/" controls="controls"></video> </object></object> <!--<![endif]-->';
	
	ModalPopups.Alert('Video' + movieid, title, htmllink, {okButtonText: 'Close'});
}

//
