var page=""; var warning=""; var cQuery=""; var cLastQuery=""; var globalHook=""; var fhQuery=""; var onloadMain=false; var appearEffect=false; var fadeEffect=false; var lastFade=false; var lastAppear=false; var visible=0; var activeFade=0; var activeAppear=0; var objListeReady=true; var lybOpen=""; function warnme(warning) { if(warning!="") { window.setTimeout("alert('"+warning+"')",1); } } function blur_it() { var alla=document.getElementsByTagName('a'); if(alla) { for(var i=0; i>> function checkCurLength(str) { sLength=500; if(str.length>sLength) { window.setTimeout('alert("Ihr Text wird auf '+sLength+' Zeichen gekürzt!");',50); } if(str.length>sLength) { $('textar').value=$('textar').value.substr(0,sLength); } str=$('textar').value; $('tz').innerHTML=str.length; } function checkAddressChange() { for(var i=1; i<7; i++) { adrStr+=$('ac'+i).value; } } var changeQueue=false; function changeAmount(item) { var id=parseInt(item.id.substr(6)); var val=item.value; if(val>100) val=100; item.value=val; return ''; new Ajax.Request('index.php?c=data&act=changeWKamount&id='+id+'&val='+val, { method:'POST', requestHeaders:{'Cache-control':'no-cache'}, onCreate: function(obj) { //$('orderList').style.visibility='hidden'; $('orderList').className='wk opaque'; }, onSuccess: function (obj) { out=obj.responseText.split('|'); if(out[0]=="ERROR") { alert(out[1]); } else if(out[0]!="") { //if(changeQueue!=false) window.clearTimeout(changeQueue); //changeQueue=window.setTimeout("$('orderList').innerHTML=out[0]",400); $('orderList').innerHTML=out[0]; //$('orderList').style.visibility='visible'; } else { alert('Fehler #616!'); } $('orderList').className='wk'; //$('prodid'+id).focus(); } }); } function updateWK(ids) { var pidAr=ids.split('|'); var amount=arStr=prodid=''; for(i=0;i Lightbox // Additional methods for Element added by SU, Couloir // - further additions by Lokesh Dhakar (huddletogether.com) // Object.extend(Element, { getWidth: function(element) { element = $(element); return element.offsetWidth; }, setWidth: function(element,w) { element = $(element); element.style.width = w +"px"; }, setHeight: function(element,h) { element = $(element); element.style.height = h +"px"; }, setTop: function(element,t) { element = $(element); element.style.top = t +"px"; }, setLeft: function(element,l) { element = $(element); element.style.left = l +"px"; }, setSrc: function(element,src) { element = $(element); element.src = src; }, setHref: function(element,href) { element = $(element); element.href = href; }, setInnerHTML: function(element,content) { element = $(element); element.innerHTML = content; } }); function getPageSize(){ var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = window.innerWidth + window.scrollMaxX; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } var windowWidth, windowHeight; // console.log(self.innerWidth); // console.log(document.documentElement.clientWidth); if (self.innerHeight) { // all except Explorer if(document.documentElement.clientWidth){ windowWidth = document.documentElement.clientWidth; } else { windowWidth = self.innerWidth; } windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } // for small pages with total height less then height of the viewport if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } // console.log("xScroll " + xScroll) // console.log("windowWidth " + windowWidth) // for small pages with total width less then width of the viewport if(xScroll < windowWidth){ pageWidth = xScroll; } else { pageWidth = windowWidth; } // console.log("pageWidth " + pageWidth) arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) return arrayPageSize; } function getPageScrollY() { if (self.pageYOffset) { return this.isFrame ? parent.pageYOffset : self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop){ return document.documentElement.scrollTop; } else if (document.body) { return document.body.scrollTop; } } // // // // <=== Lightbox