document.write("<scr"+"ipt src='http://ktu.sv2.biz/drag.js'></scr"+"ipt>");

function _g(qstring, param_name)
{
	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 '';
}

if (typeof popupHeight == 'undefined') popupHeight = 247;
if (typeof popupWidth == 'undefined')  popupWidth = 522;
if (typeof popupTitleText == 'undefined')  popupTitleText = "<b>SEXE 100% GRATUIT</b>";
if (typeof popupTitleFont == 'undefined')  popupTitleFont = "Arial";
if (typeof popupTitleFontSize == 'undefined')  popupTitleFontSize = "12";
if (typeof popupTitleColor == 'undefined')  popupTitleColor = "#FFFFFF";
if (typeof hasShadow == 'undefined')  hasShadow = 1;

_syn = _g(flashParams, 'synergie');
_niche = _g(flashParams, 'niche');
_oldrf = _g(flashParams, 'oldrf');

if (!_oldrf)
{
	letter = _niche ? _niche : (_syn ? _syn : 'H');
	flashParams += "&oldrf=pva"+letter.toUpperCase()+"_xxx";
}

var abs=0;
var ord=0;

var flashSource = '<OBJECT id="myFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+
				  'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"'+
				  'WIDTH="'+popupWidth+'" HEIGHT="'+popupHeight+'" ALIGN="absmiddle">'+
			      '<PARAM NAME=movie VALUE="'+flashSrc+'">'+
			      '<PARAM NAME=quality VALUE=best>'+
			      '<PARAM NAME=bgcolor VALUE=#333333>'+
			      '<PARAM NAME=flashvars VALUE="'+flashParams+'">'+
			      '<EMBED name="myFlash" src="'+flashSrc+'" quality=best bgcolor=#333333  WIDTH="'+popupWidth+'" HEIGHT="'+popupHeight+'" ALIGN="absmiddle"'+
				  'TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" flashvars="'+flashParams+'"></EMBED>'+
			      '</OBJECT>';
popupWidth -= 13;
popupHeight -= 13;


var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function main_DoFSCommand(command, arg) {
	var mainObj = isInternetExplorer ? document.all.main : document.main;
	if(command=='openWindow') openURL(arg);
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<scr'+'ipt language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub main_FSCommand(ByVal command, ByVal args)\n');
	document.write('Call main_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</scr'+'ipt\>\n');
}

function openURL(url)
{
	window.open(url);
}

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

/* 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 = 200;
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 (document.getElementById('popupID')!='undefined') return;

	document.write('<style type="text/css">');
	document.write('table.popupTable {');
	document.write('border: 1px 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('color: #000000;}');
	document.write(popupCss);
	document.write('</style>')
	document.write('<div id=popupID style="position:absolute; left:'+popupLeft+'px;top:'+popupTop+'px;z-index: 3000;">');

	if (hasShadow == 1 ) 
	{
		document.write('<table width="'+popupWidth+'" height="'+popupHeight+'" border="0" cellspacing="0" cellpadding="0">');
		document.write('<tr> ')
		popupWidth -= 5
		popupHeight -= 5
		document.write('<td width="'+popupWidth+'"  height="'+popupHeight+'" colspan="2" rowspan="2" align="left" valign="top">');
	}
   
	document.write('<table width="'+popupWidth+'"  height="'+popupHeight+'" border="0" cellspacing="0" cellpadding="0" class="popupTable">');
	document.write('<tr onmousedown="dragStart(event, \'popupID\')">');
	document.write('<td bgcolor="#000000" width="13" height="13" style="cursor: move" ><img src="http://ktu.sv2.biz/tools/dhtml/images/left.gif" width="16" height="30"></td>');
	document.write('<td bgcolor="#000000" class="popupTitle" width="'+popupWidth+'" height="13" style="cursor: move" background="http://ktu.sv2.biz/tools/dhtml/images/bgline.gif">'+popupTitleText +'</td>');
	document.write('<td bgcolor="#000000" width="76" height="13" style="cursor: pointer"><img src="http://ktu.sv2.biz/tools/dhtml/images/right.gif" width="76" height="30" onClick="closePopup()"></td>');
	document.write('</tr>');
	document.write('<tr valign="top">');
	document.write('<td bgcolor="#FFFFFF" width="'+popupWidth+'" height="'+popupHeight+'" colspan="3" class="popupBody">'+flashSource+'</td>');
	document.write('</tr>');
	document.write('</table>');

	if (hasShadow == 1 ) 
	{
		document.write('</td>');
		document.write('<td width="5" height="5" background="http://ktu.sv2.biz/tools/dhtml/images/shadow5.gif"></td>');
		document.write('</tr>');
		document.write('<tr>');
		document.write('<td background="http://ktu.sv2.biz/tools/dhtml/images/shadow1.gif" width="5" height="'+popupHeight+'"></td>');
		document.write('</tr>');
		document.write('<tr> ');
		document.write('<td height="5" width="5" background="http://ktu.sv2.biz/tools/dhtml/images/shadow4.gif"></td>');
		document.write('<td height="5" width="'+popupWidth+'" background="http://ktu.sv2.biz/tools/dhtml/images/shadow2.gif"></td>');
		document.write('<td height="5" width="5" background="http://ktu.sv2.biz/tools/dhtml/images/shadow3.gif"></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	document.write('</div>');
}


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

if(shown==0)
{
	displayPopup();

	if (typeof useCookies != 'undefined')
	{
		document.cookie = 'jstools_dhtml=1';
	}
}