
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

// Javascript for stacks_in_13_page0
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_13_page0 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_13_page0 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/*
 * jQuery UI Effects 1.5.3
 *
 * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 * 
 * http://docs.jquery.com/UI/Effects/
 */

(function(c){c.effects=c.effects||{};c.extend(c.effects,{save:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){c.data(f[0],"ec.storage."+g[e],f[0].style[g[e]])}}},restore:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){f.css(g[e],c.data(f[0],"ec.storage."+g[e]))}}},setMode:function(e,f){if(f=="toggle"){f=e.is(":hidden")?"show":"hide"}return f},getBaseline:function(f,g){var h,e;switch(f[0]){case"top":h=0;break;case"middle":h=0.5;break;case"bottom":h=1;break;default:h=f[0]/g.height}switch(f[1]){case"left":e=0;break;case"center":e=0.5;break;case"right":e=1;break;default:e=f[1]/g.width}return{x:e,y:h}},createWrapper:function(f){if(f.parent().attr("id")=="fxWrapper"){return f}var e={width:f.outerWidth({margin:true}),height:f.outerHeight({margin:true}),"float":f.css("float")};f.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var i=f.parent();if(f.css("position")=="static"){i.css({position:"relative"});f.css({position:"relative"})}else{var h=f.css("top");if(isNaN(parseInt(h))){h="auto"}var g=f.css("left");if(isNaN(parseInt(g))){g="auto"}i.css({position:f.css("position"),top:h,left:g,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}i.css(e);return i},removeWrapper:function(e){if(e.parent().attr("id")=="fxWrapper"){return e.parent().replaceWith(e)}return e},setTransition:function(f,g,e,h){h=h||{};c.each(g,function(k,j){unit=f.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*e+unit[1]}});return h},animateClass:function(g,h,j,i){var e=(typeof j=="function"?j:(i?i:null));var f=(typeof j=="object"?j:null);return this.each(function(){var p={};var m=c(this);var o=m.attr("style")||"";if(typeof o=="object"){o=o.cssText}if(g.toggle){m.hasClass(g.toggle)?g.remove=g.toggle:g.add=g.toggle}var k=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.addClass(g.add)}if(g.remove){m.removeClass(g.remove)}var l=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.removeClass(g.add)}if(g.remove){m.addClass(g.remove)}for(var q in l){if(typeof l[q]!="function"&&l[q]&&q.indexOf("Moz")==-1&&q.indexOf("length")==-1&&l[q]!=k[q]&&(q.match(/color/i)||(!q.match(/color/i)&&!isNaN(parseInt(l[q],10))))&&(k.position!="static"||(k.position=="static"&&!q.match(/left|top|bottom|right/)))){p[q]=l[q]}}m.animate(p,h,f,function(){if(typeof c(this).attr("style")=="object"){c(this).attr("style")["cssText"]="";c(this).attr("style")["cssText"]=o}else{c(this).attr("style",o)}if(g.add){c(this).addClass(g.add)}if(g.remove){c(this).removeClass(g.remove)}if(e){e.apply(this,arguments)}})})}});c.fn.extend({_show:c.fn.show,_hide:c.fn.hide,__toggle:c.fn.toggle,_addClass:c.fn.addClass,_removeClass:c.fn.removeClass,_toggleClass:c.fn.toggleClass,effect:function(e,g,f,h){return c.effects[e]?c.effects[e].call(this,{method:e,options:g||{},duration:f,callback:h}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="show";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="hide";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},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{var e=arguments[1]||{};e.mode="toggle";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},addClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{add:f},e,h,g]):this._addClass(f)},removeClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{remove:f},e,h,g]):this._removeClass(f)},toggleClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{toggle:f},e,h,g]):this._toggleClass(f)},morph:function(e,g,f,i,h){return c.effects.animateClass.apply(this,[{add:g,remove:e},f,i,h])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(e){var f=this.css(e),g=[];c.each(["em","px","%","pt"],function(h,j){if(f.indexOf(j)>0){g=[parseFloat(f),j]}});return g}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){jQuery.fx.step[e]=function(g){if(g.state==0){g.start=d(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[jQuery.trim(f).toLowerCase()]}function d(g,e){var f;do{f=jQuery.curCSS(g,e);if(f!=""&&f!="transparent"||jQuery.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}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]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(f,g,e,i,h){return jQuery.easing[jQuery.easing.def](f,g,e,i,h)},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeOutQuad:function(f,g,e,i,h){return -i*(g/=h)*(g-2)+e},easeInOutQuad:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g+e}return -i/2*((--g)*(g-2)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInQuart:function(f,g,e,i,h){return i*(g/=h)*g*g*g+e},easeOutQuart:function(f,g,e,i,h){return -i*((g=g/h-1)*g*g*g-1)+e},easeInOutQuart:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g+e}return -i/2*((g-=2)*g*g*g-2)+e},easeInQuint:function(f,g,e,i,h){return i*(g/=h)*g*g*g*g+e},easeOutQuint:function(f,g,e,i,h){return i*((g=g/h-1)*g*g*g*g+1)+e},easeInOutQuint:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g*g+e}return i/2*((g-=2)*g*g*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInExpo:function(f,g,e,i,h){return(g==0)?e:i*Math.pow(2,10*(g/h-1))+e},easeOutExpo:function(f,g,e,i,h){return(g==h)?e+i:i*(-Math.pow(2,-10*g/h)+1)+e},easeInOutExpo:function(f,g,e,i,h){if(g==0){return e}if(g==h){return e+i}if((g/=h/2)<1){return i/2*Math.pow(2,10*(g-1))+e}return i/2*(-Math.pow(2,-10*--g)+2)+e},easeInCirc:function(f,g,e,i,h){return -i*(Math.sqrt(1-(g/=h)*g)-1)+e},easeOutCirc:function(f,g,e,i,h){return i*Math.sqrt(1-(g=g/h-1)*g)+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*(g/=i)*g*((h+1)*g-h)+e},easeOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*((g=g/i-1)*g*((h+1)*g+h)+1)+e},easeInOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}if((g/=i/2)<1){return j/2*(g*g*(((h*=(1.525))+1)*g-h))+e}return j/2*((g-=2)*g*(((h*=(1.525))+1)*g+h)+2)+e},easeInBounce:function(f,g,e,i,h){return i-jQuery.easing.easeOutBounce(f,h-g,0,i,h)+e},easeOutBounce:function(f,g,e,i,h){if((g/=h)<(1/2.75)){return i*(7.5625*g*g)+e}else{if(g<(2/2.75)){return i*(7.5625*(g-=(1.5/2.75))*g+0.75)+e}else{if(g<(2.5/2.75)){return i*(7.5625*(g-=(2.25/2.75))*g+0.9375)+e}else{return i*(7.5625*(g-=(2.625/2.75))*g+0.984375)+e}}}},easeInOutBounce:function(f,g,e,i,h){if(g<h/2){return jQuery.easing.easeInBounce(f,g*2,0,i,h)*0.5+e}return jQuery.easing.easeOutBounce(f,g*2-h,0,i,h)*0.5+i*0.5+e}})})(jQuery);

