

function ShowVideo(fileURL, imageURL, header )
{
	var currentwidth = 320;
	var currentheight = 240; 
	var currenttitle = header;
	var currenthref = fileURL;
	var currentstartimage = imageURL;
	
	var flashplayerstring = '';
	if (jQuery.browser.msie) 
		flashplayerstring = "<object type='application/x-shockwave-flash' data='player_flv_multi.swf' width='"+currentwidth+"' height='"+currentheight+"' title='"+currenttitle+"' ><param name='movie' value='player_flv_multi.swf' /><param name='FlashVars' value='flv="+currenthref+"&amp;bgcolor1=black&amp;bgcolor2=black&amp;startimage="+currentstartimage+"&amp;width="+currentwidth+"&amp;height="+currentheight+"&amp;autoplay=1' /><param name='wmode' value='transparent' /><param name='scale' value='showall'/><param name='autoplay' value='1'/><p>you need to install a flash player to view this video (<a href='"+currenthref+"' alt='download the FLV file'>download the FLV file</a>)</p></object>";
	else 
		flashplayerstring = "<object type='application/x-shockwave-flash' data='player_flv_maxi.swf' width='"+currentwidth+"' height='"+currentheight+"' title='"+currenttitle+"' ><param name='movie' value='player_flv_maxi.swf' /><param name='FlashVars' value='flv="+currenthref+"&amp;bgcolor1=black&amp;bgcolor2=black&amp;startimage="+currentstartimage+"&amp;autoplay=1' /><param name='wmode' value='transparent' /><param name='scale' value='showall'/><param name='autoplay' value='1'/><p>you need to install a flash player to view this video (<a href='"+currenthref+"' alt='download the FLV file'>download the FLV file</a>)</p></object>";

		
	$.modal(	 
	'<div id=\'confirm\'><div class=\'header\'><span>'+header+'</span></div><p class=\'message\'>'+flashplayerstring+'</p><div class=\'buttons\'><a class=\'no\' >CLOSE</a> <div class=\'clear\'></div></div>'
	,
	{
		close:false, 
		overlayId:'confirmModalOverlay',
		containerId:'confirmModalContainer', 
		onShow: function (dialog) {
			// if no
			dialog.data.find('.no').click(function ()  {$.modal.close(); 	});
		},
		onOpen: modalOpen,
		overlayCss: {
		backgroundColor: '#000',
		cursor: 'wait'
		},
		containerCss: {
		height: '320px',
		width: '400px',
		backgroundColor: '#fff',
		border: '3px solid #ccc',
		padding: '20px 10px 10px 10px'
		}
	}    
    );

    return false;

}

function modalOpen (dialog) {
	dialog.overlay.fadeIn('normal', function () {
		dialog.container.fadeIn('normal', function () {
			dialog.data.show();	 
		});
	});
}
