
jQuery.effects||(function(d){d.effects={version:"1.7",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return-j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return-j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return-j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return-j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return-j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return-j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return-j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return-j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return-(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return-0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);;(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;var $js=jQuery.noConflict();$js(document).ready(function(){$js('div.slideshow-container').each(function(i){$js(this).children('img').each(function(i){$js(this).hide();});var imgLoader=document.createElement('img');imgLoader.src='./images/loader.gif';imgLoader.className='loader';this.appendChild(imgLoader);$js(this).children('div').hide();});});$js(window).load(function(){var slideshows=[];$js('div.slideshow-container').each(function(i){slideshows.push(new SlideshowJS(this,$js(this).children('img').not('.loader'),$js(this).children('div.slideshow-title'),$js(this).children('div.filmstrip')));});$js(slideshows).each(function(){this.start();});});var SlideshowJS=function(container,images,titlebar,filmstrip){this.container=container;this.images=images;this.activeIndex=1;this.numberOfImages=this.images.length;this.titlebar=titlebar;this.controlContainer=null;this.filmstrip=filmstrip?filmstrip:null;this.filmstripImages=this.filmstrip?$js(filmstrip).children('img'):null;this.filmstripFrames=this.filmstrip?[]:null;this.activeImage=null;this.nextImage=null;this.fade=false;this.fadeDuration=-1;this.maxWidth=-1;this.maxHeight=-1;this.slideshowDuration=-1;this.limitCounter=1;this.limit=-1;this.hasTitle=false;this.hasLinks=false;this.titleHover=false;this.countImages=false;this.PE=null;this.id=Math.round(Math.random()*1000);this._init();}
SlideshowJS.prototype._init=function(){var This=this;var curParam=null;var params=null;$js(this.images).each(function(i){if(i===0){This.activeImage=this;}else{$js(this).hide();}
if(This.maxWidth<$js(this).width()){This.maxWidth=$js(this).width();}
if(This.maxHeight<$js(this).height()){This.maxHeight=$js(this).height();}});params=this.container.className.split(' ').slice(1);for(var i=0,len=params.length;i<len;++i){curParam=params[i].toLowerCase().split(':');switch(curParam[0]){case'auto':this.auto=true;this.slideshowDuration=curParam[1]>0?curParam[1]:1;this.PE=new PE(function(){This._nextImage();},This.slideshowDuration);break;case'manual':this.auto=false;$js(this.container).children('img').click(function(){This._nextImage();});break;case'fade':this.fade=true;this.fadeDuration=curParam[1]>0?curParam[1]*1000:1000;break;case'random':this.images=this._randomize(this.images);this.activeImage=this.images[0];break;case'limit':this.limit=curParam[1]-1;break;case'title':if($js(this.titlebar).get(0)===undefined){throw('Slideshow JS - No titlebar division found')}else{this.hasTitle=true;}
this.titleHover=true;if(curParam[1]==='slide'){$js(this.container).hover(function(){$js(This.titlebar).slideDown();},function(){$js(This.titlebar).slideUp();});}else if(curParam[1]==='fade'){$js(this.container).hover(function(){$js(This.titlebar).fadeIn();},function(){$js(This.titlebar).fadeOut();});}else{this.titleHover=false;$js(this.titlebar).show();}
break;case'control':this._configureControls();break;case'links':this.hasLinks=true;break;case'counter':this.countImages=true;this._createCounterDivision();break;default:throw('Slideshow JS - Unrecognized parameter.');break;}}
$js(this.container).css({width:this.maxWidth,height:this.maxHeight,position:'relative',textAlign:'center',cursor:'pointer'});if(this.filmstrip!==null){this._configureFilmstrip();}
$js(this.images).each(function(i){var margin=-1;$js(this).css({position:'relative',float:'left',marginLeft:(This.maxWidth/2)-($js(this).outerWidth()/2)});margin='-'+$js(this).outerHeight()+'px';if($js(this).css('margin-bottom')!==margin){$js(this).css({marginBottom:margin});}
if(This.hasLinks){This.configureLinkForImage($js(this));}});}
SlideshowJS.prototype.start=function(){if($js(this.titlebar)!==null){$js(this.titlebar).html(this.activeImage.alt);}
if(this.countImages===true){this._updateImageCountContainer();}
$js(this.container).children('div').each(function(){$js(this).css({visibility:'visible'});});$js(this.activeImage).fadeIn();$js(this.filmstrip).fadeIn();if(this.auto===true){this.PE.start();}
$js('img.loader').each(function(i){$js(this).hide();}).remove();}
SlideshowJS.prototype._nextImage=function(bShowPrevious){var This=this;var currentIndex=this.images.index(this.activeImage);var titlebar=null;var nextImage=null;if(this.limit!=-1&&this.limit==this.limitCounter){this.PE.stop();}else{this.limitCounter++;}
if(bShowPrevious){if(this.images.index(this.activeImage)===0){this._makeActive(this.images.length-1);}else{this._makeActive(currentIndex-1);}}else{if(this.images.index(this.activeImage)===this.images.length-1){this._makeActive(0);}else{this._makeActive(currentIndex+1);}}
this._updateImageCountContainer();}
SlideshowJS.prototype._createCounterDivision=function(){var eCounterDiv=document.createElement('div');eCounterDiv.id='slideshow-counter-'+this.id;eCounterDiv.className='slideshow-counter';$js(this.container).get(0).appendChild(eCounterDiv);}
SlideshowJS.prototype._updateImageCountContainer=function(){if(this.countImages){var divID='div#slideshow-counter-'+this.id;var sCounter=this.activeIndex+' / '+this.numberOfImages;$js(divID).html(sCounter);}}
SlideshowJS.prototype._makeActive=function(index,slideshow){this.nextImage=this.images[index];if(this.activeIndex===this.images.length){this.activeIndex=1;}else{this.activeIndex++;}
var titlebar=this.titlebar;var nextImage=this.nextImage;if(this.fade===true){$js(this.activeImage).fadeOut(this.fadeDuration);$js(this.nextImage).fadeIn(this.fadeDuration);if(this.titlebar.get(0)!==null&&this.hasTitle===true&&this.titleHover===false){$js(titlebar).fadeOut(this.fadeDuration/2,function(){$js(titlebar).html(nextImage.alt);}).fadeIn(this.fadeDuration/2);}else{$js(titlebar).html(nextImage.alt);}}else{$js(this.activeImage).hide();$js(this.titlebar).html(this.nextImage.alt);$js(this.nextImage).show();}
this.activeImage=this.nextImage;this.nextImage=null;}
SlideshowJS.prototype._randomize=function(images){var n=images.length;var k=-1;var temp=-1;while(n>1){k=Math.round(Math.random(n*3214));n--;temp=images[n];images[n]=images[k];images[k]=temp;}
return images;}
SlideshowJS.prototype._configureControls=function(){var This=this;var eLeft=document.createElement('div');eLeft.id='previousImage';$(eLeft).addClass('control');var backImg=document.createElement('img');backImg.src='./images/controls/back.png';eLeft.appendChild(backImg);var eRight=document.createElement('div');eRight.id='nextImage';$(eRight).addClass('control');var rightImg=document.createElement('img');rightImg.src='./images/controls/next.png';eRight.appendChild(rightImg);var eCenter=document.createElement('div');eCenter.id='pausePlayImage';$(eCenter).addClass('control');var pauseImg=document.createElement('img');pauseImg.src='./images/controls/pause.png';eCenter.appendChild(pauseImg);$js(eLeft).css({color:'rgb(255, 255, 255)',left:'0',top:(This.maxHeight/2)-(backImg.height/2),position:'absolute',background:'rgb(0 , 0, 0)'});$js(eLeft).click(function(){This._nextImage(true);});$js(eRight).css({color:'rgb(255, 255, 255)',right:'0',top:(This.maxHeight/2)-(rightImg.height/2),position:'absolute',background:'rgb(0 , 0, 0)'});$js(eRight).click(function(){This._nextImage();});$js(eCenter).css({color:'rgb(255, 255, 255)',top:(This.maxHeight/2)-(pauseImg.height/2),position:'absolute',background:'rgb(0, 0, 0)'});if(!$js.browser.msie){$js(eCenter).css({marginLeft:(This.maxWidth/2)-(pauseImg.width/2)});}
$js(eCenter).click(function(){if(This.PE===null){This.PE=new PE(null,null);}
This.PE.toggle(this);});this.controlContainer=document.createElement('div');this.controlContainer.appendChild(eLeft);this.controlContainer.appendChild(eCenter);this.controlContainer.appendChild(eRight);$js(this.controlContainer).css({width:This.maxWidth,left:0,top:0,position:'absolute',display:'none'});$js(this.controlContainer).hide();$js(this.container).hover(function(){$js(This.controlContainer).show();},function(){$js(This.controlContainer).hide();});this.container.appendChild(this.controlContainer);}
SlideshowJS.prototype._configureFilmstrip=function(){var This=this;var runningSum=0;var width=this.maxWidth;var ul=document.createElement('ul');ul.className='filmstrip';var li=document.createElement('li');for(var i=0,len=this.filmstripImages.length;i<len;i++){var curImage=this.filmstripImages[i];var curWidth=curImage.width+parseInt($js(curImage).css('margin-left'),10)+parseInt($js(curImage).css('margin-right'),10);;if((curWidth+runningSum)<=width){li.appendChild(curImage);runningSum+=curWidth;}else{ul.appendChild(li);this.filmstripFrames.push(li);li=document.createElement('li');li.appendChild(curImage);runningSum=curWidth;}
if(i===len-1){li.appendChild(curImage);ul.appendChild(li);this.filmstripFrames.push(li);}
$js(li).css({display:'none'});$js(curImage).click(function(e){This._makeActive(This.filmstripImages.index(this));});}
if(this.filmstripFrames.length!==0){this.filmstripFrames[0].className=this.id;$js(this.filmstripFrames[0]).show();$js(this.filmstrip).get(0).appendChild(ul);}
$js(this.filmstrip).css({left:0,top:This.maxHeight,width:This.maxWidth,position:'absolute'});if(this.filmstripFrames.length>1){var prevControl=document.createElement('div');$js(prevControl).css({color:'rgb(255, 255, 255)',left:0,bottom:0,position:'absolute'}).click(function(){This._updateFrameset(false);});var prevImg=document.createElement('img');prevImg.src='./images/controls/filmstripPrevious.png';prevControl.appendChild(prevImg);this.filmstrip.get(0).appendChild(prevControl);var nextControl=document.createElement('div');$js(nextControl).css({color:'rgb(255, 255, 255)',right:0,bottom:0,position:'absolute'}).click(function(){This._updateFrameset(true);});var nextImg=document.createElement('img');nextImg.src='./images/controls/filmstripNext.png';nextControl.appendChild(nextImg);this.filmstrip.get(0).appendChild(nextControl);}}
SlideshowJS.prototype._updateFrameset=function(bGoForward){var currentIndex=$js(this.filmstripFrames).index($js('li.'+this.id));var nextFrameset=null;var activeFrameset=this.filmstripFrames[currentIndex];var This=this;if(bGoForward===true){if(currentIndex===this.filmstripFrames.length-1){nextFrameset=this.filmstripFrames[0]}else{nextFrameset=this.filmstripFrames[currentIndex+1];}
$js(activeFrameset).toggle('slide',{direction:'right'},400,function(){nextFrameset.className=This.id;$js(nextFrameset).toggle('slide',{direction:'left'},400);activeFrameset.className='';});}else{if(currentIndex===this.filmstripFrames.length-1){nextFrameset=this.filmstripFrames[0]}else{if(currentIndex===0){currentIndex=this.filmstripFrames.length-1;}else{currentIndex=currentIndex-1;}
nextFrameset=this.filmstripFrames[currentIndex];}
$js('li.'+this.id).toggle('slide',{direction:'left'},400,function(){nextFrameset.className=This.id;$js(nextFrameset).toggle('slide',{direction:'right'},400);activeFrameset.className='';});}}
SlideshowJS.prototype.configureLinkForImage=function(oImage){var sUrl=oImage.attr('class');if(sUrl.length!==0){oImage.unbind('click').click(function(evt){window.location=sUrl;});}}
var PE=function(callback,frequency){this.callback=callback;this.frequency=frequency;this.timer=null;this.isRunning=false;}
PE.prototype.start=function(){this.timer=setInterval(this.callback,this.frequency*1000);this.isRunning=true;}
PE.prototype.stop=function(){clearInterval(this.timer);this.timer=null;this.isRunning=false;}
PE.prototype.toggle=function(container){if(this.isRunning===true){this.stop();var resumeImg=document.createElement('img');resumeImg.src='./images/controls/resume.png';$js(container).html(resumeImg);}else{this.start();var pauseImg=document.createElement('img');pauseImg.src='./images/controls/pause.png';$js(container).html(pauseImg);}}
var $=jQuery.noConflict();