var popup_url = 'http://www.kimconseil.com';

var fctPopUnder = function(){
	if (document.cookie.search('popped=true')!='-1') return false;

	var DOM=(document.getElementById)?true:false;
	var IE4=(document.all&&!DOM)?true:false;
	var IE=(document.all)?true:false;
	var OP=(window.opera)?true:false;
	var NS=(navigator.appName=='Netscape' && !OP)?true:false;
	var NS4=NS&&!DOM;
	var Width=0;
	var Height=0;
	var Popped = false;


	if (screen.availWidth && screen.availHeight){
		Width = screen.availWidth;
		Height = screen.availHeight;
	}else{
		Width = screen.width;
		Height = screen.height;
	}

	var showPopup_2454 = function (){
		if (!window.popped){
			w = window.open('about:blank','','width=800, height=510, scrollbars=1, resizable=1, toolbar=1, location=1, menubar=1, status=1, directories=0');
			if (w!=null){
				w.moveTo(0,0);
				w.moveBy((Width-800)/2,(Height-510)/2);
				
				/*
				if (Math.round(Math.random()*10)%2==1) {
					w.location = 'http://www.starwizz.com/';
				} else {
					w.location = 'http://www.starwizz.com/';
				}
				*/
				
				w.location = popup_url;
				
				w.blur();
				window.focus();
				setTimeout('window.focus();', 500);
				window.popped = true;
				document.cookie = "popped=true";
			}
		}
	}


	var convertAnchor_2454 = function (){
		var tags = document.getElementsByTagName('a');
		for (var ind = 0; ind < tags.length; ++ind) if (tags[ind].onclick == undefined && tags[ind].target == '') tags[ind].onclick = showPopup_2454;
	}

	var Render_2454 = function (){
		showPopup_2454();
		if (!window.popped) setInterval(convertAnchor_2454, 250);

	}

	//setTimeout('Render_2454();', 500);
	convertAnchor_2454();

}

var myOnloadFunction = function(){
	fctPopUnder();
};

window.onload=myOnloadFunction;