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 = ''; nr=0; for (i=0; i'; nr++; if (nr>1) { nr=0; txt1 = txt1 + ''; } } txt1 = txt1 + '
'; } else { for (i=0; i
'; } } divmini.innerHTML=txt1; } divimp.style.top=f_scrollTop(); divtlo.style.top=f_scrollTop(); divimp.style.width=f_clientWidth(); divimp.style.height=f_clientHeight(); divimp.style.visibility='visible'; } function fz(link, title, norm, zoom) { //FotoGetData(link); a=v_getxOS('v_podglad'); size=norm.split('x'); var txt = '
'; if (zoom!='') { txt += '
'; } txt += '
' a.innerHTML = txt; a=v_getxOS('v_kosz'); tempW = 525; tempH = size[1]; if (f_scrollTop()>(tempY-tempH)) { a.style.top = f_scrollTop(); } else a.style.top = tempY - (tempH); //a.style.height=tempH; a.style.width=tempW; } function fzoom(link, title, nom) { divtlo.style.visibility='visible'; a=v_getxOS('fotozoom'); a.src = link+'.src.jpg'; if ( (nom!='1') && (fz_max>1) ) { var txt1 = ''; if (fz_max>4) { txt1 = ''; nr=0; for (i=0; i'; nr++; if (nr>1) { nr=0; txt1 = txt1 + ''; } } txt1 = txt1 + '
'; } else { for (i=0; i
'; } } divmini.innerHTML=txt1; } document.body.style.overflowY = "hidden"; document.body.style.marginRight='22px'; divimp.style.top=f_scrollTop(); divtlo.style.top=f_scrollTop(); divimp.style.width=f_clientWidth(); divimp.style.height=f_clientHeight(); divimp.style.visibility='visible'; } function fzfilm(link, title) { divtlo.style.visibility='visible'; document.body.style.overflowY = "hidden"; txt1 = ''; txt1 = txt1 + '
 

'+title+'

 
'; divfilm2.innerHTML=txt1; divfilm.style.top=f_scrollTop(); divtlo.style.top=f_scrollTop(); divfilm.style.width=f_clientWidth(); divfilm.style.height=f_clientHeight(); divfilm.style.visibility='visible'; } function kinofilm(id) { sciezka='tid='+id+'&lid=kinofilm'; AjaxRequest('/_get.php?'+sciezka, 'load', panelTCallback, panelTErrCallback); } function KomentRefresh(gdzie, id) { AjaxRequest('_get.php?lid=komrefr', 'load', komentTCallback, komentTErrCallback); } function KomentSave(gdzie, id) { AjaxRequest('_get.php?lid=komsave&nick='+hydepark.nick.value+'&ktokid='+hydepark.ktokid.value+'&ktoken='+hydepark.ktoken.value+'&txt='+hydepark.txt.value, 'load', komentTCallback, komentTErrCallback); KomentRefresh(gdzie, id); } function komentTCallback(data, info) { a=v_getxOS('komentbox'); a.innerHTML=''+data+''; } function komentTErrCallback(info) { a=v_getxOS('komentbox'); a.innerHTML=''+info+''; } function panelTCallback(data, info) { var x=v_getxOS('srodekcnt'); x.innerHTML=''+data+''; } function panelTErrCallback(info) { var x=v_getxOS('srodekcnt'); x.innerHTML=''+info+''; } function AjaxRequest(url, info, callbackFunction, callbackFunctionError) { var http = null; var cbFunction = callbackFunction; var cbFunctionError = callbackFunctionError; var addInfo = info; function StateChange() { if (http.readyState == 4) { if (http.status != 200) { if (cbFunctionError != null) { cbFunctionError(addInfo); } delete http; } else { //alert(http.responseText); cbFunction(http.responseText, addInfo); } } } if (window.XMLHttpRequest) { http = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { http = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { http = false; } } } if (!http) { alert('Blad podczas polaczenia.');return false; }; http.onreadystatechange = StateChange; http.open('GET', url, true); //http.setRequestHeader("Referer", "http://www.ostrowiec-sw.pl/"); http.send(null); }