/*
 * jQuery UI Effects Slide
 *
 * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 * 
 * http://docs.jquery.com/UI/Effects/Slide
 *
 * Depends:
 *	effects.core.js
 */
(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);


/*
Supersized - Fullscreen Slideshow jQuery Plugin (modded by SymfoniP for use in RapidWeaver FreeStacks) 
Based on Version 3.0
By Sam Dunn (www.buildinternet.com // www.onemightyroar.com)
Version: supersized.3.0.js
Website: www.buildinternet.com/project/supersized
*/
(function(c){c.fn.supersized=function(){c.inAnimation=false;c.paused=false;var d=c.extend(c.fn.supersized.defaults,c.fn.supersized.options);c.currentSlide=d.start_slide-1;var e=(d.slides[d.slides.length-1].url)?"href='"+d.slides[d.slides.length-1].url+"'":"";c("<img/>").attr("src",d.slides[d.slides.length-1].image).appendTo("#supersized").wrap("<a "+e+"></a>");e=(d.slides[c.currentSlide].url)?"href='"+d.slides[c.currentSlide].url+"'":"";c("<img/>").attr("src",d.slides[c.currentSlide].image).appendTo("#supersized").wrap('<a class="activeslide" '+e+"></a>");e=(d.slides[c.currentSlide+1].url)?"href='"+d.slides[c.currentSlide+1].url+"'":"";c("<img/>").attr("src",d.slides[c.currentSlide+1].image).appendTo("#supersized").wrap("<a "+e+"></a>");c(window).bind("load",function(){c("#loading").hide();c("#supersized").fadeIn("fast");c("#controls-wrapper").show();if(d.thumbnail_navigation==1){c.currentSlide-1<0?prevThumb=d.slides.length-1:prevThumb=c.currentSlide-1;c("#prevthumb").show().html(c("<img/>").attr("src",d.slides[prevThumb].image));c.currentSlide==d.slides.length-1?nextThumb=0:nextThumb=c.currentSlide+1;c("#nextthumb").show().html(c("<img/>").attr("src",d.slides[nextThumb].image))}c("#supersized").resizenow();if(d.slide_captions==1){c("#slidecaption").html(d.slides[c.currentSlide].title)}if(d.navigation==0){c("#navigation").hide()}if(d.thumbnail_navigation==0){c("#nextthumb").hide();c("#prevthumb").hide()}if(d.slideshow==1){if(d.slide_counter==1){c("#slidecounter .slidenumber").html(d.start_slide);c("#slidecounter .totalslides").html(d.slides.length)}slideshow_interval=setInterval(a,d.slide_interval);if(d.thumbnail_navigation==1){c("#nextthumb").click(function(){if(c.inAnimation){return false}clearInterval(slideshow_interval);a();if(!(c.paused)){slideshow_interval=setInterval(a,d.slide_interval)}return false});c("#prevthumb").click(function(){if(c.inAnimation){return false}clearInterval(slideshow_interval);b();if(!(c.paused)){slideshow_interval=setInterval(a,d.slide_interval)}return false})}if(d.navigation==1){c("#navigation a").click(function(){c(this).blur();return false});c("#nextslide").click(function(){if(c.inAnimation){return false}clearInterval(slideshow_interval);a();if(!(c.paused)){slideshow_interval=setInterval(a,d.slide_interval)}return false});c("#prevslide").click(function(){if(c.inAnimation){return false}clearInterval(slideshow_interval);b();if(!(c.paused)){slideshow_interval=setInterval(a,d.slide_interval)}return false});c("#nextslide").mousedown(function(){c(this).attr("src","images/forward.png")});c("#nextslide").mouseup(function(){c(this).attr("src","images/forward_dull.png")});c("#nextslide").mouseout(function(){c(this).attr("src","images/forward_dull.png")});c("#prevslide").mousedown(function(){c(this).attr("src","images/back.png")});c("#prevslide").mouseup(function(){c(this).attr("src","images/back_dull.png")});c("#prevslide").mouseout(function(){c(this).attr("src","images/back_dull.png")});c("#pauseplay").click(function(){if(c.inAnimation){return false}var g=(c(this).attr("src")==="images/play.png")?"images/pause.png":"images/play.png";if(g=="images/pause.png"){c(this).attr("src","images/play.png");c.paused=false;slideshow_interval=setInterval(a,d.slide_interval)}else{c(this).attr("src","images/pause.png");clearInterval(slideshow_interval);c.paused=true}c(this).attr("src",g);return false});c("#pauseplay").mouseover(function(){var g=(c(this).attr("src")==="images/play_dull.png");if(g){c(this).attr("src","images/play.png")}else{c(this).attr("src","images/pause.png")}});c("#pauseplay").mouseout(function(){var g=(c(this).attr("src")==="images/play.png");if(g){c(this).attr("src","images/play_dull.png")}else{c(this).attr("src","images/pause_dull.png")}return false})}}try{d.callback()}catch(f){alert(f)}});c(document).ready(function(){c("#supersized").resizenow()});c("#supersized").hover(function(){if(d.slideshow==1&&d.pause_hover==1){if(!(c.paused)&&d.navigation==1){c("#pauseplay").attr("src","images/pause.png");clearInterval(slideshow_interval)}}if(c.inAnimation){return false}},function(){if(d.slideshow==1&&d.pause_hover==1){if(!(c.paused)&&d.navigation==1){c("#pauseplay").attr("src","images/pause_dull.png");slideshow_interval=setInterval(a,d.slide_interval)}}});c(window).bind("resize",function(){c("#supersized").resizenow()});c("#supersized").hide();c("#controls-wrapper").hide()};c.fn.resizenow=function(){var e=c(this);var d=c.extend(c.fn.supersized.defaults,c.fn.supersized.options);return e.each(function(){var h=d.startheight/d.startwidth;var i=e.width();var g=e.height();var f=c(window).width();var j=c(window).height();var k;if((j/f)>h){e.height(j);e.width(j/h);e.children().height(j);e.children().width(j/h)}else{e.width(f);e.height(f*h);e.children().width(f);e.children().height(f*h)}if(d.vertical_center==1){e.children().css("left",(f-e.width())/2);e.children().css("top",(j-e.height())/2)}return false})};function a(){if(c.inAnimation){return false}else{c.inAnimation=true}var f=c.extend(c.fn.supersized.defaults,c.fn.supersized.options);var e=c("#supersized .activeslide");e.removeClass("activeslide");if(e.length==0){e=c("#supersized a:last")}var d=e.next().length?e.next():c("#supersized a:first");var g=d.prev().length?d.prev():c("#supersized a:last");c(".prevslide").removeClass("prevslide");g.addClass("prevslide");c.currentSlide+1==f.slides.length?c.currentSlide=0:c.currentSlide++;loadSlide=false;c.currentSlide==f.slides.length-1?loadSlide=0:loadSlide=c.currentSlide+1;imageLink=(f.slides[loadSlide].url)?"href='"+f.slides[loadSlide].url+"'":"";c("<img/>").attr("src",f.slides[loadSlide].image).appendTo("#supersized").wrap("<a "+imageLink+"></a>");if(f.thumbnail_navigation==1){c.currentSlide-1<0?prevThumb=f.slides.length-1:prevThumb=c.currentSlide-1;c("#prevthumb").html(c("<img/>").attr("src",f.slides[prevThumb].image));nextThumb=loadSlide;c("#nextthumb").html(c("<img/>").attr("src",f.slides[nextThumb].image))}e.prev().remove();if(f.slide_counter==1){c("#slidecounter .slidenumber").html(c.currentSlide+1)}if(f.slide_captions==1){(f.slides[c.currentSlide].title)?c("#slidecaption").html(f.slides[c.currentSlide].title):c("#slidecaption").html("")}d.hide().addClass("activeslide");if(f.transition==0){d.show();c.inAnimation=false}if(f.transition==1){d.fadeIn(750,function(){c.inAnimation=false})}if(f.transition==2){d.show("slide",{direction:"up"},"slow",function(){c.inAnimation=false})}if(f.transition==3){d.show("slide",{direction:"right"},"slow",function(){c.inAnimation=false})}if(f.transition==4){d.show("slide",{direction:"down"},"slow",function(){c.inAnimation=false})}if(f.transition==5){d.show("slide",{direction:"left"},"slow",function(){c.inAnimation=false})}c("#supersized").resizenow()}function b(){if(c.inAnimation){return false}else{c.inAnimation=true}var f=c.extend(c.fn.supersized.defaults,c.fn.supersized.options);var e=c("#supersized .activeslide");e.removeClass("activeslide");if(e.length==0){e=c("#supersized a:first")}var d=e.prev().length?e.prev():c("#supersized a:last");var g=d.next().length?d.next():c("#supersized a:first");c.currentSlide==0?c.currentSlide=f.slides.length-1:c.currentSlide--;loadSlide=false;c.currentSlide-1<0?loadSlide=f.slides.length-1:loadSlide=c.currentSlide-1;imageLink=(f.slides[loadSlide].url)?"href='"+f.slides[loadSlide].url+"'":"";c("<img/>").attr("src",f.slides[loadSlide].image).prependTo("#supersized").wrap("<a "+imageLink+"></a>");if(f.thumbnail_navigation==1){prevThumb=loadSlide;c("#prevthumb").html(c("<img/>").attr("src",f.slides[prevThumb].image));c.currentSlide==f.slides.length-1?nextThumb=0:nextThumb=c.currentSlide+1;c("#nextthumb").html(c("<img/>").attr("src",f.slides[nextThumb].image))}e.next().remove();if(f.slide_counter==1){c("#slidecounter .slidenumber").html(c.currentSlide+1)}c(".prevslide").removeClass("prevslide");g.addClass("prevslide");if(f.slide_captions==1){(f.slides[c.currentSlide].title)?c("#slidecaption").html(f.slides[c.currentSlide].title):c("#slidecaption").html("")}d.hide().addClass("activeslide");if(f.transition==0){d.show();c.inAnimation=false}if(f.transition==1){d.fadeIn(750,function(){c.inAnimation=false})}if(f.transition==2){d.show("slide",{direction:"down"},"slow",function(){c.inAnimation=false})}if(f.transition==3){d.show("slide",{direction:"left"},"slow",function(){c.inAnimation=false})}if(f.transition==4){d.show("slide",{direction:"up"},"slow",function(){c.inAnimation=false})}if(f.transition==5){d.show("slide",{direction:"right"},"slow",function(){c.inAnimation=false})}c("#supersized").resizenow()}c.fn.supersized.defaults={startwidth:4,startheight:3,vertical_center:1,slideshow:1,navigation:1,thumbnail_navigation:0,transition:1,pause_hover:0,slide_counter:1,slide_captions:1,slide_interval:5000,start_slide:1,callback:function(){}}})(jQuery);


