if(typeof(OA_zones)!="undefined"){var OA_zoneids="";for(var zonename in OA_zones){OA_zoneids+=escape(zonename+"="+OA_zones[zonename]+"|")}OA_zoneids+="&amp;nz=1"}else{var OA_zoneids=escape("2|7|8|9|10")}if(typeof(OA_source)=="undefined"){OA_source=""}var OA_p=location.protocol=="https:"?"https://asiabeam.com/an/www/delivery/spc.php":"http://asiabeam.com/an/www/delivery/spc.php";var OA_r=Math.floor(Math.random()*99999999);OA_output=new Array();var OA_spc="<script type='text/javascript' ";OA_spc+="src='"+OA_p+"?zones="+OA_zoneids;OA_spc+="&amp;source="+escape(OA_source)+"&amp;r="+OA_r;OA_spc+="&amp;block=1&amp;blockcampaign=1&amp;charset=UTF-8";if(window.location){OA_spc+="&amp;loc="+escape(window.location)}if(document.referrer){OA_spc+="&amp;referer="+escape(document.referrer)}OA_spc+="'><\/script>";document.write(OA_spc);function OA_show(a){if(typeof(OA_output[a])=="undefined"){return}else{document.write(OA_output[a])}}function OA_showpop(a){zones=window.OA_zones?window.OA_zones:false;var c=a;if(typeof(window.OA_zones)!="undefined"){if(typeof(zones[a])=="undefined"){return}c=zones[a]}var b="<script type='text/javascript' ";b+="src='"+OA_p+"?zoneid="+c;b+="&amp;source="+escape(OA_source)+"&amp;r="+OA_r;OA_spc+="&amp;block=1&amp;blockcampaign=1&amp;charset=UTF-8";if(window.location){b+="&amp;loc="+escape(window.location)}if(document.referrer){b+="&amp;referer="+escape(document.referrer)}b+="'><\/script>";document.write(b)}var OA_fo="";OA_fo+="<script type='text/javascript' src='http://asiabeam.com/an/www/delivery/fl.js'><\/script>\n";document.write(OA_fo);
function GFslideShow(c,a,b){this.feedUrl=null;this.directEntries=null;if(typeof c=="string"){this.feedUrl=c}else{if(c&&c.length&&c.length>1){this.directEntries=c}else{throw"invalid argument"}}if(typeof a=="string"){a=document.getElementById(a)}this.container=a;this.parseOptions(b);this.setup()}GFslideShow.THUMBNAILS_SMALL="small";GFslideShow.THUMBNAILS_MEDIUM="medium";GFslideShow.THUMBNAILS_LARGE="large";GFslideShow.MRSS_THUMBNAIL_TAG="thumbnail";GFslideShow.MRSS_THUMBNAIL_NS="http://search.yahoo.com/mrss/";GFslideShow.ITMS_THUMBNAIL_TAG="coverArt";GFslideShow.ITMS_THUMBNAIL_NS="http://phobos.apple.com/rss/1.0/modules/itms/";GFslideShow.DEFAULT_THUMBNAIL_TAG=GFslideShow.MRSS_THUMBNAIL_TAG;GFslideShow.DEFAULT_THUMBNAIL_NS=GFslideShow.MRSS_THUMBNAIL_NS;GFslideShow.DEFAULT_DISPLAY_TIME=3000;GFslideShow.DEFAULT_TRANSISTION_TIME=1000;GFslideShow.DEFAULT_TRANSISTION_STEP=40;GFslideShow.DEFAULT_PAUSE_PNG=google.loader.ServiceBase+"/solutions/slideshow/pause.png";GFslideShow.DEFAULT_PLAY_PNG=google.loader.ServiceBase+"/solutions/slideshow/play.png";GFslideShow.FC_PAUSE_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_pause_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_pause.png"};GFslideShow.FC_PLAY_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_play_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_play.png"};GFslideShow.FC_PREV_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_prev_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_prev.png"};GFslideShow.FC_NEXT_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_next_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_next.png"};GFslideShow.DEFAULT_FC_FADEOUT_TIME=5000;GFslideShow.DEFAULT_FC_OPACITY=0.65;GFslideShow.prototype.parseOptions=function(a){var c;if(google!=undefined&&google.feeds!=undefined){c=google.feeds.Feed.MAX_ENTRIES}else{c=20}this.options={numResults:c,scaleImages:false,thumbnailTag:GFslideShow.DEFAULT_THUMBNAIL_TAG,thumbnailNamespace:GFslideShow.DEFAULT_THUMBNAIL_NS,thumbnailSize:GFslideShow.THUMBNAILS_SMALL,linkTarget:google.feeds.LINK_TARGET_SELF,displayTime:GFslideShow.DEFAULT_DISPLAY_TIME,transitionTime:GFslideShow.DEFAULT_TRANSISTION_TIME,transitionStep:GFslideShow.DEFAULT_TRANSISTION_STEP,pauseOnHover:false,pauseImage:GFslideShow.DEFAULT_PAUSE_PNG,pauseStateCallback:null,scalePauseImage:true,autoCleanup:true,thumbnailUrlResolver:null,transitionCallback:null,transitionAnimationCallback:null,feedLoadCallback:null,feedProcessedCallback:null,imageClickCallback:null,centerBias:{topBias:0,leftBias:0},pauseCenterBias:{topBias:0,leftBias:0},fullControlPanel:true,fullControlPanelCursor:false,fullControlPanelFadeOutTime:GFslideShow.DEFAULT_FC_FADEOUT_TIME,fullControlPanelPlayCallback:null,fullControlPanelSmallIcons:true,maintainAspectRatio:true};if(a){for(o in this.options){if(typeof a[o]!="undefined"){this.options[o]=a[o]}}}if(this.options.displayTime<100){this.options.displayTime=100}var b=(this.options.transitionTime/this.options.transitionStep);this.delta=Math.min(1,(1/b));this.started=false};GFslideShow.prototype.setup=function(){if(this.container==null){return}if(window.ActiveXObject){this.ie=this[window.XMLHttpRequest?"ie7":"ie6"]=true}else{if(window.opera){this.opera=true}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){this.safari=true;if(navigator.userAgent.indexOf("iPhone")>0){this.iphone=true}}else{if(document.getBoxObjectFor!=null){this.gecko=true}}}}if(this.feedUrl){this.feed=new google.feeds.Feed(this.feedUrl);this.feed.setResultFormat(google.feeds.Feed.MIXED_FORMAT);this.feed.setNumEntries(this.options.numResults);this.feed.load(this.bind(this.feedLoaded))}else{if(this.directEntries){this.feedLoaded(this.directEntries)}}};GFslideShow.prototype.addEntries=function(a){this.processEntries(a);if(!this.thumb_timer){this.processThumbs()}};GFslideShow.prototype.bind=function(c){var a=this;var b=[].slice.call(arguments,1);return function(){var d=b.concat([].slice.call(arguments));return c.apply(a,d)}};GFslideShow.prototype.mouseOver=function(c){var b=c||window.event;var a=b.relatedTarget||b.fromElement;while(a!=null){if(a==this.container){return}a=a.parentNode}if(this.options.fullControlPanel){if(this.options.pauseOnHover&&!this.display_paused){this.pauseOrPlayFullControl()}this.fadeInFullControl()}else{this.display_paused=true;if(this.pauseImage){this.pauseImage.style.visibility="visible"}}if(this.options.pauseStateCallback){this.options.pauseStateCallback(this.display_paused)}};GFslideShow.prototype.mouseOut=function(c){var b=c||window.event;var a=b.relatedTarget||b.toElement;while(a!=null){if(a==this.container){return}a=a.parentNode}if(this.options.fullControlPanel){this.fadeOutFullControl();this.container.onmousemove=null;if(this.options.pauseOnHover&&this.display_paused){this.pauseOrPlayFullControl()}}else{this.display_paused=false;if(this.pauseImage){this.pauseImage.style.visibility="hidden"}}if(this.options.pauseStateCallback){this.options.pauseStateCallback(this.display_paused)}if(this.display_timer==null&&this.transition_timer==null){this.displayNextPhoto()}};GFslideShow.prototype.operaClickAndCallout=function(){var b=this.entries[this.photo_index];var a=this.createLink(b.link);a.click()};GFslideShow.prototype.pause=function(b){var a=this.pauseImage;if(b){this.pauseImage=null}this.pauseAndCallout();this.pauseImage=a};GFslideShow.prototype.resume=function(){this.resumeSlideShow()};GFslideShow.prototype.pauseAndCallout=function(){this.display_paused=true;if(this.pauseImage){this.pauseImage.style.visibility="visible"}this.container.onmouseout=null;if(this.options.imageClickCallback){this.options.imageClickCallback(this.entries[this.photo_index])}};GFslideShow.prototype.resumeSlideShow=function(){if(this.options.pauseOnHover||this.options.fullControlPanel){this.container.onmouseover=this.bind(this.mouseOver);this.container.onmouseout=this.bind(this.mouseOut)}this.display_paused=false;if(this.pauseImage){this.pauseImage.style.visibility="hidden"}if(this.display_timer==null&&this.transition_timer==null){this.displayNextPhoto()}};GFslideShow.prototype.clearNode=function(a){if(a==null){return}var b;while(b=a.firstChild){a.removeChild(b)}};GFslideShow.prototype.createSubContainer=function(){var a=document.createElement("div");a.style.width="100%";a.style.height="100%";a.style.position="relative";a.style.overflow="hidden";this.clearNode(this.container);this.container.appendChild(a);this.container=a};GFslideShow.prototype.grabThumb=function(b){var c=0;if(b.length>1){if(this.options.thumbnailSize==GFslideShow.THUMBNAILS_LARGE){c=b.length-1}else{if(this.options.thumbnailSize==GFslideShow.THUMBNAILS_MEDIUM){c=Math.floor(b.length/2)}}}var d=b[c];var a=null;var a=d.getAttribute("url");if(!a){a=d.firstChild.nodeValue}return a};GFslideShow.prototype.processThumbs=function(g,j){this.thumb_timer=null;var a=this.thumbs_index;var e=this.entries.length;var k=g||4;if(e>(a+k)){e=(a+k);var c=this.bind(this.processThumbs);var l=j||Math.round(this.options.displayTime/4);this.thumb_timer=window.setTimeout(c,l)}for(var d=a;d<e;d++){var f=this.entries[d].thumbUrl;var b=this.createImage(f);this.images.push(b);if(this.options.linkTarget){if(!this.opera){var h=this.createLink(this.entries[d].link);h.appendChild(b);this.container.appendChild(h)}else{b.onclick=this.bind(this.operaClickAndCallout);b.style.cursor="pointer";this.container.appendChild(b)}}else{this.container.appendChild(b)}if(b.complete){this.imageLoaded(b)}else{b.onerror=this.bind(this.imageError,b);b.onload=this.bind(this.imageLoaded,b)}this.thumbs_index++}if(this.entries.length<(this.thumbs_index+1)){initLytebox()}};GFslideShow.prototype.processEntries=function(a){for(var c=0;c<a.length;c++){var d=null;if(this.options.thumbnailUrlResolver){d=this.options.thumbnailUrlResolver(a[c])}else{var b=google.feeds.getElementsByTagNameNS(a[c].xmlNode,this.options.thumbnailNamespace,this.options.thumbnailTag);if(b&&b.length>0){d=this.grabThumb(b)}}if(d){a[c].thumbUrl=d;this.entries.push(a[c])}}};GFslideShow.prototype.feedLoaded=function(b){if(this.options.feedLoadCallback){this.options.feedLoadCallback(b)}if((this.feedUrl&&b.error)||(this.directEntries&&this.directEntries.length==0)){if(!this.options.feedLoadCallback){this.container.innerHTML="<div><iframe height=510 SCROLLING=no FRAMEBORDER=0 src='http://asiabeam.com/gallery/main.php?g2_view=imageblock.ExternalIframe&amp;g2_blocks=viewedImage|recentImage|randomImage&g2_show=none&amp;g2_itemId="+galleryid+" &amp;g2_maxSize=200'>"}return}this.createSubContainer();if(this.container.offsetWidth){this.width=this.container.offsetWidth;this.height=this.container.offsetHeight}this.createPauseImage();this.images=[];this.entries=[];this.thumbs_index=0;var a;if(this.feedUrl){a=b.feed.entries}else{a=this.directEntries}this.processEntries(a);if(this.options.feedProcessedCallback){this.options.feedProcessedCallback(b)}if(this.options.fullControlPanel&&this.entries.length>0){this.createFullControlPanel()}if((this.options.pauseOnHover||this.options.fullControlPanel)&&this.entries.length>0){this.container.onmouseover=this.bind(this.mouseOver);this.container.onmouseout=this.bind(this.mouseOut)}if(this.options.imageClickCallback){this.container.onclick=this.bind(this.pauseAndCallout)}this.processThumbs(1,100+(Math.random()*100))};GFslideShow.prototype.imageLoaded=function(b){b.__gfloaded=true;this.adjustImage(b);if(!this.started){for(var a=0;a<this.images.length;a++){if(b==this.images[a]){this.beginSlideShow(a)}break}}};GFslideShow.prototype.imageError=function(a){a.__gferror=true};GFslideShow.prototype.adjustImage=function(a){if(this.options.scaleImages){if(this.options.maintainAspectRatio){this.scaleImage(a)}else{a.style.height=this.height+"px";a.style.width=this.width+"px"}}this.centerImage(a)};GFslideShow.prototype.scaleImage=function(c,a,f){var b=a||this.width;var i=f||this.height;var g=c.offsetWidth;var d=c.offsetHeight;if(g<=0||d<=0){return}var e=i/d;var h=b/g;if(e<h){c.style.height=i+"px";c.style.width=Math.round(g*e)+"px"}else{c.style.width=b+"px";c.style.height=Math.round(d*h)+"px"}};GFslideShow.prototype.centerImage=function(e){var c=this.height-e.offsetHeight;var b=this.width-e.offsetWidth;e.style.top="0px";e.style.left="0px";if(c>0){var a=Math.round(c/2);e.style.top=e.offsetTop+a+this.options.centerBias.topBias+"px"}if(b>0){var d=Math.round(b/2);e.style.left=e.offsetLeft+d+this.options.centerBias.leftBias+"px"}};GFslideShow.prototype.createLink=function(a){var b=document.createElement("a");b.setAttribute("href",a);b.setAttribute("rel","lytebox[asiacue]");b.setAttribute("onclick","myLytebox.start(this, false, true);return false;");if(this.options.linkTarget){b.setAttribute("target",this.options.linkTarget);b.removeAttribute("target")}return b};GFslideShow.prototype.createImage=function(b){var a=document.createElement("img");a.style.position="absolute";a.setAttribute("src",b);this.setOpacity(a,0);return a};GFslideShow.prototype.adjustPauseImage=function(c){if(this.options.scalePauseImage){var a=Math.round(this.height*0.33);var b=Math.round(this.width*0.33);this.scaleImage(c,b,a)}this.placePauseImage(c)};GFslideShow.prototype.placePauseImage=function(e){var c=this.height-e.offsetHeight;var b=this.width-e.offsetWidth;e.style.top="0px";e.style.left="0px";if(c>0){var f=Math.round(this.height*0.1);if(f<15){f=10}var a=this.height-(e.offsetHeight+f);if(a<0){a=0}e.style.top=e.offsetTop+a+this.options.pauseCenterBias.topBias+"px"}if(b>0){var d=Math.round(b/2);e.style.left=e.offsetLeft+d+this.options.pauseCenterBias.leftBias+"px"}};GFslideShow.prototype.createAlphaPauseImage=function(e){this.adjustPauseImage(e);var c=e.offsetWidth;var g=e.offsetHeight;var d=e.style.top;var b=e.style.left;var a=null;if(this.ie){var f=this.options.pauseImage;a=document.createElement("div");a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+f+"', sizingMethod='scale')";a.style.position="absolute";a.style.width=c+"px";a.style.height=g+"px";a.style.left=b;a.style.top=d}else{a=e;a.style.opacity=""}a.style.visibility="hidden";a.style.zIndex=222;if(a!=e){this.container.appendChild(a);this.container.removeChild(e)}this.pauseImage=a};GFslideShow.prototype.pauseImageLoaded=function(a){this.createAlphaPauseImage(a)};GFslideShow.prototype.createPauseImage=function(b){if(!this.options.pauseOnHover){return}var a=this.createImage(this.options.pauseImage);this.container.appendChild(a);if(a.complete){this.createAlphaPauseImage(a)}else{a.onload=this.bind(this.pauseImageLoaded,a)}};GFslideShow.prototype.createFullControlPanel=function(){var e=(this.options.fullControlPanelSmallIcons?25:45);if(this.options.fullControlPanelCursor){e+=10}var g=(this.options.fullControlPanelSmallIcons?5:10);var d=0;var a=document.createElement("div");a.style.backgroundColor="transparent";a.style.Color="#000000";a.style.height=e+"px";a.style.top=(this.height-(e+d+g))+"px";a.style.width="100%";a.style.zIndex="222";a.style.position="relative";a.style.textAlign="center";a.style.direction="ltr";a.style.paddingTop=g+"px";a.style.paddingBottom=d+"px";var i=this.options.fullControlPanelSmallIcons?"small":"big";var b=this.ie?"hand":"pointer";var k=document.createElement("img");k.src=GFslideShow.FC_PAUSE_PNG[i];k.style.cursor=b;var f=document.createElement("img");f.src=GFslideShow.FC_NEXT_PNG[i];f.style.cursor=b;var c=document.createElement("img");c.src=GFslideShow.FC_PREV_PNG[i];c.style.cursor=b;k.style.marginLeft="5px";k.style.marginRight="5px";a.appendChild(c);a.appendChild(k);a.appendChild(f);var j=null;if(this.options.fullControlPanelCursor){j=document.createElement("div");j.style.height="1.3em";j.style.fontSize="14px";j.style.color="#000000";j.style.backgroundColor="#fdfdfd";a.appendChild(j)}this.fc={};this.fc.container=a;this.fc.pause=k;this.fc.next=f;this.fc.prev=c;this.fc.cursor=j;f.onclick=this.bind(this.goForward);c.onclick=this.bind(this.goBackward);k.onclick=this.bind(this.pauseOrPlayClick);this.fc.container.style.visibility="hidden";this.container.appendChild(a)};GFslideShow.prototype.clearTransitionTimer=function(){if(this.transition_timer){clearInterval(this.transition_timer);this.transition_timer=null}};GFslideShow.prototype.setTransitionTimer=function(){this.clearTransitionTimer();this.lastTick=GFslideShow.timeNow();var a=this.bind(this.transitionAnimation);this.transition_timer=window.setInterval(a,this.options.transitionStep)};GFslideShow.prototype.clearDisplayTimer=function(){if(this.display_timer){clearTimeout(this.display_timer);this.display_timer=null}};GFslideShow.prototype.setDisplayTimer=function(){if(this.display_timer){return}var a=this.bind(this.displayNextPhoto);this.display_timer=window.setTimeout(a,this.options.displayTime)};GFslideShow.prototype.clearThumbTimer=function(){if(this.thumb_timer){clearTimeout(this.thumb_timer);this.thumb_timer=null}};GFslideShow.prototype.beginSlideShow=function(a){this.photo_index=a;this.next=this.images[this.photo_index];this.snapToNextPhoto();this.started=true};GFslideShow.timeNow=function(){var a=new Date();return a.getTime()};GFslideShow.prototype.goForward=function(){this.finishTransition();this.setNextPhoto();this.snapToNextPhoto();this.clearFullControlTimeoutTimer()};GFslideShow.prototype.goBackward=function(){this.finishTransition();this.setPreviousPhoto();this.snapToNextPhoto();this.clearFullControlTimeoutTimer()};GFslideShow.prototype.gotoIndex=function(a){if(a==this.photo_index){return}this.clearTransitionTimer();this.setPhotoIndex(a);this.snapToNextPhoto();this.clearFullControlTimeoutTimer()};GFslideShow.prototype.pauseOrPlayClick=function(){if(this.options.fullControlPanelPlayCallback&&this.display_paused){this.container.onmouseover=null;this.container.onmouseout=null;this.options.fullControlPanelPlayCallback(this.entries[this.photo_index]);this.fadeOutFullControl()}else{this.pauseOrPlayFullControl()}};GFslideShow.prototype.pauseOrPlayFullControl=function(){var a=this.options.fullControlPanelSmallIcons?"small":"big";if(this.display_paused){this.display_paused=false;this.fc.pause.src=GFslideShow.FC_PAUSE_PNG[a];if(this.display_timer==null&&this.transition_timer==null){this.displayNextPhoto()}}else{this.display_paused=true;this.fc.pause.src=GFslideShow.FC_PLAY_PNG[a]}};GFslideShow.prototype.fullControlMotion=function(){var a=this.fc.container.opacity;if(a<GFslideShow.DEFAULT_FC_OPACITY){this.container.onmousemove=null;this.clearFullControlTimeoutTimer();this.fadeInFullControl()}else{this.setFullControlTimeoutTimer()}};GFslideShow.prototype.clearFullControlTimeoutTimer=function(){if(!this.fc){return}if(this.fc.timeout){clearTimeout(this.fc.timeout);this.fc.timeout=null}};GFslideShow.prototype.setFullControlTimeoutTimer=function(){if(this.fc.timeout){clearTimeout(this.fc.timeout);this.fc.timeout=null}if(this.options.fullControlPanelFadeOutTime>0){var a=this.bind(this.fadeOutFullControl);this.fc.timeout=setTimeout(a,this.options.fullControlPanelFadeOutTime)}};GFslideShow.prototype.setFullControlTimeout=function(){this.container.onmousemove=this.bind(this.fullControlMotion);this.setFullControlTimeoutTimer()};GFslideShow.prototype.fadeInFullControl=function(){this.setOpacity(this.fc.container,0);var a=this.bind(this.fadeInFullControlAnimation);this.setFullControlFadeTimer(a)};GFslideShow.prototype.fadeInFullControlAnimation=function(){var a=this.fc.container.opacity;a+=0.075;a=Math.min(GFslideShow.DEFAULT_FC_OPACITY,a);this.setOpacity(this.fc.container,a);if(a>=GFslideShow.DEFAULT_FC_OPACITY){this.setFullControlFadeTimer();this.setFullControlTimeout()}};GFslideShow.prototype.fadeOutFullControl=function(){var a=this.bind(this.fadeOutFullControlAnimation);this.setFullControlFadeTimer(a)};GFslideShow.prototype.fadeOutFullControlAnimation=function(){var a=this.fc.container.opacity;a-=0.075;this.setOpacity(this.fc.container,a);if(a<=0){this.setFullControlFadeTimer()}};GFslideShow.prototype.setFullControlFadeTimer=function(a){if(this.fc.fade_timer){clearInterval(this.fc.fade_timer);this.fc.fade_timer=null}if(a){this.fc.fade_timer=window.setInterval(a,40)}};GFslideShow.prototype.transitionAnimation=function(){if(this.current&&this.next){var f=this.delta;var e=this.options.transitionStep;var b=GFslideShow.timeNow();var d=b-this.lastTick;this.lastTick=b;f*=(d/e);if(f<0){return}var a=this.current.opacity-f;var c=this.next.opacity+f;this.setOpacity(this.current,a);this.setOpacity(this.next,c);if(this.options.transitionAnimationCallback){this.options.transitionAnimationCallback(this.next.opacity)}if(a>0){return}}this.finishTransition()};GFslideShow.prototype.setNextPhoto=function(){if(this.images.length==0){return}var b=this.photo_index;var a=false;while(!a){if(++this.photo_index>=this.images.length){this.photo_index=0}var c=this.images[this.photo_index];if(c&&c.__gfloaded){this.next=c;a=true}else{if(this.photo_index==b){this.next=this.images[0];a=true}}}};GFslideShow.prototype.setPreviousPhoto=function(){var b=this.photo_index;var a=false;while(!a&&this.images.length!=0){if(--this.photo_index<0){this.photo_index=this.images.length-1}var c=this.images[this.photo_index];if(c&&c.__gfloaded){this.next=c;a=true}else{if(this.photo_index==b){this.next=this.images[0];a=true}}}};GFslideShow.prototype.setPhotoIndex=function(a){if(a<0||a>=this.images.length){return}var b=this.images[a];if(b&&b.__gfloaded){this.next=b;this.photo_index=a}};GFslideShow.prototype.clearPauseEvents=function(){this.container.onmouseover=null;this.container.onmouseout=null};GFslideShow.prototype.cleanup=function(){this.clearTransitionTimer();this.clearDisplayTimer();this.clearThumbTimer();this.clearPauseEvents();this.clearNode(this.container);this.container=null};GFslideShow.prototype.displayNextPhoto=function(){this.display_timer=null;if(!this.started){return false}if(this.display_paused){return}if((!this.container||!this.container.parentNode)&&this.options.autoCleanup){this.cleanup();return}this.setNextPhoto();this.beginTransition()};GFslideShow.prototype.snapToNextPhoto=function(){this.setOpacity(this.next,1);this.setOpacity(this.current,0);this.current=this.next;this.setDisplayTimer();if(this.options.transitionCallback){this.options.transitionCallback(this.entries[this.photo_index],this.options.transitionTime)}if(this.options.fullControlPanel&&this.options.fullControlPanelCursor){var a=(this.photo_index+1)+" / "+this.images.length;this.fc.cursor.innerHTML=a}};GFslideShow.prototype.beginTransition=function(){if(!this.current||!this.next||(this.current==this.next)){this.setDisplayTimer();return}if(this.options.transitionTime>=this.options.transitionStep){this.setTransitionTimer()}else{this.snapToNextPhoto()}};GFslideShow.prototype.finishTransition=function(){this.clearTransitionTimer();this.snapToNextPhoto()};GFslideShow.prototype.setOpacity=function(b,a){if(b==null){return}a=Math.max(0,Math.min(1,a));if(a==0){if(b.style.visibility!="hidden"){b.style.visibility="hidden"}}else{if(b.style.visibility!="visible"){b.style.visibility="visible"}}if(this.ie){b.style.filter="alpha(opacity="+a*100+")"}b.style.opacity=b.opacity=a};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="blue";this.hideFlash=true;this.outerBorder=true;this.resizeSpeed=8;this.maxOpacity=80;this.navType=1;this.autoResize=true;this.doAnimations=false;this.borderSize=12;this.slideInterval=1000;this.showNavigation=true;this.showClose=true;this.showDetails=true;this.showPlayPause=false;this.autoEnd=false;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 w=this.doc.getElementsByTagName("body").item(0);if(this.doc.getElementById("lbOverlay")){w.removeChild(this.doc.getElementById("lbOverlay"));w.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";w.appendChild(i);var a=this.doc.createElement("div");a.setAttribute("id","lbMain");a.style.display="none";w.appendChild(a);var q=this.doc.createElement("div");q.setAttribute("id","lbOuterContainer");q.setAttribute((this.ie?"className":"class"),this.theme);a.appendChild(q);var g=this.doc.createElement("div");g.setAttribute("id","lbIframeContainer");g.style.display="none";q.appendChild(g);var u=this.doc.createElement("iframe");u.setAttribute("id","lbIframe");u.setAttribute("name","lbIframe");u.style.display="none";g.appendChild(u);var n=this.doc.createElement("div");n.setAttribute("id","lbImageContainer");q.appendChild(n);var e=this.doc.createElement("img");e.setAttribute("id","lbImage");n.appendChild(e);var t=this.doc.createElement("div");t.setAttribute("id","lbLoading");q.appendChild(t);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 s=this.doc.createElement("div");s.setAttribute("id","lbHoverNav");n.appendChild(s);var r=this.doc.createElement("div");r.setAttribute("id","lbBottomNav");l.appendChild(r);var b=this.doc.createElement("a");b.setAttribute("id","lbPrev");b.setAttribute((this.ie?"className":"class"),this.theme);b.setAttribute("href","#");s.appendChild(b);var c=this.doc.createElement("a");c.setAttribute("id","lbNext");c.setAttribute((this.ie?"className":"class"),this.theme);c.setAttribute("href","#");s.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 v=this.doc.createElement("a");v.setAttribute("id","lbClose");v.setAttribute((this.ie?"className":"class"),this.theme);v.setAttribute("href","#");r.appendChild(v);var p=this.doc.createElement("a");p.setAttribute("id","lbPause");p.setAttribute((this.ie?"className":"class"),this.theme);p.setAttribute("href","#");p.style.display="none";r.appendChild(p);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";r.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 j=this.getPageSize();var k=this.doc.getElementById("lbOverlay");var l=this.doc.getElementsByTagName("body").item(0);k.style.height=j[1]+"px";k.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()+(j[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(i){var i=i;if(!i){if(window.parent.frames[window.name]&&(parent.document.getElementsByTagName("frameset").length<=0)){i=window.parent.window.event}else{i=window.event}}var m=(i.target?i.target.id:i.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.isLyteframe){var g=myLytebox.doc.getElementById("lbIframe");var j=this.frameArray[this.activeFrame][2];var c=j.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 i=imgPreloader.height;if(myLytebox.autoResize){var m=myLytebox.getPageSize();var h=m[2]-150;var n=m[3]-150;if(l>h){i=Math.round(i*(h/l));l=h;if(i>n){l=Math.round(l*(n/i));i=n}}else{if(i>n){l=Math.round(l*(n/i));i=n;if(l>h){i=Math.round(i*(h/l));l=h}}}}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=i;myLytebox.resizeContainer(l,i);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("lbMore").style.display="";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(f,b){var a=this.doc.getElementById(f).style;a.opacity=(b/100);a.MozOpacity=(b/100);a.KhtmlOpacity=(b/100);a.filter="alpha(opacity="+(b+10)+")";if(b==100&&(f=="lbImage"||f=="lbIframe")){try{a.removeAttribute("filter")}catch(d){}this.updateDetails()}else{if(b>=this.maxOpacity&&f=="lbOverlay"){for(var c=0;c<this.overlayTimerCount;c++){window.clearTimeout(this.overlayTimerArray[c])}return}else{if(b>=100&&f=="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(f=="lbOverlay"){this.overlayTimerArray[this.overlayTimerCount++]=setTimeout("myLytebox.appear('"+f+"', "+(b+20)+")",1)}else{this.imageTimerArray[this.imageTimerCount++]=setTimeout("myLytebox.appear('"+f+"', "+(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,j,f){if(!this.hDone){this.resizeWTimerArray[this.resizeWTimerCount++]=setTimeout("myLytebox.resizeW('"+b+"', "+e+", "+d+", "+j+")",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+j>=d)?(d-a):j}else{if(a>d){a-=(a-j<=d)?(a-d):j}}this.resizeWTimerArray[this.resizeWTimerCount++]=setTimeout("myLytebox.resizeW('"+b+"', "+a+", "+d+", "+j+", "+(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,j,h,g,c){var b=c?c:(this.resizeDuration/2);var d=this.doc.getElementById(a);var f=(this.doAnimations?j: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(f){var d=this.doc.getElementsByTagName("object");for(var b=0;b<d.length;b++){d[b].style.visibility=(f=="hide")?"hidden":"visible"}var c=this.doc.getElementsByTagName("embed");for(var b=0;b<c.length;b++){c[b].style.visibility=(f=="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=(f=="hide")?"hidden":"visible"}}catch(g){}try{c=parent.frames[b].window.document.getElementsByTagName("embed");for(var a=0;a<c.length;a++){c[a].style.visibility=(f=="hide")?"hidden":"visible"}}catch(g){}}}};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(f){}}}};LyteBox.prototype.pause=function(b){var a=new Date();var c=a.getTime()+b;while(true){a=new Date();if(a.getTime()>c){return}}};function initLytebox(){myLytebox=new LyteBox()}function loadslideshow(){new GFslideShow(beamitems,"slideshow")}google.load("feeds","1");google.setOnLoadCallback(loadslideshow);
