var page=""; var base=""; 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=""; var restartPulse=false; 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 getIntersect(arr1, arr2) { var temp = []; for(var i = 0; i < arr1.length; i++){ for(var k = 0; k < arr2.length; k++){ if(arr1[i] == arr2[k]){ temp.push( arr1[i]); break; } } } return temp; } var prodKatUniques=new Array(); var prodKatOldHeight=new Array(); var prodKatOldTxtHeight=new Array(); function prodKatHoverIn() { fullid=this.id; if(prodKatOldHeight[fullid]==undefined) { prodKatOldHeight[fullid]=$(this).height(); prodKatOldTxtHeight[fullid]=$('#'+fullid+'txt').css('top'); } if($(this).prevAll().position()) { $(this).prevAll().animate({top:-$(this).prevAll().position().top-$(this).prevAll().height()},{duration:200,queue:false}); } $(this).animate({top:-$(this).position().top+'px',height:'129px'},{duration:200,queue:false}); $('#'+fullid+'txt').animate({top:101},{duration:200,queue:false}); } function prodKatHoverOut() { fullid=this.id; $(this).prevAll().animate({top:0},{duration:200,queue:false}); $(this).animate({top:0,height:prodKatOldHeight[fullid]},{duration:200,queue:false}); $('#'+fullid+'txt').animate({top:prodKatOldTxtHeight[fullid]},{duration:200,queue:false}); } function prodKatHoverInit(cellId) { var config = { over: prodKatHoverIn, // function = onMouseOver callback (REQUIRED) interval: 150, // number = milliseconds delay before onMouseIn timeout: 0, // number = milliseconds delay before onMouseOut out: prodKatHoverOut // function = onMouseOut callback (REQUIRED) }; $('#'+cellId).hoverIntent(config); } function uncheckObjMat() { for(var i=0; i< allmat.length; i++) { $("input[name=mat"+allmat[i]+"]").attr('checked', false); } checkObj(); return true; } function checkObjGrp() { for(var i=0; i< allgrp.length; i++) { $("input[name=grp"+allgrp[i]+"]").attr('checked', true); } checkObj(); return true; } function checkObj() { var finalKats=prodKat; // select only mats var matSel=false; for (var i = 0; i < mats.length; i++) { if(mats[i]!=undefined && $("input:checked[name=mat"+i+"]").val()) { matSel=true; if(finalKats.length>0) { finalKats=getIntersect(finalKats,mats[i]); } else { finalKats=mats[i]; } } } if(!matSel) { finalKats=prodKat; } var matFinalKats=finalKats; var grpFinalKats=new Array; // select grps for (var i = 0; i < grps.length; i++) { if(grps[i]!=undefined && $("input:checked[name=grp"+i+"]").val()) { for (var j=0; j 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