﻿function transition_slides(n){$(n).hasClass("selected")||$(n).show("pulsate",{times:1,easing:"easeOutQuad"},800,function(){$("#home-slideshow span.selected").hide("pulsate",{times:1,easing:"easeOutQuad"},800,function(){$(this).removeClass("selected"),$(n).addClass("selected"),buttons_rebind()})})}function show_slide_1(){buttons_unbind(),transition_slides("#home-slideshow span.slide-1"),deselect_all_links(),$("a#slide-link-1").addClass("selected")}function show_slide_2(){buttons_unbind(),transition_slides("#home-slideshow span.slide-2"),deselect_all_links(),$("a#slide-link-2").addClass("selected")}function show_slide_3(){buttons_unbind(),transition_slides("#home-slideshow span.slide-3"),deselect_all_links(),$("a#slide-link-3").addClass("selected")}function buttons_unbind(){$("a#slide-link-1").unbind(),$("a#slide-link-2").unbind(),$("a#slide-link-3").unbind(),$("a#prev").unbind(),$("a#next").unbind()}function buttons_rebind(){$("a#slide-link-1").click(function(){return show_slide_1(),window.clearInterval(slider_timer),!1}),$("a#slide-link-2").click(function(){return show_slide_2(),window.clearInterval(slider_timer),!1}),$("a#slide-link-3").click(function(){return show_slide_3(),window.clearInterval(slider_timer),!1}),$("a#prev").click(function(){return show_slide_prev(),window.clearInterval(slider_timer),!1}),$("a#next").click(function(){return show_slide_next(),window.clearInterval(slider_timer),!1})}function show_slide_next(){buttons_unbind(),$("#home-slideshow span.slide-1").hasClass("selected")?show_slide_2():$("#home-slideshow span.slide-2").hasClass("selected")?show_slide_3():$("#home-slideshow span.slide-3").hasClass("selected")?show_slide_1():show_slide_1()}function show_slide_prev(){buttons_unbind(),$("#home-slideshow span.slide-3").hasClass("selected")?show_slide_2():$("#home-slideshow span.slide-2").hasClass("selected")?show_slide_1():$("#home-slideshow span.slide-1").hasClass("selected")?show_slide_3():show_slide_3()}function deselect_all_links(){$(".home-slideshow-links a").removeClass("selected")}(function(n){function r(r,u){var f=this,l=r.add(f),v=n(window),s,e,a,o=n.tools.expose&&(u.mask||u.expose),c=Math.random().toString().slice(10),h;o&&(typeof o=="string"&&(o={color:o}),o.closeOnClick=o.closeOnEsc=!1),h=u.target||r.attr("rel"),e=h?n(h):r;if(!e.length)throw"Could not find Overlay: "+h;r&&r.index(e)==-1&&r.click(function(n){return f.load(n),n.preventDefault()}),n.extend(f,{load:function(r){var y;if(f.isOpened())return f;y=t[u.effect];if(!y)throw'Overlay: cannot find effect : "'+u.effect+'"';u.oneInstance&&n.each(i,function(){this.close(r)}),r=r||n.Event(),r.type="onBeforeLoad",l.trigger(r);if(r.isDefaultPrevented())return f;a=!0,o&&n(e).expose(o);var s=u.top,h=u.left,w=e.outerWidth({margin:!0}),p=e.outerHeight({margin:!0});return typeof s=="string"&&(s=s=="center"?Math.max((v.height()-p)/2,0):parseInt(s,10)/100*v.height()),h=="center"&&(h=Math.max((v.width()-w)/2,0)),y[0].call(f,{top:s,left:h},function(){a&&(r.type="onLoad",l.trigger(r))}),o&&u.closeOnClick&&n.mask.getMask().one("click",f.close),u.closeOnClick&&n(document).bind("click."+c,function(t){n(t.target).parents(e).length||f.close(t)}),u.closeOnEsc&&n(document).bind("keydown."+c,function(n){n.keyCode==27&&f.close(n)}),f},close:function(i){return f.isOpened()?(i=i||n.Event(),i.type="onBeforeClose",l.trigger(i),i.isDefaultPrevented()?void 0:(a=!1,t[u.effect][1].call(f,function(){i.type="onClose",l.trigger(i)}),n(document).unbind("click."+c).unbind("keydown."+c),o&&n.mask.close(),f)):f},getOverlay:function(){return e},getTrigger:function(){return r},getClosers:function(){return s},isOpened:function(){return a},getConf:function(){return u}}),n.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(t,i){n.isFunction(u[i])&&n(f).bind(i,u[i]),f[i]=function(t){return n(f).bind(i,t),f}}),s=e.find(u.close||".close"),s.length||u.close||(s=n('<a class="close"></a>'),e.prepend(s)),s.click(function(n){f.close(n)}),u.load&&f.load()}n.tools=n.tools||{version:"1.2.4"},n.tools.overlay={addEffect:function(n,i,r){t[n]=[i,r]},conf:{close:null,closeOnClick:!0,closeOnEsc:!0,closeSpeed:"fast",effect:"default",fixed:!n.browser.msie||n.browser.version>6,left:"center",load:!1,mask:null,oneInstance:!0,speed:"normal",target:null,top:"10%"}};var i=[],t={};n.tools.overlay.addEffect("default",function(t,i){var r=this.getConf(),u=n(window);r.fixed||(t.top+=u.scrollTop(),t.left+=u.scrollLeft()),t.position=r.fixed?"fixed":"absolute",this.getOverlay().css(t).fadeIn(r.speed,i)},function(n){this.getOverlay().fadeOut(this.getConf().closeSpeed,n)}),n.fn.overlay=function(t){var u=this.data("overlay");return u?u:(n.isFunction(t)&&(t={onBeforeLoad:t}),t=n.extend(!0,{},n.tools.overlay.conf,t),this.each(function(){u=new r(n(this),t),i.push(u),n(this).data("overlay",u)}),t.api?u:this)}})(jQuery),(function(){function a(n){console.log("$f.fireEvent",[].slice.call(n))}function u(n){var i,t;if(!n||typeof n!="object")return n;i=new n.constructor;for(t in n)n.hasOwnProperty(t)&&(i[t]=u(n[t]));return i}function n(n,t){var u,r,f,i;if(!n)return;r=0,f=n.length;if(f===undefined){for(u in n)if(t.call(n[u],u,n[u])===!1)break}else for(i=n[0];r<f&&t.call(i,r,i)!==!1;i=n[++r]);return n}function c(n){return document.getElementById(n)}function t(t,i,r){return typeof i!="object"?t:(t&&i&&n(i,function(n,i){r&&typeof i=="function"||(t[n]=i)}),t)}function v(t){var i=t.indexOf(".");if(i!=-1){var u=t.slice(0,i)||"*",f=t.slice(i+1,t.length),r=[];return n(document.getElementsByTagName(u),function(){this.className&&this.className.indexOf(f)!=-1&&r.push(this)}),r}}function l(n){return n=n||window.event,n.preventDefault?(n.stopPropagation(),n.preventDefault()):(n.returnValue=!1,n.cancelBubble=!0),!1}function r(n,t,i){n[t]=n[t]||[],n[t].push(i)}function f(){return"_"+(""+Math.random()).slice(2,10)}function s(s,h,v){function ft(){function u(n){var t=y.hasiPadSupport&&y.hasiPadSupport();return/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(w[0].url)&&!t?!0:(y.isLoaded()||y._fireEvent("onBeforeClick")===!1||y.load(),l(n))}function c(){d.replace(/\s/g,"")!==""?s.addEventListener?s.addEventListener("click",u,!1):s.attachEvent&&s.attachEvent("onclick",u):(s.addEventListener&&s.addEventListener("click",l,!1),y.load())}$f(s)?($f(s).getParent().innerHTML="",nt=$f(s).getIndex(),i[nt]=y):(i.push(y),nt=i.length-1),st=parseInt(s.style.height,10)||s.clientHeight,tt=s.id||"fp"+f(),ut=h.id||tt+"_api",h.id=ut,v.playerId=tt,typeof v=="string"&&(v={clip:{url:v}}),typeof v.clip=="string"&&(v.clip={url:v.clip}),v.clip=v.clip||{},s.getAttribute("href",2)&&!v.clip.url&&(v.clip.url=s.getAttribute("href",2)),g=new o(v.clip,-1,y),v.playlist=v.playlist||[v.clip];var t=0;n(v.playlist,function(){var i=this;typeof i=="object"&&i.length&&(i={url:""+i}),n(v.clip,function(n,t){t!==undefined&&i[n]===undefined&&typeof t!="function"&&(i[n]=t)}),v.playlist[t]=i,i=new o(i,t,y),w.push(i),t++}),n(v,function(n,t){typeof t=="function"&&(g[n]?g[n](t):r(k,n,t),delete v[n])}),n(v.plugins,function(n,t){t&&(b[n]=new e(n,t,y))}),v.plugins&&v.plugins.controls!==undefined||(b.controls=new e("controls",null,y)),b.canvas=new e("canvas",null,y),d=s.innerHTML,setTimeout(c,0)}var y=this,p=null,it=!1,d,g,w=[],b={},k={},tt,ut,nt,et,ot,st,rt;t(y,{id:function(){return tt},isLoaded:function(){return p!==null&&p.fp_play!==undefined&&!it},getParent:function(){return s},hide:function(n){return n&&(s.style.height="0px"),y.isLoaded()&&(p.style.height="0px"),y},show:function(){return s.style.height=st+"px",y.isLoaded()&&(p.style.height=ot+"px"),y},isHidden:function(){return y.isLoaded()&&parseInt(p.style.height,10)===0},load:function(t){if(!y.isLoaded()&&y._fireEvent("onBeforeLoad")!==!1){var f=function(){d=s.innerHTML,d&&!flashembed.isSupported(h.version)&&(s.innerHTML=""),t&&(t.cached=!0,r(k,"onLoad",t)),flashembed(s,h,{config:v})},u=0;n(i,function(){this.unload(function(){++u==i.length&&f()})})}return y},unload:function(n){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent))return n&&n(!1),y;if(d.replace(/\s/g,"")!==""){if(y._fireEvent("onBeforeUnload")===!1)return n&&n(!1),y;it=!0;try{p&&(p.fp_close(),y._fireEvent("onUnload"))}catch(i){}var t=function(){p=null,s.innerHTML=d,it=!1,n&&n(!0)};setTimeout(t,50)}else n&&n(!1);return y},getClip:function(n){return n===undefined&&(n=et),w[n]},getCommonClip:function(){return g},getPlaylist:function(){return w},getPlugin:function(n){var t=b[n],i;return!t&&y.isLoaded()&&(i=y._api().fp_getPlugin(n),i&&(t=new e(n,i,y),b[n]=t)),t},getScreen:function(){return y.getPlugin("screen")},getControls:function(){return y.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return y.getPlugin("logo")._fireEvent("onUpdate")}catch(n){}},getPlay:function(){return y.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(n){return n?u(v):v},getFlashParams:function(){return h},loadPlugin:function(n,t,i,r){var s,o,u;return typeof i=="function"&&(r=i,i={}),s=r?f():"_",y._api().fp_loadPlugin(n,t,i,s),o={},o[s]=r,u=new e(n,null,y,o),b[n]=u,u},getState:function(){return y.isLoaded()?p.fp_getState():-1},play:function(n,t){var i=function(){n!==undefined?y._api().fp_play(n,t):y._api().fp_play()};return y.isLoaded()?i():it?setTimeout(function(){y.play(n,t)},50):y.load(function(){i()}),y},getVersion:function(){var t="flowplayer.js 3.2.6",n;return y.isLoaded()?(n=p.fp_getVersion(),n.push(t),n):t},_api:function(){if(!y.isLoaded())throw"Flowplayer "+y.id()+" not loaded when calling an API method";return p},setClip:function(n){return y.setPlaylist([n]),y},getIndex:function(){return nt},_swfHeight:function(){return p.clientHeight}}),n("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.slice(0,n.length-1),t="onBefore"+n.slice(2),y[t]=function(n){return r(k,t,n),y}),y[n]=function(t){return r(k,n,t),y}}),n("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 n=this;y[n]=function(t,i){if(!y.isLoaded())return y;var r=null;return r=t!==undefined&&i!==undefined?p["fp_"+n](t,i):t===undefined?p["fp_"+n]():p["fp_"+n](t),r==="undefined"||r===undefined?y:r}}),y._fireEvent=function(t){var d,h,nt,f,s;typeof t=="string"&&(t=[t]);var r=t[0],i=t[1],u=t[2],l=t[3],e=0;v.debug&&a(t),y.isLoaded()||r!="onLoad"||i!="player"||(p=p||c(ut),ot=y._swfHeight(),n(w,function(){this._fireEvent("onLoad")}),n(b,function(n,t){t._fireEvent("onUpdate")}),g._fireEvent("onLoad"));if(r=="onLoad"&&i!="player")return;r=="onError"&&(typeof i=="string"||typeof i=="number"&&typeof u=="number")&&(i=u,u=l);if(r=="onContextMenu"){n(v.contextMenu[i],function(n,t){t.call(y)});return}if(r=="onPluginEvent"||r=="onBeforePluginEvent")return d=i.name||i,h=b[d],h?(h._fireEvent("onUpdate",i),h._fireEvent(u,t.slice(3))):void 0;r=="onPlaylistReplace"&&(w=[],nt=0,n(i,function(){w.push(new o(this,nt++,y))}));if(r=="onClipAdd"){if(i.isInStream)return;for(i=new o(i,u,y),w.splice(u,0,i),e=u+1;e<w.length;e++)w[e].index++}return f=!0,typeof i=="number"&&i<w.length&&(et=i,s=w[i],s&&(f=s._fireEvent(r,u,l)),s&&f===!1||(f=g._fireEvent(r,u,l,s))),n(k[r],function(){f=this.call(y,i,u),this.cached&&k[r].splice(e,1);if(f===!1)return!1;e++}),f};if(typeof s=="string"){rt=c(s);if(!rt)throw"Flowplayer cannot access element: "+s;s=rt,ft()}else ft()}function h(t){this.length=t.length,this.each=function(i){n(t,i)},this.size=function(){return t.length}}var o=function(i,u,e){var o=this,c={},h={},s;o.index=u,typeof i=="string"&&(i={url:i}),t(this,i,!0),n("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var n="on"+this,t;n.indexOf("*")!=-1&&(n=n.slice(0,n.length-1),t="onBefore"+n.slice(2),o[t]=function(n){return r(h,t,n),o}),o[n]=function(t){return r(h,n,t),o},u==-1&&(o[t]&&(e[t]=o[t]),o[n]&&(e[n]=o[n]))}),t(this,{onCuepoint:function(n,t){if(arguments.length==1)return c.embedded=[null,n],o;typeof n=="number"&&(n=[n]);var i=f();return c[i]=[n,t],e.isLoaded()&&e._api().fp_addCuepoints(n,u,i),o},update:function(n){t(o,n),e.isLoaded()&&e._api().fp_updateClip(n,u);var i=e.getConfig(),r=u==-1?i.clip:i.playlist[u];t(r,n,!0)},_fireEvent:function(i,r,f,s){var a,l;if(i=="onLoad")return n(c,function(n,t){t[0]&&e._api().fp_addCuepoints(t[0],u,n)}),!1;s=s||o;if(i=="onCuepoint"){a=c[r];if(a)return a[1].call(e,s,f)}return r&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(i)!=-1&&(t(s,r),r.metaData&&(s.duration?s.fullDuration=r.metaData.duration:s.duration=r.metaData.duration)),l=!0,n(h[i],function(){l=this.call(e,s,r,f)}),l}}),i.onCuepoint&&(s=i.onCuepoint,o.onCuepoint.apply(o,typeof s=="function"?[s]:s),delete i.onCuepoint),n(i,function(n,t){typeof t=="function"&&(r(h,n,t),delete i[n])}),u==-1&&(e.onCuepoint=this.onCuepoint)},e=function(i,r,u,e){var o=this,s={},h=!1;e&&t(s,e),n(r,function(n,t){typeof t=="function"&&(s[n]=t,delete r[n])}),t(this,{animate:function(n,t,e){var c,h;return n?(typeof t=="function"&&(e=t,t=500),typeof n=="string"&&(c=n,n={},n[c]=t,t=500),e&&(h=f(),s[h]=e),t===undefined&&(t=500),r=u._api().fp_animate(i,n,t,h),o):o},css:function(n,f){if(f!==undefined){var e={};e[n]=f,n=e}return r=u._api().fp_css(i,n),t(o,r),o},show:function(){return this.display="block",u._api().fp_showPlugin(i),o},hide:function(){return this.display="none",u._api().fp_hidePlugin(i),o},toggle:function(){return this.display=u._api().fp_togglePlugin(i),o},fadeTo:function(n,t,r){typeof t=="function"&&(r=t,t=500);if(r){var e=f();s[e]=r}return this.display=u._api().fp_fadeTo(i,n,t,e),this.opacity=n,o},fadeIn:function(n,t){return o.fadeTo(1,n,t)},fadeOut:function(n,t){return o.fadeTo(0,n,t)},getName:function(){return i},getPlayer:function(){return u},_fireEvent:function(r,f){var c,l,a;if(r=="onUpdate"){c=u._api().fp_getPlugin(i);if(!c)return;t(o,c),delete o.methods,h||(n(c.methods,function(){var n=""+this;o[n]=function(){var r=[].slice.call(arguments),t=u._api().fp_invoke(i,n,r);return t==="undefined"||t===undefined?o:t}}),h=!0)}return l=s[r],l?(a=l.apply(o,f),r.slice(0,1)=="_"&&delete s[r],a):o}})},i=[];window.flowplayer=window.$f=function(){var o=null,r=arguments[0],f,e,a,l;if(!arguments.length)return n(i,function(){if(this.isLoaded())return o=this,!1}),o||i[0];if(arguments.length==1)return typeof r=="number"?i[r]:r=="*"?new h(i):(n(i,function(){if(this.id()==r.id||this.id()==r||this.getParent()==r)return o=this,!1}),o);if(arguments.length>1){f=arguments[1],e=arguments.length==3?arguments[2]:{},typeof f=="string"&&(f={src:f}),f=t({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},f);if(typeof r=="string")return r.indexOf(".")!=-1?(a=[],n(v(r),function(){a.push(new s(this,u(f),u(e)))}),new h(a)):(l=c(r),new s(l!==null?l:r,f,e));if(r)return new s(r,f,e)}return null},t(window.$f,{fireEvent:function(){var t=[].slice.call(arguments),n=$f(t[0]);return n?n._fireEvent(t.slice(1)):null},addPlugin:function(n,t){return s.prototype[n]=t,$f},each:n,extend:t}),typeof jQuery=="function"&&(jQuery.fn.flowplayer=function(n,t){if(!arguments.length||typeof arguments[0]=="number"){var i=[];return this.each(function(){var n=$f(this);n&&i.push(n)}),arguments.length?i[arguments[0]]:new h(i)}return this.each(function(){$f(this,u(n),t?u(t):{})})})})(),(function(){function s(){var t,i;if(n.done)return!1;t=document;if(t&&t.getElementsByTagName&&t.getElementById&&t.body){for(clearInterval(n.timer),n.timer=null,i=0;i<n.ready.length;i++)n.ready[i].call();n.ready=null,n.done=!0}}function t(n,t){if(t)for(key in t)t.hasOwnProperty(key)&&(n[key]=t[key]);return n}function r(n){var i,t;switch(h(n)){case"string":return n=n.replace(new RegExp('(["\\\\])',"g"),"\\$1"),n=n.replace(/^\s?(\d+)%/,"$1pct"),'"'+n+'"';case"array":return"["+o(n,function(n){return r(n)}).join(",")+"]";case"function":return'"function()"';case"object":i=[];for(t in n)n.hasOwnProperty(t)&&i.push('"'+t+'":'+r(n[t]));return"{"+i.join(",")+"}"}return String(n).replace(/\s/g," ").replace(/\'/g,'"')}function h(n){if(n===null||n===undefined)return!1;var t=typeof n;return t=="object"&&n.push?"array":t}function o(n,t){var r=[],i;for(i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i]));return r}function i(n,i){var u=t({},n),h=document.all,f='<object width="'+u.width+'" height="'+u.height+'"',s,e,o;h&&!u.id&&(u.id="_"+(""+Math.random()).substring(9)),u.id&&(f+=' id="'+u.id+'"'),u.cachebusting&&(u.src+=(u.src.indexOf("?")!=-1?"&":"?")+Math.random()),f+=u.w3c||!h?' data="'+u.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',f+=">",(u.w3c||h)&&(f+='<param name="movie" value="'+u.src+'" />'),u.width=u.height=u.id=u.w3c=u.src=null;for(s in u)u[s]!==null&&(f+='<param name="'+s+'" value="'+u[s]+'" />');e="";if(i){for(o in i)i[o]!==null&&(e+=o+"="+(typeof i[o]=="object"?r(i[o]):i[o])+"&");e=e.substring(0,e.length-1),f+='<param name="flashvars" value=\''+e+"' />"}return f+="</object>"}function e(n,r,u){var o=flashembed.getVersion(),e;t(this,{getContainer:function(){return n},getConf:function(){return r},getVersion:function(){return o},getFlashvars:function(){return u},getApi:function(){return n.firstChild},getHTML:function(){return i(r,u)}});var f=r.version,s=r.expressInstall,h=!f||flashembed.isSupported(f);h?(r.onFail=r.version=r.expressInstall=null,n.innerHTML=i(r,u)):f&&s&&flashembed.isSupported([6,65])?(t(r,{src:s}),u={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},n.innerHTML=i(r,u)):n.innerHTML.replace(/\s/g,"")===""&&(n.innerHTML="<h2>Flash version "+f+" or greater is required</h2><h3>"+(o[0]>0?"Your version is "+o:"You have no flash plugin installed")+"</h3>"+(n.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"),n.tagName=="A"&&(n.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"})),!h&&r.onFail&&(e=r.onFail.call(this),typeof e=="string"&&(n.innerHTML=e)),document.all&&(window[r.id]=document.getElementById(r.id))}var u=typeof jQuery=="function",f={width:"100%",height:"100%",allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1,cachebusting:!1},n;u&&(jQuery.tools=jQuery.tools||{},jQuery.tools.flashembed={version:"1.0.4",conf:f}),n=u?jQuery:function(t){if(n.done)return t();n.timer?n.ready.push(t):(n.ready=[t],n.timer=setInterval(s,13))},window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}}),window.flashembed=function(i,r,u){var s,o;if(typeof i=="string"){s=document.getElementById(i);if(s)i=s;else{n(function(){flashembed(i,r,u)});return}}if(i)return typeof r=="string"&&(r={src:r}),o=t({},f),t(o,r),new e(i,o,u)},t(window.flashembed,{getVersion:function(){var i=[0,0],n,u,r,t;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object")n=navigator.plugins["Shockwave Flash"].description,typeof n!="undefined"&&(n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),u=parseInt(n.replace(/^(.*)\..*$/,"$1"),10),r=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0,i=[u,r]);else if(window.ActiveXObject){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(o){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),i=[6,0],t.AllowScriptAccess="always"}catch(e){if(i[0]==6)return i}try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}typeof t=="object"&&(n=t.GetVariable("$version"),typeof n!="undefined"&&(n=n.replace(/^\S+\s+(.*)$/,"$1").split(","),i=[parseInt(n[0],10),parseInt(n[2],10)]))}return i},isSupported:function(n){var t=flashembed.getVersion();return t[0]>n[0]||t[0]==n[0]&&t[1]>=n[1]},domReady:n,asString:r,getHTML:i}),u&&(jQuery.fn.flashembed=function(n,t){var i=null;return this.each(function(){i=flashembed(this,n,t)}),n.api===!1?this:i})})(),$(document).ready(function(){$("a.player").flowplayer("Content/flowplayer/flowplayer.commercial-3.2.7.swf",{key:"#$c74e371ddcfb4daf635",logo:{url:"/images/none.gif",fullscreenOnly:!1,displayTime:1},width:480,height:270}),$("a[rel]").overlay({onLoad:function(){this.getOverlay().find("a.player").flowplayer(0).load()},onClose:function(){$f().unload()}})}),$(document).ready(function(){function t(){$("ul.sub-nav").stop(),$("ul.sub-nav").hide(0)}function n(){$("#main-nav > li").removeClass("selected")}$("#nav-wrapper").hover(function(){},function(){t(),n()})});var slider_timer=window.setInterval(function(){show_slide_next()},6e3);$(document).ready(function(){$("a#slide-link-1").click(function(){return buttons_unbind(),show_slide_1(),window.clearInterval(slider_timer),!1}),$("a#slide-link-2").click(function(){return buttons_unbind(),show_slide_2(),window.clearInterval(slider_timer),!1}),$("a#slide-link-3").click(function(){return buttons_unbind(),show_slide_3(),window.clearInterval(slider_timer),!1}),$("a#prev").click(function(){return buttons_unbind(),show_slide_prev(),window.clearInterval(slider_timer),!1}),$("a#next").click(function(){return buttons_unbind(),show_slide_next(),window.clearInterval(slider_timer),!1})})
