/* Simple Image Trail script- By JavaScriptKit.com Visit http://www.javascriptkit.com for this script and more This notice must stay intact */ var w=1 var h=1 var msX=-1 var msY=-1 var TimeoutStatus=-1; if (document.getElementById || document.all) { document.write('') //if (document.getElementById) document.getElementById("callmeimg").onmousemove=followmouse; } /* if (document.getElementById || document.all) document.write('') document.onmousemove=followSun */ function gettrailobj() { if (document.getElementById) return document.getElementById("trailimageid").style else if (document.all) return document.all.trailimagid.style } function truebody() { return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function hidetrail() { // document.onmousemove="" document.getElementById('trailimageid').innerHTML='

 betöltés...'; gettrailobj().visibility="hidden" gettrailobj().left=-1000 gettrailobj().top=0 window.location.reload(); } function showtrail(width,height,file,sx) { if(navigator.userAgent.toLowerCase().indexOf('opera') == -1) { w=width; h=height; // followmouse() // document.getElementById('ttimg').src=file document.getElementById('trailimageid').innerHTML='Betöltés...'; //document.onmousemove=followmouse gettrailobj().visibility="visible" gettrailobj().width=w+"px" gettrailobj().height=h+"px" var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15; // var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight); lx=msX; ly=msY; if(lx+w>docwidth) lx=docwidth-w-20; // if(ly+h>docheight) ly=docheight-h-20; if(sx) { gettrailobj().left=lx; gettrailobj().top=ly; } else { gettrailobj().left=document.body.clientWidth/2+110; gettrailobj().top=270; } readpopuptxt(file); } } function followmouse(e) { if(navigator.userAgent.toLowerCase().indexOf('opera') == -1) { var xcoord=20 var ycoord=20 if (typeof e != "undefined") { xcoord+=e.pageX ycoord+=e.pageY } else if (typeof window.event !="undefined") { xcoord+=truebody().scrollLeft+event.clientX ycoord+=truebody().scrollTop+event.clientY } var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15 var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight) if (ycoord-truebody().scrollTop+h>truebody().clientHeight) ycoord=ycoord-h-20; msX=xcoord msY=ycoord //gettrailobj().left=xcoord+"px" //gettrailobj().top=ycoord+"px" } } function getMozgoSun() { if (document.getElementById) return document.getElementById("mozgoSun").style else if (document.all) return document.all.mozgoSun.style } function followSun(e) { if(navigator.userAgent.toLowerCase().indexOf('opera') == -1) { var xcoord=20 var ycoord=20 if (typeof e != "undefined") { xcoord+=e.pageX ycoord+=e.pageY } else if (typeof window.event !="undefined") { xcoord+=truebody().scrollLeft+event.clientX ycoord+=truebody().scrollTop+event.clientY } msX=xcoord msY=ycoord var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15 var docheight=document.all? truebody().scrollHeight : document.body.offsetHeight //var docheight=document.all? truebody().clientHeight : Math.max(document.body.offsetHeight, window.innerHeight) // if (xcoord+w+3>docwidth) xcoord=xcoord-w-(20*2) minX=(docwidth-1024)/2 maxX=minX+1024-96 //sc=document.getElementById('suncucc'); if (xcoordmaxX) xcoord=maxX; //if (ycoord-truebody().scrollTop+h>truebody().clientHeight) ycoord=ycoord-h-20; //x=getMozgoSun().left; //sc.innerHTML=x; getMozgoSun().left=xcoord+"px" dx=docheight-120; getMozgoSun().top=dx+"px" //gettrailobj().left=xcoord+"px" //gettrailobj().top=ycoord+"px" } } function readpopuptxt(kulcsszo) { if (dataReq.readyState == 4 || dataReq.readyState == 0) { dataReq.open("GET", 'getpopupdata.php?kulcsszo=' + kulcsszo, true); dataReq.onreadystatechange = handleReceiveKulcsszo; dataReq.send(null); } } function submitpopup(kulcsszo,frm) { if (dataReq.readyState == 4 || dataReq.readyState == 0) { var s=''; for(n=0; n