function pwin(html,width,height) {
  var start = document.cookie.indexOf('pwin=');
  if (start == -1) {
    document.cookie = 'pwin=n;path=/';
    window.open(html+'.html','promotions','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0; width='+width+',height='+height+'; top=0, left=0;','replace=true');
    }
  }
function ewin() {
//  var start = document.cookie.indexOf('ewin=');
//  if (start == -1) {
//    document.cookie = 'ewin=n;path=/';
    if (confirm('Play REAL online multi-poker on our favorite poker room and get $100 now?')) window.open('http://www.internet-poker.li/poker-download/SetupPoker.exe');
//    }
  }
function openwindow (urlwindow) { window.open(urlwindow,'window','width=789,height=589,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=no,resizable=yes'); }

function popup_ouvrir(langue, lien, visuel)
{
	var element = document.getElementById('popup_'+langue);
	element.style.opacity = .8
	element.style.filter = 'alpha(opacity=80)'
	element.style.display = 'block';
	if (!(my_div = document.getElementById('opaque')))
	{
		my_div = document.createElement('DIV');
		my_div.id = 'opaque';
		document.body.appendChild(my_div);
	}
	my_div.style.cssText = 'position:absolute;z-index:99;top:0px;left:0px;filter:alpha(opacity:60);display:;background:white';
	my_div.style.opacity = .6;
	my_div.style.height = document.body.scrollHeight + "px";
	my_div.style.width = document.body.scrollWidth + "px";
	var element = document.getElementById('popup_'+langue);
	element.style.filter = 'alpha(opacity:100)';
	element.style.opacity = 1;
	document.getElementById('popup_'+langue).innerHTML = '<div style="height:30px;" onclick="popup_fermer(\''+langue+'\');"></div><a href="'+lien+'"><img src="'+visuel+'" alt="" width="250" height="250" border="0" /></a>';
	setTimeout('popup_fermer(\''+langue+'\')', 8000);
}

function popup_fermer(langue)
{
	document.getElementById('opaque').style.display = 'none';
	document.getElementById('popup_'+langue).style.display = 'none';
}

