
function display(movie,id,logo,msgOff){  
	
	//load the flash movie
	    flashembed("main", 
	      {
	         src:'FlowPlayerLight.swf',
				width: 468, 
				height: 350
	      },
	
				
	      {config: {   
			baseUrl: 'http%3A%2F%2Fwww.videoag.com',
			videoFile: movie,
			autoPlay: false,
			loop: false,
			autoBuffering: true,
			initialScale: 'fit',
			controlBarGloss: 'high',
			controlsOverVideo: 'ease',
			showStopButton: 'true',
			usePlayOverlay: 'true',
			splashImageFile:  'http%3A%2F%2Fwww.videoag.com/' + logo,
			emailPostUrl: "email2.php"
			
			//watermarkUrl: 'http%3A%2F%2Fwww.videoag.com/images/thumbs/nt.jpg',
			//watermarkLinkUrl: 'http%3A%2F%2Fwww%2Etelefeed%2Ecom',
			//showWatermark: 'fullscreen'
	

	      }} 
	   );
	   

	//load session variable to state which movie we are on
	var xmlHttp;

	
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();

	}
	catch (e)
	{
			// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}

	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==1)
		{
			//do something before it starts;
		}
		
		if(xmlHttp.readyState==4)
		{
			Rate(0);
			if (msgOff){
			}else{
				Msg('','gallerybox');
				window.location.hash = id;
			}      
			Comment("");
			

		}
	}
	


	
	xmlHttp.open("get","_setdef.php?movie="+id);
	xmlHttp.send(null);	
	


}
	
	