/*
	# SdCoMa - color math function #
	AUTHOR:	Adam Merrifield <http://adam.merrifield.ca>
	VERSION: r0.0.5
	DATE: 05-06-11 11:55
*/
var SdCoMa=function(c,f,g,a){var f=f*10;if(c.search("rgb")==-1){var c=/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i.exec(c).slice(1);for(var e=0;e<c.length;e++){c[e]=parseInt(c[e],16),rgbOrig=c[e]}}else{var c=c.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/);c.splice(0,1);for(var e=0;e<c.length;e++){c[e]=parseInt(c[e]),rgbOrig=c[e]}}for(var e=0;e<c.length;e++){if(a==1||a=="light"||a==true){c[e]=Math.floor(c[e]+f)}else{if(a==0||a=="dark"||a==false){c[e]=Math.floor(c[e]-f)}}}if(c[0]<=100||c[1]<=100||c[2]<=100){for(var e=0;e<c.length;e++){rgbOrig=c[e],c[e]=rgbOrig+(f*4)}}else{if(c[0]>=255||c[1]>=255||c[2]>=255){for(var e=0;e<c.length;e++){rgbOrig=c[e],c[e]=rgbOrig-(f*4)}}}var b=(function(){if(!("result" in arguments.callee)){var l=document.getElementsByTagName("script")[0];var j=l.style.color;var i="rgba(0, 0, 0, 0.5)";if(j==i){arguments.callee.result=true}else{try{l.style.color=i}catch(k){}arguments.callee.result=l.style.color!=j;l.style.color=j}}return arguments.callee.result})();var h=new Array();if(b!=true){h[0]="rgb(";h[1]=""}else{h[0]="rgba(";h[1]=", "+g}var d=h[0]+c[0]+", "+c[1]+", "+c[2]+h[1]+")";return d};

