<!--
function popup(theURL,winName,features) { 
	window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function centered_popup(url, name, width, height, options)
{
	var top = (screen.height - height) / 2;
	var left = (screen.width - width) / 2;
	window.open(url, name, options + ',width=' + width + ',height=' + height + ',top=' + top + ', left=' + left);
}

function newgeneration_popup()
{
    if (navigator.platform == "MacPPC")
    {
        MM_openBrWindow('../nouvelle_generation/index2.htm','','width=794,height=462');
    }
    else
    {
        centered_popup('../nouvelle_generation/index2.htm', 'popup1', 794, 462, 'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0');
    }
}

function popup_webcam()
{
    centered_popup('webcam/popup.htm', 'popup_webcam', 330, 330, 'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0');
}


function popup_video()
{
    centered_popup('popup/popup_video.htm', 'popup_video', 515, 225, 'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0');
}


function popup_compatibilite()
{
    centered_popup('flash/home/compatibilite/application_en_ligne.htm', 'popup_compatibilite', 660, 495, 'resizable=yes');
}

function popup_design()
{
    centered_popup('popup/popup_design.htm', 'popup_design', 250, 270, 'resizable=yes,scrollbars=no');
}

function popup_innovation()
{
    centered_popup('popup/popup_innovation.htm', 'popup_innovation', 250, 270, 'resizable=yes,scrollbars=no');
}

function popup_exit_poll()
{
	var navi = navigator.appName;
	if (navi == "Netscape")
	{
		popup = window.open('sondage/exit_poll.asp', 'popup', 'width=340,height=155,resizable=1,scrollbars=0,left=100,top=100');
	}
	else
	{
		popup = window.open('sondage/exit_poll.asp', 'popup', 'width=365,height=160,resizable=1,scrollbars=0,left=100,top=100');
	}
}

function popup_happy_new_year()
{
	url = "popup/popup_happy_new_year.htm";
	name = "popup_happy_new_year";
	options = "toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0";
	popupMargin = 10;
	width = 280 + popupMargin;
	height = 389 + popupMargin;
	rightMargin = 20;
	top = 20;
	left = screen.width - rightMargin;
	alert(left);
	
	window.open(url, name, options + ',width=' + width + ',height=' + height + ',top=' + top + ', left=' + left);
}

function popup_promo()
{
	centered_popup('popup/popup_promo.htm', 'popup_promo', 410, 345, 'resizable=yes,scrollbars=no');
}

function popup_details()
{
	centered_popup('promo/default.htm', 'popup_details', 450, 500, 'scrollbars=1,resizable=1');
}

function popup_favoris()
{
	var displayPopup = false;
	
	var now = new Date();
	now.setTime(now.getTime() + 18 * 24 * 60 * 60 * 1000);
	var visits = getCookie("popup_favoris");
	
	if (!visits) {
		visits = 1;
	  	//alert("Première visite, création du cookie");
		setCookie("popup_favoris", visits, now); 
		displayPopup = true;
	} else {
		//alert("Cookie détecté");
	}
	
	if (displayPopup) {
		var width = 310;
		var left = screen.width - width - 30;
		
		window.open('popup/popup_favoris.htm', 'popup_favoris', 'resizable=0,width=' + width + ',height=389,top=20,left=' + left);
	}
}
//-->
