function Lytebox(a,b){this.label={};this.label.close="Close (Esc)";this.label.prev="Previous (\u2190)";this.label.next="Next (\u2192)";this.label.play="Play (spacebar)";this.label.pause="Pause (spacebar)";this.label.print="Print";this.label.image="Image %1 of %2";this.label.page="Page %1 of %2";this.theme="undefined"!==typeof lyteboxTheme&&/^(black|grey|red|green|blue|gold|orange)$/i.test(lyteboxTheme)?lyteboxTheme:"black";this.outerBorder=this.innerBorder=this.roundedBorder=!0;this.resizeSpeed=5; this.maxOpacity=80;this.borderSize=12;this.appendQS=!1;this.fixedPosition=this.isMobile()?!1:!0;this.__doAnimations=this.__autoResize=this.__hideObjects=this.inherit=!0;this.__refreshPage=this.__forceCloseClick=this.__animateOverlay=!1;this.__showPrint=!0;this.__navType=3;this.__navTop=(this.isMobile(),!1);this.__titleTop=this.isMobile()?!0:!1;this.__height=this.__width="80%";this.__scrolling="auto";this.__loopPlayback=!1;this.__autoEmbed=this.__autoPlay=!0;this.__slideInterval=4E3;this.__showNavigation= !1;this.__autoEnd=this.__showPlayPause=this.__showDetails=this.__showClose=!0;this.__pauseOnNextClick=!1;this.__pauseOnPrevClick=!0;this.__loopSlideshow=!1;this.__afterEnd=this.__beforeEnd=this.__afterStart=this.__beforeStart="";this.__changeTipCursor=!0;this.__tipDecoration="dotted";this.__tipStyle="classic";this.__tipRelative=!0;this.navTypeHash={};this.navTypeHash.Hover_by_type_1=!0;this.navTypeHash.Display_by_type_1=!1;this.navTypeHash.Hover_by_type_2=!1;this.navTypeHash.Display_by_type_2=!0; this.navTypeHash.Hover_by_type_3=!0;this.navTypeHash.Display_by_type_3=!0;this.resizeWTimerArray=[];this.resizeWTimerCount=0;this.resizeHTimerArray=[];this.resizeHTimerCount=0;this.changeContentTimerArray=[];this.changeContentTimerCount=0;this.overlayTimerArray=[];this.overlayTimerCount=0;this.imageTimerArray=[];this.imageTimerCount=0;this.timerIDArray=[];this.timerIDCount=0;this.slideshowIDArray=[];this.slideshowIDCount=0;this.imageArray=[];this.slideArray=[];this.frameArray=[];this.contentNum=null; this.aPageSize=[];this.overlayLoaded=!1;this.checkFrame();this.tipSet=this.isLyteframe=this.isSlideshow=!1;this.ieVersion=this.ffVersion=this.chromeVersion=this.operaVersion=this.safariVersion=-1;this.ie=this.ff=this.chrome=this.opera=this.safari=!1;this.setBrowserInfo();this.classAttribute=this.ie&&"BackCompat"==this.doc.compatMode||this.ie&&8>=this.ieVersion?"className":"class";this.classAttribute=this.ie&&9==document.documentMode?"class":this.classAttribute;this.isReady=!1;if(a){this.http=b;this.bodyOnscroll= document.body.onscroll;10this.resizeSpeed&&(this.resizeSpeed=1);var c=navigator.userAgent.match(/windows nt 5.1/i)||navigator.userAgent.match(/windows nt 5.2/i)?!0:!1;this.resizeDuration=(11-this.resizeSpeed)*(this.ie?9<=this.ieVersion?6:8==this.ieVersion?"BackCompat"==this.doc.compatMode?2:1:3:7);this.resizeDuration=this.ff?(11-this.resizeSpeed)*(6>this.ffVersion?3:c?6:12):this.resizeDuration;this.resizeDuration=this.chrome?5*(11-this.resizeSpeed):this.resizeDuration; this.resizeDuration=this.safari?20*(11-this.resizeSpeed):this.resizeDuration;this.resizeDuration=this.isMobile()?2*(11-this.resizeSpeed):this.resizeDuration;"lbIframe"!=window.name&&this.initialize()}else this.http=[],"undefined"==typeof $&&($=function(a){void 0===$.cache[a]&&($.cache[a]=document.getElementById(a)||!1);return $.cache[a]},$.cache={})} Lytebox.prototype.setBrowserInfo=function(){var a=navigator.userAgent.toLowerCase();this.chrome=-1=this.ieVersion||9>=this.ieVersion&&"BackCompat"==this.doc.compatMode)&&(b.style.position="absolute");b.style.display="none";a.appendChild(b);b=this.doc.createElement("div");b.setAttribute("id","lbMain");b.style.display="none";a.appendChild(b);a=this.doc.createElement("div");a.setAttribute("id","lbOuterContainer");a.setAttribute(this.classAttribute,this.theme);this.roundedBorder&&(a.style.MozBorderRadius="8px",a.style.borderRadius= "8px");b.appendChild(a);var c=this.doc.createElement("div");c.setAttribute("id","lbTopContainer");c.setAttribute(this.classAttribute,this.theme);this.roundedBorder&&(c.style.MozBorderRadius="8px",c.style.borderRadius="8px");a.appendChild(c);b=this.doc.createElement("div");b.setAttribute("id","lbTopData");b.setAttribute(this.classAttribute,this.theme);c.appendChild(b);var d=this.doc.createElement("span");d.setAttribute("id","lbTitleTop");b.appendChild(d);d=this.doc.createElement("span");d.setAttribute("id", "lbNumTop");b.appendChild(d);b=this.doc.createElement("div");b.setAttribute("id","lbTopNav");c.appendChild(b);c=this.doc.createElement("a");c.setAttribute("id","lbCloseTop");c.setAttribute("title",this.label.close);c.setAttribute(this.classAttribute,this.theme);c.setAttribute("href","javascript:void(0)");b.appendChild(c);c=this.doc.createElement("a");c.setAttribute("id","lbPrintTop");c.setAttribute("title",this.label.print);c.setAttribute(this.classAttribute,this.theme);c.setAttribute("href","javascript:void(0)"); b.appendChild(c);c=this.doc.createElement("a");c.setAttribute("id","lbNextTop");c.setAttribute("title",this.label.next);c.setAttribute(this.classAttribute,this.theme);c.setAttribute("href","javascript:void(0)");b.appendChild(c);c=this.doc.createElement("a");c.setAttribute("id","lbPauseTop");c.setAttribute("title",this.label.pause);c.setAttribute(this.classAttribute,this.theme);c.setAttribute("href","javascript:void(0)");c.style.display="none";b.appendChild(c);c=this.doc.createElement("a");c.setAttribute("id", "lbPlayTop");c.setAttribute("title",this.label.play);c.setAttribute(this.classAttribute,this.theme);c.setAttribute("href","javascript:void(0)");c.style.display="none";b.appendChild(c);c=this.doc.createElement("a");c.setAttribute("id","lbPrevTop");c.setAttribute("title",this.label.prev);c.setAttribute(this.classAttribute,this.theme);c.setAttribute("href","javascript:void(0)");b.appendChild(c);b=this.doc.createElement("div");b.setAttribute("id","lbIframeContainer");b.style.display="none";a.appendChild(b); c=this.doc.createElement("iframe");c.setAttribute("id","lbIframe");c.setAttribute("name","lbIframe");c.style.border="none";this.innerBorder&&c.setAttribute(this.classAttribute,this.theme);c.style.display="none";b.appendChild(c);b=this.doc.createElement("div");b.setAttribute("id","lbImageContainer");a.appendChild(b);c=this.doc.createElement("img");c.setAttribute("id","lbImage");this.innerBorder&&c.setAttribute(this.classAttribute,this.theme);b.appendChild(c);c=this.doc.createElement("div");c.setAttribute("id", "lbLoading");c.setAttribute(this.classAttribute,this.theme);a.appendChild(c);c=this.doc.createElement("div");c.setAttribute("id","lbBottomContainer");c.setAttribute(this.classAttribute,this.theme);this.roundedBorder&&(c.style.MozBorderRadius="8px",c.style.borderRadius="8px");a.appendChild(c);a=this.doc.createElement("div");a.setAttribute("id","lbBottomData");a.setAttribute(this.classAttribute,this.theme);c.appendChild(a);d=this.doc.createElement("span");d.setAttribute("id","lbTitleBottom");a.appendChild(d); d=this.doc.createElement("span");d.setAttribute("id","lbNumBottom");a.appendChild(d);d=this.doc.createElement("span");d.setAttribute("id","lbDescBottom");a.appendChild(d);d=this.doc.createElement("div");d.setAttribute("id","lbHoverNav");b.appendChild(d);a=this.doc.createElement("div");a.setAttribute("id","lbBottomNav");c.appendChild(a);b=this.doc.createElement("a");b.setAttribute("id","lbPrevHov");b.setAttribute("title",this.label.prev);b.setAttribute(this.classAttribute,this.theme);b.setAttribute("href", "javascript:void(0)");d.appendChild(b);b=this.doc.createElement("a");b.setAttribute("id","lbNextHov");b.setAttribute("title",this.label.next);b.setAttribute(this.classAttribute,this.theme);b.setAttribute("href","javascript:void(0)");d.appendChild(b);b=this.doc.createElement("a");b.setAttribute("id","lbClose");b.setAttribute("title",this.label.close);b.setAttribute(this.classAttribute,this.theme);b.setAttribute("href","javascript:void(0)");a.appendChild(b);b=this.doc.createElement("a");b.setAttribute("id", "lbPrint");b.setAttribute("title",this.label.print);b.setAttribute(this.classAttribute,this.theme);b.setAttribute("href","javascript:void(0)");b.style.display="none";a.appendChild(b);b=this.doc.createElement("a");b.setAttribute("id","lbNext");b.setAttribute("title",this.label.next);b.setAttribute(this.classAttribute,this.theme);b.setAttribute("href","javascript:void(0)");a.appendChild(b);b=this.doc.createElement("a");b.setAttribute("id","lbPause");b.setAttribute("title",this.label.pause);b.setAttribute(this.classAttribute, this.theme);b.setAttribute("href","javascript:void(0)");b.style.display="none";a.appendChild(b);b=this.doc.createElement("a");b.setAttribute("id","lbPlay");b.setAttribute("title",this.label.play);b.setAttribute(this.classAttribute,this.theme);b.setAttribute("href","javascript:void(0)");b.style.display="none";a.appendChild(b);b=this.doc.createElement("a");b.setAttribute("id","lbPrev");b.setAttribute("title",this.label.prev);b.setAttribute(this.classAttribute,this.theme);b.setAttribute("href","javascript:void(0)"); a.appendChild(b);a=this.isFrame&&window.parent.frames[window.name].document?window.parent.frames[window.name].document.getElementsByTagName("iframe"):document.getElementsByTagName("iframe");for(b=0;b=this.ieVersion||8==this.ieVersion&&"BackCompat"==this.doc.compatMode)tipImage="","lbClassic"==tipStyle||this.isEmpty(tipStyle)||(tipStyle+=" lbIEFix");c=this.findPos(b);if(this.ie&&(6>=this.ieVersion||"BackCompat"==this.doc.compatMode)||bRelative)b.style.position="relative";tipHtml=b.innerHTML;b.innerHTML="";b.innerHTML=this.ie&&6>=this.ieVersion&&"BackCompat"!=this.doc.compatMode||bRelative?tipHtml+'\x3cspan class\x3d"'+tipStyle+'"\x3e'+(tipImage?'\x3cdiv class\x3d"'+tipImage+'"\x3e\x3c/div\x3e': "")+dataTip+"\x3c/span\x3e":tipHtml+'\x3cspan class\x3d"'+tipStyle+'" style\x3d"left:'+c[0]+"px;top:"+(c[1]+c[2])+'px;"\x3e'+(tipImage?'\x3cdiv class\x3d"'+tipImage+'"\x3e\x3c/div\x3e':"")+dataTip+"\x3c/span\x3e";null==classAttribute.match(/lytebox|lyteshow|lyteframe/i)&&b.setAttribute("title","")}this.tipsSet=!0}; Lytebox.prototype.launch=function(a){var b=this.isEmpty(a.url)?"":String(a.url),c=this.isEmpty(a.options)?"":String(a.options),d=this.isEmpty(a.title)?"":a.title;a=this.isEmpty(a.description)?"":a.description;var e=/slide:true/i.test(c);if(this.isEmpty(b))return!1;if(this.isReady){for(var g=0;g=this.ieVersion&&this.toggleSelects("hide");this.hideObjects&&this.toggleObjects("hide");this.isFrame&&window.parent.frames[window.name].document?window.parent.$lb.printId= this.isLyteframe?"lbIframe":"lbImage":this.printId=this.isLyteframe?"lbIframe":"lbImage";this.aPageSize=this.getPageSize();d=this.doc.$("lbOverlay");this.doc.getElementsByTagName("body").item(0);d.style.height=this.aPageSize[1]+"px";d.style.display="";this.fadeIn({id:"lbOverlay",opacity:this.doAnimations&&this.animateOverlay&&(!this.ie||9<=this.ieVersion)?0:this.maxOpacity});d=this.isFrame&&window.parent.frames[window.name].document?window.parent.frames[window.name].document.getElementsByTagName("a"): document.getElementsByTagName("a");d=this.isFrame?d:document.getElementsByTagName("a");c=this.isFrame&&window.parent.frames[window.name].document?window.parent.frames[window.name].document.getElementsByTagName("area"):document.getElementsByTagName("area");c=this.combine(d,c);var e=sExt=aUrl=null;this.frameArray=[];this.frameNum=0;this.imageArray=[];this.imageNum=0;this.slideArray=[];this.slideNum=0;if(this.isEmpty(this.group))d=String(a.getAttribute("data-lyte-options")),d=this.isEmpty(d)?String(a.getAttribute("rev")): d,this.isLyteframe?this.frameArray.push([a.getAttribute("href"),this.isEmpty(a.getAttribute("data-title"))?a.getAttribute("title"):a.getAttribute("data-title"),a.getAttribute("data-description"),d]):this.imageArray.push([a.getAttribute("href"),this.isEmpty(a.getAttribute("data-title"))?a.getAttribute("title"):a.getAttribute("data-title"),a.getAttribute("data-description"),d]);else{for(var g=0;g=this.ieVersion||"BackCompat"==this.doc.compatMode)){a.style.top=this.getPageScroll()+this.aPageSize[3]/40+"px";var g=this.aPageSize[3]/ 40;this.scrollHandler=function(){$lb.doc.$("lbMain").style.top=$lb.getPageScroll()+g+"px"};this.bodyOnscroll=document.body.onscroll;window.addEventListener?window.addEventListener("scroll",this.scrollHandler):window.attachEvent&&window.attachEvent("onscroll",this.scrollHandler);a.style.position="absolute"}else a.style.top=this.aPageSize[3]/40+"px",a.style.position="fixed";else a.style.position="absolute",a.style.top=this.getPageScroll()+this.aPageSize[3]/40+"px";this.doc.$("lbOuterContainer").style.paddingBottom= "0";this.outerBorder?this.doc.$("lbOuterContainer").setAttribute(this.classAttribute,this.theme):this.doc.$("lbOuterContainer").style.border="none";this.forceCloseClick?this.doc.$("lbOverlay").onclick="":this.doc.$("lbOverlay").onclick=function(){$lb.end();return!1};this.doc.$("lbMain").onclick=function(a){a||(a=window.parent.frames[window.name]&&0>=parent.document.getElementsByTagName("frameset").length?window.parent.window.event:window.event);if("lbMain"==(a.target?a.target.id:a.srcElement.id)&& !$lb.forceCloseClick)return $lb.end(),!1};this.doc.$("lbPrintTop").onclick=this.doc.$("lbPrint").onclick=function(){$lb.printWindow();return!1};this.doc.$("lbCloseTop").onclick=this.doc.$("lbClose").onclick=function(){$lb.end();return!1};this.doc.$("lbPauseTop").onclick=function(){$lb.togglePlayPause("lbPauseTop","lbPlayTop");return!1};this.doc.$("lbPause").onclick=function(){$lb.togglePlayPause("lbPause","lbPlay");return!1};this.doc.$("lbPlayTop").onclick=function(){$lb.togglePlayPause("lbPlayTop", "lbPauseTop");return!1};this.doc.$("lbPlay").onclick=function(){$lb.togglePlayPause("lbPlay","lbPause");return!1};this.isSlideshow&&(this.showPlayPause&&this.isPaused)&&(this.doc.$("lbPlay").style.display="",this.doc.$("lbPause").style.display="none");if(this.isSlideshow)for(a=0;af?f:b)+"px",c=(parseInt(c)>k?k:c)+"px";a.height=this.height=c;a.width=this.width=b;a.scrolling= this.scrolling;a=a.contentWindow||a.contentDocument;try{a.document&&(a=a.document),a.body.style.margin=0,a.body.style.padding=0,this.ie&&8>=this.ieVersion&&(a.body.scroll=this.scrolling,a.body.overflow=this.scrolling="hidden")}catch(h){}this.resizeContainer(parseInt(this.width),parseInt(this.height))}else this.imgPreloader=new Image,this.imgPreloader.onload=function(){var a=$lb.imgPreloader.width,b=$lb.imgPreloader.height;if($lb.autoResize){var c=$lb.aPageSize[2]-50,d=$lb.aPageSize[3]-150;a>c?(b= Math.round(b*(c/a)),a=c,b>d&&(a=Math.round(a*(d/b)),b=d)):b>d&&(a=Math.round(a*(d/b)),b=d,a>c&&(b=Math.round(b*(c/a)),a=c))}c=$lb.doc.$("lbImage");c.src=$lb.imgPreloader.src;c.width=a;c.height=b;$lb.resizeContainer(a,b);$lb.imgPreloader.onload=function(){}},this.imgPreloader.src=this.isSlideshow?this.slideArray[this.contentNum][0]:this.imageArray[this.contentNum][0]}else this.changeContentTimerArray[this.changeContentTimerCount++]=setTimeout("$lb.changeContent("+this.contentNum+")",250)}; Lytebox.prototype.resizeContainer=function(a,b){this.resizeWidth=a;this.resizeHeight=b;this.wCur=this.doc.$("lbOuterContainer").offsetWidth;this.hCur=this.doc.$("lbOuterContainer").offsetHeight;this.xScale=100*((this.resizeWidth+2*this.borderSize)/this.wCur);this.yScale=100*((this.resizeHeight+2*this.borderSize)/this.hCur);var c=this.wCur-2*this.borderSize-this.resizeWidth,d=this.hCur-2*this.borderSize-this.resizeHeight;this.wDone=0==c;0!=d?(this.hDone=!1,this.resizeH("lbOuterContainer",this.hCur, this.resizeHeight+2*this.borderSize,this.getPixelRate(this.hCur,this.resizeHeight))):(this.hDone=!0,this.wDone||this.resizeW("lbOuterContainer",this.wCur,this.resizeWidth+2*this.borderSize,this.getPixelRate(this.wCur,this.resizeWidth)));0==d&&0==c&&(this.ie?this.pause(250):this.pause(100));this.doc.$("lbPrevHov").style.height=this.resizeHeight+"px";this.doc.$("lbNextHov").style.height=this.resizeHeight+"px";this.hDone&&this.wDone&&(this.isLyteframe?this.loadContent():this.showContent())}; Lytebox.prototype.loadContent=function(){try{var a=this.doc.$("lbIframe"),b=this.frameArray[this.contentNum][0];!this.inline&&this.appendQS&&(b+=(/\?/.test(b)?"\x26":"?")+"request_from\x3dlytebox");this.autoPlay&&/youtube/i.test(b)&&(b+=(/\?/.test(b)?"\x26":"?")+"autoplay\x3d1");if(!this.autoEmbed||this.ff&&b.match(/.pdf|.mov|.wmv/i))this.frameSource=b,this.showContent();else if(this.ie?a.onreadystatechange=function(){"complete"==$lb.doc.$("lbIframe").readyState&&($lb.showContent(),$lb.doc.$("lbIframe").onreadystatechange= null)}:a.onload=function(){$lb.showContent();$lb.doc.$("lbIframe").onload=null},this.inline||b.match(/.mov|.avi|.wmv|.mpg|.mpeg|.swf/i)){a.src="about:blank";this.frameSource="";var c=this.inline?this.doc.$(b.substr(b.indexOf("#")+1,b.length)).innerHTML:this.buildObject(parseInt(this.width),parseInt(this.height),b),d=a.contentWindow||a.contentDocument;d.document&&(d=d.document);d.open();d.write(c);d.close();d.body.style.margin=0;d.body.style.padding=0;this.inline||(d.body.style.backgroundColor="#fff", d.body.style.fontFamily="Verdana, Helvetica, sans-serif",d.body.style.fontSize="0.9em");this.frameSource=""}else this.frameSource=b,a.src=b}catch(e){}}; Lytebox.prototype.showContent=function(){this.isSlideshow?(this.contentNum==this.slideArray.length-1?this.loopSlideshow?this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("$lb.changeContent(0)",this.slideInterval):this.autoEnd&&(this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("$lb.end('slideshow')",this.slideInterval)):this.isPaused||(this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("$lb.changeContent("+(this.contentNum+1)+")",this.slideInterval)),this.doc.$("lbHoverNav").style.display= 6!=this.ieVersion&&this.showNavigation&&this.navTypeHash["Hover_by_type_"+this.navType]?"":"none",this.doc.$("lbCloseTop").style.display=this.showClose&&this.navTop?"":"none",this.doc.$("lbClose").style.display=this.showClose&&!this.navTop?"":"none",this.doc.$("lbBottomData").style.display=this.showDetails?"":"none",this.doc.$("lbPauseTop").style.display=this.showPlayPause&&this.navTop?this.isPaused?"none":"":"none",this.doc.$("lbPause").style.display=this.showPlayPause&&!this.navTop?this.isPaused? "none":"":"none",this.doc.$("lbPlayTop").style.display=this.showPlayPause&&this.navTop?this.isPaused?"":"none":"none",this.doc.$("lbPlay").style.display=this.showPlayPause&&!this.navTop?this.isPaused?"":"none":"none",this.doc.$("lbPrevTop").style.display=this.navTop&&this.showNavigation&&this.navTypeHash["Display_by_type_"+this.navType]?"":"none",this.doc.$("lbPrev").style.display=!this.navTop&&this.showNavigation&&this.navTypeHash["Display_by_type_"+this.navType]?"":"none",this.doc.$("lbNextTop").style.display= this.navTop&&this.showNavigation&&this.navTypeHash["Display_by_type_"+this.navType]?"":"none",this.doc.$("lbNext").style.display=!this.navTop&&this.showNavigation&&this.navTypeHash["Display_by_type_"+this.navType]?"":"none"):(this.doc.$("lbHoverNav").style.display=6!=this.ieVersion&&this.navTypeHash["Hover_by_type_"+this.navType]&&!this.isLyteframe?"":"none",this.navTypeHash["Display_by_type_"+this.navType]&&!this.isLyteframe&&1=this.ieVersion||8<=this.ieVersion&&"BackCompat"==this.doc.compatMode)this.doc.$(this.titleTop?"lbTitleBottom":"lbTitleTop").style.display="none",this.doc.$(this.titleTop? "lbTitleTop":"lbTitleBottom").style.display=this.isEmpty(a)?"none":"block";this.doc.$("lbDescBottom").style.display=this.isEmpty(b)?"none":"";this.doc.$(this.titleTop?"lbTitleTop":"lbTitleBottom").innerHTML=this.isEmpty(a)?"":a;this.doc.$(this.titleTop?"lbTitleBottom":"lbTitleTop").innerHTML="";this.doc.$(this.titleTop?"lbNumBottom":"lbNumTop").innerHTML="";this.updateNav();this.titleTop||this.navTop?(this.doc.$("lbTopContainer").style.display="block",this.doc.$("lbTopContainer").style.visibility= "visible"):this.doc.$("lbTopContainer").style.display="none";var c=this.titleTop?this.doc.$("lbNumTop"):this.doc.$("lbNumBottom");c.innerHTML=this.isSlideshow&&1=this.ieVersion||8<=this.ieVersion&&"BackCompat"==this.doc.compatMode)if(a=39+(this.showPrint?39:0)+(this.isSlideshow&&this.showPlayPause?39:0),this.isSlideshow&&1=this.ieVersion||8<=this.ieVersion&&"BackCompat"==this.doc.compatMode)b=this.ie?parseInt(this.doc.$("lbMain").style.top)-this.getPageScroll(): parseInt(this.doc.$("lbMain").style.top);0=this.ieVersion||"BackCompat"==this.doc.compatMode)&&(document.body.onscroll=this.bodyOnscroll,window.removeEventListener?window.removeEventListener("scroll",this.scrollHandler):window.detachEvent&&window.detachEvent("onscroll",this.scrollHandler)),this.doc.$("lbMain").style.position="absolute",this.doc.$("lbMain").style.top=this.getPageScroll()+ this.aPageSize[3]/40+"px")}; Lytebox.prototype.updateNav=function(){if(this.isSlideshow){if(0!=this.contentNum){if(this.navTypeHash["Display_by_type_"+this.navType]&&this.showNavigation&&(this.doc.$(this.navTop?"lbPrevTop":"lbPrev").setAttribute(this.classAttribute,this.theme),this.doc.$(this.navTop?"lbPrevTop":"lbPrev").style.display="",this.doc.$(this.navTop?"lbPrevTop":"lbPrev").onclick=function(){$lb.pauseOnPrevClick&&$lb.togglePlayPause($lb.navTop?"lbPauseTop":"lbPause",$lb.navTop?"lbPlayTop":"lbPlay");$lb.changeContent($lb.contentNum- 1);return!1}),this.navTypeHash["Hover_by_type_"+this.navType]){var a=this.doc.$("lbPrevHov");a.style.display="";a.onclick=function(){$lb.pauseOnPrevClick&&$lb.togglePlayPause($lb.navTop?"lbPauseTop":"lbPause",$lb.navTop?"lbPlayTop":"lbPlay");$lb.changeContent($lb.contentNum-1);return!1}}}else this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.$(this.navTop?"lbPrevTop":"lbPrev").setAttribute(this.classAttribute,this.theme+"Off"),this.doc.$(this.navTop?"lbPrevTop":"lbPrev").onclick=function(){return!1}); this.contentNum!=this.slideArray.length-1&&this.showNavigation?(this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.$(this.navTop?"lbNextTop":"lbNext").setAttribute(this.classAttribute,this.theme),this.doc.$(this.navTop?"lbNextTop":"lbNext").style.display="",this.doc.$(this.navTop?"lbNextTop":"lbNext").onclick=function(){$lb.pauseOnNextClick&&$lb.togglePlayPause($lb.navTop?"lbPauseTop":"lbPause",$lb.navTop?"lbPlayTop":"lbPlay");$lb.changeContent($lb.contentNum+1);return!1}),this.navTypeHash["Hover_by_type_"+ this.navType]&&(a=this.doc.$("lbNextHov"),a.style.display="",a.onclick=function(){$lb.pauseOnNextClick&&$lb.togglePlayPause($lb.navTop?"lbPauseTop":"lbPause",$lb.navTop?"lbPlayTop":"lbPlay");$lb.changeContent($lb.contentNum+1);return!1})):this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.$(this.navTop?"lbNextTop":"lbNext").setAttribute(this.classAttribute,this.theme+"Off"),this.doc.$(this.navTop?"lbNextTop":"lbNext").onclick=function(){return!1})}else this.isLyteframe?(0!=this.contentNum? (this.doc.$(this.navTop?"lbPrevTop":"lbPrev").setAttribute(this.classAttribute,this.theme),this.doc.$(this.navTop?"lbPrevTop":"lbPrev").style.display="",this.doc.$(this.navTop?"lbPrevTop":"lbPrev").onclick=function(){$lb.changeContent($lb.contentNum-1);return!1}):(this.doc.$(this.navTop?"lbPrevTop":"lbPrev").setAttribute(this.classAttribute,this.theme+"Off"),this.doc.$(this.navTop?"lbPrevTop":"lbPrev").onclick=function(){return!1}),this.contentNum!=this.frameArray.length-1?(this.doc.$(this.navTop? "lbNextTop":"lbNext").setAttribute(this.classAttribute,this.theme),this.doc.$(this.navTop?"lbNextTop":"lbNext").style.display="",this.doc.$(this.navTop?"lbNextTop":"lbNext").onclick=function(){$lb.changeContent($lb.contentNum+1);return!1}):(this.doc.$(this.navTop?"lbNextTop":"lbNext").setAttribute(this.classAttribute,this.theme+"Off"),this.doc.$(this.navTop?"lbNextTop":"lbNext").onclick=function(){return!1})):(0!=this.contentNum?(this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.$(this.navTop? "lbPrevTop":"lbPrev").setAttribute(this.classAttribute,this.theme),this.doc.$(this.navTop?"lbPrevTop":"lbPrev").style.display="",this.doc.$(this.navTop?"lbPrevTop":"lbPrev").onclick=function(){$lb.changeContent($lb.contentNum-1);return!1}),this.navTypeHash["Hover_by_type_"+this.navType]&&(a=this.doc.$("lbPrevHov"),a.style.display="",a.onclick=function(){$lb.changeContent($lb.contentNum-1);return!1})):this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.$(this.navTop?"lbPrevTop":"lbPrev").setAttribute(this.classAttribute, this.theme+"Off"),this.doc.$(this.navTop?"lbPrevTop":"lbPrev").onclick=function(){return!1}),this.contentNum!=this.imageArray.length-1?(this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.$(this.navTop?"lbNextTop":"lbNext").setAttribute(this.classAttribute,this.theme),this.doc.$(this.navTop?"lbNextTop":"lbNext").style.display="",this.doc.$(this.navTop?"lbNextTop":"lbNext").onclick=function(){$lb.changeContent($lb.contentNum+1);return!1}),this.navTypeHash["Hover_by_type_"+this.navType]&&(a= this.doc.$("lbNextHov"),a.style.display="",a.onclick=function(){$lb.changeContent($lb.contentNum+1);return!1})):this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.$(this.navTop?"lbNextTop":"lbNext").setAttribute(this.classAttribute,this.theme+"Off"),this.doc.$(this.navTop?"lbNextTop":"lbNext").onclick=function(){return!1}));this.enableKeyboardNav()}; Lytebox.prototype.fixBottomPadding=function(){if((7!=this.ieVersion&&8!=this.ieVersion&&9!=this.ieVersion||"BackCompat"!=this.doc.compatMode)&&6!=this.ieVersion){var a=this.doc.$("lbTopContainer").offsetHeight+5,a=(5==a?0:a)+this.doc.$("lbBottomContainer").offsetHeight;this.doc.$("lbOuterContainer").style.paddingBottom=a+5+"px"}};Lytebox.prototype.enableKeyboardNav=function(){document.onkeydown=this.keyboardAction};Lytebox.prototype.disableKeyboardNav=function(){document.onkeydown=""}; Lytebox.prototype.keyboardAction=function(a){var b=key=escape=null,b=null==a?event.keyCode:a.which;key=String.fromCharCode(b).toLowerCase();escape=null==a?27:a.DOM_VK_ESCAPE;if("x"==key||"c"==key||b==escape||27==b)parent.$lb.end();else{if(32==b&&$lb.isSlideshow&&$lb.showPlayPause)return $lb.isPaused?$lb.togglePlayPause($lb.navTop?"lbPlayTop":"lbPlay",$lb.navTop?"lbPauseTop":"lbPause"):$lb.togglePlayPause($lb.navTop?"lbPauseTop":"lbPause",$lb.navTop?"lbPlayTop":"lbPlay"),!1;if("p"==key||37==b)0!=$lb.contentNum&& ($lb.disableKeyboardNav(),$lb.changeContent($lb.contentNum-1));else if("n"==key||39==b)$lb.isSlideshow?$lb.contentNum!=$lb.slideArray.length-1&&($lb.disableKeyboardNav(),$lb.changeContent($lb.contentNum+1)):$lb.isLyteframe?$lb.contentNum!=$lb.frameArray.length-1&&($lb.disableKeyboardNav(),$lb.changeContent($lb.contentNum+1)):$lb.contentNum!=$lb.imageArray.length-1&&($lb.disableKeyboardNav(),$lb.changeContent($lb.contentNum+1))}}; Lytebox.prototype.preloadNeighborImages=function(){if(this.isSlideshow){if(this.slideArray.length-1>this.contentNum){var a=new Image;a.src=this.slideArray[this.contentNum+1][0]}0this.contentNum&&(a=new Image,a.src=this.imageArray[this.contentNum+1][0]),0=parent.document.getElementsByTagName("frameset").length&&"lbIframe"!=window.name?(this.isFrame=!0,this.doc=parent.document):(this.isFrame=!1,this.doc=document);this.doc.$=this.doc.getElementById}; Lytebox.prototype.getPixelRate=function(a,b){var c=b>a?b-a:a-b;if(0<=c&&100>=c)return 100/this.resizeDuration;if(100=c)return 150/this.resizeDuration;if(200=c)return 200/this.resizeDuration;if(300=c)return 250/this.resizeDuration;if(400=c)return 300/this.resizeDuration;if(500=c)return 350/this.resizeDuration;if(600=c)return 400/this.resizeDuration;if(700=this.ieVersion?10:5,e=this.isMobile()?20:e,e="lbIframe"==b?100:"lbOverlay"==b?2*e:e;else if(7== this.ieVersion||8==this.ieVersion)e=10;a.style.opacity=d/100;a.style.filter="alpha(opacity\x3d"+d+")";if(100<=d&&("lbImage"==b||"lbIframe"==b)){try{a.style.removeAttribute("filter")}catch(g){}this.fixBottomPadding()}else if(d>=this.maxOpacity&&"lbOverlay"==b){for(b=0;b=d){try{this.isEmpty(e)||(g.style.display=e),this.isEmpty(a)||(g.style.visibility= a)}catch(f){}if("lbOverlay"==b)this.overlayLoaded=!1,this.isLyteframe&&(this.doc.$("lbIframe").src="about:blank",this.initialize());else for(b=0;b=c?c-b:d:b>c&&(b-=b-d<=c?b-c:d);this.resizeWTimerArray[this.resizeWTimerCount++]=setTimeout("$lb.resizeW('"+a+"', "+b+", "+c+", "+d+", "+e+")",e);if(parseInt(g.style.width)==c){this.wDone=!0;for(a=0;a=c?c-b:d:b>c&&(b-=b-d<=c?b-c:d);this.resizeHTimerArray[this.resizeHTimerCount++]=setTimeout("$lb.resizeH('"+a+"', "+b+", "+c+", "+d+", "+(e+0.02)+")",e+0.02);if(parseInt(g.style.height)==c){this.hDone=!0;for(a=0;athis.doc.body.offsetHeight?(a=this.doc.body.scrollWidth,b=this.doc.body.scrollHeight):(a=this.doc.getElementsByTagName("html").item(0).offsetWidth,b=this.doc.getElementsByTagName("html").item(0).offsetHeight,a=aa););};Lytebox.prototype.combine=function(a,b){for(var c=[],d=0;d=this.getQuicktimeVersion()&&(d='\x3cdiv style\x3d"padding:1em;"\x3e\x3ch2\x3eQUICKTIME PLAYER\x3c/h2\x3e\x3cp\x3eContent on this page requires a newer version of QuickTime. Please click the image link below to download and install the latest version.\x3c/p\x3e\x3cp\x3e\x3ca href\x3d"http://www.apple.com/quicktime/" target\x3d"_blank"\x3e\x3cimg src\x3d"http://images.apple.com/about/webbadges/images/qt7badge_getQTfreeDownload.gif" alt\x3d"Get QuickTime" /\x3e\x3c/a\x3e\x3c/p\x3e\x3c/div\x3e'); break;case ".avi":case ".mpg":case ".mpeg":case ".wmv":d='\x3cobject classid\x3d"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width\x3d"'+a+'" height\x3d"'+b+'" codebase\x3d"'+e+'"\x3e\x3cparam name\x3d"src" value\x3d"'+c+'"\x3e\x3cparam name\x3d"autoplay" value\x3d"'+g+'"\x3e\x3cparam name\x3d"loop" value\x3d"'+f+'"\x3e\x3cparam name\x3d"controller" value\x3d"true"\x3e\x3cobject type\x3d"video/quicktime" data\x3d"'+c+'" width\x3d"'+a+'" height\x3d"'+b+'"\x3e\x3cparam name\x3d"controller" value\x3d"false"\x3e\x3cparam name\x3d"autoplay" value\x3d"'+ g+'"\x3e\x3cparam name\x3d"loop" value\x3d"'+f+'"\x3e\x3c/object\x3e\x3c/object\x3e';break;case ".swf":d='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width\x3d"'+a+'" height\x3d"'+b+'" codebase\x3d"'+e+'"\x3e\x3cparam name\x3d"movie" value\x3d"'+c+'"\x3e\x3cparam name\x3d"quality" value\x3d"high"\x3e\x3cparam name\x3d"wmode" value\x3d"opaque"\x3e\x3c!--[if !IE]\x3e--\x3e\x3cobject type\x3d"application/x-shockwave-flash" data\x3d"'+c+'" width\x3d"'+a+'" height\x3d"'+b+'"\x3e\x3c!--\x3c![endif]--\x3e\x3cparam name\x3d"quality" value\x3d"high"\x3e\x3cparam name\x3d"wmode" value\x3d"opaque"\x3e\x3cdiv style\x3d"padding:1em;"\x3e\x3ch2\x3eFLASH PLAYER\x3c/h2\x3e\x3cp\x3eContent on this page requires a newer version of Adobe Flash Player. Please click the image link below to download and install the latest version.\x3c/p\x3e\x3cp\x3e\x3ca href\x3d"http://www.adobe.com/go/getflashplayer" target\x3d"_blank"\x3e\x3cimg src\x3d"http://www.adobe.com/macromedia/style_guide/images/160x41_Get_Flash_Player.jpg" alt\x3d"Get Adobe Flash player" /\x3e\x3c/a\x3e\x3c/p\x3e\x3c/div\x3e\x3c!--[if !IE]\x3e--\x3e\x3c/object\x3e\x3c!--\x3c![endif]--\x3e\x3c/object\x3e'}return d}; Lytebox.prototype.getQuicktimeVersion=function(){var a=navigator.userAgent.toLowerCase(),b=-1;if(null!=navigator.plugins&&0=h&&b<=l:b>h&&b=h&&d.length<=l;break;case "phone":b=/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/.test(d);break;case "notempty":b=!this.isEmpty(d);break;case "ssn":b=/^[0-9]{3}\-?[0-9]{2}\-?[0-9]{4}$/.test(d);break;case "url":b=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb""'']))/i.test(d); break;case "zip":b=/^\d{5}$|^\d{5}-\d{4}$/.test(d)}else b=g.test(d);return b}; Lytebox.prototype.ajax=function(a){var b=this.http.length,c=this.getRequestObject();this.http[b]=c;a.index=b;a.method=/get|post/i.test(a.method)?a.method:"get";a.cache=/true|false/.test(a.cache)?"true"==a.cache||a.cache:!0;!this.isEmpty(a.timeout)&&/^\d+$/.test(a.timeout)&&(a.timerId=setTimeout("$lb.http["+b+"].abort()",a.timeout));c.onreadystatechange=function(){if(4==c.readyState&&200==c.status){if(document.getElementById(a.updateId))try{document.getElementById(a.updateId).innerHTML=c.responseText}catch(b){alert(b.description)}"function"=== typeof a.success&&a.success(c);window.clearTimeout(a.timerId);$lb.http[a.index]=null}else 4==c.readyState&&200!=c.status&&("function"===typeof a.fail&&a.fail(c),window.clearTimeout(a.timerId),$lb.http[a.index]=null)};if("post"==a.method.toLowerCase()){var b=document.getElementById(a.form),d=/true|false/.test(a.stripTags)?"true"==a.stripTags||a.stripTags:!1,b=null==b?this.serialize({name:a.form,stripTags:d}):this.serialize({element:b,stripTags:d}),d=a.cache?"":(/\&/.test(b)?"\x26":"")+(new Date).getTime(); c.open("post",a.url,!0);c.setRequestHeader("Content-type","application/x-www-form-urlencoded");c.send(b+d)}else d=a.cache?"":(/\?/.test(a.url)?"\x26":"?")+(new Date).getTime(),c.open("get",a.url+d,!0),c.send()}; Lytebox.prototype.serialize=function(a){var b=sValue="",c=/true|false/.test(a.stripTags)?"true"==a.stripTags||a.stripTags:!1,d=this.isEmpty(a.id)?this.isEmpty(a.element)?null:a.element:document.getElementById(a.id);if(null==d)for(var e=0;e]+)>)/ig,"")}b.value=String(b.value).replace(/(<([^>]+)>)/ig,"")};Lytebox.prototype.trim=function(a){var b="";try{b=this.isEmpty(a.value)?a:a.value}catch(c){b=a}return String(b).replace(/^\s+|\s+$/g,"")}; Lytebox.prototype.capitalize=function(a){return String(a.value?a.value:a).replace(/(^|\s)([a-z])/g,function(a,c,d){return c+d.toUpperCase()})};Lytebox.prototype.hasClass=function(a){var b=this.isEmpty(a.name)?"":a.name;a=this.isEmpty(a.id)?this.isEmpty(a.element)?null:a.element:document.getElementById(a.id);return RegExp("(\\s|^)"+b+"(\\s|$)").test(a.className)}; Lytebox.prototype.addClass=function(a){var b=this.isEmpty(a.name)?"":a.name;a=this.isEmpty(a.id)?this.isEmpty(a.element)?null:a.element:document.getElementById(a.id);for(var b=b.split(" "),c=0;c