Array.prototype.removeDuplicates=function(){for(var A=1;
A<this.length;
A++){if(this[A][0]==this[A-1][0]){this.splice(A,1)
}}};
Array.prototype.empty=function(){for(var A=0;
A<=this.length;
A++){this.shift()
}};
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")
};
function LyteBox(){this.theme="grey";
this.hideFlash=true;
this.outerBorder=true;
this.resizeSpeed=8;
this.maxOpacity=80;
this.navType=1;
this.autoResize=true;
this.doAnimations=true;
this.borderSize=12;
this.slideInterval=4000;
this.showNavigation=true;
this.showClose=true;
this.showDetails=true;
this.showPlayPause=true;
this.autoEnd=true;
this.pauseOnNextClick=false;
this.pauseOnPrevClick=true;
if(this.resizeSpeed>10){this.resizeSpeed=10
}if(this.resizeSpeed<1){resizeSpeed=1
}this.resizeDuration=(11-this.resizeSpeed)*0.15;
this.resizeWTimerArray=new Array();
this.resizeWTimerCount=0;
this.resizeHTimerArray=new Array();
this.resizeHTimerCount=0;
this.showContentTimerArray=new Array();
this.showContentTimerCount=0;
this.overlayTimerArray=new Array();
this.overlayTimerCount=0;
this.imageTimerArray=new Array();
this.imageTimerCount=0;
this.timerIDArray=new Array();
this.timerIDCount=0;
this.slideshowIDArray=new Array();
this.slideshowIDCount=0;
this.imageArray=new Array();
this.activeImage=null;
this.slideArray=new Array();
this.activeSlide=null;
this.frameArray=new Array();
this.activeFrame=null;
this.checkFrame();
this.isSlideshow=false;
this.isLyteframe=false;
/*@cc_on
		/*@if (@_jscript)
			this.ie = (document.all && !window.opera) ? true : false;
		/*@else @*/
this.ie=false;
/*@end
	@*/
this.ie7=(this.ie&&window.XMLHttpRequest);
this.initialize()
}LyteBox.prototype.initialize=function(){this.updateLyteboxItems();
var V=this.doc.getElementsByTagName("body").item(0);
if(this.doc.getElementById("lbOverlay")){V.removeChild(this.doc.getElementById("lbOverlay"));
V.removeChild(this.doc.getElementById("lbMain"))
}var I=this.doc.createElement("div");
I.setAttribute("id","lbOverlay");
I.setAttribute((this.ie?"className":"class"),this.theme);
if((this.ie&&!this.ie7)||(this.ie7&&this.doc.compatMode=="BackCompat")){I.style.position="absolute"
}I.style.display="none";
V.appendChild(I);
var A=this.doc.createElement("div");
A.setAttribute("id","lbMain");
A.style.display="none";
V.appendChild(A);
var P=this.doc.createElement("div");
P.setAttribute("id","lbOuterContainer");
P.setAttribute((this.ie?"className":"class"),this.theme);
A.appendChild(P);
var G=this.doc.createElement("div");
G.setAttribute("id","lbIframeContainer");
G.style.display="none";
P.appendChild(G);
var T=this.doc.createElement("iframe");
T.setAttribute("id","lbIframe");
T.setAttribute("name","lbIframe");
T.style.display="none";
G.appendChild(T);
var N=this.doc.createElement("div");
N.setAttribute("id","lbImageContainer");
P.appendChild(N);
var E=this.doc.createElement("img");
E.setAttribute("id","lbImage");
N.appendChild(E);
var S=this.doc.createElement("div");
S.setAttribute("id","lbLoading");
P.appendChild(S);
var M=this.doc.createElement("div");
M.setAttribute("id","lbDetailsContainer");
M.setAttribute((this.ie?"className":"class"),this.theme);
A.appendChild(M);
var L=this.doc.createElement("div");
L.setAttribute("id","lbDetailsData");
L.setAttribute((this.ie?"className":"class"),this.theme);
M.appendChild(L);
var J=this.doc.createElement("div");
J.setAttribute("id","lbDetails");
L.appendChild(J);
var K=this.doc.createElement("span");
K.setAttribute("id","lbCaption");
J.appendChild(K);
var R=this.doc.createElement("div");
R.setAttribute("id","lbHoverNav");
N.appendChild(R);
var Q=this.doc.createElement("div");
Q.setAttribute("id","lbBottomNav");
L.appendChild(Q);
var B=this.doc.createElement("a");
B.setAttribute("id","lbPrev");
B.setAttribute((this.ie?"className":"class"),this.theme);
B.setAttribute("href","#");
R.appendChild(B);
var C=this.doc.createElement("a");
C.setAttribute("id","lbNext");
C.setAttribute((this.ie?"className":"class"),this.theme);
C.setAttribute("href","#");
R.appendChild(C);
var D=this.doc.createElement("span");
D.setAttribute("id","lbNumberDisplay");
J.appendChild(D);
var F=this.doc.createElement("span");
F.setAttribute("id","lbNavDisplay");
F.style.display="none";
J.appendChild(F);
var U=this.doc.createElement("a");
U.setAttribute("id","lbClose");
U.setAttribute((this.ie?"className":"class"),this.theme);
U.setAttribute("href","#");
Q.appendChild(U);
var O=this.doc.createElement("a");
O.setAttribute("id","lbPause");
O.setAttribute((this.ie?"className":"class"),this.theme);
O.setAttribute("href","#");
O.style.display="none";
Q.appendChild(O);
var H=this.doc.createElement("a");
H.setAttribute("id","lbPlay");
H.setAttribute((this.ie?"className":"class"),this.theme);
H.setAttribute("href","#");
H.style.display="none";
Q.appendChild(H)
};
LyteBox.prototype.updateLyteboxItems=function(){var C=(this.isFrame)?window.parent.frames[window.name].document.getElementsByTagName("a"):document.getElementsByTagName("a");
for(var B=0;
B<C.length;
B++){var A=C[B];
var D=String(A.getAttribute("rel"));
if(A.getAttribute("href")){if(D.toLowerCase().match("lytebox")){A.onclick=function(){myLytebox.start(this,false,false);
return false
}
}else{if(D.toLowerCase().match("lyteshow")){A.onclick=function(){myLytebox.start(this,true,false);
return false
}
}else{if(D.toLowerCase().match("lyteframe")){A.onclick=function(){myLytebox.start(this,false,true);
return false
}
}}}}}};
LyteBox.prototype.start=function(D,G,B){if(this.ie&&!this.ie7){this.toggleSelects("hide")
}if(this.hideFlash){this.toggleFlash("hide")
}this.isLyteframe=(B?true:false);
var I=this.getPageSize();
var J=this.doc.getElementById("lbOverlay");
var K=this.doc.getElementsByTagName("body").item(0);
J.style.height=I[1]+"px";
J.style.display="";
this.appear("lbOverlay",(this.doAnimations?0:this.maxOpacity));
var A=(this.isFrame)?window.parent.frames[window.name].document.getElementsByTagName("a"):document.getElementsByTagName("a");
if(this.isLyteframe){this.frameArray=[];
this.frameNum=0;
if((D.getAttribute("rel")=="lyteframe")){var H=D.getAttribute("rev");
this.frameArray.push(new Array(D.getAttribute("href"),D.getAttribute("title"),(H==null||H==""?"width: 400px; height: 400px; scrolling: auto;":H)))
}else{if(D.getAttribute("rel").indexOf("lyteframe")!=-1){for(var F=0;
F<A.length;
F++){var E=A[F];
if(E.getAttribute("href")&&(E.getAttribute("rel")==D.getAttribute("rel"))){var H=E.getAttribute("rev");
this.frameArray.push(new Array(E.getAttribute("href"),E.getAttribute("title"),(H==null||H==""?"width: 400px; height: 400px; scrolling: auto;":H)))
}}this.frameArray.removeDuplicates();
while(this.frameArray[this.frameNum][0]!=D.getAttribute("href")){this.frameNum++
}}}}else{this.imageArray=[];
this.imageNum=0;
this.slideArray=[];
this.slideNum=0;
if((D.getAttribute("rel")=="lytebox")){this.imageArray.push(new Array(D.getAttribute("href"),D.getAttribute("title")))
}else{if(D.getAttribute("rel").indexOf("lytebox")!=-1){for(var F=0;
F<A.length;
F++){var E=A[F];
if(E.getAttribute("href")&&(E.getAttribute("rel")==D.getAttribute("rel"))){this.imageArray.push(new Array(E.getAttribute("href"),E.getAttribute("title")))
}}this.imageArray.removeDuplicates();
while(this.imageArray[this.imageNum][0]!=D.getAttribute("href")){this.imageNum++
}}if(D.getAttribute("rel").indexOf("lyteshow")!=-1){for(var F=0;
F<A.length;
F++){var E=A[F];
if(E.getAttribute("href")&&(E.getAttribute("rel")==D.getAttribute("rel"))){this.slideArray.push(new Array(E.getAttribute("href"),E.getAttribute("title")))
}}this.slideArray.removeDuplicates();
while(this.slideArray[this.slideNum][0]!=D.getAttribute("href")){this.slideNum++
}}}}var C=this.doc.getElementById("lbMain");
C.style.top=(this.getPageScroll()+(I[3]/15))+"px";
C.style.display="";
if(!this.outerBorder){this.doc.getElementById("lbOuterContainer").style.border="none";
this.doc.getElementById("lbDetailsContainer").style.border="none"
}else{this.doc.getElementById("lbOuterContainer").style.borderBottom="";
this.doc.getElementById("lbOuterContainer").setAttribute((this.ie?"className":"class"),this.theme)
}this.doc.getElementById("lbOverlay").onclick=function(){myLytebox.end();
return false
};
this.doc.getElementById("lbMain").onclick=function(L){var L=L;
if(!L){if(window.parent.frames[window.name]&&(parent.document.getElementsByTagName("frameset").length<=0)){L=window.parent.window.event
}else{L=window.event
}}var M=(L.target?L.target.id:L.srcElement.id);
if(M=="lbMain"){myLytebox.end();
return false
}};
this.doc.getElementById("lbClose").onclick=function(){myLytebox.end();
return false
};
this.doc.getElementById("lbPause").onclick=function(){myLytebox.togglePlayPause("lbPause","lbPlay");
return false
};
this.doc.getElementById("lbPlay").onclick=function(){myLytebox.togglePlayPause("lbPlay","lbPause");
return false
};
this.isSlideshow=G;
this.isPaused=(this.slideNum!=0?true:false);
if(this.isSlideshow&&this.showPlayPause&&this.isPaused){this.doc.getElementById("lbPlay").style.display="";
this.doc.getElementById("lbPause").style.display="none"
}if(this.isLyteframe){this.changeContent(this.frameNum)
}else{if(this.isSlideshow){this.changeContent(this.slideNum)
}else{this.changeContent(this.imageNum)
}}};
LyteBox.prototype.changeContent=function(B){if(this.isSlideshow){for(var D=0;
D<this.slideshowIDCount;
D++){window.clearTimeout(this.slideshowIDArray[D])
}}this.activeImage=this.activeSlide=this.activeFrame=B;
if(!this.outerBorder){this.doc.getElementById("lbOuterContainer").style.border="none";
this.doc.getElementById("lbDetailsContainer").style.border="none"
}else{this.doc.getElementById("lbOuterContainer").style.borderBottom="";
this.doc.getElementById("lbOuterContainer").setAttribute((this.ie?"className":"class"),this.theme)
}this.doc.getElementById("lbLoading").style.display="";
this.doc.getElementById("lbImage").style.display="none";
this.doc.getElementById("lbIframe").style.display="none";
this.doc.getElementById("lbPrev").style.display="none";
this.doc.getElementById("lbNext").style.display="none";
this.doc.getElementById("lbIframeContainer").style.display="none";
this.doc.getElementById("lbDetailsContainer").style.display="none";
this.doc.getElementById("lbNumberDisplay").style.display="none";
if(this.navType==2||this.isLyteframe){object=this.doc.getElementById("lbNavDisplay");
object.innerHTML='&nbsp;&nbsp;&nbsp;<span id="lbPrev2_Off" style="display: none;" class="'+this.theme+'">&laquo; prev</span><a href="#" id="lbPrev2" class="'+this.theme+'" style="display: none;">&laquo; prev</a> <b id="lbSpacer" class="'+this.theme+'">||</b> <span id="lbNext2_Off" style="display: none;" class="'+this.theme+'">next &raquo;</span><a href="#" id="lbNext2" class="'+this.theme+'" style="display: none;">next &raquo;</a>';
object.style.display="none"
}if(this.isLyteframe){var G=myLytebox.doc.getElementById("lbIframe");
var H=this.frameArray[this.activeFrame][2];
var C=H.split(";");
for(var D=0;
D<C.length;
D++){if(C[D].indexOf("width:")>=0){var A=C[D].replace("width:","");
G.width=A.trim()
}else{if(C[D].indexOf("height:")>=0){var F=C[D].replace("height:","");
G.height=F.trim()
}else{if(C[D].indexOf("scrolling:")>=0){var E=C[D].replace("scrolling:","");
G.scrolling=E.trim()
}else{if(C[D].indexOf("border:")>=0){}}}}}this.resizeContainer(parseInt(G.width),parseInt(G.height))
}else{imgPreloader=new Image();
imgPreloader.onload=function(){var L=imgPreloader.width;
var J=imgPreloader.height;
if(myLytebox.autoResize){var M=myLytebox.getPageSize();
var I=M[2]-150;
var N=M[3]-150;
if(L>I){J=Math.round(J*(I/L));
L=I;
if(J>N){L=Math.round(L*(N/J));
J=N
}}else{if(J>N){L=Math.round(L*(N/J));
J=N;
if(L>I){J=Math.round(J*(I/L));
L=I
}}}}var K=myLytebox.doc.getElementById("lbImage");
K.src=(myLytebox.isSlideshow?myLytebox.slideArray[myLytebox.activeSlide][0]:myLytebox.imageArray[myLytebox.activeImage][0]);
K.width=L;
K.height=J;
myLytebox.resizeContainer(L,J);
imgPreloader.onload=function(){}
};
imgPreloader.src=(this.isSlideshow?this.slideArray[this.activeSlide][0]:this.imageArray[this.activeImage][0])
}};
LyteBox.prototype.resizeContainer=function(C,A){this.wCur=this.doc.getElementById("lbOuterContainer").offsetWidth;
this.hCur=this.doc.getElementById("lbOuterContainer").offsetHeight;
this.xScale=((C+(this.borderSize*2))/this.wCur)*100;
this.yScale=((A+(this.borderSize*2))/this.hCur)*100;
var D=(this.wCur-this.borderSize*2)-C;
var B=(this.hCur-this.borderSize*2)-A;
if(!(B==0)){this.hDone=false;
this.resizeH("lbOuterContainer",this.hCur,A+this.borderSize*2,this.getPixelRate(this.hCur,A))
}else{this.hDone=true
}if(!(D==0)){this.wDone=false;
this.resizeW("lbOuterContainer",this.wCur,C+this.borderSize*2,this.getPixelRate(this.wCur,C))
}else{this.wDone=true
}if((B==0)&&(D==0)){if(this.ie){this.pause(250)
}else{this.pause(100)
}}this.doc.getElementById("lbPrev").style.height=A+"px";
this.doc.getElementById("lbNext").style.height=A+"px";
this.doc.getElementById("lbDetailsContainer").style.width=(C+(this.borderSize*2)+(this.ie&&this.doc.compatMode=="BackCompat"&&this.outerBorder?2:0))+"px";
this.showContent()
};
LyteBox.prototype.showContent=function(){if(this.wDone&&this.hDone){for(var A=0;
A<this.showContentTimerCount;
A++){window.clearTimeout(this.showContentTimerArray[A])
}if(this.outerBorder){this.doc.getElementById("lbOuterContainer").style.borderBottom="none"
}this.doc.getElementById("lbLoading").style.display="none";
if(this.isLyteframe){this.doc.getElementById("lbIframe").style.display="";
this.appear("lbIframe",(this.doAnimations?0:100))
}else{this.doc.getElementById("lbImage").style.display="";
this.appear("lbImage",(this.doAnimations?0:100));
this.preloadNeighborImages()
}if(this.isSlideshow){if(this.activeSlide==(this.slideArray.length-1)){if(this.autoEnd){this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("myLytebox.end('slideshow')",this.slideInterval)
}}else{if(!this.isPaused){this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("myLytebox.changeContent("+(this.activeSlide+1)+")",this.slideInterval)
}}this.doc.getElementById("lbHoverNav").style.display=(this.showNavigation&&this.navType==1?"":"none");
this.doc.getElementById("lbClose").style.display=(this.showClose?"":"none");
this.doc.getElementById("lbDetails").style.display=(this.showDetails?"":"none");
this.doc.getElementById("lbPause").style.display=(this.showPlayPause&&!this.isPaused?"":"none");
this.doc.getElementById("lbPlay").style.display=(this.showPlayPause&&!this.isPaused?"none":"");
this.doc.getElementById("lbNavDisplay").style.display=(this.showNavigation&&this.navType==2?"":"none")
}else{this.doc.getElementById("lbHoverNav").style.display=(this.navType==1&&!this.isLyteframe?"":"none");
if((this.navType==2&&!this.isLyteframe&&this.imageArray.length>1)||(this.frameArray.length>1&&this.isLyteframe)){this.doc.getElementById("lbNavDisplay").style.display=""
}else{this.doc.getElementById("lbNavDisplay").style.display="none"
}this.doc.getElementById("lbClose").style.display="";
this.doc.getElementById("lbDetails").style.display="";
this.doc.getElementById("lbPause").style.display="none";
this.doc.getElementById("lbPlay").style.display="none"
}this.doc.getElementById("lbImageContainer").style.display=(this.isLyteframe?"none":"");
this.doc.getElementById("lbIframeContainer").style.display=(this.isLyteframe?"":"none");
try{this.doc.getElementById("lbIframe").src=this.frameArray[this.activeFrame][0]
}catch(B){}}else{this.showContentTimerArray[this.showContentTimerCount++]=setTimeout("myLytebox.showContent()",200)
}};
LyteBox.prototype.updateDetails=function(){var object=this.doc.getElementById("lbCaption");
var sTitle=(this.isSlideshow?this.slideArray[this.activeSlide][1]:(this.isLyteframe?this.frameArray[this.activeFrame][1]:this.imageArray[this.activeImage][1]));
object.style.display="";
object.innerHTML=(sTitle==null?"":sTitle);
this.updateNav();
this.doc.getElementById("lbDetailsContainer").style.display="";
object=this.doc.getElementById("lbNumberDisplay");
if(this.isSlideshow&&this.slideArray.length>1){object.style.display="";
object.innerHTML="Image "+eval(this.activeSlide+1)+" of "+this.slideArray.length;
this.doc.getElementById("lbNavDisplay").style.display=(this.navType==2&&this.showNavigation?"":"none")
}else{if(this.imageArray.length>1&&!this.isLyteframe){object.style.display="";
object.innerHTML="Image "+eval(this.activeImage+1)+" of "+this.imageArray.length;
this.doc.getElementById("lbNavDisplay").style.display=(this.navType==2?"":"none")
}else{if(this.frameArray.length>1&&this.isLyteframe){object.style.display="";
object.innerHTML="Page "+eval(this.activeFrame+1)+" of "+this.frameArray.length;
this.doc.getElementById("lbNavDisplay").style.display=""
}else{this.doc.getElementById("lbNavDisplay").style.display="none"
}}}this.appear("lbDetailsContainer",(this.doAnimations?0:100))
};
LyteBox.prototype.updateNav=function(){if(this.isSlideshow){if(this.activeSlide!=0){var A=(this.navType==2?this.doc.getElementById("lbPrev2"):this.doc.getElementById("lbPrev"));
A.style.display="";
A.onclick=function(){if(myLytebox.pauseOnPrevClick){myLytebox.togglePlayPause("lbPause","lbPlay")
}myLytebox.changeContent(myLytebox.activeSlide-1);
return false
}
}else{if(this.navType==2){this.doc.getElementById("lbPrev2_Off").style.display=""
}}if(this.activeSlide!=(this.slideArray.length-1)){var A=(this.navType==2?this.doc.getElementById("lbNext2"):this.doc.getElementById("lbNext"));
A.style.display="";
A.onclick=function(){if(myLytebox.pauseOnNextClick){myLytebox.togglePlayPause("lbPause","lbPlay")
}myLytebox.changeContent(myLytebox.activeSlide+1);
return false
}
}else{if(this.navType==2){this.doc.getElementById("lbNext2_Off").style.display=""
}}}else{if(this.isLyteframe){if(this.activeFrame!=0){var A=this.doc.getElementById("lbPrev2");
A.style.display="";
A.onclick=function(){myLytebox.changeContent(myLytebox.activeFrame-1);
return false
}
}else{this.doc.getElementById("lbPrev2_Off").style.display=""
}if(this.activeFrame!=(this.frameArray.length-1)){var A=this.doc.getElementById("lbNext2");
A.style.display="";
A.onclick=function(){myLytebox.changeContent(myLytebox.activeFrame+1);
return false
}
}else{this.doc.getElementById("lbNext2_Off").style.display=""
}}else{if(this.activeImage!=0){var A=(this.navType==2?this.doc.getElementById("lbPrev2"):this.doc.getElementById("lbPrev"));
A.style.display="";
A.onclick=function(){myLytebox.changeContent(myLytebox.activeImage-1);
return false
}
}else{if(this.navType==2){this.doc.getElementById("lbPrev2_Off").style.display=""
}}if(this.activeImage!=(this.imageArray.length-1)){var A=(this.navType==2?this.doc.getElementById("lbNext2"):this.doc.getElementById("lbNext"));
A.style.display="";
A.onclick=function(){myLytebox.changeContent(myLytebox.activeImage+1);
return false
}
}else{if(this.navType==2){this.doc.getElementById("lbNext2_Off").style.display=""
}}}}this.enableKeyboardNav()
};
LyteBox.prototype.enableKeyboardNav=function(){document.onkeydown=this.keyboardAction
};
LyteBox.prototype.disableKeyboardNav=function(){document.onkeydown=""
};
LyteBox.prototype.keyboardAction=function(B){var A=key=escape=null;
A=(B==null)?event.keyCode:B.which;
key=String.fromCharCode(A).toLowerCase();
escape=(B==null)?27:B.DOM_VK_ESCAPE;
if((key=="x")||(key=="c")||(A==escape)){myLytebox.end()
}else{if((key=="p")||(A==37)){if(myLytebox.isSlideshow){if(myLytebox.activeSlide!=0){myLytebox.disableKeyboardNav();
myLytebox.changeContent(myLytebox.activeSlide-1)
}}else{if(myLytebox.isLyteframe){if(myLytebox.activeFrame!=0){myLytebox.disableKeyboardNav();
myLytebox.changeContent(myLytebox.activeFrame-1)
}}else{if(myLytebox.activeImage!=0){myLytebox.disableKeyboardNav();
myLytebox.changeContent(myLytebox.activeImage-1)
}}}}else{if((key=="n")||(A==39)){if(myLytebox.isSlideshow){if(myLytebox.activeSlide!=(myLytebox.slideArray.length-1)){myLytebox.disableKeyboardNav();
myLytebox.changeContent(myLytebox.activeSlide+1)
}}else{if(myLytebox.isLyteframe){if(myLytebox.activeFrame!=(myLytebox.frameArray.length-1)){myLytebox.disableKeyboardNav();
myLytebox.changeContent(myLytebox.activeFrame+1)
}}else{if(myLytebox.activeImage!=(myLytebox.imageArray.length-1)){myLytebox.disableKeyboardNav();
myLytebox.changeContent(myLytebox.activeImage+1)
}}}}}}};
LyteBox.prototype.preloadNeighborImages=function(){if(this.isSlideshow){if((this.slideArray.length-1)>this.activeSlide){preloadNextImage=new Image();
preloadNextImage.src=this.slideArray[this.activeSlide+1][0]
}if(this.activeSlide>0){preloadPrevImage=new Image();
preloadPrevImage.src=this.slideArray[this.activeSlide-1][0]
}}else{if((this.imageArray.length-1)>this.activeImage){preloadNextImage=new Image();
preloadNextImage.src=this.imageArray[this.activeImage+1][0]
}if(this.activeImage>0){preloadPrevImage=new Image();
preloadPrevImage.src=this.imageArray[this.activeImage-1][0]
}}};
LyteBox.prototype.togglePlayPause=function(A,C){if(this.isSlideshow&&A=="lbPause"){for(var B=0;
B<this.slideshowIDCount;
B++){window.clearTimeout(this.slideshowIDArray[B])
}}this.doc.getElementById(A).style.display="none";
this.doc.getElementById(C).style.display="";
if(A=="lbPlay"){this.isPaused=false;
if(this.activeSlide==(this.slideArray.length-1)){this.end()
}else{this.changeContent(this.activeSlide+1)
}}else{this.isPaused=true
}};
LyteBox.prototype.end=function(A){var C=(A=="slideshow"?false:true);
if(this.isSlideshow&&this.isPaused&&!C){return 
}this.disableKeyboardNav();
this.doc.getElementById("lbMain").style.display="none";
this.fade("lbOverlay",(this.doAnimations?this.maxOpacity:0));
this.toggleSelects("visible");
if(this.hideFlash){this.toggleFlash("visible")
}if(this.isSlideshow){for(var B=0;
B<this.slideshowIDCount;
B++){window.clearTimeout(this.slideshowIDArray[B])
}}if(this.isLyteframe){this.initialize()
}};
LyteBox.prototype.checkFrame=function(){if(window.parent.frames[window.name]&&(parent.document.getElementsByTagName("frameset").length<=0)){this.isFrame=true;
this.lytebox="window.parent."+window.name+".myLytebox";
this.doc=parent.document
}else{this.isFrame=false;
this.lytebox="myLytebox";
this.doc=document
}};
LyteBox.prototype.getPixelRate=function(C,A){var B=(A>C)?A-C:C-A;
if(B>=0&&B<=100){return 10
}if(B>100&&B<=200){return 15
}if(B>200&&B<=300){return 20
}if(B>300&&B<=400){return 25
}if(B>400&&B<=500){return 30
}if(B>500&&B<=600){return 35
}if(B>600&&B<=700){return 40
}if(B>700){return 45
}};
LyteBox.prototype.appear=function(E,B){var A=this.doc.getElementById(E).style;
A.opacity=(B/100);
A.MozOpacity=(B/100);
A.KhtmlOpacity=(B/100);
A.filter="alpha(opacity="+(B+10)+")";
if(B==100&&(E=="lbImage"||E=="lbIframe")){try{A.removeAttribute("filter")
}catch(D){}this.updateDetails()
}else{if(B>=this.maxOpacity&&E=="lbOverlay"){for(var C=0;
C<this.overlayTimerCount;
C++){window.clearTimeout(this.overlayTimerArray[C])
}return 
}else{if(B>=100&&E=="lbDetailsContainer"){try{A.removeAttribute("filter")
}catch(D){}for(var C=0;
C<this.imageTimerCount;
C++){window.clearTimeout(this.imageTimerArray[C])
}this.doc.getElementById("lbOverlay").style.height=this.getPageSize()[1]+"px"
}else{if(E=="lbOverlay"){this.overlayTimerArray[this.overlayTimerCount++]=setTimeout("myLytebox.appear('"+E+"', "+(B+20)+")",1)
}else{this.imageTimerArray[this.imageTimerCount++]=setTimeout("myLytebox.appear('"+E+"', "+(B+10)+")",1)
}}}}};
LyteBox.prototype.fade=function(D,B){var A=this.doc.getElementById(D).style;
A.opacity=(B/100);
A.MozOpacity=(B/100);
A.KhtmlOpacity=(B/100);
A.filter="alpha(opacity="+B+")";
if(B<=0){try{A.display="none"
}catch(C){}}else{if(D=="lbOverlay"){this.overlayTimerArray[this.overlayTimerCount++]=setTimeout("myLytebox.fade('"+D+"', "+(B-20)+")",1)
}else{this.timerIDArray[this.timerIDCount++]=setTimeout("myLytebox.fade('"+D+"', "+(B-10)+")",1)
}}};
LyteBox.prototype.resizeW=function(B,E,D,I,F){if(!this.hDone){this.resizeWTimerArray[this.resizeWTimerCount++]=setTimeout("myLytebox.resizeW('"+B+"', "+E+", "+D+", "+I+")",100);
return 
}var G=this.doc.getElementById(B);
var C=F?F:(this.resizeDuration/2);
var A=(this.doAnimations?E:D);
G.style.width=(A)+"px";
if(A<D){A+=(A+I>=D)?(D-A):I
}else{if(A>D){A-=(A-I<=D)?(A-D):I
}}this.resizeWTimerArray[this.resizeWTimerCount++]=setTimeout("myLytebox.resizeW('"+B+"', "+A+", "+D+", "+I+", "+(C+0.02)+")",C+0.02);
if(parseInt(G.style.width)==D){this.wDone=true;
for(var H=0;
H<this.resizeWTimerCount;
H++){window.clearTimeout(this.resizeWTimerArray[H])
}}};
LyteBox.prototype.resizeH=function(A,I,H,G,C){var B=C?C:(this.resizeDuration/2);
var D=this.doc.getElementById(A);
var F=(this.doAnimations?I:H);
D.style.height=(F)+"px";
if(F<H){F+=(F+G>=H)?(H-F):G
}else{if(F>H){F-=(F-G<=H)?(F-H):G
}}this.resizeHTimerArray[this.resizeHTimerCount++]=setTimeout("myLytebox.resizeH('"+A+"', "+F+", "+H+", "+G+", "+(B+0.02)+")",B+0.02);
if(parseInt(D.style.height)==H){this.hDone=true;
for(var E=0;
E<this.resizeHTimerCount;
E++){window.clearTimeout(this.resizeHTimerArray[E])
}}};
LyteBox.prototype.getPageScroll=function(){if(self.pageYOffset){return this.isFrame?parent.pageYOffset:self.pageYOffset
}else{if(this.doc.documentElement&&this.doc.documentElement.scrollTop){return this.doc.documentElement.scrollTop
}else{if(document.body){return this.doc.body.scrollTop
}}}};
LyteBox.prototype.getPageSize=function(){var E,A,C,F;
if(window.innerHeight&&window.scrollMaxY){E=this.doc.scrollWidth;
A=(this.isFrame?parent.innerHeight:self.innerHeight)+(this.isFrame?parent.scrollMaxY:self.scrollMaxY)
}else{if(this.doc.body.scrollHeight>this.doc.body.offsetHeight){E=this.doc.body.scrollWidth;
A=this.doc.body.scrollHeight
}else{E=this.doc.getElementsByTagName("html").item(0).offsetWidth;
A=this.doc.getElementsByTagName("html").item(0).offsetHeight;
E=(E<this.doc.body.offsetWidth)?this.doc.body.offsetWidth:E;
A=(A<this.doc.body.offsetHeight)?this.doc.body.offsetHeight:A
}}if(self.innerHeight){C=(this.isFrame)?parent.innerWidth:self.innerWidth;
F=(this.isFrame)?parent.innerHeight:self.innerHeight
}else{if(document.documentElement&&document.documentElement.clientHeight){C=this.doc.documentElement.clientWidth;
F=this.doc.documentElement.clientHeight
}else{if(document.body){C=this.doc.getElementsByTagName("html").item(0).clientWidth;
F=this.doc.getElementsByTagName("html").item(0).clientHeight;
C=(C==0)?this.doc.body.clientWidth:C;
F=(F==0)?this.doc.body.clientHeight:F
}}}var D=(A<F)?F:A;
var B=(E<C)?C:E;
return new Array(B,D,C,F)
};
LyteBox.prototype.toggleFlash=function(E){var D=this.doc.getElementsByTagName("object");
for(var B=0;
B<D.length;
B++){D[B].style.visibility=(E=="hide")?"hidden":"visible"
}var C=this.doc.getElementsByTagName("embed");
for(var B=0;
B<C.length;
B++){C[B].style.visibility=(E=="hide")?"hidden":"visible"
}if(this.isFrame){for(var B=0;
B<parent.frames.length;
B++){try{D=parent.frames[B].window.document.getElementsByTagName("object");
for(var A=0;
A<D.length;
A++){D[A].style.visibility=(E=="hide")?"hidden":"visible"
}}catch(F){}try{C=parent.frames[B].window.document.getElementsByTagName("embed");
for(var A=0;
A<C.length;
A++){C[A].style.visibility=(E=="hide")?"hidden":"visible"
}}catch(F){}}}};
LyteBox.prototype.toggleSelects=function(D){var C=this.doc.getElementsByTagName("select");
for(var B=0;
B<C.length;
B++){C[B].style.visibility=(D=="hide")?"hidden":"visible"
}if(this.isFrame){for(var B=0;
B<parent.frames.length;
B++){try{C=parent.frames[B].window.document.getElementsByTagName("select");
for(var A=0;
A<C.length;
A++){C[A].style.visibility=(D=="hide")?"hidden":"visible"
}}catch(E){}}}};
LyteBox.prototype.pause=function(B){var A=new Date();
var C=A.getTime()+B;
while(true){A=new Date();
if(A.getTime()>C){return 
}}};
if(window.addEventListener){window.addEventListener("load",initLytebox,false)
}else{if(window.attachEvent){window.attachEvent("onload",initLytebox)
}else{window.onload=function(){initLytebox()
}
}}function initLytebox(){myLytebox=new LyteBox()
};