//This code is optimized by the w3compiler from Port80 Software: BUY w3compiler to remove this comment from your optimized files at www.w3compiler.com! b=undefined;c=document;f=c.all;g=true;k=false;q=window;u=parseInt;z=parent;ba=top;bf=RegExp;bn=isNaN;bw=Math;bx=bw.max;by=bw.abs;cg=Date;cp=close;eb=open;ec=unescape;fi=Image;fk=parseFloat;fr=frames;fs=history.back;cv={"format.date":"MM/dd/yyyy","format.time":"h:mm a","photoviewer.toolbar.first":"Go to Start (Home)","photoviewer.toolbar.prev":"Previous Photo (Left arrow)","photoviewer.toolbar.slideShow":"Start/Pause Slide Show (Space)","photoviewer.toolbar.next":"Next Photo (Right arrow)","photoviewer.toolbar.last":"Go to End (End)","photoviewer.toolbar.email":"Email Photo","photoviewer.toolbar.permalink":"Link to Photo","photoviewer.toolbar.close":"Close (Esc)","photoviewer.email.subject.photo":"Photo","gallery.nophotos":"No photos","gallery.thumbs.start":"Start","gallery.thumbs.end":"End","gallery.toolbar.first":"First Photo","gallery.toolbar.prev":"Previous Photo","gallery.toolbar.view":"View Photo","gallery.toolbar.next":"Next Photo","gallery.toolbar.last":"Last Photo","gallery.view.full":"Maximize Window","gallery.view.photo":"Show Photo Only","gallery.view.text":"Show Description Only","gallery.view.close":"Close Window"};agent=navigator.userAgent.toLowerCase();bo=(agent.indexOf("msie")!=-1&&agent.indexOf("opera")==-1);cf=(agent.indexOf("msie 7")!=-1);OPERA=(agent.indexOf("opera")!=-1);SAFARI=(agent.indexOf("safari")!=-1);cw=(agent.indexOf("gecko")!=-1);bu=(c.compatMode=="CSS1Compat");cx=b;GALLERY_W=650;GALLERY_H=530;if(cy==b){cy=g}fu=!cy;fv=k;var log=getLogger();if(c.location.href.indexOf("#jslog")!=-1)log.enable();function dt(){this.enable=du;this.clear=dv;this.log=dw;this.debug=dx;this.info=dy;this.error=dz;var console=b;try{console=c.createElement("textarea");console.style.display="none";console.style.position="absolute";console.style.right="2px";console.style.bottom="2px";console.style.width="23em";console.style.height="40em";console.style.fontFamily="monospace";console.style.fontSize="9px";console.style.color="#000000";bc(console,0.7);console.border="1px solid #808080";console.ondblclick=ea}catch(e){}this.console=console;this.enabled=k;this.logTimeStart=getTimeMillis();}function getLogger(){var log=b;var win=q;while(log==b){try{log=win.document.log}catch(e){break}if(win==win.parent)break;win=win.parent}if(log==b){log=new dt();c.log=log}return log}function ea(){getLogger().clear();}function du(){if(this.enabled||this.console==b)return;if(c.body!=b){c.body.appendChild(this.console);this.console.style.display="";this.enabled=g}}function dx(bg){this.log("DEBUG",bg);}function dy(bg){this.log("INFO",bg);}function dz(bg,e){this.log("ERROR",bg,e);}function dw(fw,bg,e){if(!this.enabled||this.console==b)return;var cq=(getTimeMillis()-this.logTimeStart)+"";while(cq.length<6)cq+=" ";var m=cq+" ";if(bg!=b)m+=bg+" ";if(e!=b)m+=e.name+": "+e.message;this.console.value+=m+"\n"}function dv(){if(!this.enabled||this.console==b)return;this.console.value=""}function getTimeMillis(){var t=new cg();return cg.UTC(t.getFullYear(),t.getMonth(),t.getDay(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());}function getEvent(event){return(event!=b?event:q.event);}function preventDefault(event){if(event.preventDefault){event.preventDefault();event.stopPropagation();}else{event.returnValue=k;event.cancelBubble=g}}function getEventTarget(event){if(event==b)return b;if(event.srcElement!=b)return event.srcElement;else return event.target}function getResponse(url,async,getXML,bd,data){var s=b;try{s=new ActiveXObject("Msxml2.XMLHTTP");}catch(fx){try{s=new ActiveXObject("Microsoft.XMLHTTP");}catch(fy){s=new XMLHttpRequest();}}if(s==b){log.error("Failed to initialize XML/HTTP");return b}s.open("GET",url,async);if(!async){s.send(b);if(s.readyState!=4){log.error("Request failed: "+s.readyState);return b}if(!getXML)return s.responseText;else return s.responseXML}else{cz(s,bd,data);s.send(b);return b}}function cz(s,bd,data){if(s.readyState!=4)q.setTimeout(function(){cz(s,bd,data);},100);else bd(s,data);}function getElementsByTagName(node,bl){if(node==b)return b;if(bo){return node.getElementsByTagName(bl);}if(bl.indexOf(":")!=-1){bl=bl.split(":")[1]}return node.getElementsByTagNameNS("*",bl);}function getFirstElementsValue(node,bl){if(node==b)return b;var nodes=getElementsByTagName(node,bl);if(nodes.length===0)return b;else return getElementValue(nodes[0]);}function bh(id){var cr=b;var win=q;while(cr==b){try{cr=win.document.getElementById(id);}catch(e){break}if(win===win.parent){break}win=win.parent}return cr}function getElementValue(node){var i;var bp="";for(i=0;ida){bi=bi.substring(0,da)+"..."}return bi}function getRootWindow(){var win=q;while(win!=b){try{if(win===win.parent){break}else if(win.parent!=b&&win.parent.document.location.href.indexOf("/selenium-server/")!=-1){break}win=win.parent}catch(e){win.permissionDenied=g;break}}return win}function getURLParams(){var i,db=[];var url=q.location.search;if(url==b||url.length===0)return b;url=url.substring(1);var namevals=url.replace(/\+/g," ").split("&");for(i=0;i0){for(i=0;i0){for(i=0;i90||by(dh)>180){return k}if(dg===0.0&&dh===0.0){return k}return g}function di(){var host=c.location.host;if(host==b)host="";return((host.indexOf("triptracker.net")==-1||host.indexOf("slideshow.triptracker.net")!=-1)&&host.indexOf("rtvslo.si")==-1&&!em());}function em(){try{if(cx==b)return k;var protocol=c.location.protocol;if(protocol==b)protocol="http:";var host=c.location.host;if(host==b)host="";host=host.toLowerCase();if(protocol.toLowerCase().indexOf("file")===0){return g}var x=host.lastIndexOf(":");if(x!=-1){host=host.substring(0,x);}if(host.indexOf("www.")===0){host=host.substring(4);}if(host===""||host=="localhost"||host=="127.0.0.1")return g;var domain=cx.toLowerCase();x=domain.indexOf("://");if(x!=-1){domain=domain.substring(x+3);}x=domain.indexOf("/");if(x!=-1){domain=domain.substring(0,x);}if(domain.indexOf("www.")===0){domain=domain.substring(4);}if(host==domain){return g}else if(new bf(domain).test(host)){return g}return k}catch(e){return g}}function getWindowSize(win){var availW=win.innerWidth;if(availW==b||availW===0||bn(availW))availW=win.document.documentElement.clientWidth;if(availW==b||availW===0||bn(availW))availW=win.document.body.clientWidth;var availH=win.innerHeight;if(availH==b||availH===0||bn(availH))availH=win.document.documentElement.clientHeight;if(availH==b||availH===0||bn(availH))availH=win.document.body.clientHeight;return{w:availW,h:availH}}function getDocumentSize(win){var bz=getWindowSize(win);var ca=getScrollPos(win);var w=bz.w+ca.left;var h=bz.h+ca.top;w=bx(w,win.document.body.offsetWidth);h=bx(h,win.document.body.offsetHeight);w=bx(w,win.document.body.scrollWidth);h=bx(h,win.document.body.scrollHeight);return{w:w,h:h}}function getScrollPos(win){var scrollTop=win.pageYOffset;if(scrollTop==b||scrollTop===0)scrollTop=win.document.documentElement.scrollTop;if(scrollTop==b||scrollTop===0)scrollTop=win.document.body.scrollTop;var scrollLeft=win.pageXOffset;if(scrollLeft==b||scrollLeft===0)scrollLeft=win.document.documentElement.scrollLeft;if(scrollLeft==b||scrollLeft===0)scrollLeft=win.document.body.scrollLeft;return{ba:scrollTop,left:scrollLeft}}var ct=["onclick","ondblclick","onkeydown","onkeypress","onmousedown","onmouseup","onmousemove","onmouseover","onmouseout","onmousewheeldown","oncontextmenu"];function en(){var i,j;var count=0;if(f==b)return;for(i=0;i=this.photos.length){log.error("Invalid photo index");return g}var l=this.win.document;var firstShow=k;if(!this.shown){firstShow=g;l.viewer=this;try{this.hideOverlappingElements();}catch(e){}}var zIndex=16384;var bz=getWindowSize(this.win);var availW=bz.w-(this.nopadding?this.borderWidth*2:20);var availH=bz.h-(this.nopadding?this.borderWidth*2:20);var ca=getScrollPos(this.win);var scrollLeft=ca.left;var scrollTop=ca.top;this.addBackShade(zIndex);if(this.showToolbar){this.addToolbar(availW,zIndex);this.addCaptions();}var photo=this.photos[this.index];if(bn(photo.w)||bn(photo.h)){if(photo.preloadImage!=b){if(bn(photo.w)&&photo.preloadImage.width>0)photo.w=photo.preloadImage.width;if(bn(photo.h)&&photo.preloadImage.height>0)photo.h=photo.preloadImage.height}else{this.index--;this.next();return k}}this.shown=g;var dl=(this.nopadding?0:20);var bj=-1;var bk=-1;if(u(photo.w)>availW||u(photo.h)>availH){if(u(photo.w)/availW>u(photo.h)/availH){bj=availW-dl;bk=u(bj*photo.h/photo.w);}else{bk=availH-dl;bj=u(bk*photo.w/photo.h);}}else{bj=u(photo.w);bk=u(photo.h);}if(bj<=0||bk<=0){if(!this.showToolbar)throw"Missing photo dimension"}if(ck==b)ck=0;var photoDiv=l.createElement("div");photoDiv.id=VIEWER_ID_PHOTO;photoDiv.style.visibility="hidden";photoDiv.style.position="absolute";photoDiv.style.zIndex=zIndex;photoDiv.style.overflow="hidden";photoDiv.style.border=this.borderWidth+"px solid "+this.borderColor;photoDiv.style.textAlign="center";photoDiv.style.backgroundColor=this.backgroundColor;var photoElt=l.createElement("img");photoElt.style.visibility="hidden";photoElt.style.position="relative";photoElt.style.backgroundColor=this.backgroundColor;photoElt.style.border="none";photoElt.style.cursor="pointer";photoElt.style.zIndex=(u(photoDiv.style.zIndex)+1)+"";photoElt.onclick=onClickEvent;if(opacity!=b&&this.fadePhotos){var be=(ci?photoDiv:photoElt);bc(be,opacity);}var left=u((availW-bj)/2)+(this.nopadding?0:ew);photoDiv.style.left=(left+scrollLeft+ck/2)+"px";var ba=u((availH-bk)/2)+(this.nopadding?0:ex);photoDiv.style.top=(ba+scrollTop)+"px";photoElt.style.visibility="hidden";photoDiv.style.width=(bj-ck)+"px";photoDiv.style.height=bk+"px";photoElt.style.width=bj+"px";photoElt.style.height=bk+"px";photoElt.src=photo.src;photoDiv.style.visibility="visible";photoElt.style.visibility="visible";photoDiv.appendChild(photoElt);l.body.appendChild(photoDiv);if(this.photoDiv!=b){try{l.body.removeChild(this.photoDiv);}catch(e){}}this.photoDiv=photoDiv;this.photoImg=photoElt;this.setLoading(k);if(this.showCallback!=b)this.showCallback(this.index);if(firstShow&&this.autoPlay){this.slideShow(g);}return k}function ez(){return this.shown}function closeViewer(){getViewer().close();}function cu(event){var viewer=getViewer();if(viewer!=b){if(dm(viewer,viewer.index)){viewer.setLoading(k);viewer.index--;viewer.next();return}viewer.show();}}function closePhoto(){var win=this.win;if(win==b)win=q;var l=win.document;var o=this.photoDiv;if(o!=b)l.body.removeChild(o);o=l.getElementById(VIEWER_ID_BACK);if(o!=b)l.body.removeChild(o);o=l.getElementById(VIEWER_ID_TOOLBAR);if(o!=b)l.body.removeChild(o);o=l.getElementById(VIEWER_ID_BYLINE);if(o!=b)l.body.removeChild(o);this.shown=k;this.slideShowRunning=k;this.slideShowPaused=k;try{this.showOverlappingElements();}catch(e){log.error(e);}if(this.toolbarAnimator!=b){this.toolbarAnimator.reset();}if(this.closeCallback!=b)this.closeCallback(this.index);}function nextPhoto(n){if(this.isLoading)return;if(n==b)n=1;var fh=this.index;if(this.index+n>=this.photos.length){if(this.loop&&n!=this.photos.length){this.index=0}else{this.index=this.photos.length-1}}else if(this.index+n<0){if(n<-1)this.index=0;else if(this.loop)this.index=this.photos.length-1;else return}else{this.index+=n}if(this.index==fh)return;this.slideShowStop();var img=new fi();this.photos[this.index].preloadImage=img;this.setLoading(g);img.onload=cu;img.onerror=cu;if(this.photos[this.index].src!=b){img.src=this.photos[this.index].src}else{cu();}}function prevPhoto(n){if(n==b)n=1;this.next(-n);}function firstPhoto(){this.prev(this.photos.length);}function lastPhoto(){this.next(this.photos.length);}function startSlideShow(){getViewer().slideShow(g);}var fj;cl=k;cm=b;function slideShow(start){if(this.toolbarAnimator!=b)this.toolbarAnimator.slideshowAction();var nextIndex=this.index+1;if(nextIndex>=this.photos.length){if(this.loop)nextIndex=0;else if(!this.slideShowPaused&&!this.slideShowRunning){this.setToolbarImage(bb+"/"+TOOLBAR_IMG);return}}var l=this.win.document;var viewer=this;var photoElt=this.photoImg;if(photoElt==b)return;var photoDiv=this.photoDiv;var be=(ci?photoDiv:photoElt);if(start!=b&&start===g){if(this.slideShowPaused){this.slideShowPaused=k;this.setToolbarImage(bb+"/"+TOOLBAR_IMG_RUNNING);return}else if(this.slideShowRunning){this.slideShowPaused=g;this.setToolbarImage(bb+"/"+TOOLBAR_IMG);return}else{this.slideShowRunning=g;this.slideShowPaused=k;this.slideFirstPhoto=g;this.setToolbarImage(bb+"/"+TOOLBAR_IMG_RUNNING);}if(this.isLoading||this.index>this.photos.length-1){return}}else if(this.slideShowPaused){q.setTimeout(function(){viewer.slideShow(k);},200);return}else if(!this.slideShowRunning){this.setToolbarImage(bb+"/"+TOOLBAR_IMG);return}var left=0;if(photoElt.leftOffset!=b){left=fk(photoElt.leftOffset);}if(left===0){if(nextIndex-cb){left-=er;if(-left<=cj){if(be.style.opacity!=b&&fk(be.style.opacity)<1){if(this.fadePhotos&&this.photos[this.index].src!=b)bc(be,-left/cj);}}else if(left+cbes)cl=g;left++;this.setLoading(g);}else{if(nextIndex=this.photos.length){this.slideShowRunning=k;this.slideShowPaused=k;this.setToolbarImage(bb+"/"+TOOLBAR_IMG);if(this.toolbarAnimator!=b)this.toolbarAnimator.reset();if(this.endCallback!=b)this.endCallback();return}this.index=nextIndex;this.slideFirstPhoto=k;this.show(b,(this.panPhotos?cb:0),0);be=(ci?this.photoDiv:this.photoImg);if(this.fadePhotos)bc(be,0);this.photoImg.leftOffset=0;if(this.panPhotos)this.photoImg.style.left="0px"}var dp=this.slideDuration/cb;if(this.slideFirstPhoto){dp/=2}fj=q.setTimeout(function(){viewer.slideShow(k);},dp);}function dn(event){var viewer=getViewer();if(viewer!=b){if(dm(viewer,viewer.index+1)){var bq=viewer.photos[viewer.index+1].preloadImage;bq.src=viewer.photos[viewer.index+1].src;cm=getTimeMillis();return}cl=g;viewer.setLoading(k);}}function slideShowStop(){this.slideShowRunning=k;this.slideShowPaused=k;var l=this.win.document;var photoElt=this.photoImg;if(photoElt!=b){if(this.fadePhotos){var be=(ci?this.photoDiv:photoElt);bc(be,1);}photoElt.style.left="0px"}}function addBackShade(zIndex){var l=this.win.document;if(l.getElementById(VIEWER_ID_BACK)!=b){return}var photoBack=l.createElement("div");photoBack.id=VIEWER_ID_BACK;photoBack.style.top="0px";photoBack.style.left="0px";photoBack.style.bottom="0px";photoBack.style.right="0px";photoBack.style.margin="0";photoBack.style.padding="0";photoBack.style.border="none";photoBack.style.cursor="pointer";if(bo&&!(cf&&bu)){photoBack.style.position="absolute";var dq=getDocumentSize(this.win);photoBack.style.width=(dq.w-21)+"px";photoBack.style.height=(dq.h-4)+"px"}else{photoBack.style.position="fixed";photoBack.style.width="100%";photoBack.style.height="100%"}photoBack.style.zIndex=zIndex-1;photoBack.style.backgroundColor=this.shadeColor;if(this.backgroundShade)bc(photoBack,this.shadeOpacity);else bc(photoBack,0.0);photoBack.onclick=onClickEvent;l.body.appendChild(photoBack);}function addToolbar(availW,zIndex){var l=this.win.document;var i;if(l.getElementById(VIEWER_ID_TOOLBAR)!=b)return;var photoToolbar=l.createElement("div");photoToolbar.id=VIEWER_ID_TOOLBAR;bc(photoToolbar,TOOLBAR_OPACITY);photoToolbar.style.zIndex=zIndex+1;var imgBack=TOOLBAR_IMG_BACK;if(!di()){imgBack+="-nologo"}if(bo&&!cf){imgBack+="-indexed"}imgBack+=".png";if(!this.overrideToolbarStyles){var bottom=10;if(bo&&!(cf&&bu)){photoToolbar.style.position="absolute";if(cf){var ba=getWindowSize(this.win).h+getScrollPos(this.win).top;photoToolbar.style.top=(ba-TOOLBAR_H-10)+"px"}else{photoToolbar.style.bottom=bottom+"px"}}else{photoToolbar.style.position="fixed";photoToolbar.style.bottom=bottom+"px"}photoToolbar.style.left=(availW-TOOLBAR_W+10)/2+"px";photoToolbar.style.width=TOOLBAR_W+"px";photoToolbar.style.height=TOOLBAR_H+"px";photoToolbar.style.textAlign="center";photoToolbar.style.backgroundImage="url('"+bb+"/"+imgBack+"')";photoToolbar.style.backgroundPosition="50% 0%";photoToolbar.style.backgroundRepeat="no-repeat";photoToolbar.style.lineHeight=ev}var toolbarMask=b;if(!this.enableEmailLink&&TOOLBAR_IMG_MASK!=b){toolbarMask=l.createElement("img");toolbarMask.style.position="absolute";toolbarMask.style.width=44;toolbarMask.style.height=44;toolbarMask.style.left="289px";toolbarMask.style.top="0px";toolbarMask.src=bb+"/"+TOOLBAR_IMG_MASK;photoToolbar.appendChild(toolbarMask);}if(!this.enablePhotoLink&&TOOLBAR_IMG_MASK!=b){toolbarMask=l.createElement("img");toolbarMask.style.position="absolute";toolbarMask.style.width=44;toolbarMask.style.height=44;toolbarMask.style.left="339px";toolbarMask.style.top="0px";toolbarMask.src=bb+"/"+TOOLBAR_IMG_MASK;photoToolbar.appendChild(toolbarMask);}var imgMap=this.customImageMap;if(imgMap===b){imgMap=l.createElement("map");var areas=[];areas.push(["getViewer().first()","17",getMessage("photoviewer.toolbar.first")]);areas.push(["getViewer().prev()","68",getMessage("photoviewer.toolbar.prev")]);areas.push(["getViewer().slideShow(true)","122",getMessage("photoviewer.toolbar.slideShow")]);areas.push(["getViewer().next()","175",getMessage("photoviewer.toolbar.next")]);areas.push(["getViewer().last()","227",getMessage("photoviewer.toolbar.last")]);if(this.enableEmailLink)areas.push(["getViewer().email()","300",getMessage("photoviewer.toolbar.email")]);if(this.enablePhotoLink)areas.push(["getViewer().permalink()","350",getMessage("photoviewer.toolbar.permalink")]);areas.push(["getViewer().close()","402",getMessage("photoviewer.toolbar.close")]);for(i=0;iTITLE_MAX_LENGTH){photoTitle.title=title;photoTitle.alt=title;title=title.substring(0,TITLE_MAX_LENGTH)+" ..."}if(title.indexOf("\n")!==0){title=title.replace("\n","
");photoTitle.innerHTML=title}else{photoTitle.nodeValue=title}if(photo.byline!=b&&photo.byline.length>0){photoByline.firstChild.nodeValue=photo.byline}else{photoByline.firstChild.nodeValue=""}}function setCloseCallback(bd){this.closeCallback=bd}function setShowCallback(bd){this.showCallback=bd}function setEndCallback(bd){this.endCallback=bd}function emailPhoto(){var photo=this.photos[this.index];var l=this.win.document;var title=(photo.title!=b?photo.title:getMessage("photoviewer.email.subject.photo"));var mailtoLink="mailto:?subject="+title+"&body="+getPhotoURL(photo.src);l.location.href=mailtoLink}function getPhotoURL(url){var cc=c.location;if(/\w+:\/\/.+/.test(url)){return url}else if(url.indexOf("/")===0){return cc.protocol+"//"+cc.host+url}else{var cn=cc.pathname;var x=cn.lastIndexOf("/");if(x!=-1){cn=cn.substring(0,x);}return cc.protocol+"//"+cc.host+cn+"/"+url}}function fd(){var photo=this.photos[this.index];eb(photo.src);}function fc(){var photo=this.photos[this.index];var l=this.win.document;var restURL=REST_URL+"markfeatured?id"+photo.id;try{var gh=getResponse(restURL,k,g);}catch(e){return}}function hideOverlappingElements(node){if(node==b){node=this.win.document.body;this.hideOverlappingElements(node);return}if(node.style!=b&&node.style.visibility!="hidden"){var nodeName=node.nodeName.toLowerCase();if((node.className!=b&&node.className.indexOf("SlideshowDoHide")!=-1)||(bo&&(nodeName=="select"||nodeName=="object"||nodeName=="embed"))){node.style.visibility="hidden";if(this.hiddenElements==b)this.hiddenElements=[];this.hiddenElements.push(node);}}if(node.childNodes!=b){var i;for(i=0;i0?opacity:0);this.hidden=g;this.hiderID=q.setTimeout(function(){bt.hideToolbar();},100);};ToolbarAnimator.prototype.showToolbar=function(){var toolbar=bh(VIEWER_ID_TOOLBAR);if(toolbar!=b){toolbar.style.display="block";bc(toolbar,TOOLBAR_OPACITY);}this.hidden=k};