/*!
 * jQuery Tools v1.2.5 - The missing UI library for the Web
 * 
 * scrollable/scrollable.js
 * scrollable/scrollable.autoscroll.js
 * scrollable/scrollable.navigator.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
function Lytebox(){this.theme="grey",this.innerBorder=!0,this.outerBorder=!0,this.resizeSpeed=8,this.maxOpacity=80,this.borderSize=12,this.__hideObjects=!0,this.__autoResize=!0,this.__doAnimations=!0,this.__forceCloseClick=!1,this.__refreshPage=!1,this.__showPrint=!1,this.__navType=3,this.__width="80%",this.__height="80%",this.__scrollbars="auto",this.__slideInterval=4e3,this.__showNavigation=!1,this.__showClose=!0,this.__showDetails=!0,this.__showPlayPause=!0,this.__autoEnd=!0,this.__pauseOnNextClick=!1,this.__pauseOnPrevClick=!0,this.__loopSlideshow=!1,this.changeTipCursor=!0,this.tipStyle="classic",this.__beforeStart="",this.__afterStart="",this.__beforeEnd="",this.__afterEnd="",this.resizeSpeed>10&&(this.resizeSpeed=10),this.resizeSpeed<1&&(this.resizeSpeed=1),this.resizeDuration=(11-this.resizeSpeed)*.15,this.navTypeHash=new Object,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=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=!1,this.isLyteframe=!1,this.tipSet=!1,this.ie=this.ie6=this.ie7=this.ie8=this.ie9=!1,this.setIEVersion(),this.classAttribute=this.ie&&this.doc.compatMode=="BackCompat"||this.ie6||this.ie7?"className":"class",this.classAttribute=!this.ie||document.documentMode!=8&&document.documentMode!=9?this.classAttribute:"class",this.bodyOnscroll=document.body.onscroll,this.initialize()}function initLytebox(){myLytebox=new Lytebox}(function(a){function b(a,b){var c=parseInt(a.css(b),10);if(c)return c;var d=a[0].currentStyle;return d&&d.width&&parseInt(d.width,10)}function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}function e(b,e){var f=this,g=b.add(f),h=b.children(),i=0,j=e.vertical;d||(d=f),h.length>1&&(h=a(e.items,b)),a.extend(f,{getConf:function(){return e},getIndex:function(){return i},getSize:function(){return f.getItems().size()},getNaviButtons:function(){return m.add(n)},getRoot:function(){return b},getItemWrap:function(){return h},getItems:function(){return h.children(e.item).not("."+e.clonedClass)},move:function(a,b){return f.seekTo(i+a,b)},next:function(a){return f.move(1,a)},prev:function(a){return f.move(-1,a)},begin:function(a){return f.seekTo(0,a)},end:function(a){return f.seekTo(f.getSize()-1,a)},focus:function(){return d=f,f},addItem:function(b){return b=a(b),e.circular?(h.children("."+e.clonedClass+":last").before(b),h.children("."+e.clonedClass+":first").replaceWith(b.clone().addClass(e.clonedClass))):h.append(b),g.trigger("onAddItem",[b]),f},seekTo:function(b,c,k){b.jquery||(b*=1);if(e.circular&&b===0&&i==-1&&c!==0)return f;if(!e.circular&&b<0||b>f.getSize()||b<-1)return f;var l=b;b.jquery?b=f.getItems().index(b):l=f.getItems().eq(b);var m=a.Event("onBeforeSeek");if(!k){g.trigger(m,[b,c]);if(m.isDefaultPrevented()||!l.length)return f}var n=j?{top:-l.position().top}:{left:-l.position().left};return i=b,d=f,c===undefined&&(c=e.speed),h.animate(n,c,e.easing,k||function(){g.trigger("onSeek",[b])}),f}}),a.each(["onBeforeSeek","onSeek","onAddItem"],function(b,c){a.isFunction(e[c])&&a(f).bind(c,e[c]),f[c]=function(b){return b&&a(f).bind(c,b),f}});if(e.circular){var k=f.getItems().slice(-1).clone().prependTo(h),l=f.getItems().eq(1).clone().appendTo(h);k.add(l).addClass(e.clonedClass),f.onBeforeSeek(function(a,b,c){if(!a.isDefaultPrevented()){if(b==-1)return f.seekTo(k,c,function(){f.end(0)}),a.preventDefault();b==f.getSize()&&f.seekTo(l,c,function(){f.begin(0)})}}),f.seekTo(0,0,function(){})}var m=c(b,e.prev).click(function(){f.prev()}),n=c(b,e.next).click(function(){f.next()});!e.circular&&f.getSize()>1&&(f.onBeforeSeek(function(a,b){setTimeout(function(){a.isDefaultPrevented()||(m.toggleClass(e.disabledClass,b<=0),n.toggleClass(e.disabledClass,b>=f.getSize()-1))},1)}),e.initialIndex||m.addClass(e.disabledClass)),e.mousewheel&&a.fn.mousewheel&&b.mousewheel(function(a,b){if(e.mousewheel)return f.move(b<0?1:-1,e.wheelSpeed||50),!1});if(e.touch){var o={};h[0].ontouchstart=function(a){var b=a.touches[0];o.x=b.clientX,o.y=b.clientY},h[0].ontouchmove=function(a){if(a.touches.length==1&&!h.is(":animated")){var b=a.touches[0],c=o.x-b.clientX,d=o.y-b.clientY;f[j&&d>0||!j&&c>0?"next":"prev"](),a.preventDefault()}}}e.keyboard&&a(document).bind("keydown.scrollable",function(b){if(e.keyboard&&!b.altKey&&!b.ctrlKey&&!a(b.target).is(":input")){if(e.keyboard!="static"&&d!=f)return;var c=b.keyCode;if(!(!j||c!=38&&c!=40))return f.move(c==38?-1:1),b.preventDefault();if(!j&&(c==37||c==39))return f.move(c==37?-1:1),b.preventDefault()}}),e.initialIndex&&f.seekTo(e.initialIndex,0,function(){})}a.tools=a.tools||{version:"v1.2.5"},a.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",speed:400,vertical:!1,touch:!0,wheelSpeed:0}};var d;a.fn.scrollable=function(b){var c=this.data("scrollable");return c?c:(b=a.extend({},a.tools.scrollable.conf,b),this.each(function(){c=new e(a(this),b),a(this).data("scrollable",c)}),b.api?c:this)}})(jQuery),function(a){var b=a.tools.scrollable;b.autoscroll={conf:{autoplay:!0,interval:3e3,autopause:!0}},a.fn.autoscroll=function(c){typeof c=="number"&&(c={interval:c});var d=a.extend({},b.autoscroll.conf,c),e;return this.each(function(){var b=a(this).data("scrollable");b&&(e=b);var c,f=!0;b.play=function(){c||(f=!1,c=setInterval(function(){b.next()},d.interval))},b.pause=function(){c=clearInterval(c)},b.stop=function(){b.pause(),f=!0},d.autopause&&b.getRoot().add(b.getNaviButtons()).hover(b.pause,b.play),d.autoplay&&b.play()}),d.api?e:this}}(jQuery),function(a){function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}var b=a.tools.scrollable;b.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,idPrefix:null,history:!1}},a.fn.navigator=function(d){typeof d=="string"&&(d={navi:d}),d=a.extend({},b.navigator.conf,d);var e;return this.each(function(){function j(a,c,d){b.seekTo(c);if(i)location.hash&&(location.hash=a.attr("href").replace("#",""));else return d.preventDefault()}function k(){return f.find(d.naviItem||"> *")}function l(b){var c=a("<"+(d.naviItem||"a")+"/>").click(function(c){j(a(this),b,c)}).attr("href","#"+b);return b===0&&c.addClass(h),d.indexed&&c.text(b+1),d.idPrefix&&c.attr("id",d.idPrefix+b),c.appendTo(f)}function m(a,b){var c=k().eq(b.replace("#",""));c.length||(c=k().filter("[href="+b+"]")),c.click()}var b=a(this).data("scrollable"),f=d.navi.jquery?d.navi:c(b.getRoot(),d.navi),g=b.getNaviButtons(),h=d.activeClass,i=d.history&&a.fn.history;b&&(e=b),b.getNaviButtons=function(){return g.add(f)},k().length?k().each(function(b){a(this).click(function(c){j(a(this),b,c)})}):a.each(b.getItems(),function(a){l(a)}),b.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var c=k().eq(b);!a.isDefaultPrevented()&&c.length&&k().removeClass(h).eq(b).addClass(h)}},1)}),b.onAddItem(function(a,c){c=l(b.getItems().index(c)),i&&c.history(m)}),i&&k().history(m)}),d.api?e:this}}(jQuery),String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")},Lytebox.prototype.setIEVersion=function(){var a=-1;if(navigator.appName=="Microsoft Internet Explorer"){var b=navigator.userAgent,c=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");c.exec(b)!=null&&(a=parseFloat(RegExp.$1)),this.ie=a>-1?!0:!1,this.ie6=a==6?!0:!1,this.ie7=a==7?!0:!1,this.ie8=a==8?!0:!1,this.ie9=a==9?!0:!1}},Lytebox.prototype.initialize=function(){this.updateLyteboxItems();var a=this.doc.getElementsByTagName("body").item(0),b=this.doc.createElement("a");b.setAttribute("id","lbLauncher"),b.style.display="none",a.appendChild(b),this.doc.getElementById("lbOverlay")&&(a.removeChild(this.doc.getElementById("lbOverlay")),a.removeChild(this.doc.getElementById("lbMain")));var c=this.doc.createElement("div");c.setAttribute("id","lbOverlay"),c.setAttribute(this.classAttribute,this.theme);if(this.ie&&this.ie6||(this.ie7||this.ie8||this.ie9)&&this.doc.compatMode=="BackCompat")c.style.position="absolute";c.style.display="none",a.appendChild(c);var d=this.doc.createElement("div");d.setAttribute("id","lbMain"),d.style.display="none",a.appendChild(d);var e=this.doc.createElement("div");e.setAttribute("id","lbOuterContainer"),e.setAttribute(this.classAttribute,this.theme),d.appendChild(e);var f=this.doc.createElement("div");f.setAttribute("id","lbIframeContainer"),f.style.display="none",e.appendChild(f);var g=this.doc.createElement("iframe");g.setAttribute("id","lbIframe"),g.setAttribute("name","lbIframe"),g.setAttribute("frameBorder","0"),this.innerBorder&&g.setAttribute(this.classAttribute,this.theme),g.style.display="none",f.appendChild(g);var h=this.doc.createElement("div");h.setAttribute("id","lbImageContainer"),e.appendChild(h);var i=this.doc.createElement("img");i.setAttribute("id","lbImage"),this.innerBorder&&i.setAttribute(this.classAttribute,this.theme),h.appendChild(i);var j=this.doc.createElement("div");j.setAttribute("id","lbLoading"),j.setAttribute(this.classAttribute,this.theme),e.appendChild(j);var k=this.doc.createElement("div");k.setAttribute("id","lbDetailsContainer"),k.setAttribute(this.classAttribute,this.theme),e.appendChild(k);var l=this.doc.createElement("div");l.setAttribute("id","lbDetailsData"),l.setAttribute(this.classAttribute,this.theme),k.appendChild(l);var m=this.doc.createElement("div");m.setAttribute("id","lbDetails"),l.appendChild(m);var n=this.doc.createElement("span");n.setAttribute("id","lbCaption"),m.appendChild(n);var o=this.doc.createElement("div");o.setAttribute("id","lbHoverNav"),h.appendChild(o);var p=this.doc.createElement("div");p.setAttribute("id","lbBottomNav"),l.appendChild(p);var q=this.doc.createElement("a");q.setAttribute("id","lbPrev"),q.setAttribute(this.classAttribute,this.theme),q.setAttribute("href","javascript:void(0)"),o.appendChild(q);var r=this.doc.createElement("a");r.setAttribute("id","lbNext"),r.setAttribute(this.classAttribute,this.theme),r.setAttribute("href","javascript:void(0)"),o.appendChild(r);var s=this.doc.createElement("span");s.setAttribute("id","lbNumberDisplay"),m.appendChild(s);var t=this.doc.createElement("span");t.setAttribute("id","lbNavDisplay"),t.style.display="none",m.appendChild(t);var u=this.doc.createElement("a");u.setAttribute("id","lbClose"),u.setAttribute(this.classAttribute,this.theme),u.setAttribute("href","javascript:void(0)"),p.appendChild(u);var v=this.doc.createElement("a");v.setAttribute("id","lbPrint"),v.setAttribute(this.classAttribute,this.theme),v.setAttribute("href","javascript:void(0)"),v.style.display="none",p.appendChild(v);var w=this.doc.createElement("a");w.setAttribute("id","lbPause"),w.setAttribute(this.classAttribute,this.theme),w.setAttribute("href","javascript:void(0)"),w.style.display="none",p.appendChild(w);var x=this.doc.createElement("a");x.setAttribute("id","lbPlay"),x.setAttribute(this.classAttribute,this.theme),x.setAttribute("href","javascript:void(0)"),x.style.display="none",p.appendChild(x)},Lytebox.prototype.updateLyteboxItems=function(){var a=this.isFrame&&window.parent.frames[window.name].document?window.parent.frames[window.name].document.getElementsByTagName("a"):document.getElementsByTagName("a");a=this.isFrame?a:document.getElementsByTagName("a");var b=this.isFrame?window.parent.frames[window.name].document.getElementsByTagName("area"):document.getElementsByTagName("area"),c=this.combine(a,b),d=relAttribute=classAttribute=dataAttribute=tipStyle=tipImage=tipHtml=aSetting=sName=sValue=null;for(var e=0;e<c.length;e++){d=c[e],relAttribute=String(d.getAttribute("rel")),classAttribute=String(d.getAttribute(this.classAttribute));if(d.getAttribute("href"))if(relAttribute.toLowerCase().match("lytebox"))d.onclick=function(){return myLytebox.start(this,!1,!1),!1};else if(relAttribute.toLowerCase().match("lyteshow"))d.onclick=function(){return myLytebox.start(this,!0,!1),!1};else if(relAttribute.toLowerCase().match("lyteframe"))d.onclick=function(){return myLytebox.start(this,!1,!0),!1};else if(classAttribute.toLowerCase().match("lytetip")&&d.getAttribute("title")!=null&&!this.tipsSet){this.changeTipCursor&&(d.style.cursor="help"),dataAttribute=String(d.getAttribute("data-lyte-options")),dataAttribute=="null"?tipStyle=this.tipStyle:(aSetting=dataAttribute.split(":"),aSetting.length>1&&(sName=String(aSetting[0]).trim().toLowerCase(),sValue=String(aSetting[1]).trim().toLowerCase(),tipStyle=sName=="tipstyle"?/classic|info|help|warning|error/.test(sValue)?sValue:this.tipStyle:this.tipStyle));switch(tipStyle){case"info":tipStyle="lbCustom lbInfo",tipImage="lbTipImg lbInfoImg";break;case"help":tipStyle="lbCustom lbHelp",tipImage="lbTipImg lbHelpImg";break;case"warning":tipStyle="lbCustom lbWarning",tipImage="lbTipImg lbWarningImg";break;case"error":tipStyle="lbCustom lbError",tipImage="lbTipImg lbErrorImg";break;case"classic":tipStyle="lbClassic";break;default:tipStyle=tipImage=""}if(this.ie6||this.ie7||this.ie8&&this.doc.compatMode=="BackCompat")tipImage="",tipStyle!="lbClassic"&&tipStyle!=""&&(tipStyle+=" lbIEFix");tipHtml=d.innerHTML,d.innerHTML="",d.innerHTML=tipHtml+'<span class="'+tipStyle+'">'+(tipImage?'<div class="'+tipImage+'"></div>':"")+d.getAttribute("title")+"</span>",d.setAttribute("title","")}}this.tipsSet=!0},Lytebox.prototype.start=function(a,b,c){this.setOptions(String(a.getAttribute("data-lyte-options")));if(this.beforeStart!=""){var d=window[this.beforeStart];if(typeof d=="function"&&!d())return}this.ie&&this.ie6&&this.toggleSelects("hide"),this.hideObjects&&this.toggleObjects("hide"),this.isLyteframe=c?!0:!1,this.isFrame&&window.parent.frames[window.name].document?window.parent.myLytebox.printId=this.isLyteframe?"lbIframe":"lbImage":this.printId=this.isLyteframe?"lbIframe":"lbImage";var e=this.getPageSize(),f=this.doc.getElementById("lbOverlay"),g=this.doc.getElementsByTagName("body").item(0);f.style.height=e[1]+"px",f.style.display="",this.appear("lbOverlay",this.doAnimations?0:this.maxOpacity);var h=this.isFrame&&window.parent.frames[window.name].document?window.parent.frames[window.name].document.getElementsByTagName("a"):document.getElementsByTagName("a");h=this.isFrame?h:document.getElementsByTagName("a");var i=this.isFrame?window.parent.frames[window.name].document.getElementsByTagName("area"):document.getElementsByTagName("area"),j=this.combine(h,i);if(this.isLyteframe){this.frameArray=[],this.frameNum=0;if(a.getAttribute("rel")=="lyteframe")this.frameArray.push(new Array(a.getAttribute("href"),a.getAttribute("title")));else if(a.getAttribute("rel")&&a.getAttribute("rel").indexOf("lyteframe")!=-1){for(var k=0;k<j.length;k++){var l=j[k];l.getAttribute("href")&&l.getAttribute("rel")==a.getAttribute("rel")&&this.frameArray.push(new Array(l.getAttribute("href"),l.getAttribute("title")))}this.frameArray=this.removeDuplicates(this.frameArray);while(this.frameArray[this.frameNum][0]!=a.getAttribute("href"))this.frameNum++}}else{this.imageArray=[],this.imageNum=0,this.slideArray=[],this.slideNum=0;if(a.getAttribute("rel")=="lytebox")this.imageArray.push(new Array(a.getAttribute("href"),a.getAttribute("title")));else{if(a.getAttribute("rel")&&a.getAttribute("rel").indexOf("lytebox")!=-1){for(var k=0;k<j.length;k++){var l=j[k];l.getAttribute("href")&&l.getAttribute("rel")==a.getAttribute("rel")&&this.imageArray.push(new Array(l.getAttribute("href"),l.getAttribute("title")))}this.imageArray=this.removeDuplicates(this.imageArray);while(this.imageArray[this.imageNum][0]!=a.getAttribute("href"))this.imageNum++}if(a.getAttribute("rel")&&a.getAttribute("rel").indexOf("lyteshow")!=-1){for(var k=0;k<j.length;k++){var l=j[k];l.getAttribute("href")&&l.getAttribute("rel")==a.getAttribute("rel")&&this.slideArray.push(new Array(l.getAttribute("href"),l.getAttribute("title")))}this.slideArray=this.removeDuplicates(this.slideArray);while(this.slideArray[this.slideNum][0]!=a.getAttribute("href"))this.slideNum++}}}var m=this.doc.getElementById("lbMain");m.style.display="";if(document.all&&document.all.item&&!window.opera){m.style.top=this.getPageScroll()+e[3]/15+"px";var n=e[3]/15,o=function(){document.getElementById("lbMain").style.top=myLytebox.getPageScroll()+n+"px"};this.bodyOnscroll=document.body.onscroll,window.addEventListener?window.addEventListener("scroll",o,!1):window.attachEvent?window.attachEvent("onscroll",o):window.onload=handler_start,m.style.position="absolute"}else m.style.top=e[3]/15+"px",m.style.position="fixed";this.outerBorder?this.doc.getElementById("lbOuterContainer").setAttribute(this.classAttribute,this.theme):this.doc.getElementById("lbOuterContainer").style.border="none",this.forceCloseClick?this.doc.getElementById("lbOverlay").onclick="":this.doc.getElementById("lbOverlay").onclick=function(){return myLytebox.end(),!1},this.doc.getElementById("lbMain").onclick=function(a){var a=a;a||(window.parent.frames[window.name]&&parent.document.getElementsByTagName("frameset").length<=0?a=window.parent.window.event:a=window.event);var b=a.target?a.target.id:a.srcElement.id;if(b=="lbMain"&&!myLytebox.forceCloseClick)return myLytebox.end(),!1},this.doc.getElementById("lbPrint").onclick=function(){return myLytebox.printWindow(),!1},this.doc.getElementById("lbClose").onclick=function(){return myLytebox.end(),!1},this.doc.getElementById("lbPause").onclick=function(){return myLytebox.togglePlayPause("lbPause","lbPlay"),!1},this.doc.getElementById("lbPlay").onclick=function(){return myLytebox.togglePlayPause("lbPlay","lbPause"),!1},this.isSlideshow=b,this.isPaused=this.slideNum!=0?!0:!1,this.isSlideshow&&this.showPlayPause&&this.isPaused&&(this.doc.getElementById("lbPlay").style.display="",this.doc.getElementById("lbPause").style.display="none"),this.isLyteframe?this.changeContent(this.frameNum):this.isSlideshow?this.changeContent(this.slideNum):this.changeContent(this.imageNum)},Lytebox.prototype.launch=function(a,b){var c=a.split(".").pop().toLowerCase(),d="lyteframe";if(c=="png"||c=="jpg"||c=="jpeg"||c=="gif"||c=="bmp")d="lytebox";var e=this.doc.getElementById("lbLauncher");e.setAttribute("href",a),e.setAttribute("rel",d),e.setAttribute("data-lyte-options",b?b:""),this.updateLyteboxItems(),this.start(e,!1,d=="lyteframe")},Lytebox.prototype.changeContent=function(a){if(this.isSlideshow)for(var b=0;b<this.slideshowIDCount;b++)window.clearTimeout(this.slideshowIDArray[b]);this.activeImage=this.activeSlide=this.activeFrame=a,this.outerBorder?this.doc.getElementById("lbOuterContainer").setAttribute(this.classAttribute,this.theme):this.doc.getElementById("lbOuterContainer").style.border="none",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("lbPrint").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.navTypeHash["Display_by_type_"+this.navType]||this.isLyteframe)object=this.doc.getElementById("lbNavDisplay"),object.innerHTML='&nbsp;&nbsp;&nbsp;<span id="lbPrev2_Off" style="display: none;" class="'+this.theme+'">&laquo; ant</span><a href="javascript:void(0);" id="lbPrev2" class="'+this.theme+'" style="display: none;">&laquo; ant</a> <b id="lbSpacer" class="'+this.theme+'">||</b> <span id="lbNext2_Off" style="display: none;" class="'+this.theme+'">sig &raquo;</span><a href="javascript:void(0);" id="lbNext2" class="'+this.theme+'" style="display: none;">sig &raquo;</a>',object.style.display="none";if(this.isLyteframe){var c=myLytebox.doc.getElementById("lbIframe"),d=this.getPageSize(),e=this.width.trim(),f=this.height.trim();if(/\%/.test(e)){var g=parseInt(e);e=parseInt((d[2]-150)*g/100),e+="px"}if(/\%/.test(f)){var g=parseInt(f);f=parseInt((d[3]-150)*g/100),f+="px"}c.height=f,c.width=e,c.scrolling=this.scrollbars.trim(),this.resizeContainer(parseInt(c.width),parseInt(c.height))}else imgPreloader=new Image,imgPreloader.onload=function(){var a=imgPreloader.width,b=imgPreloader.height;if(myLytebox.autoResize){var c=myLytebox.getPageSize(),d=c[2]-150,e=c[3]-150;a>d?(b=Math.round(b*(d/a)),a=d,b>e&&(a=Math.round(a*(e/b)),b=e)):b>e&&(a=Math.round(a*(e/b)),b=e,a>d&&(b=Math.round(b*(d/a)),a=d))}var f=myLytebox.doc.getElementById("lbImage");f.src=myLytebox.isSlideshow?myLytebox.slideArray[myLytebox.activeSlide][0]:myLytebox.imageArray[myLytebox.activeImage][0],f.width=a,f.height=b,myLytebox.resizeContainer(a,b),imgPreloader.onload=function(){}},imgPreloader.src=this.isSlideshow?this.slideArray[this.activeSlide][0]:this.imageArray[this.activeImage][0]},Lytebox.prototype.resizeContainer=function(a,b){this.wCur=this.doc.getElementById("lbOuterContainer").offsetWidth,this.hCur=this.doc.getElementById("lbOuterContainer").offsetHeight,this.xScale=(a+this.borderSize*2)/this.wCur*100,this.yScale=(b+this.borderSize*2)/this.hCur*100;var c=this.wCur-this.borderSize*2-a,d=this.hCur-this.borderSize*2-b;d!=0?(this.hDone=!1,this.resizeH("lbOuterContainer",this.hCur,b+this.borderSize*2,this.getPixelRate(this.hCur,b))):this.hDone=!0,c!=0?(this.wDone=!1,this.resizeW("lbOuterContainer",this.wCur,a+this.borderSize*2,this.getPixelRate(this.wCur,a))):this.wDone=!0,d==0&&c==0&&(this.ie?this.pause(250):this.pause(100)),this.doc.getElementById("lbPrev").style.height=b+"px",this.doc.getElementById("lbNext").style.height=b+"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]);this.doc.getElementById("lbLoading").style.display="none",this.isLyteframe?(this.doc.getElementById("lbIframe").style.display="",this.appear("lbIframe",this.doAnimations?0:100)):(this.doc.getElementById("lbImage").style.display="",this.appear("lbImage",this.doAnimations?0:100),this.preloadNeighborImages()),this.isSlideshow?(this.activeSlide==this.slideArray.length-1?this.loopSlideshow?this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("myLytebox.changeContent(0)",this.slideInterval):this.autoEnd&&(this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("myLytebox.end('slideshow')",this.slideInterval)):this.isPaused||(this.slideshowIDArray[this.slideshowIDCount++]=setTimeout("myLytebox.changeContent("+(this.activeSlide+1)+")",this.slideInterval)),this.doc.getElementById("lbHoverNav").style.display=this.showNavigation&&this.navTypeHash["Hover_by_type_"+this.navType]?"":"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.navTypeHash["Display_by_type_"+this.navType]?"":"none"):(this.doc.getElementById("lbHoverNav").style.display=this.navTypeHash["Hover_by_type_"+this.navType]&&!this.isLyteframe?"":"none",this.navTypeHash["Display_by_type_"+this.navType]&&!this.isLyteframe&&this.imageArray.length>1||this.frameArray.length>1&&this.isLyteframe?this.doc.getElementById("lbNavDisplay").style.display="":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("lbPrint").style.display=this.showPrint?"":"none",this.doc.getElementById("lbImageContainer").style.display=this.isLyteframe?"none":"",this.doc.getElementById("lbIframeContainer").style.display=this.isLyteframe?"":"none";try{var b=this.frameArray[this.activeFrame][0];/\?/.test(b)?b+="&request_from=lytebox":b+="?request_from=lytebox",this.doc.getElementById("lbIframe").src=b}catch(c){}if(this.afterStart!=""){var d=window[this.afterStart];typeof d=="function"&&d()}}else this.showContentTimerArray[this.showContentTimerCount++]=setTimeout("myLytebox.showContent()",200)},Lytebox.prototype.updateDetails=function(){var object=this.doc.getElementById("lbCaption"),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"),this.isSlideshow&&this.slideArray.length>1?(object.style.display="",object.innerHTML="Foto "+eval(this.activeSlide+1)+" de "+this.slideArray.length,this.doc.getElementById("lbNavDisplay").style.display=this.navTypeHash["Display_by_type_"+this.navType]&&this.showNavigation?"":"none"):this.imageArray.length>1&&!this.isLyteframe?(object.style.display="",object.innerHTML="Foto "+eval(this.activeImage+1)+" de "+this.imageArray.length,this.doc.getElementById("lbNavDisplay").style.display=this.navTypeHash["Display_by_type_"+this.navType]?"":"none"):this.frameArray.length>1&&this.isLyteframe?(object.style.display="",object.innerHTML="Page "+eval(this.activeFrame+1)+" de "+this.frameArray.length,this.doc.getElementById("lbNavDisplay").style.display=""):this.doc.getElementById("lbNavDisplay").style.display="none",(!(this.ie7||this.ie8||this.ie9)||this.doc.compatMode!="BackCompat")&&!this.ie6&&(this.doc.getElementById("lbOuterContainer").style.paddingBottom=this.doc.getElementById("lbDetailsContainer").offsetHeight+"px"),this.appear("lbDetailsContainer",this.doAnimations?0:100)},Lytebox.prototype.updateNav=function(){if(this.isSlideshow){if(this.activeSlide!=0){if(this.navTypeHash["Display_by_type_"+this.navType]){var a=this.doc.getElementById("lbPrev2");a.style.display="",a.onclick=function(){return myLytebox.pauseOnPrevClick&&myLytebox.togglePlayPause("lbPause","lbPlay"),myLytebox.changeContent(myLytebox.activeSlide-1),!1}}if(this.navTypeHash["Hover_by_type_"+this.navType]){var a=this.doc.getElementById("lbPrev");a.style.display="",a.onclick=function(){return myLytebox.pauseOnPrevClick&&myLytebox.togglePlayPause("lbPause","lbPlay"),myLytebox.changeContent(myLytebox.activeSlide-1),!1}}}else this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.getElementById("lbPrev2_Off").style.display="");if(this.activeSlide!=this.slideArray.length-1){if(this.navTypeHash["Display_by_type_"+this.navType]){var a=this.doc.getElementById("lbNext2");a.style.display="",a.onclick=function(){return myLytebox.pauseOnNextClick&&myLytebox.togglePlayPause("lbPause","lbPlay"),myLytebox.changeContent(myLytebox.activeSlide+1),!1}}if(this.navTypeHash["Hover_by_type_"+this.navType]){var a=this.doc.getElementById("lbNext");a.style.display="",a.onclick=function(){return myLytebox.pauseOnNextClick&&myLytebox.togglePlayPause("lbPause","lbPlay"),myLytebox.changeContent(myLytebox.activeSlide+1),!1}}}else this.navTypeHash["Display_by_type_"+this.navType]&&(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(){return myLytebox.changeContent(myLytebox.activeFrame-1),!1}}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(){return myLytebox.changeContent(myLytebox.activeFrame+1),!1}}else this.doc.getElementById("lbNext2_Off").style.display=""}else{if(this.activeImage!=0){if(this.navTypeHash["Display_by_type_"+this.navType]){var a=this.doc.getElementById("lbPrev2");a.style.display="",a.onclick=function(){return myLytebox.changeContent(myLytebox.activeImage-1),!1}}if(this.navTypeHash["Hover_by_type_"+this.navType]){var b=this.doc.getElementById("lbPrev");b.style.display="",b.onclick=function(){return myLytebox.changeContent(myLytebox.activeImage-1),!1}}}else this.navTypeHash["Display_by_type_"+this.navType]&&(this.doc.getElementById("lbPrev2_Off").style.display="");if(this.activeImage!=this.imageArray.length-1){if(this.navTypeHash["Display_by_type_"+this.navType]){var a=this.doc.getElementById("lbNext2");a.style.display="",a.onclick=function(){return myLytebox.changeContent(myLytebox.activeImage+1),!1}}if(this.navTypeHash["Hover_by_type_"+this.navType]){var b=this.doc.getElementById("lbNext");b.style.display="",b.onclick=function(){return myLytebox.changeContent(myLytebox.activeImage+1),!1}}}else this.navTypeHash["Display_by_type_"+this.navType]&&(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(a){var b=key=escape=null;b=a==null?event.keyCode:a.which,key=String.fromCharCode(b).toLowerCase(),escape=a==null?27:a.DOM_VK_ESCAPE;if(key=="x"||key=="c"||b==escape)myLytebox.end();else if(key=="p"||b==37)myLytebox.isSlideshow?myLytebox.activeSlide!=0&&(myLytebox.disableKeyboardNav(),myLytebox.changeContent(myLytebox.activeSlide-1)):myLytebox.isLyteframe?myLytebox.activeFrame!=0&&(myLytebox.disableKeyboardNav(),myLytebox.changeContent(myLytebox.activeFrame-1)):myLytebox.activeImage!=0&&(myLytebox.disableKeyboardNav(),myLytebox.changeContent(myLytebox.activeImage-1));else if(key=="n"||b==39)myLytebox.isSlideshow?myLytebox.activeSlide!=myLytebox.slideArray.length-1&&(myLytebox.disableKeyboardNav(),myLytebox.changeContent(myLytebox.activeSlide+1)):myLytebox.isLyteframe?myLytebox.activeFrame!=myLytebox.frameArray.length-1&&(myLytebox.disableKeyboardNav(),myLytebox.changeContent(myLytebox.activeFrame+1)):myLytebox.activeImage!=myLytebox.imageArray.length-1&&(myLytebox.disableKeyboardNav(),myLytebox.changeContent(myLytebox.activeImage+1))},Lytebox.prototype.preloadNeighborImages=function(){this.isSlideshow?(this.slideArray.length-1>this.activeSlide&&(preloadNextImage=new Image,preloadNextImage.src=this.slideArray[this.activeSlide+1][0]),this.activeSlide>0&&(preloadPrevImage=new Image,preloadPrevImage.src=this.slideArray[this.activeSlide-1][0])):(this.imageArray.length-1>this.activeImage&&(preloadNextImage=new Image,preloadNextImage.src=this.imageArray[this.activeImage+1][0]),this.activeImage>0&&(preloadPrevImage=new Image,preloadPrevImage.src=this.imageArray[this.activeImage-1][0]))},Lytebox.prototype.togglePlayPause=function(a,b){if(this.isSlideshow&&a=="lbPause")for(var c=0;c<this.slideshowIDCount;c++)window.clearTimeout(this.slideshowIDArray[c]);this.doc.getElementById(a).style.display="none",this.doc.getElementById(b).style.display="",a=="lbPlay"?(this.isPaused=!1,this.activeSlide==this.slideArray.length-1?this.loopSlideshow?this.changeContent(0):this.autoEnd&&this.end():this.changeContent(this.activeSlide+1)):this.isPaused=!0},Lytebox.prototype.end=function(a){var b=a=="slideshow"?!1:!0;if(this.isSlideshow&&this.isPaused&&!b)return;if(this.beforeEnd!=""){var c=window[this.beforeEnd];if(typeof c=="function"&&!c())return}this.disableKeyboardNav(),document.body.onscroll=this.bodyOnscroll;if(this.refreshPage){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",this.refreshPage=!1;var d=top
.location.href,e=/\#.*$/g;d=d.replace(e,""),top.location.href=d;return}this.doc.getElementById("lbMain").style.display="none",this.fade("lbOverlay",this.doAnimations?this.maxOpacity:0),this.toggleSelects("visible"),this.hideObjects&&this.toggleObjects("visible"),this.doc.getElementById("lbOuterContainer").style.width="200px",this.doc.getElementById("lbOuterContainer").style.height="200px";if(this.isSlideshow)for(var f=0;f<this.slideshowIDCount;f++)window.clearTimeout(this.slideshowIDArray[f]);this.isLyteframe&&(this.initialize(),this.doc.getElementById("lbIframe").src="about:blank");if(this.afterEnd!=""){var c=window[this.afterEnd];typeof c=="function"&&c()}},Lytebox.prototype.checkFrame=function(){window.parent.frames[window.name]&&parent.document.getElementsByTagName("frameset").length<=0?(this.isFrame=!0,this.lytebox="window.parent."+window.name+".myLytebox",this.doc=parent.document):(this.isFrame=!1,this.lytebox="myLytebox",this.doc=document)},Lytebox.prototype.getPixelRate=function(a,b){var c=b>a?b-a:a-b;if(c>=0&&c<=100)return 10;if(c>100&&c<=200)return 15;if(c>200&&c<=300)return 20;if(c>300&&c<=400)return 25;if(c>400&&c<=500)return 30;if(c>500&&c<=600)return 35;if(c>600&&c<=700)return 40;if(c>700)return 45},Lytebox.prototype.appear=function(a,b){var c=this.doc.getElementById(a).style;c.opacity=b/100,c.MozOpacity=b/100,c.KhtmlOpacity=b/100,c.filter="alpha(opacity="+(b+10)+")";if(b!=100||a!="lbImage"&&a!="lbIframe"){if(b>=this.maxOpacity&&a=="lbOverlay"){for(var e=0;e<this.overlayTimerCount;e++)window.clearTimeout(this.overlayTimerArray[e]);return}if(b>=100&&a=="lbDetailsContainer"){try{c.removeAttribute("filter")}catch(d){}for(var e=0;e<this.imageTimerCount;e++)window.clearTimeout(this.imageTimerArray[e]);this.doc.getElementById("lbOverlay").style.height=this.getPageSize()[1]+"px"}else a=="lbOverlay"?this.overlayTimerArray[this.overlayTimerCount++]=setTimeout("myLytebox.appear('"+a+"', "+(b+20)+")",1):this.imageTimerArray[this.imageTimerCount++]=setTimeout("myLytebox.appear('"+a+"', "+(b+10)+")",1)}else{try{c.removeAttribute("filter")}catch(d){}this.updateDetails()}},Lytebox.prototype.fade=function(a,b){var c=this.doc.getElementById(a).style;c.opacity=b/100,c.MozOpacity=b/100,c.KhtmlOpacity=b/100,c.filter="alpha(opacity="+b+")";if(b<=0)try{c.display="none"}catch(d){}else a=="lbOverlay"?this.overlayTimerArray[this.overlayTimerCount++]=setTimeout("myLytebox.fade('"+a+"', "+(b-20)+")",1):this.timerIDArray[this.timerIDCount++]=setTimeout("myLytebox.fade('"+a+"', "+(b-10)+")",1)},Lytebox.prototype.resizeW=function(a,b,c,d,e){if(!this.hDone){this.resizeWTimerArray[this.resizeWTimerCount++]=setTimeout("myLytebox.resizeW('"+a+"', "+b+", "+c+", "+d+")",100);return}var f=this.doc.getElementById(a),g=e?e:this.resizeDuration/2,h=this.doAnimations?b:c;f.style.width=h+"px",h<c?h+=h+d>=c?c-h:d:h>c&&(h-=h-d<=c?h-c:d),this.resizeWTimerArray[this.resizeWTimerCount++]=setTimeout("myLytebox.resizeW('"+a+"', "+h+", "+c+", "+d+", "+(g+.02)+")",g+.02);if(parseInt(f.style.width)==c){this.wDone=!0;for(var i=0;i<this.resizeWTimerCount;i++)window.clearTimeout(this.resizeWTimerArray[i])}},Lytebox.prototype.resizeH=function(a,b,c,d,e){var f=e?e:this.resizeDuration/2,g=this.doc.getElementById(a),h=this.doAnimations?b:c;g.style.height=h+"px",h<c?h+=h+d>=c?c-h:d:h>c&&(h-=h-d<=c?h-c:d),this.resizeHTimerArray[this.resizeHTimerCount++]=setTimeout("myLytebox.resizeH('"+a+"', "+h+", "+c+", "+d+", "+(f+.02)+")",f+.02);if(parseInt(g.style.height)==c){this.hDone=!0;for(var i=0;i<this.resizeHTimerCount;i++)window.clearTimeout(this.resizeHTimerArray[i])}},Lytebox.prototype.getPageScroll=function(){if(self.pageYOffset)return this.isFrame?parent.pageYOffset:self.pageYOffset;if(this.doc.documentElement&&this.doc.documentElement.scrollTop)return this.doc.documentElement.scrollTop;if(document.body)return this.doc.body.scrollTop},Lytebox.prototype.getPageSize=function(){var a,b,c,d;window.innerHeight&&window.scrollMaxY?(a=this.doc.scrollWidth,b=(this.isFrame?parent.innerHeight:self.innerHeight)+(this.isFrame?parent.scrollMaxY:self.scrollMaxY)):this.doc.body.scrollHeight>this.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=a<this.doc.body.offsetWidth?this.doc.body.offsetWidth:a,b=b<this.doc.body.offsetHeight?this.doc.body.offsetHeight:b),self.innerHeight?(c=this.isFrame?parent.innerWidth:self.innerWidth,d=this.isFrame?parent.innerHeight:self.innerHeight):document.documentElement&&document.documentElement.clientHeight?(c=this.doc.documentElement.clientWidth,d=this.doc.documentElement.clientHeight):document.body&&(c=this.doc.getElementsByTagName("html").item(0).clientWidth,d=this.doc.getElementsByTagName("html").item(0).clientHeight,c=c==0?this.doc.body.clientWidth:c,d=d==0?this.doc.body.clientHeight:d);var e=b<d?d:b,f=a<c?c:a;return new Array(f,e,c,d)},Lytebox.prototype.toggleObjects=function(a){var b=this.doc.getElementsByTagName("object");for(var c=0;c<b.length;c++)b[c].style.visibility=a=="hide"?"hidden":"visible";var d=this.doc.getElementsByTagName("embed");for(var c=0;c<d.length;c++)d[c].style.visibility=a=="hide"?"hidden":"visible";if(this.isFrame)for(var c=0;c<parent.frames.length;c++){try{b=parent.frames[c].window.document.getElementsByTagName("object");for(var e=0;e<b.length;e++)b[e].style.visibility=a=="hide"?"hidden":"visible"}catch(f){}try{d=parent.frames[c].window.document.getElementsByTagName("embed");for(var e=0;e<d.length;e++)d[e].style.visibility=a=="hide"?"hidden":"visible"}catch(f){}}},Lytebox.prototype.toggleSelects=function(a){var b=this.doc.getElementsByTagName("select");for(var c=0;c<b.length;c++)b[c].style.visibility=a=="hide"?"hidden":"visible";if(this.isFrame)for(var c=0;c<parent.frames.length;c++)try{b=parent.frames[c].window.document.getElementsByTagName("select");for(var d=0;d<b.length;d++)b[d].style.visibility=a=="hide"?"hidden":"visible"}catch(e){}},Lytebox.prototype.pause=function(a){var b=new Date,c=b.getTime()+a;for(;;){b=new Date;if(b.getTime()>c)return}},Lytebox.prototype.combine=function(a,b){var c=[];for(var d=0;d<a.length;d++)c.push(a[d]);for(var d=0;d<b.length;d++)c.push(b[d]);return c},Lytebox.prototype.removeDuplicates=function(a){for(var b=1;b<a.length;b++)a[b][0]==a[b-1][0]&&a.splice(b,1);return a},Lytebox.prototype.printWindow=function(){var a=400,b=300,c=parseInt(screen.availWidth/2-a/2),d=parseInt(screen.availHeight/2-b/2),e="width="+a+",height="+b+",left="+c+",top="+d+"screenX="+c+",screenY="+d+"directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0",f=new Date,g="Print"+f.getTime(),h=document.getElementById(this.printId).src;this.wContent=window.open(h,g,e),this.wContent.focus();var i=setTimeout("myLytebox.printContent()",1e3)},Lytebox.prototype.printContent=function(){if(this.wContent.document.readyState=="complete")this.wContent.print(),this.wContent.close(),this.wContent=null;else var a=setTimeout("myLytebox.printContent()",1e3)},Lytebox.prototype.setOptions=function(a){this.hideObjects=this.__hideObjects,this.autoResize=this.__autoResize,this.doAnimations=this.__doAnimations,this.forceCloseClick=this.__forceCloseClick,this.refreshPage=this.__refreshPage,this.showPrint=this.__showPrint,this.navType=this.__navType,this.beforeStart=this.__beforeStart,this.afterStart=this.__afterStart,this.beforeEnd=this.__beforeEnd,this.afterEnd=this.__afterEnd,this.scrollbars=this.__scrollbars,this.width=this.__width,this.height=this.__height,this.slideInterval=this.__slideInterval,this.showNavigation=this.__showNavigation,this.showClose=this.__showClose,this.showDetails=this.__showDetails,this.showPlayPause=this.__showPlayPause,this.autoEnd=this.__autoEnd,this.pauseOnNextClick=this.__pauseOnNextClick,this.pauseOnPrevClick=this.__pauseOnPrevClick,this.loopSlideshow=this.__loopSlideshow;var b=sValue="",c=null,d=a.split(" ");for(var e=0;e<d.length;e++){c=d[e].split(":"),b=c.length>1?String(c[0]).trim().toLowerCase():"",sValue=c.length>1?String(c[1]).trim():"";switch(b){case"hideobjects":this.hideObjects=/true|false/.test(sValue)?sValue=="true":this.__hideObjects;break;case"autoresize":this.autoResize=/true|false/.test(sValue)?sValue=="true":this.__autoResize;break;case"doanimations":this.doAnimations=/true|false/.test(sValue)?sValue=="true":this.__doAnimations;break;case"forcecloseclick":this.forceCloseClick=/true|false/.test(sValue)?sValue=="true":this.__forceCloseClick;break;case"refreshpage":this.refreshPage=/true|false/.test(sValue)?sValue=="true":this.__refreshPage;break;case"showprint":this.showPrint=/true|false/.test(sValue)?sValue=="true":this.__showPrint;break;case"navtype":this.navType=/[1-3]{1}/.test(sValue)?parseInt(sValue):this.__navType;break;case"beforestart":this.beforeStart=sValue!=""?sValue:this.__beforeStart;break;case"afterstart":this.afterStart=sValue!=""?sValue:this.__afterStart;break;case"beforeend":this.beforeEnd=sValue!=""?sValue:this.__beforeEnd;break;case"afterend":this.afterEnd=sValue!=""?sValue:this.__afterEnd;break;case"scrollbars":this.scrollbars=/auto|yes|no/.test(sValue)?sValue:this.__scrollbars;break;case"width":this.width=/\d(%|px|)/.test(sValue)?sValue:this.__width;break;case"height":this.height=/\d(%|px|)/.test(sValue)?sValue:this.__height;break;case"slideinterval":this.slideInterval=/\d/.test(sValue)?parseInt(sValue):this.__slideInterval;break;case"shownavigation":this.showNavigation=/true|false/.test(sValue)?sValue=="true":this.__showNavigation;break;case"showclose":this.showClose=/true|false/.test(sValue)?sValue=="true":this.__showClose;break;case"showdetails":this.showDetails=/true|false/.test(sValue)?sValue=="true":this.__showDetails;break;case"showplaypause":this.showPlayPause=/true|false/.test(sValue)?sValue=="true":this.__showPlayPause;break;case"autoend":this.autoEnd=/true|false/.test(sValue)?sValue=="true":this.__autoEnd;break;case"pauseonnextclick":this.pauseOnNextClick=/true|false/.test(sValue)?sValue=="true":this.__pauseOnNextClick;break;case"pauseonprevclick":this.pauseOnPrevClick=/true|false/.test(sValue)?sValue=="true":this.__pauseOnPrevClick;break;case"loopslideshow":this.loopSlideshow=/true|false/.test(sValue)?sValue=="true":this.__loopSlideshow}}},window.addEventListener?window.addEventListener("load",initLytebox,!1):window.attachEvent?window.attachEvent("onload",initLytebox):window.onload=function(){initLytebox()}
