var dragswitch=0
var nsx
var nsy
var nstemp
var ns4=document.layer
var ie4=document.all
var ns6=document.getElementById&&!document.all


function drag_dropns(name){

function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}

if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}



function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
return false
}
}

function initializedrag(e){
crossobj=ns6? document.getElementById("openbannapop") : document.all.openbannapop

var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "HTML" : "BODY"

while (firedobj.tagName!=topelement&&firedobj.id!="dragbar"){
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}

if (firedobj.id=="dragbar"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")


function hidebox(){
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
document.openbannapop.visibility="hide"
}

if (li.length > 1){
document.write('<div id="openbannapop" style="position:absolute;width:2;left:25;top:25; height:10">');
document.write('<table border="0" width="480" bgcolor="black" cellspacing="0" cellpadding="0"><tr>');
document.write('<td id="dragbar" style="cursor:hand" width="600"><ilayer width="100%" onSelectStart="return false"><layer width="100%" onMouseover="dragswitch=1;if (ns4) drag_dropns(openbannapop)" onMouseout="dragswitch=0">');
document.write('<td style="cursor:hand" valign="middle" height="11" bgcolor="black"><a href="" onClick="hidebox();return false" style="text-decoration:none;"><font color="white" face="arial" size="2"><b>ZAMKNIJ</b></a>&nbsp;</td>');
document.write('</tr><tr><td width="480" bgcolor="black" style="padding:0px" colspan="2" height="400" valign="top">');
document.write("<center><object type='application/x-shockwave-flash' data='http://www.slutload.com/emb/"+li+"/' width='450' height='337'><param name='AllowScriptAccess' value='always'><param name='movie' value='http://www.slutload.com/emb/"+li+"/'></param><param name='wmode' value='transparent'></param><param name='allowfullscreen' value='true'></param><embed src='http://www.slutload.com/emb/"+li+"/' AllowScriptAccess='always' wmode='transparent' allowfullscreen='true' width='450' height='337'></embed></object>");

document.write('<br><iframe width=468 height=70 frameborder=0 src="ads.html" marginwidth=0 marginheight=0 vspace=0 hspace=0 allowtransparency=true scrolling=no></iframe></center>');

document.write('</td></td></tr></table></div></center>');}
