
// '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_9_page12
// ---------------------------------------------------------------------

// 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_9_page12 = {};

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Styled Stack v1.3.0 by Joe Workman
$(document).ready(function() {	
	var custom_bg_src = $("#custom_bg_stacks_in_9_page12 img").attr("src");
	if (custom_bg_src) { 
	    $("#stacks_in_9_page12").css({'background-image':'url(' + custom_bg_src + ')'});	
	}
	else {
	    var bg_src = 'files/styled-stack-images/stack-bg12.png';
    	if (12 != 0) { $("#stacks_in_9_page12").css({'background-image':'url(' + bg_src + ')'}); }
	}
});
// End Styled Stack

	return stack;
})(stacks.stacks_in_9_page12);


// Javascript for stacks_in_16_page12
// ---------------------------------------------------------------------

// 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_16_page12 = {};

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

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

//-- HTML5 Video Stack v2.0.0 by Joe Workman --//
(function(){function v(a){if(!a||typeof a!="object")return a;var c=new a.constructor;for(var e in a)if(a.hasOwnProperty(e))c[e]=v(a[e]);return c}function p(a,c){if(a){var e,b=0,l=a.length;if(l===undefined)for(e in a){if(c.call(a[e],e,a[e])===false)break}else for(e=a[0];b<l&&c.call(e,b,e)!==false;e=a[++b]);return a}}function w(a,c,e){if(typeof c!="object")return a;a&&c&&p(c,function(b,l){if(!e||typeof l!="function")a[b]=l});return a}function r(a){var c=a.indexOf(".");if(c!=-1){var e=a.slice(0,c)||
"*",b=a.slice(c+1,a.length),l=[];p(document.getElementsByTagName(e),function(){this.className&&this.className.indexOf(b)!=-1&&l.push(this)});return l}}function B(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function A(a,c,e){a[c]=a[c]||[];a[c].push(e)}function D(){return"_"+(""+Math.random()).slice(2,10)}function C(a,c,e){var b=this,l=null,z=false,F,h,j=[],o={},u={},i,n,s,x,H,G;w(b,{id:function(){return i},
isLoaded:function(){return l!==null&&l.fp_play!==undefined&&!z},getParent:function(){return a},hide:function(f){if(f)a.style.height="0px";if(b.isLoaded())l.style.height="0px";return b},show:function(){a.style.height=G+"px";if(b.isLoaded())l.style.height=H+"px";return b},isHidden:function(){return b.isLoaded()&&parseInt(l.style.height,10)===0},load:function(f){if(!b.isLoaded()&&b._fireEvent("onBeforeLoad")!==false){var m=0;p(g,function(){this.unload(function(){if(++m==g.length){if((F=a.innerHTML)&&
!flashembed.isSupported(c.version))a.innerHTML="";if(f){f.cached=true;A(u,"onLoad",f)}flashembed(a,c,{config:e})}})})}return b},unload:function(f){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){f&&f(false);return b}if(F.replace(/\s/g,"")!==""){if(b._fireEvent("onBeforeUnload")===false){f&&f(false);return b}z=true;try{if(l){l.fp_close();b._fireEvent("onUnload")}}catch(m){}setTimeout(function(){l=null;a.innerHTML=F;z=false;f&&f(true)},50)}else f&&f(false);return b},getClip:function(f){if(f===
undefined)f=x;return j[f]},getCommonClip:function(){return h},getPlaylist:function(){return j},getPlugin:function(f){var m=o[f];if(!m&&b.isLoaded()){var k=b._api().fp_getPlugin(f);if(k){m=new d(f,k,b);o[f]=m}}return m},getScreen:function(){return b.getPlugin("screen")},getControls:function(){return b.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return b.getPlugin("logo")._fireEvent("onUpdate")}catch(f){}},getPlay:function(){return b.getPlugin("play")._fireEvent("onUpdate")},
getConfig:function(f){return f?v(e):e},getFlashParams:function(){return c},loadPlugin:function(f,m,k,q){if(typeof k=="function"){q=k;k={}}var E=q?D():"_";b._api().fp_loadPlugin(f,m,k,E);m={};m[E]=q;q=new d(f,null,b,m);return o[f]=q},getState:function(){return b.isLoaded()?l.fp_getState():-1},play:function(f,m){var k=function(){f!==undefined?b._api().fp_play(f,m):b._api().fp_play()};if(b.isLoaded())k();else z?setTimeout(function(){b.play(f,m)},50):b.load(function(){k()});return b},getVersion:function(){if(b.isLoaded()){var f=
l.fp_getVersion();f.push("flowplayer.js 3.2.4");return f}return"flowplayer.js 3.2.4"},_api:function(){if(!b.isLoaded())throw"Flowplayer "+b.id()+" not loaded when calling an API method";return l},setClip:function(f){b.setPlaylist([f]);return b},getIndex:function(){return s},_swfHeight:function(){return l.clientHeight}});p("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var f="on"+this;if(f.indexOf("*")!=
-1){f=f.slice(0,f.length-1);var m="onBefore"+f.slice(2);b[m]=function(k){A(u,m,k);return b}}b[f]=function(k){A(u,f,k);return b}});p("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var f=this;b[f]=function(m,k){if(!b.isLoaded())return b;var q=null;q=m!==undefined&&k!==undefined?
l["fp_"+f](m,k):m===undefined?l["fp_"+f]():l["fp_"+f](m);return q==="undefined"||q===undefined?b:q}});b._fireEvent=function(f){if(typeof f=="string")f=[f];var m=f[0],k=f[1],q=f[2],E=f[3],J=0;e.debug&&console.log("$f.fireEvent",[].slice.call(f));if(!b.isLoaded()&&m=="onLoad"&&k=="player"){l=l||document.getElementById(n);H=b._swfHeight();p(j,function(){this._fireEvent("onLoad")});p(o,function(M,L){L._fireEvent("onUpdate")});h._fireEvent("onLoad")}if(!(m=="onLoad"&&k!="player")){if(m=="onError")if(typeof k==
"string"||typeof k=="number"&&typeof q=="number"){k=q;q=E}if(m=="onContextMenu")p(e.contextMenu[k],function(M,L){L.call(b)});else if(m=="onPluginEvent"||m=="onBeforePluginEvent"){if(E=o[k.name||k]){E._fireEvent("onUpdate",k);return E._fireEvent(q,f.slice(3))}}else{if(m=="onPlaylistReplace"){j=[];var N=0;p(k,function(){j.push(new t(this,N++,b))})}if(m=="onClipAdd"){if(k.isInStream)return;k=new t(k,q,b);j.splice(q,0,k);for(J=q+1;J<j.length;J++)j[J].index++}var K=true;if(typeof k=="number"&&k<j.length){x=
k;if(f=j[k])K=f._fireEvent(m,q,E);if(!f||K!==false)K=h._fireEvent(m,q,E,f)}p(u[m],function(){K=this.call(b,k,q);this.cached&&u[m].splice(J,1);if(K===false)return false;J++});return K}}};if(typeof a=="string"){var I=document.getElementById(a);if(!I)throw"Flowplayer cannot access element: "+a;a=I}(function(){function f(k){var q=b.hasiPadSupport&&b.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(j[0].url)&&!q)return true;!b.isLoaded()&&b._fireEvent("onBeforeClick")!==
false&&b.load();return B(k)}if($f(a)){$f(a).getParent().innerHTML="";s=$f(a).getIndex();g[s]=b}else{g.push(b);s=g.length-1}G=parseInt(a.style.height,10)||a.clientHeight;i=a.id||"fp"+D();n=c.id||i+"_api";c.id=n;e.playerId=i;if(typeof e=="string")e={clip:{url:e}};if(typeof e.clip=="string")e.clip={url:e.clip};e.clip=e.clip||{};if(a.getAttribute("href",2)&&!e.clip.url)e.clip.url=a.getAttribute("href",2);h=new t(e.clip,-1,b);e.playlist=e.playlist||[e.clip];var m=0;p(e.playlist,function(){var k=this;if(typeof k==
"object"&&k.length)k={url:""+k};p(e.clip,function(q,E){if(E!==undefined&&k[q]===undefined&&typeof E!="function")k[q]=E});e.playlist[m]=k;k=new t(k,m,b);j.push(k);m++});p(e,function(k,q){if(typeof q=="function"){h[k]?h[k](q):A(u,k,q);delete e[k]}});p(e.plugins,function(k,q){if(q)o[k]=new d(k,q,b)});if(!e.plugins||e.plugins.controls===undefined)o.controls=new d("controls",null,b);o.canvas=new d("canvas",null,b);F=a.innerHTML;setTimeout(function(){if(F.replace(/\s/g,"")!=="")if(a.addEventListener)a.addEventListener("click",
f,false);else a.attachEvent&&a.attachEvent("onclick",f);else{a.addEventListener&&a.addEventListener("click",B,false);b.load()}},0)})()}function y(a){this.length=a.length;this.each=function(c){p(a,c)};this.size=function(){return a.length}}var t=function(a,c,e){var b=this,l={},z={};b.index=c;if(typeof a=="string")a={url:a};w(this,a,true);p("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var h="on"+this;if(h.indexOf("*")!=-1){h=
h.slice(0,h.length-1);var j="onBefore"+h.slice(2);b[j]=function(o){A(z,j,o);return b}}b[h]=function(o){A(z,h,o);return b};if(c==-1){if(b[j])e[j]=b[j];if(b[h])e[h]=b[h]}});w(this,{onCuepoint:function(h,j){if(arguments.length==1){l.embedded=[null,h];return b}if(typeof h=="number")h=[h];var o=D();l[o]=[h,j];e.isLoaded()&&e._api().fp_addCuepoints(h,c,o);return b},update:function(h){w(b,h);e.isLoaded()&&e._api().fp_updateClip(h,c);var j=e.getConfig();w(c==-1?j.clip:j.playlist[c],h,true)},_fireEvent:function(h,
j,o,u){if(h=="onLoad"){p(l,function(s,x){x[0]&&e._api().fp_addCuepoints(x[0],c,s)});return false}u=u||b;if(h=="onCuepoint"){var i=l[j];if(i)return i[1].call(e,u,o)}if(j&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(h)!=-1){w(u,j);if(j.metaData)if(u.duration)u.fullDuration=j.metaData.duration;else u.duration=j.metaData.duration}var n=true;p(z[h],function(){n=this.call(e,u,j,o)});return n}});if(a.onCuepoint){var F=a.onCuepoint;b.onCuepoint.apply(b,typeof F=="function"?[F]:F);delete a.onCuepoint}p(a,
function(h,j){if(typeof j=="function"){A(z,h,j);delete a[h]}});if(c==-1)e.onCuepoint=this.onCuepoint},d=function(a,c,e,b){var l=this,z={},F=false;b&&w(z,b);p(c,function(h,j){if(typeof j=="function"){z[h]=j;delete c[h]}});w(this,{animate:function(h,j,o){if(!h)return l;if(typeof j=="function"){o=j;j=500}if(typeof h=="string"){var u=h;h={};h[u]=j;j=500}if(o){var i=D();z[i]=o}if(j===undefined)j=500;c=e._api().fp_animate(a,h,j,i);return l},css:function(h,j){if(j!==undefined){var o={};o[h]=j;h=o}c=e._api().fp_css(a,
h);w(l,c);return l},show:function(){this.display="block";e._api().fp_showPlugin(a);return l},hide:function(){this.display="none";e._api().fp_hidePlugin(a);return l},toggle:function(){this.display=e._api().fp_togglePlugin(a);return l},fadeTo:function(h,j,o){if(typeof j=="function"){o=j;j=500}if(o){var u=D();z[u]=o}this.display=e._api().fp_fadeTo(a,h,j,u);this.opacity=h;return l},fadeIn:function(h,j){return l.fadeTo(1,h,j)},fadeOut:function(h,j){return l.fadeTo(0,h,j)},getName:function(){return a},
getPlayer:function(){return e},_fireEvent:function(h,j){if(h=="onUpdate"){var o=e._api().fp_getPlugin(a);if(!o)return;w(l,o);delete l.methods;if(!F){p(o.methods,function(){var u=""+this;l[u]=function(){var i=[].slice.call(arguments);i=e._api().fp_invoke(a,u,i);return i==="undefined"||i===undefined?l:i}});F=true}}if(o=z[h]){o=o.apply(l,j);h.slice(0,1)=="_"&&delete z[h];return o}return l}})},g=[];window.flowplayer=window.$f=function(){var a=null,c=arguments[0];if(!arguments.length){p(g,function(){if(this.isLoaded()){a=
this;return false}});return a||g[0]}if(arguments.length==1)if(typeof c=="number")return g[c];else{if(c=="*")return new y(g);p(g,function(){if(this.id()==c.id||this.id()==c||this.getParent()==c){a=this;return false}});return a}if(arguments.length>1){var e=arguments[1],b=arguments.length==3?arguments[2]:{};if(typeof e=="string")e={src:e};e=w({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},e);if(typeof c=="string")if(c.indexOf(".")!=
-1){var l=[];p(r(c),function(){l.push(new C(this,v(e),v(b)))});return new y(l)}else{var z=document.getElementById(c);return new C(z!==null?z:c,e,b)}else if(c)return new C(c,e,b)}return null};w(window.$f,{fireEvent:function(){var a=[].slice.call(arguments),c=$f(a[0]);return c?c._fireEvent(a.slice(1)):null},addPlugin:function(a,c){C.prototype[a]=c;return $f},each:p,extend:w});if(typeof jQuery=="function")jQuery.fn.flowplayer=function(a,c){if(!arguments.length||typeof arguments[0]=="number"){var e=[];
this.each(function(){var b=$f(this);b&&e.push(b)});return arguments.length?e[arguments[0]]:new y(e)}return this.each(function(){$f(this,v(a),c?v(c):{})})}})();
(function(){function v(d,g){if(g)for(var a in g)if(g.hasOwnProperty(a))d[a]=g[a];return d}function p(d,g){var a=[];for(var c in d)if(d.hasOwnProperty(c))a[c]=g(d[c]);return a}function w(d,g,a){if(y.isSupported(g.version))d.innerHTML=y.getHTML(g,a);else if(g.expressInstall&&y.isSupported([6,65]))d.innerHTML=y.getHTML(v(g,{src:g.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!d.innerHTML.replace(/\s/g,"")){d.innerHTML="<h2>Flash version "+g.version+
" or greater is required</h2><h3>"+(t[0]>0?"Your version is "+t:"You have no flash plugin installed")+"</h3>"+(d.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+B+"'>here</a></p>");if(d.tagName=="A")d.onclick=function(){location.href=B}}if(g.onFail){var c=g.onFail.call(this);if(typeof c=="string")d.innerHTML=c}}if(r)window[g.id]=document.getElementById(g.id);v(this,{getRoot:function(){return d},getOptions:function(){return g},getConf:function(){return a},
getApi:function(){return d.firstChild}})}var r=document.all,B="http://www.adobe.com/go/getflashplayer",A=typeof jQuery=="function",D=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,C={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});
window.flashembed=function(d,g,a){if(typeof d=="string")d=document.getElementById(d.replace("#",""));if(d){if(typeof g=="string")g={src:g};return new w(d,v(v({},C),g),a)}};var y=v(window.flashembed,{conf:C,getVersion:function(){var d,g;try{g=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(a){try{g=(d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&d.GetVariable("$version")}catch(c){try{g=(d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&d.GetVariable("$version")}catch(e){}}}return(g=
D.exec(g))?[g[1],g[3]]:[0,0]},asString:function(d){if(d===null||d===undefined)return null;var g=typeof d;if(g=="object"&&d.push)g="array";switch(g){case "string":d=d.replace(new RegExp('(["\\\\])',"g"),"\\$1");d=d.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+d+'"';case "array":return"["+p(d,function(c){return y.asString(c)}).join(",")+"]";case "function":return'"function()"';case "object":g=[];for(var a in d)d.hasOwnProperty(a)&&g.push('"'+a+'":'+y.asString(d[a]));return"{"+g.join(",")+"}"}return String(d).replace(/\s/g,
" ").replace(/\'/g,'"')},getHTML:function(d,g){d=v({},d);var a='<object width="'+d.width+'" height="'+d.height+'" id="'+d.id+'" name="'+d.id+'"';if(d.cachebusting)d.src+=(d.src.indexOf("?")!=-1?"&":"?")+Math.random();a+=d.w3c||!r?' data="'+d.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';a+=">";if(d.w3c||r)a+='<param name="movie" value="'+d.src+'" />';d.width=d.height=d.id=d.w3c=d.src=null;d.onFail=d.version=d.expressInstall=null;for(var c in d)if(d[c])a+=
'<param name="'+c+'" value="'+d[c]+'" />';c="";if(g){for(var e in g)if(g[e]){var b=g[e];c+=e+"="+(/function|object/.test(typeof b)?y.asString(b):b)+"&"}c=c.slice(0,-1);a+='<param name="flashvars" value=\''+c+"' />"}a+="</object>";return a},isSupported:function(d){return t[0]>d[0]||t[0]==d[0]&&t[1]>=d[1]}}),t=y.getVersion();if(A){jQuery.tools=jQuery.tools||{version:"3.2.4"};jQuery.tools.flashembed={conf:C};jQuery.fn.flashembed=function(d,g){return this.each(function(){$(this).data("flashembed",flashembed(this,
d,g))})}}})();(function(){function v(){if(!C){C=true;if(y){for(var t=0;t<y.length;t++)y[t].call(window,[]);y=[]}}}function p(t){var d=window.onload;window.onload=typeof window.onload!="function"?t:function(){d&&d();t()}}function w(){if(!D){D=true;document.addEventListener&&!A.opera&&document.addEventListener("DOMContentLoaded",v,false);A.msie&&window==top&&function(){if(!C){try{document.documentElement.doScroll("left")}catch(d){setTimeout(arguments.callee,0);return}v()}}();A.opera&&document.addEventListener("DOMContentLoaded",
function(){if(!C){for(var d=0;d<document.styleSheets.length;d++)if(document.styleSheets[d].disabled){setTimeout(arguments.callee,0);return}v()}},false);if(A.safari){var t;(function(){if(!C)if(document.readyState!="loaded"&&document.readyState!="complete")setTimeout(arguments.callee,0);else{if(t===undefined){for(var d=document.getElementsByTagName("link"),g=0;g<d.length;g++)d[g].getAttribute("rel")=="stylesheet"&&t++;d=document.getElementsByTagName("style");t+=d.length}document.styleSheets.length!=
t?setTimeout(arguments.callee,0):v()}})()}p(v)}}var r=window.DomReady={},B=navigator.userAgent.toLowerCase(),A={version:(B.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(B),opera:/opera/.test(B),msie:/msie/.test(B)&&!/opera/.test(B),mozilla:/mozilla/.test(B)&&!/(compatible|webkit)/.test(B)},D=false,C=false,y=[];r.ready=function(t){w();C?t.call(window,[]):y.push(function(){return t.call(window,[])})};w()})();(function(v,p){function w(i,n){for(var s=[],x=0;x<i.length;x++)s.push(i[x]);for(x=0;x<s.length;x++)n(s[x])}function r(){w([t,d],function(i){w(p.getElementsByTagName(i),function(n){function s(G){return n.canPlayType(G)||H&&G.search("mp4")>-1}var x=true,H=navigator.userAgent.toLowerCase().search("android")>-1;if(n.canPlayType)if(n.src){if(s(B(i,n.src)))x=false}else w(n.getElementsByTagName("source"),function(G){if(s(B(i,G.src,G.type)))x=false});if(x)r.createFallback(i,n);else H&&n.addEventListener("click",
function(){n.play()},false)})})}function B(i,n,s){return s||j[i][n.split(".").slice(-1)[0]]||F[i]}function A(i,n){var s=i.getAttribute(n);return s==true||typeof s=="string"}function D(i){if(i.substr(0,1)=="/")return o+i;if(i.substr(0,1)=="."||!i.match(/^\s*\w+:\/\//))return u+i;return i}function C(i,n,s){var x=i.getAttribute(n);if(x)return x+"px";if(i.currentStyle)i=i.currentStyle[n];else if(v.getComputedStyle)i=p.defaultView.getComputedStyle(i,null).getPropertyValue(n);else return s;if(i=="auto")return s;
return i}function y(i){return i.match(/\s*([\w-]+\/[\w-]+)(;|\s|$)/)[1]}var t="video",d="audio";p.createElement(t).canPlayType||w(["abbr","article","aside","audio","canvas","details","figcaption","figure","footer","header","hgroup","mark","menu","meter","nav","output","progress","section","summary","time","video","source"],function(i){p.createElement(i)});var g="";w(p.getElementsByTagName("script"),function(i){i=i.src;if(i.match(/html5media(\.min|)\.js/))g=i.split("/").slice(0,-1).join("/")+"/"});
r.flowplayerSwf=g+"flowplayer.swf";r.flowplayerAudioSwf=g+"flowplayer.audio.swf";r.flowplayerControlsSwf=g+"flowplayer.controls.swf";var a=r.THEORA_FORMAT='video/ogg; codecs="theora, vorbis"',c=r.H264_FORMAT='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',e=r.VORBIS_FORMAT='audio/ogg; codecs="vorbis"',b=r.M4A_FORMAT="audio/x-m4a;",l=r.MP3_FORMAT="audio/mpeg;",z=r.WAV_FORMAT='audio/wav; codecs="1"',F=r.assumedFormats={video:c,audio:l},h=r.fallbackFormats=[r.H264_FORMAT,r.M4A_FORMAT,r.MP3_FORMAT],j=r.fileExtensions=
{video:{ogg:a,ogv:a,avi:c,mp4:c,mkv:c,h264:c,"264":c,avc:c,m4v:c,"3gp":c,"3gpp":c,"3g2":c,mpg:c,mpeg:c},audio:{ogg:e,oga:e,aac:b,m4a:b,mp3:l,wav:z}},o=v.location.protocol+"//"+v.location.host,u=String(v.location);w(p.getElementsByTagName("base"),function(i){if(i.href)u=i.href});u=u.split("/").slice(0,-1).join("/")+"/";r.configureFlowplayer=function(i,n,s){return s};r.createFallback=function(i,n){var s=A(n,"controls"),x=n.getAttribute("poster")||"",H=n.getAttribute("src")||"",G;if(H)G=B(i,H);else w(n.getElementsByTagName("source"),
function(k){var q=k.getAttribute("src");q&&!H&&w(h,function(E){G=B(i,q,k.getAttribute("type"));if(y(G)==y(E))H=q})});var I=p.createElement("span");I.id=n.id;I.className=n.className;I.title=n.title;I.style.display="block";I.style.width=C(n,"width","300px");I.style.height=C(n,"height","24px");n.parentNode.replaceChild(I,n);var f=(n.getAttribute("preload")||"").toLowerCase(),m=[];x&&m.push({url:D(x)});if(H)m.push({url:D(H),autoPlay:A(n,"autoplay"),autoBuffering:A(n,"autobuffer")||A(n,"preload")&&(f==
""||f=="auto"),onBeforeFinish:function(){return!A(n,"loop")}});x={controls:s&&{url:D(r.flowplayerControlsSwf),fullscreen:false,autoHide:i==t&&"always"||"never"}||null};if(y(G)==y(l)){x.audio={url:D(r.flowplayerAudioSwf)};s||(x.controls={url:D(r.flowplayerControlsSwf),display:"none"});m.slice(-1)[0].autoBuffering=false}s={play:null,playlist:m,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},plugins:x};r.configureFlowplayer(i,n,s);flowplayer(I,{src:D(r.flowplayerSwf),wmode:"opaque"},s)};if(v.jQuery)jQuery(r);
else v.DomReady&&DomReady.ready(r);v.html5media=r})(this,document);
//-- End HTML5 Video Stack --//

	return stack;
})(stacks.stacks_in_16_page12);


// Javascript for stacks_in_51_page12
// ---------------------------------------------------------------------

// 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_51_page12 = {};

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Styled Stack v1.3.0 by Joe Workman
$(document).ready(function() {	
	var custom_bg_src = $("#custom_bg_stacks_in_51_page12 img").attr("src");
	if (custom_bg_src) { 
	    $("#stacks_in_51_page12").css({'background-image':'url(' + custom_bg_src + ')'});	
	}
	else {
	    var bg_src = 'files/styled-stack-images/stack-bg1.png';
    	if (1 != 0) { $("#stacks_in_51_page12").css({'background-image':'url(' + bg_src + ')'}); }
	}
});
// End Styled Stack

	return stack;
})(stacks.stacks_in_51_page12);