/*Make it Go Go Go - SuperSize Background Stack (FreeStacks Theme)*/
/* Version 1.0.2 27-May-2011 */
String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};$(function(){var c;if($.browser.msie && $.browser.version < 9){c=$("#slideBackHolder").html().split(" ")}else{c=$("#slideBackHolder").html().split("\n")}var b=[];for(var a in c){if(c[a].trim()==""){continue}b.push({image:c[a]})}$.fn.supersized.options={startwidth:640,startheight:480,vertical_center:1,slideshow:1,navigation:0,thumbnail_navigation:0,transition:1,pause_hover:0,slide_counter:0,slide_captions:0,slide_interval:6000,callback:function(){$("#pagecontainer").delay(0).fadeIn(1200)},slides:b};$("#supersized").supersized()});

/* Used for IE POS - why oh why */
function opacityHex(o) {
	var i = Math.floor(0.5 * 255);
	return i.toString(16);
}
/* Lets get some color action for the pagewrapper */
jQuery(document).ready(function($) {
	var bgRGBOrig = $('#pagewrapper').css('backgroundColor');
	$('#pagewrapper').each(function () {
		if ( $.browser.msie && parseInt($.browser.version, 10) < 9) {
			var oValue = opacityHex(0.0);
			$(this).css('background','transparent');
			$(this).css('filter', 'progid:DXImageTransform.Microsoft.gradient(startColorstr=#'+oValue+'2A2A2A, endColorstr=#'+oValue+'2A2A2A)');  
			$(this).css('-ms-filter', 'progid:DXImageTransform.Microsoft.gradient(startColorstr=#'+oValue+'2A2A2A, endColorstr=#'+oValue+'2A2A2A)');
			$(this).css('zoom','1');
			}
			else{
				$(this).css('background-color',SdCoMa(bgRGBOrig, 0, 0.0, 'dark'));
			}
	});
});




	return stack;
})(stacks.stacks_in_13_page0);


// Javascript for stacks_in_15_page0
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_15_page0 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_15_page0 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/*** START absolute ***/

jQuery(document).ready(function($){

	$('#stacks_in_15_page0').parent().wrap('<div id="stacks_in_15_page0_absolute_wrapper" class="" />');

	if ('#pagewrapper' != '') {

		var pos = $('#pagewrapper').css("position");
	
		if ( pos == "static" ) $('#pagewrapper').css("position", "relative");
	
		$("#stacks_in_15_page0_absolute_wrapper").appendTo('#pagewrapper');

	}

	$('#stacks_in_15_page0').css('display','block');

});

/*** END absolute ***/

	return stack;
})(stacks.stacks_in_15_page0);



