document.write("<scr"+"ipt src='http://ktu.sv2.biz/drag.js'></scr"+"ipt>");

if (typeof popupTarget == 'undefined') popupTarget = '_blank';	
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;

var windowTop = 100;
var windowLeft=100;
var abs=0
var ord=0

if (domain.indexOf('http://') == -1)
{
	domain = 'http://'+domain;
}

var imageSource = '<a target="'+popupTarget+'" href="'+domain+'"><img src="'+imageSrc+'" width="'+popupWidth+'" height="'+popupHeight+'" border="0" style="cursor: pointer;"></a>';


function closePopup() 
{
	document.getElementById("popupID").style.visibility="hidden";
}


function displayPopup()
{
	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('</style>')
	document.write('<div id=popupID style="position:absolute; left:400px;top:200px;">')

	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">'+imageSource+'</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_myx=') != -1 ? true : false;
else
	shown=false;

if(shown==0)
{
	displayPopup();

	if (typeof useCookies != 'undefined')
	{
		document.cookie = 'jstools_myx=1';
	}
}