
// '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_28_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_28_page0 = {};

// 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_28_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 off the Flowbox Scripts Load - SymfoniP
 * flowplayer.js 3.2.2. The Flowplayer API
 * 
 * Copyright 2010 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2010-05-20 17:15:38 +0000 (Thu, 20 May 2010)
 * Revision: 480 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!=undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}flashembed(q,G,{config:t});if(J){J.cached=true;j(x,"onLoad",J)}};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.0";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("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 H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=v.clientHeight;m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var H=0;m(t.playlist,function(){var J=this;if(typeof J=="object"&&J.length){J={url:""+J}}m(t.clip,function(K,L){if(L!==undefined&&J[K]===undefined&&typeof L!="function"){J[K]=L}});t.playlist[H]=J;J=new h(J,H,w);F.push(J);H++});m(t,function(J,K){if(typeof K=="function"){if(s[J]){s[J](K)}else{j(x,J,K)}delete t[J]}});m(t.plugins,function(J,K){if(K){y[J]=new l(J,K,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);function I(J){if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(J)}u=q.innerHTML;if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",I,false)}else{if(q.attachEvent){q.attachEvent("onclick",I)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}else{q=z;B()}}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={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};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function i(l,f){if(f){for(key in f){if(f.hasOwnProperty(key)){l[key]=f[key]}}}return l}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getVersion:function(){var f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(n){try{var l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=l&&l.GetVariable("$version")}catch(m){}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"3.2.0"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();

/*
	FlowBox V1.06 an enhanced branch of the colorbox v1.1.6 - built specifically for integration of FlowPlayer to web pages
	FlowBox and the additional methods to talk to the Flash Player contained herein © 2009/2010 SymfoniP.com - Ronan Cashell / Kevin Burns- all rights reserved
*/
(function(k){var z,n,f,r,b,m,E,A,q,t,x,l,j,C,h,w,e,p,B,u,v,g,d,o,s;function a(){l.css({position:"absolute",width:k(window).width(),height:k(window).height(),top:k(window).scrollTop(),left:k(window).scrollLeft()})}function c(F){if(F.keyCode==37){F.preventDefault();k(document).unbind("keydown",c);k("a#contentPrevious").click()}else{if(F.keyCode==39){F.preventDefault();k(document).unbind("keydown",c);k("a#contentNext").click()}}}function D(){if(k("#flowboxInlineTemp").length>0){C.children().each(function(){if(this.id=="contentCurrent"||this.id=="contentNext"||this.id=="contentPrevious"||this.id=="contentTitle"){k(this).remove()}});C.children().insertAfter("#flowboxInlineTemp")}if(k("#modalLoadedContent #modalVideo")){k("#modalVideo").appendTo("body").hide()}if(A){k(A).remove()}}function y(F,G){return(typeof F=="string")?(F.match(/%/)?(G/100)*parseInt(F,10):parseInt(F,10)):F}jQuery.noConflict();jQuery(document).ready(function(F){F("body").append(l=F('<div id="modalBackgroundOverlay" />').hide(),q=F('<div id="flowbox" />').css("opacity",0));F('<div id="modalWrap" />').appendTo(q).append(F('<div><div id="borderTopLeft" /><div id="borderTopCenter" /><div id="borderTopRight" /></div>'),e=F('<div id="borderMiddleLeft" />'),j=F('<div id="modalContent" />'),p=F('<div id="borderMiddleRight" />'),F('<div><div id="borderBottomLeft" /><div id="borderBottomCenter" /><div id="borderBottomRight" /></div>'));j.append(C=F('<div id="modalLoadedContent"><a id="contentNext" href="#"></a><a id="contentPrevious" href="#"></a><span id="contentCurrent"></span><span id="contentTitle"></span><div id="preloadPrevious"></div><div id="preloadNext"></div><div id="preloadClose"></div></div>'),$flowPlayer=F('<div id="modalVideo" />'),x=F('<div id="modalLoadingOverlay" />'),h=F('<a id="modalClose" href="#"></a>'));F(document).bind("keydown.colorClose",function(G){if(G.keyCode==27){G.preventDefault();F.fn.flowbox.close()}});h.click(function(G){G.preventDefault();F.fn.flowbox.close()});w=F("#borderTopCenter");B=F("#borderBottomCenter");r=w.height()+B.height()+j.outerHeight(true)-j.height();b=e.width()+p.width()+j.outerWidth(true)-j.width();f=C.outerHeight(true);n=C.outerWidth(true);C.empty();q.css({"padding-bottom":r,"padding-right":b}).hide();F("#contentPrevious, #contentNext, #modalClose").live("mouseover",function(){F(this).addClass("hover")});F("#contentPrevious, #contentNext, #modalClose").live("mouseout",function(){F(this).removeClass("hover")})});k.fn.flowbox=function(H,M,N){function F(R,V,T,Q){var P=document.documentElement.clientHeight;var S=P/2-V/2;var O=document.documentElement.clientWidth/2-R/2;if(V>P){S-=(V-P)}if(S<0){S=0}if(O<0){O=0}S+=k(window).scrollTop();O+=k(window).scrollLeft();R=R-b;V=V-r;function U(W){j[0].style.width=w[0].style.width=B[0].style.width=W.style.width;j[0].style.height=e[0].style.height=p[0].style.height=W.style.height}q.animate({height:V,width:R,top:S,left:O},{duration:T,complete:function(){if(Q){Q()}U(this);if(k.browser.msie&&k.browser.version<7){a()}},step:function(){U(this)}})}var J=[];function L(){if(H.preloading!==false&&E.length>1&&E[m].href.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(.*))?$/i)){var P,O;P=m>0?E[m-1].href:E[E.length-1].href;O=m<E.length-1?E[m+1].href:E[0].href;return[k("<img />").attr("src",O),k("<img />").attr("src",P)]}return false}function G(){x.show();if(k(this).attr("id")=="contentPrevious"){m=m>0?m-1:E.length-1}else{m=m<E.length-1?m+1:0}I(E[m].href,E[m].title);return false}function K(R,Q){if(q.data("open")!==true){return false}var T=H.transition=="none"?0:H.transitionSpeed;C.remove();C=k(R);centerVideo=0;if(E[m].href.match(/\.(flv|mp4|m4v|mov|f4v|FLV|MP4|M4V|MOV|F4V)(?:\?([^#]*))?(?:#(.*))?$/i)){centerVideo=u}else{centerVideo=0}C.hide().appendTo("body").css({width:(H.fixedWidth)?H.fixedWidth-n-b:C.width()-centerVideo}).css({height:(H.fixedHeight)?H.fixedHeight-f-r:C.height()+centerVideo}).attr({id:"modalLoadedContent"}).append(Q).prependTo(j);if(k("#modalPhoto").length>0&&H.fixedHeight){var P=(parseInt(C[0].style.height,10)-parseInt(k("#modalPhoto")[0].style.height,10))/2;k("#modalPhoto").css({marginTop:(P>0?P:0)})}function O(U){F(parseInt(C[0].style.width,10)+n+b,parseInt(C[0].style.height,10)+f+r,U,function(){if(q.data("open")!==true){return false}C.show();x.hide();k(document).bind("keydown",c);if(N){N()}if(H.transition==="fade"){q.animate({opacity:1},T)}return true})}if(H.transition=="fade"){q.animate({opacity:0},T,function(){O(0)})}else{O(T)}var S=L();return true}function I(P,Q){D();var O="<p id='contentTitle'>"+Q+"</p>";if(P.match(/\.(flv|mp4|m4v|mov|f4v|FLV|MP4|M4V|MOV|F4V)(?:\?([^#]*))?(?:#(.*))?$/i)){contentType=""}else{contentType=""}if(E.length>1){O+="<span id='contentCurrent'> "+contentType+H.contentCurrent+"</span>";O=O.replace(/\{current\}/,m+1).replace(/\{total\}/,E.length);O+="<a id='contentPrevious' href='#'>"+H.contentPrevious+"</a><a id='contentNext' href='#'>"+H.contentNext+"</a> "}if(E[m].name=="inline"||H.inline){tmp=P.split("/");tmp1=tmp[tmp.length-1].split("#");P="#"+tmp1[tmp1.length-1];A=k('<div id="flowboxInlineTemp" />').hide().insertBefore(k(P)[0]);K(k(P).wrapAll("<div />").parent(),O)}else{if(H.iframe){K(k("<div><iframe name='iframe_"+new Date().getTime()+" 'frameborder=0 src ="+P+"></iframe></div>"),O)}else{if(P.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(.*))?$/i)){A=new Image();A.onload=function(){A.onload=null;K(k("<div />").css({width:this.width,height:this.height}).append(k(this).css({width:this.width,height:this.height,display:"block",margin:"auto"}).attr("id","modalPhoto")),O);if(E.length>1){k(this).css({cursor:"pointer"}).click(G)}};A.src=P}else{if(P.match(/\.(flv|mp4|m4v|mov|f4v|FLV|MP4|M4V|MOV|F4V)(?:\?([^#]*))?(?:#(.*))?$/i)){if(typeof defWidth=="undefined"){defWidth=parseInt(k("#modalVideo").width());defHeight=parseInt(k("#modalVideo").height())}classWidth=defWidth;classHeight=defHeight;anchorClasses=k(E[m]).attr("class").split(" ");for(i=0;i<anchorClasses.length;i++){className=anchorClasses[i];if(className.substring(0,3)=="sym"){tmpDim=className.substring(3).split("x");classWidth=parseInt(tmpDim[0]);classHeight=parseInt(tmpDim[1])}}k("#modalVideo").width(classWidth).height(classHeight);K(k("<div />").css({width:(classWidth+u),height:(classHeight+u)}),O);k("#modalVideo").prependTo(k("#modalLoadedContent")).show();if(typeof M.flowplayerloc!="undefined"){g=M.flowplayerloc}else{g="/swf/flowplayer-3.2.2.swf"}M.clip.url=P;M.screen.width=classWidth;M.screen.height=classHeight;$f("modalVideo",g,M)}else{A=k("<div />").load(P,function(R,S){if(S=="success"){K(k(this),O)}else{K(k("<p>Request unsuccessful.</p>"))}})}}}}}if(typeof H.bgOpacity!="undefined"&&parseFloat(H.bgOpacity)>=1){H.bgOpacity=parseInt(H.bgOpacity)/100}u=5;k(this).unbind("click.flowbox").bind("click.flowbox",function(){if(H.fixedWidth){H.fixedWidth=y(H.fixedWidth,document.documentElement.clientWidth)}if(H.fixedHeight){H.fixedHeight=y(H.fixedHeight,document.documentElement.clientHeight)}if(this.rel&&this.rel!="nofollow"&&this.rel!="self"){E=k("a[rel='"+this.rel+"']");m=k(E).index(this)}else{E=k(this);m=0}if(q.data("open")!==true){k(document).bind("keydown",c);h.html(H.modalClose);l.css({opacity:H.bgOpacity}).show();q.data("open",true).css({opacity:1});if(H.overlayClass!=""){l.attr("class",H.overlayClass)}else{if(H.overlayImage!=""){l.css({"background-image":"url("+H.overlayImage+")","background-repeat":"repeat","background-position":"0 0",opacity:H.bgOpacity})}else{l.css({"background-color":H.overlayColor,opacity:H.bgOpacity})}}F(y(H.initialWidth,document.documentElement.clientWidth),y(H.initialHeight,document.documentElement.clientHeight),0);if(k.browser.msie&&k.browser.version<7){k(window).bind("resize scroll",a)}}I(H.href?H.href:E[m].href,H.title?H.title:E[m].title);k("a#contentPrevious, a#contentNext").die().live("click",G);if(H.overlayClose!==false){l.css({cursor:"pointer"}).click(function(){k.fn.flowbox.close()})}return false});if(H.open!==false&&q.data("open")!==true){k(this).triggerHandler("click.flowbox")}return this.each(function(){})};k.fn.flowbox.close=function(){k("#contentTitle").remove();D();l.css({cursor:"auto"}).fadeOut("fast");q.stop(true,false).removeData("open").fadeOut("fast",function(){C.remove()});k(document).unbind("keydown",c);k(window).unbind("resize scroll",a);return false};k.fn.flowbox.settings={transition:"elastic",transitionSpeed:250,initialWidth:"400",initialHeight:"400",fixedWidth:false,fixedHeight:false,inline:false,iframe:false,href:false,title:false,bgOpacity:0.5,preloading:true,contentCurrent:" {current} of {total}",contentPrevious:"previous",contentNext:"next",modalClose:"close",open:false,overlayClose:true,overlayCursor:"pointer",overlayImage:"",overlayColor:"#7f7f7f",overlayClass:"",showImages:true,flowboxVideo:"a[href$=flv],a[href$=mp4],a[href$=m4v],a[href$=mov],a[href$=f4v],a[href$=MOV],a[href$=MP4],a[href$=F4V],a[href$=M4V]",flowboxImage:"a[href$=png],a[href$=PNG],a[href$=jpg],a[href$=JPG],a[href$=gif],a[href$=GIF]"};k.fn.flowbox.fp_settings={key:"",clip:{scaling:"scale",url:"",autoPlay:false,accelerated:true,autoBuffering:true},play:{label:"Play",replayLabel:"Play again"},logo:{url:"",fullscreenOnly:true,displayTime:15},screen:{width:640,height:360},plugins:{controls:{backgroundColor:"#131313",backgroundGradient:[0.3,0],autoHide:"always",all:false,play:true,mute:false,fullscreen:true,scrubber:true,height:20,buttonColor:"#8C838A",sliderColor:"#333333",progressColor:"#CCCCCC",bufferColor:"#666666"}}};k.fn.flowbox.initFlowbox=function(H,G,F){o=k.extend({},k.fn.flowbox.settings,H);d=k.extend({},k.fn.flowbox.fp_settings,F);lifb=k.extend({},o,G);lifb.iframe=true;if(o.showImages){k(k.fn.flowbox.settings.flowboxImage).flowbox(o,d)}k("a[name='iframe']").flowbox(lifb,d);k("a[name='inline'],a[name='flash'],a[name='ajax']").flowbox(o,d);k(k.fn.flowbox.settings.flowboxVideo).flowbox(o,d)}})(jQuery);

/* the stuff that controls flowbox - SymfoniP*/
jQuery.noConflict();
jQuery(document).ready(function($){
	var fp_atts = {
		flowplayerloc: 'files/flowplayer/flowplayer-3.2.2.swf',
                    key:'',
                    clip: { scaling: 'scale', url: '', autoPlay: false, 
							accelerated: true, autoBuffering: true
                            },
                    play: { label: "Play", replayLabel: "Play again"},
			        logo: { url: '', fullscreenOnly: true, displayTime: 10},
					plugins: {
						controls: {backgroundColor: '#131313', backgroundGradient: [0.3,0],
							autoHide: 'always', all:false,
							play: true, mute: false, fullscreen: true, scrubber:true,
							height: 22, volume:true
						}
					}
            };
		$.fn.flowbox.initFlowbox({transition: "elastic", showImages: true,overlayColor:"#FFFFFF",bgOpacity:60}, {iframe:true, fixedWidth:"85%",fixedHeight:"85%"}, fp_atts);
});
/* end of Flowbox Stacks Code by SymfoniP version 1.5- built 2010 */

	return stack;
})(stacks.stacks_in_28_page0);


