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; 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"); } var fotos = new Array(); var opisos = new Array(); var cfoto = ''; var isfzoom = 'nie'; 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 ruszTlo() { divbox.style.top=f_scrollTop()+'px'; } function resizeTlo() { divframe.style.width=(f_clientWidth()-240)+'px'; divbox.style.width=(f_clientWidth()-20)+'px'; divbox.style.height=(f_clientHeight()-20)+'px'; divmini.style.height=(f_clientHeight()-60)+'px'; } 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 } if (!v_iE) document.captureEvents(Event.CLICK) document.click = getMouseXY; function tlo_zamknij() { divfoto.src='/gfx/laduje.gif'; divbox.style.visibility='hidden'; }; function imgchange() { divfoto.src='/gfx/laduje.gif'; var fot = new String(fotos[cfoto].toString()); if (isfzoom=='tak') fot1='_4'+fot.substr(2,fot.length); else fot1='_1'+fot.substr(2,fot.length); //alert(fot+' '+fot1); divtytul.innerHTML=''+opisos[cfoto]+''; divfoto.src='/_get.php?'+fot1; } function fzoom() { if (isfzoom=='tak') isfzoom='nie'; else isfzoom='tak'; imgchange(); } function tlo_pokaz(fotostmp, id, opisytmp) { divbox.style.top=(f_scrollTop())+'px'; divbox.style.visibility='visible'; fotos = fotostmp; opisos = opisytmp; cfoto=id; imgchange(); fz_max=fotos.length; if ( (fz_max>1) ) { var txt1 = ''; nr=0; for (i=0; i'; nr++; if (nr>1) { nr=0; txt1 = txt1 + ''; } } txt1 = txt1 + ''; divmini.innerHTML=txt1; } } function fz2(link) { divtlo.style.visibility='visible'; a=v_getxOS('fotozoom'); a.src = ''+link+'.jpg'; divimp.style.top=f_scrollTop()+'px'; divtlo.style.top=f_scrollTop()+'px'; divimp.style.width=f_clientWidth()+'px'; divimp.style.height=f_clientHeight()+'px'; divimp.style.visibility='visible'; } function smsLoad(numer) { AjaxRequest('/sms.js.php?numer='+numer, 'load', smsTC, smsTEC); } function smsTC(data, info) { eval(data); as(); } function smsTEC(info) { a=v_getxOS('sms_siec'); a.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); } function fotoTC(data, dest) { a=v_getxOS(dest); a.innerHTML=''+data+''; } function fotoTEC(info, dest) { a=v_getxOS(dest); a.innerHTML=''+data+''; } function wait(dest) { a = v_getxOS(dest); a.innerHTML='
'; } function AR(url, info, callbackFunction, callbackFunctionError, dest) { wait(dest); 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, dest); } delete http; } else { cbFunction(http.responseText, dest); } } } 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.send(null); }