var rmatch = /^(http:\/\/)?(www.)?(ipix.lt)/.exec(location.href); var site_prefix = ((rmatch[2] == "www.") ? "www." : ""); var debug = 0; function isDEF(variable) { return ((typeof(variable) == "undefined") ? false : true); } function getElement(ID) { return (document.getElementById ? document.getElementById(ID) : (document.all ? document.all[ID] : ((typeof(eval) != "undefined") ? eval(ID) : null))); } function removeElement(elObject) { return elObject.parentNode.removeChild(elObject); } function mURL(url) { return "http://" + site_prefix + "ipix.lt/" + url; // KAZOOM! } var rmatch = new RegExp("^" + mURL("my/images(/(page|items):([0-9]+))?(/(page|items):([0-9]+))?/?") + "$").exec(location.href); if (rmatch != null) { var pl_page_number = ((rmatch[2] == "page") ? (isDEF(rmatch[3]) ? rmatch[3] : 1) : (isDEF(rmatch[6]) ? rmatch[6] : 1)); var pl_item_count = ((rmatch[2] == "items") ? (isDEF(rmatch[3]) ? rmatch[3] : 25) : (isDEF(rmatch[6]) ? rmatch[6] : 25)); } var nav_galleries = (new RegExp("^" + mURL("my/galleries/?") + "$").exec(location.href) != null); var nav_gallery_removal = (new RegExp("^" + mURL("my/galleries/[0-9]{8}/remove/?") + "$").exec(location.href) != null); if (nav_galleries || nav_gallery_removal) for (var i = 0; i < document.forms.length; i++) document.forms[i].reset(); var isFF = (navigator.userAgent.indexOf("Firefox") != -1); var isIE = (navigator.userAgent.indexOf("MSIE") != -1); var isNS = (navigator.userAgent.indexOf("Netscape") != -1); var isOP = (window.opera ? true : false); var ecALL = false; var eXpanded = new Array(); var noAJAX = false; var PLT = false; var theme_image_dir = mURL("themefiles/"); function returnFalse() { return false; } function randomString(length, charset) { var result = ""; for (var i = 0; i < length; i++) result += charset.charAt(Math.floor(Math.random() * charset.length)); return result; } function changeVisual() { var ticket = randomString(8, "123456789"); getElement("ticket_number").value = ticket; getElement("ticket_image").src = mURL("?ticket=" + ticket); return true; } function FixPNG(image) { var version = parseFloat(navigator.appVersion.split("MSIE")[1]); if ((version >= 5.5) && (version < 7) && document.body.filters) image.outerHTML = ""; } function goodPPIP(password) { if (password.length >= 3) return true; alert(String.fromCharCode(74, 363, 115, 371, 32, 112, 97, 116, 101, 105, 107, 116, 97, 115, 32, 115, 108, 97, 112, 116, 97, 382, 111, 100, 105, 115, 32, 121, 114, 97, 32, 112, 101, 114, 32, 116, 114, 117, 109, 112, 97, 115, 33)); return false; } function trimDS(subject) { while (subject.indexOf(" ") != -1) subject = subject.replace(/ /, " "); return subject; } function cssHidden(reference) { return (reference.className.match(/invisible/)) } function cssShow(reference) { reference.className = trimDS(reference.className).replace(/invisible/, ""); return true; } function cssHide(reference) { reference.className = "invisible " + trimDS(reference.className).replace(/invisible/, ""); return true; } function initializeAJAX() { var objAJAX; try { objAJAX = new XMLHttpRequest(); } catch (e) { try { objAJAX = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { objAJAX = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { objAJAX = null; } } } return objAJAX; }