
function extractUrlParams()
{	
	var t = location.search.substring(1).split('&');
	var f = [];
	for (var i=0; i<t.length; i++)
	{
		var x = t[ i ].split('=');
		f[x[0]]=x[1];
	}
	return f;
}

function fenetreCent(url,nom,largeur,hauteur,options)
{
	popup=window.open(url,nom,"top="+(screen.height-hauteur)/2+",left="+(screen.width-largeur)/2+",width="+largeur+",height="+hauteur+","+options);
	return popup;
}

function fullscreen()
{
	window.moveTo(0,0); 
	if(window.document.all) window.resizeTo(screen.availWidth,screen.availHeight); 
	else
	{
		if(window.document.layers) 
		{ 
			if(window.outerHeight<screen.availHeight || window.outerWidth<screen.availWidth) 
			{ 
				window.outerHeight=screen.availHeight; 
				window.outerWidth=screen.availWidth; 
			}
		}
	}
}

function affichervideo3d()
{
	var f=[];
	f=extractUrlParams();
	var popup=fenetreCent('','_blank',500,435,'toolbar=0,location=0,menuBar=0,scrollbars=0,resizable=0');
	popup.document.write('<html> <HEAD>	<TITLE>'+unescape(f['title'])+'</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">');
	popup.document.write(' </HEAD> <BODY onblur="window.focus()" BACKGROUND="dsi/cd3d_fond.jpg"> <center> <TABLE BORDER="0" CELLSPACING="2" CELLPADDING="1"> <TR ALIGN="center" VALIGN="middle"> <TD COLSPAN="3">');
	popup.document.write('<embed name="embed" src="'+f['file']+'" width="446" height="392" autostart="true" loop="true" align="middle" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"	id="objMP" animationatstart="true" autosize="true" balance="true" canseektomarkers="true" enablecontextmenu="false" enabletracker="true" showaudiocontrols="true" showcontrols="true" showdisplay="false" showgotobar="false" showpositioncontrols="false" showstatusbar="true"	showtracker="true" transparentatstart="true" volume="100" </embed>');
	popup.document.write('</TD></TR></TABLE></center>');
	popup.document.write('</BODY></html>');
	popup.document.close();
}
