// JavaScript Document

function addLoadEvent(func)
{
	var oldonload = window.onload;
	if (typeof window.onload != 'function') window.onload = func;
	else window.onload = function() {
	oldonload();
	func();
	}
}
function maxWindow(){
	self.moveTo(0,0);
	self.resizeTo(screen.availWidth,screen.availHeight);
}


function init(){

	var flashvars = {PATH: 'http://jeu.aircalin.com/'};
	var params = {allowFullScreen: 'true',allowScriptAccess: 'sameDomain'};
	var attributes = {};
	attributes.id = "flash_content";
	attributes.width = "100%";
	attributes.height = "100%";
	swfobject.embedSWF("swf/aircalin_reseau_gagnant.swf", "flash_alternative", "1000", "600", "9.0.0", "lib/swfobject/expressInstall.swf", flashvars, params, attributes);
						

}
/*
function popup(theURL,winName,largeur,features) 
{   
  		if(! window.focus){  return; }
		var left = 'left='+(screen.width-largeur-100);
		var credit = window.open(theURL,winName,left+','+features);
		credit.focus();
		theURL.target = winName;		
}
*/

//addLoadEvent(init);
if(!window.webkit){
	addLoadEvent(maxWindow);
}