<!-- 
//////////////////////////////////////////////////////////////////////////////////////////////////////
//				Popunders library
//////////////////////////////////////////////////////////////////////////////////////////////////////
// Modification Date : 2003-11-18
//////////////////////////////////////////////////////////////////////////////////////////////////////
var popunders = Array();
function popUnder( name, url, fullScreen, popWidth, popHeight ) {
	var x1 = 0;
	var y1 = 0;
	var screenX, screenY;
	if (navigator.appName == "Netscape") {
		if (navigator.appVersion.charAt(0) >= 4) {
			screenX  = this.outerWidth;
			screenY = this.outerHeight;
			if (fullScreen) {
			    popWidth = screenX;
			    popHeight= screenY;
			}
		}
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		screenX = screen.width;
		screenY = screen.height;
		if (fullScreen) {
		    popWidth = screenX;
		    popHeight= screenY;
		}		      
	}
	
	var params = 'width=' + popWidth + ',height=' + popHeight;
  
        if (fullScreen) {
	    params += ',left=0,top=0,screenX=0,screenY=0,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes';
	} else {
	    x1 = (screenX - popWidth)/2;
	    y1 = (screenY - popHeight)/2;
	    params += ',screenX=' + x1 + ',screenY=' + y1 + ',left=' + x1 + ',top=' + y1 + ',toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no';
	}

	var pop = window.open( url, name,  params );
	self.focus();
}

function popGetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return popGetCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return null;
}

function popGetCookieVal(offset) {
   	var endstr = document.cookie.indexOf (";", offset);
   	if (endstr == -1)
   		endstr = document.cookie.length;
   	return unescape(document.cookie.substring(offset, endstr));
}

function setLockCookie() {
	var second = 1000;
	var expire = new Date();
	var miliseconds = expire.getTime();
	miliseconds += 3600*second; // 1 Hour
	expire.setTime( miliseconds );
	document.cookie = 'popunderlock=done; expires=' +  expire.toGMTString() + '; path=/;';
}

function cookieTest() {
	var cookietest = popGetCookie( 'cookietest' );
	if (cookietest == 'done') return true;
	var expiration_date = new Date( 2010, 1, 1, 0, 0, 0 );
	document.cookie = 'cookietest=done; expires=' +  expiration_date.toGMTString() + '; path=/;'; 	
	cookietest = popGetCookie( 'cookietest' );
	if (cookietest == '' || cookietest == null) return false;
	return true;
}

function launchPopUnder( cookie_name, url, fullScreen, width, height ) {
	var show_popup = popGetCookie( cookie_name );
	if (show_popup == '' || show_popup == null) {
		var expire = new Date();
		var miliseconds = expire.getTime();
		miliseconds += 2592000000; // 30 days
		expire.setTime( miliseconds );
		document.cookie = cookie_name + '=done; expires=' +  expire.toGMTString() + '; path=/;'; 
		setLockCookie();
		popUnder( cookie_name, url, fullScreen, width, height );
		return true;
	} else
		return false;
 }
 
function popUnders() {
	// First test if the browser accept cookies
	if (!cookieTest()) return;
	var popunderlock = popGetCookie( 'popunderlock' );
	if (popunderlock == '' || popunderlock == null) {
		for (i=0;i<popunders.length;i++) {
			if (launchPopUnder( popunders[i][0], popunders[i][1], popunders[i][2], popunders[i][3], popunders[i][4] )) return;
		}
	}
}

function addPopUnder( cookie_name, url, width, height ) {
	if (width > 0) 
		popunders.push( Array( cookie_name, url, false, width, height ) );
	else
		popunders.push( Array( cookie_name, url, true, 800, 600 ) );
}

//////////////////////////////////////////////////////////////////////////////////////////////////////
// Main script
//////////////////////////////////////////////////////////////////////////////////////////////////////


addPopUnder('concours200704','/concours/' );
//popUnders();

//////////////////////////////////////////////////////////////////////////////////////////////////////
// -->

