v_ua=navigator.userAgent; v_nS4=document.layers?1:0; v_iE=document.all&&!window.innerWidth&&v_ua.indexOf("MSIE")!=-1?1:0; v_oP=v_ua.indexOf("Opera")!=-1&&document.clear?1:0; v_oP4=v_ua.indexOf("Opera")!=-1&&!document.clear; v_kN=v_ua.indexOf("Konqueror")!=-1&&parseFloat(v_ua.substring(v_ua.indexOf("Konqueror/")+10))<3.1?1:0; if (!v_iE) document.captureEvents(Event.CLICK) document.click = getMouseXY; function v_get(a){return v_iE?document.all[a].style:v_nS4?document.layers[a]:document.getElementById(a).style}; function v_getOS(a){return v_iE?document.all[a].style:v_nS4?document.layers[a]:document.getElementById(a).style}; function v_getxOS(a){return v_iE?document.all[a]:v_nS4?document.layers[a]:document.getElementById(a)}; function mod(komid) { window.open('/token.php?co=modkom&id='+komid, 'mod', 'toolbar=no, menubar=no, scrollbars=no, height=250, width=350'); } function f() { window.open("", "foto", "toolbar=no, menubar=no, scrollbars=yes, height=400, width=500, top=0; left=0"); } var sciezka=""; var timer=0; var i=0; var curr_X=200; var tempX = 0; var tempY = 0; var tempH = 0; var tempW = 0; var image_1 = new Image(); function f_clientWidth() { return f_filterResults ( window.innerWidth ? window.innerWidth : 0, document.documentElement ? document.documentElement.clientWidth : 0, document.body ? document.body.clientWidth : 0 ); } function f_clientHeight() { return f_filterResults ( window.innerHeight ? window.innerHeight : 0, document.documentElement ? document.documentElement.clientHeight : 0, document.body ? document.body.clientHeight : 0 ); } function f_scrollLeft() { return f_filterResults ( window.pageXOffset ? window.pageXOffset : 0, document.documentElement ? document.documentElement.scrollLeft : 0, document.body ? document.body.scrollLeft : 0 ); } function f_scrollTop() { return f_filterResults ( window.pageYOffset ? window.pageYOffset : 0, document.documentElement ? document.documentElement.scrollTop : 0, document.body ? document.body.scrollTop : 0 ); } function f_filterResults(n_win, n_docel, n_body) { var n_result = n_win ? n_win : 0; if (n_docel && (!n_result || (n_result > n_docel))) n_result = n_docel; return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result; } // Main function to retrieve mouse x-y pos.s function getMouseXY(e) { if (v_iE) { // grab the x-y pos.s if browser is IE tempX = event.clientX + document.body.scrollLeft tempY = event.clientY + document.body.scrollTop } else { // grab the x-y pos.s if browser is NS tempX = e.pageX tempY = e.pageY } // catch possible negative values in NS4 if (tempX < 0){tempX = 0} if (tempY < 0){tempY = 0} // show the position values in the form named Show // in the text fields named MouseX and MouseY return true } function Squish(what) { a=v_getxOS('v_kosz'); b=v_getOS('v_podglad'); clearTimeout(timer); var funkcja = function() { a.style.width=i; //a.style.height=i*0.85; i=i-30; if ( (i > 0) ) timer=setTimeout(funkcja, 1); else { i=0; a.style.width=i; //a.style.height=i*0.85; } } funkcja(); }; function Grow1() { a=v_getxOS('v_kosz'); b=v_getOS('v_podglad'); tempW = 505; tempH = 340; a.style.top = tempY - (tempH/2); a.style.height=tempH; clearTimeout(timer); var funkcja1 = function() { tempH=image_1.height; a.style.width=i; i=i+18; if ( i < tempW ) timer=setTimeout(funkcja1, 2); else { i=tempW+22; a.style.width=i; } } funkcja1(); }; function Squish1() { a=v_getxOS('fotozoom'); a.src='/gfx/laduje.gif'; divimp.style.visibility='hidden'; divtlo.style.visibility='hidden'; document.body.style.marginRight='0px'; //document.body.style.overflowY = "auto"; document.body.style.overflowY = "scroll"; }; function Squish2() { a=v_getxOS('fotozoom'); a.src='/gfx/laduje.gif'; divimp.style.visibility='hidden'; divtlo.style.visibility='hidden'; }; function Squish3() { divfilm2.innerHTML=''; document.body.style.marginRight='0px'; document.body.style.overflowY = "scroll"; divimp.style.visibility='hidden'; divfilm.style.visibility='hidden'; divtlo.style.visibility='hidden'; }; function FotoGetData(link) { //alert(link); AjaxRequest('/_get.php?src='+link+'lid=fjs', 'load', fotoTCallback, fotoTErrCallback); } var fotoRet = ''; function fotoTCallback(data, info) { fotoRet=''+data+''; //alert(fotoRet); } function fotoTErrCallback(info) { } function fz1(link, zoom, nom) { divtlo.style.visibility='visible'; a=v_getxOS('fotozoom'); a.src = '/_get.php?src='+link+'&show=orig&lid=foto'; document.body.style.overflowY = "hidden"; if ( (nom!='1') && (fz_max>1) ) { var txt1 = ''; if (fz_max>4) { txt1 = '
'+title+' |