(function(c){c.fn.superfish=function(n){var j=c.fn.superfish,k=j.c,d=c(['<span class="',k.arrowClass,'"> &#187;</span>'].join("")),l=function(){var o=c(this),a=p(o);clearTimeout(a.sfTimer);o.showSuperfishUl().siblings().hideSuperfishUl()},s=function(){var o=c(this),a=p(o),e=j.op;clearTimeout(a.sfTimer);a.sfTimer=setTimeout(function(){e.retainPath=c.inArray(o[0],e.$path)>-1;o.hideSuperfishUl();e.$path.length&&o.parents(["li.",e.hoverClass].join("")).length<1&&l.call(e.$path)},e.delay)},p=function(o){o=
o.parents(["ul.",k.menuClass,":first"].join(""))[0];j.op=j.o[o.serial];return o};return this.each(function(){var o=this.serial=j.o.length,a=c.extend({},j.defaults,n);a.$path=c("li."+a.pathClass,this).slice(0,a.pathLevels).each(function(){c(this).addClass([a.hoverClass,k.bcClass].join(" ")).filter("li:has(ul)").removeClass(a.pathClass)});j.o[o]=j.op=a;c("li:has(ul)",this)[c.fn.hoverIntent&&!a.disableHI?"hoverIntent":"hover"](l,s).each(function(){a.autoArrows&&c(">a:first-child",this).addClass(k.anchorClass).append(d.clone())}).not("."+
k.bcClass).hideSuperfishUl();var e=c("a",this);e.each(function(b){var i=e.eq(b).parents("li");e.eq(b).focus(function(){l.call(i)}).blur(function(){s.call(i)})});a.onInit.call(this)}).each(function(){var o=[k.menuClass];j.op.dropShadows&&!(c.browser.msie&&c.browser.version<7)&&o.push(k.shadowClass);c(this).addClass(o.join(" "))})};var m=c.fn.superfish;m.o=[];m.op={};m.IE7fix=function(){var n=m.op;c.browser.msie&&c.browser.version>6&&n.dropShadows&&n.animation.opacity!=undefined&&this.toggleClass(m.c.shadowClass+
"-off")};m.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};m.defaults={hoverClass:"sfHover",pathClass:"testclass",pathLevels:1,delay:700,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};c.fn.extend({hideSuperfishUl:function(){var n=m.op,j=n.retainPath===true?n.$path:"";n.retainPath=false;
j=c(["li.",n.hoverClass].join(""),this).add(this).not(j).removeClass(n.hoverClass).find(">ul").hide().css("visibility","hidden");n.onHide.call(j);return this},showSuperfishUl:function(){var n=m.op,j=this.addClass(n.hoverClass).find(">ul:hidden").css("visibility","visible");m.IE7fix.call(j);n.onBeforeShow.call(j);j.animate(n.animation,n.speed,function(){m.IE7fix.call(j);n.onShow.call(j)});return this}})})(jQuery);
(function(c){c.fn.hoverIntent=function(m,n){var j={sensitivity:7,interval:100,timeout:0};j=c.extend(j,n?{over:m,out:n}:m);var k,d,l,s,p=function(e){k=e.pageX;d=e.pageY},o=function(e,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);if(Math.abs(l-k)+Math.abs(s-d)<j.sensitivity){c(b).unbind("mousemove",p);b.hoverIntent_s=1;return j.over.apply(b,[e])}else{l=k;s=d;b.hoverIntent_t=setTimeout(function(){o(e,b)},j.interval)}},a=function(e){for(var b=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;b&&
b!=this;)try{b=b.parentNode}catch(i){b=this}if(b==this)return false;var g=jQuery.extend({},e),h=this;if(h.hoverIntent_t)h.hoverIntent_t=clearTimeout(h.hoverIntent_t);if(e.type=="mouseover"){l=g.pageX;s=g.pageY;c(h).bind("mousemove",p);if(h.hoverIntent_s!=1)h.hoverIntent_t=setTimeout(function(){o(g,h)},j.interval)}else{c(h).unbind("mousemove",p);if(h.hoverIntent_s==1)h.hoverIntent_t=setTimeout(function(){h.hoverIntent_t=clearTimeout(h.hoverIntent_t);h.hoverIntent_s=0;j.out.apply(h,[g])},j.timeout)}};
return this.mouseover(a).mouseout(a)}})(jQuery);
(function(c){c.fn.bgIframe=c.fn.bgiframe=function(m){if(c.browser.msie&&/6.0/.test(navigator.userAgent)){m=c.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},m||{});var n=function(k){return k&&k.constructor==Number?k+"px":k},j='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+m.src+'"style="display:block;position:absolute;z-index:-1;'+(m.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(m.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
n(m.top))+";left:"+(m.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":n(m.left))+";width:"+(m.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":n(m.width))+";height:"+(m.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":n(m.height))+';"/>';return this.each(function(){c("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(j),this.firstChild)})}return this}})(jQuery);(function(c){function m(k,d){var l=c(d);return l.length<2?l:k.parent().find(d)}function n(k,d){var l=this,s=k.add(l),p=k.children(),o=0,a=d.vertical;j||(j=l);if(p.length>1)p=c(d.items,k);c.extend(l,{getConf:function(){return d},getIndex:function(){return o},getSize:function(){return l.getItems().size()},getNaviButtons:function(){return i.add(g)},getRoot:function(){return k},getItemWrap:function(){return p},getItems:function(){return p.children(d.item).not("."+d.clonedClass)},move:function(h,f){return l.seekTo(o+
h,f)},next:function(h){return l.move(1,h)},prev:function(h){return l.move(-1,h)},begin:function(h){return l.seekTo(0,h)},end:function(h){return l.seekTo(l.getSize()-1,h)},focus:function(){return j=l},addItem:function(h){h=c(h);if(d.circular){c(".cloned:last").before(h);c(".cloned:first").replaceWith(h.clone().addClass(d.clonedClass))}else p.append(h);s.trigger("onAddItem",[h]);return l},seekTo:function(h,f,v){if(d.circular&&h===0&&o==-1&&f!==0)return l;if(!d.circular&&h<0||h>l.getSize()||h<-1)return l;
var A=h;if(h.jquery)h=l.getItems().index(h);else A=l.getItems().eq(h);var r=c.Event("onBeforeSeek");if(!v){s.trigger(r,[h,f]);if(r.isDefaultPrevented()||!A.length)return l}A=a?{top:-A.position().top}:{left:-A.position().left};o=h;j=l;if(f===undefined)f=d.speed;p.animate(A,f,d.easing,v||function(){s.trigger("onSeek",[h])});return l}});c.each(["onBeforeSeek","onSeek","onAddItem"],function(h,f){c.isFunction(d[f])&&c(l).bind(f,d[f]);l[f]=function(v){c(l).bind(f,v);return l}});if(d.circular){var e=l.getItems().slice(-1).clone().prependTo(p),
b=l.getItems().eq(1).clone().appendTo(p);e.add(b).addClass(d.clonedClass);l.onBeforeSeek(function(h,f,v){if(!h.isDefaultPrevented())if(f==-1){l.seekTo(e,v,function(){l.end(0)});return h.preventDefault()}else f==l.getSize()&&l.seekTo(b,v,function(){l.begin(0)})});l.seekTo(0,0)}var i=m(k,d.prev).click(function(){l.prev()}),g=m(k,d.next).click(function(){l.next()});!d.circular&&l.getSize()>1&&l.onBeforeSeek(function(h,f){setTimeout(function(){if(!h.isDefaultPrevented()){i.toggleClass(d.disabledClass,
f<=0);g.toggleClass(d.disabledClass,f>=l.getSize()-1)}},1)});d.mousewheel&&c.fn.mousewheel&&k.mousewheel(function(h,f){if(d.mousewheel){l.move(f<0?1:-1,d.wheelSpeed||50);return false}});d.keyboard&&c(document).bind("keydown.scrollable",function(h){if(!(!d.keyboard||h.altKey||h.ctrlKey||c(h.target).is(":input")))if(!(d.keyboard!="static"&&j!=l)){var f=h.keyCode;if(a&&(f==38||f==40)){l.move(f==38?-1:1);return h.preventDefault()}if(!a&&(f==37||f==39)){l.move(f==37?-1:1);return h.preventDefault()}}});
c(l).trigger("onBeforeSeek",[d.initialIndex])}c.tools=c.tools||{version:"1.2.3"};c.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,wheelSpeed:0}};var j;c.fn.scrollable=function(k){var d=this.data("scrollable");if(d)return d;k=c.extend({},c.tools.scrollable.conf,k);this.each(function(){d=new n(c(this),k);c(this).data("scrollable",
d)});return k.api?d:this}})(jQuery);
(function(c){var m=c.tools.scrollable;m.autoscroll={conf:{autoplay:true,interval:3E3,autopause:true}};c.fn.autoscroll=function(n){if(typeof n=="number")n={interval:n};var j=c.extend({},m.autoscroll.conf,n),k;this.each(function(){var d=c(this).data("scrollable");if(d)k=d;var l,s,p=true;d.play=function(){if(!l){p=false;l=setInterval(function(){d.next()},j.interval);d.next()}};d.pause=function(){l=clearInterval(l)};d.stop=function(){d.pause();p=true};j.autopause&&d.getRoot().add(d.getNaviButtons()).hover(function(){d.pause();
clearInterval(s)},function(){p||(s=setTimeout(d.play,j.interval))});j.autoplay&&setTimeout(d.play,j.interval)});return j.api?k:this}})(jQuery);
(function(c){function m(j,k){var d=c(k);return d.length<2?d:j.parent().find(k)}var n=c.tools.scrollable;n.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};c.fn.navigator=function(j){if(typeof j=="string")j={navi:j};j=c.extend({},n.navigator.conf,j);var k;this.each(function(){function d(g,h,f){o.seekTo(h);if(i){if(location.hash)location.hash=g.attr("href").replace("#","")}else return f.preventDefault()}function l(){return a.find(j.naviItem||
"> *")}function s(g){var h=c("<"+(j.naviItem||"a")+"/>").click(function(f){d(c(this),g,f)}).attr("href","#"+g);g===0&&h.addClass(b);j.indexed&&h.text(g+1);j.idPrefix&&h.attr("id",j.idPrefix+g);return h.appendTo(a)}function p(g,h){g=l().eq(h.replace("#",""));g.length||(g=l().filter("[href="+h+"]"));g.click()}var o=c(this).data("scrollable"),a=m(o.getRoot(),j.navi),e=o.getNaviButtons(),b=j.activeClass,i=j.history&&c.fn.history;if(o)k=o;o.getNaviButtons=function(){return e.add(a)};l().length?l().each(function(g){c(this).click(function(h){d(c(this),
g,h)})}):c.each(o.getItems(),function(g){s(g)});o.onBeforeSeek(function(g,h){setTimeout(function(){if(!g.isDefaultPrevented()){var f=l().eq(h);!g.isDefaultPrevented()&&f.length&&l().removeClass(b).eq(h).addClass(b)}},1)});o.onAddItem(function(g,h){h=s(o.getItems().index(h));i&&h.history(p)});i&&l().history(p)});return j.api?k:this}})(jQuery);
(function(){function c(a,e){if(e)for(key in e)if(e.hasOwnProperty(key))a[key]=e[key];return a}function m(a,e){var b=[];for(var i in a)if(a.hasOwnProperty(i))b[i]=e(a[i]);return b}function n(a,e,b){if(p.isSupported(e.version))a.innerHTML=p.getHTML(e,b);else if(e.expressInstall&&p.isSupported([6,65]))a.innerHTML=p.getHTML(c(e,{src:e.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!a.innerHTML.replace(/\s/g,"")){a.innerHTML="<h2>Flash version "+
e.version+" or greater is required</h2><h3>"+(o[0]>0?"Your version is "+o:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+k+"'>here</a></p>");if(a.tagName=="A")a.onclick=function(){location.href=k}}if(e.onFail){var i=e.onFail.call(this);if(typeof i=="string")a.innerHTML=i}}if(j)window[e.id]=document.getElementById(e.id);c(this,{getRoot:function(){return a},getOptions:function(){return e},getConf:function(){return b},
getApi:function(){return a.firstChild}})}var j=document.all,k="http://www.adobe.com/go/getflashplayer",d=typeof jQuery=="function",l=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,s={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(a,e,b){if(typeof a=="string")a=document.getElementById(a.replace("#",""));if(a){if(typeof e=="string")e={src:e};return new n(a,c(c({},s),e),b)}};var p=c(window.flashembed,{conf:s,getVersion:function(){var a;try{a=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(e){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b&&b.GetVariable("$version")}catch(i){}}return(a=l.exec(a))?[a[1],a[3]]:[0,0]},asString:function(a){if(a===null||a===undefined)return null;
var e=typeof a;if(e=="object"&&a.push)e="array";switch(e){case "string":a=a.replace(RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+a+'"';case "array":return"["+m(a,function(i){return p.asString(i)}).join(",")+"]";case "function":return'"function()"';case "object":e=[];for(var b in a)a.hasOwnProperty(b)&&e.push('"'+b+'":'+p.asString(a[b]));return"{"+e.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(a,e){a=c({},a);var b='<object width="'+
a.width+'" height="'+a.height+'" id="'+a.id+'" name="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();b+=a.w3c||!j?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';b+=">";if(a.w3c||j)b+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;a.onFail=a.version=a.expressInstall=null;for(var i in a)if(a[i])b+='<param name="'+i+'" value="'+a[i]+'" />';a="";if(e){for(var g in e)if(e[g]){i=
e[g];a+=g+"="+(/function|object/.test(typeof i)?p.asString(i):i)+"&"}a=a.slice(0,-1);b+='<param name="flashvars" value=\''+a+"' />"}b+="</object>";return b},isSupported:function(a){return o[0]>a[0]||o[0]==a[0]&&o[1]>=a[1]}}),o=p.getVersion();if(d){jQuery.tools=jQuery.tools||{version:"1.2.3"};jQuery.tools.flashembed={conf:s};jQuery.fn.flashembed=function(a,e){return this.each(function(){$(this).data("flashembed",flashembed(this,a,e))})}}})();
(function(c){function m(j){switch(j.type){case "mousemove":return c.extend(j.data,{clientX:j.clientX,clientY:j.clientY,pageX:j.pageX,pageY:j.pageY});case "DOMMouseScroll":c.extend(j,j.data);j.delta=-j.detail/3;break;case "mousewheel":j.delta=j.wheelDelta/120;break}j.type="wheel";return c.event.handle.call(this,j,j.delta)}c.fn.mousewheel=function(j){return this[j?"bind":"trigger"]("wheel",j)};c.event.special.wheel={setup:function(){c.event.add(this,n,m,{})},teardown:function(){c.event.remove(this,
n,m)}};var n=!c.browser.mozilla?"mousewheel":"DOMMouseScroll"+(c.browser.version<"1.9"?" mousemove":"")})(jQuery);
(function(){function c(b){if(!b||typeof b!="object")return b;var i=new b.constructor;for(var g in b)if(b.hasOwnProperty(g))i[g]=c(b[g]);return i}function m(b,i){if(b){var g,h=0,f=b.length;if(f===undefined)for(g in b){if(i.call(b[g],g,b[g])===false)break}else for(g=b[0];h<f&&i.call(g,h,g)!==false;g=b[++h]);return b}}function n(b,i,g){if(typeof i!="object")return b;b&&i&&m(i,function(h,f){if(!g||typeof f!="function")b[h]=f});return b}function j(b){var i=b.indexOf(".");if(i!=-1){var g=b.slice(0,i)||
"*",h=b.slice(i+1,b.length),f=[];m(document.getElementsByTagName(g),function(){this.className&&this.className.indexOf(h)!=-1&&f.push(this)});return f}}function k(b){b=b||window.event;if(b.preventDefault){b.stopPropagation();b.preventDefault()}else{b.returnValue=false;b.cancelBubble=true}return false}function d(b,i,g){b[i]=b[i]||[];b[i].push(g)}function l(){return"_"+(""+Math.random()).slice(2,10)}function s(b,i,g){function h(){function q(t){!f.isLoaded()&&f._fireEvent("onBeforeClick")!==false&&f.load();
return k(t)}if($f(b)){$f(b).getParent().innerHTML="";D=$f(b).getIndex();e[D]=f}else{e.push(f);D=e.length-1}J=parseInt(b.style.height,10)||b.clientHeight;E=b.id||"fp"+l();H=i.id||E+"_api";i.id=H;g.playerId=E;if(typeof g=="string")g={clip:{url:g}};if(typeof g.clip=="string")g.clip={url:g.clip};g.clip=g.clip||{};if(b.getAttribute("href",2)&&!g.clip.url)g.clip.url=b.getAttribute("href",2);u=new o(g.clip,-1,f);g.playlist=g.playlist||[g.clip];var w=0;m(g.playlist,function(){var t=this;if(typeof t=="object"&&
t.length)t={url:""+t};m(g.clip,function(y,C){if(C!==undefined&&t[y]===undefined&&typeof C!="function")t[y]=C});g.playlist[w]=t;t=new o(t,w,f);x.push(t);w++});m(g,function(t,y){if(typeof y=="function"){u[t]?u[t](y):d(B,t,y);delete g[t]}});m(g.plugins,function(t,y){if(y)z[t]=new a(t,y,f)});if(!g.plugins||g.plugins.controls===undefined)z.controls=new a("controls",null,f);z.canvas=new a("canvas",null,f);r=b.innerHTML;if(r.replace(/\s/g,"")!=="")if(b.addEventListener)b.addEventListener("click",q,false);
else b.attachEvent&&b.attachEvent("onclick",q);else{b.addEventListener&&b.addEventListener("click",k,false);f.load()}}var f=this,v=null,A=false,r,u,x=[],z={},B={},E,H,D,K,L,J;n(f,{id:function(){return E},isLoaded:function(){return v!==null&&v.fp_play!=undefined&&!A},getParent:function(){return b},hide:function(q){if(q)b.style.height="0px";if(f.isLoaded())v.style.height="0px";return f},show:function(){b.style.height=J+"px";if(f.isLoaded())v.style.height=L+"px";return f},isHidden:function(){return f.isLoaded()&&
parseInt(v.style.height,10)===0},load:function(q){if(!f.isLoaded()&&f._fireEvent("onBeforeLoad")!==false){var w=0;m(e,function(){this.unload(function(){if(++w==e.length){if((r=b.innerHTML)&&!flashembed.isSupported(i.version))b.innerHTML="";flashembed(b,i,{config:g});if(q){q.cached=true;d(B,"onLoad",q)}}})})}return f},unload:function(q){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){q&&q(false);return f}if(r.replace(/\s/g,"")!==""){if(f._fireEvent("onBeforeUnload")===false){q&&q(false);
return f}A=true;try{if(v){v.fp_close();f._fireEvent("onUnload")}}catch(w){}setTimeout(function(){v=null;b.innerHTML=r;A=false;q&&q(true)},50)}else q&&q(false);return f},getClip:function(q){if(q===undefined)q=K;return x[q]},getCommonClip:function(){return u},getPlaylist:function(){return x},getPlugin:function(q){var w=z[q];if(!w&&f.isLoaded()){var t=f._api().fp_getPlugin(q);if(t){w=new a(q,t,f);z[q]=w}}return w},getScreen:function(){return f.getPlugin("screen")},getControls:function(){return f.getPlugin("controls")._fireEvent("onUpdate")},
getLogo:function(){try{return f.getPlugin("logo")._fireEvent("onUpdate")}catch(q){}},getPlay:function(){return f.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(q){return q?c(g):g},getFlashParams:function(){return i},loadPlugin:function(q,w,t,y){if(typeof t=="function"){y=t;t={}}var C=y?l():"_";f._api().fp_loadPlugin(q,w,t,C);w={};w[C]=y;y=new a(q,null,f,w);return z[q]=y},getState:function(){return f.isLoaded()?v.fp_getState():-1},play:function(q,w){var t=function(){q!==undefined?f._api().fp_play(q,
w):f._api().fp_play()};if(f.isLoaded())t();else A?setTimeout(function(){f.play(q,w)},50):f.load(function(){t()});return f},getVersion:function(){if(f.isLoaded()){var q=v.fp_getVersion();q.push("flowplayer.js 3.2.0");return q}return"flowplayer.js 3.2.0"},_api:function(){if(!f.isLoaded())throw"Flowplayer "+f.id()+" not loaded when calling an API method";return v},setClip:function(q){f.setPlaylist([q]);return f},getIndex:function(){return D}});m("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),
function(){var q="on"+this;if(q.indexOf("*")!=-1){q=q.slice(0,q.length-1);var w="onBefore"+q.slice(2);f[w]=function(t){d(B,w,t);return f}}f[q]=function(t){d(B,q,t);return f}});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 q=this;f[q]=function(w,t){if(!f.isLoaded())return f;
var y=null;y=w!==undefined&&t!==undefined?v["fp_"+q](w,t):w===undefined?v["fp_"+q]():v["fp_"+q](w);return y==="undefined"||y===undefined?f:y}});f._fireEvent=function(q){if(typeof q=="string")q=[q];var w=q[0],t=q[1],y=q[2],C=q[3],F=0;g.debug&&console.log("$f.fireEvent",[].slice.call(q));if(!f.isLoaded()&&w=="onLoad"&&t=="player"){v=v||document.getElementById(H);L=v.clientHeight;m(x,function(){this._fireEvent("onLoad")});m(z,function(N,I){I._fireEvent("onUpdate")});u._fireEvent("onLoad")}if(!(w=="onLoad"&&
t!="player")){if(w=="onError")if(typeof t=="string"||typeof t=="number"&&typeof y=="number"){t=y;y=C}if(w=="onContextMenu")m(g.contextMenu[t],function(N,I){I.call(f)});else if(w=="onPluginEvent"||w=="onBeforePluginEvent"){if(C=z[t.name||t]){C._fireEvent("onUpdate",t);return C._fireEvent(y,q.slice(3))}}else{if(w=="onPlaylistReplace"){x=[];var O=0;m(t,function(){x.push(new o(this,O++,f))})}if(w=="onClipAdd"){if(t.isInStream)return;t=new o(t,y,f);x.splice(y,0,t);for(F=y+1;F<x.length;F++)x[F].index++}var G=
true;if(typeof t=="number"&&t<x.length){K=t;if(q=x[t])G=q._fireEvent(w,y,C);if(!q||G!==false)G=u._fireEvent(w,y,C,q)}m(B[w],function(){G=this.call(f,t,y);this.cached&&B[w].splice(F,1);if(G===false)return false;F++});return G}}};if(typeof b=="string"){var M=document.getElementById(b);if(M){b=M;h()}else throw"Flowplayer cannot access element: "+b;}else h()}function p(b){this.length=b.length;this.each=function(i){m(b,i)};this.size=function(){return b.length}}var o=function(b,i,g){var h=this,f={},v={};
h.index=i;if(typeof b=="string")b={url:b};n(this,b,true);m("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var r="on"+this;if(r.indexOf("*")!=-1){r=r.slice(0,r.length-1);var u="onBefore"+r.slice(2);h[u]=function(x){d(v,u,x);return h}}h[r]=function(x){d(v,r,x);return h};if(i==-1){if(h[u])g[u]=h[u];if(h[r])g[r]=h[r]}});n(this,{onCuepoint:function(r,u){if(arguments.length==1){f.embedded=[null,r];return h}if(typeof r=="number")r=
[r];var x=l();f[x]=[r,u];g.isLoaded()&&g._api().fp_addCuepoints(r,i,x);return h},update:function(r){n(h,r);g.isLoaded()&&g._api().fp_updateClip(r,i);var u=g.getConfig();n(i==-1?u.clip:u.playlist[i],r,true)},_fireEvent:function(r,u,x,z){if(r=="onLoad"){m(f,function(H,D){D[0]&&g._api().fp_addCuepoints(D[0],i,H)});return false}z=z||h;if(r=="onCuepoint"){var B=f[u];if(B)return B[1].call(g,z,x)}if(u&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(r)!=-1){n(z,u);if(u.metaData)if(z.duration)z.fullDuration=
u.metaData.duration;else z.duration=u.metaData.duration}var E=true;m(v[r],function(){E=this.call(g,z,u,x)});return E}});if(b.onCuepoint){var A=b.onCuepoint;h.onCuepoint.apply(h,typeof A=="function"?[A]:A);delete b.onCuepoint}m(b,function(r,u){if(typeof u=="function"){d(v,r,u);delete b[r]}});if(i==-1)g.onCuepoint=this.onCuepoint},a=function(b,i,g,h){var f=this,v={},A=false;h&&n(v,h);m(i,function(r,u){if(typeof u=="function"){v[r]=u;delete i[r]}});n(this,{animate:function(r,u,x){if(!r)return f;if(typeof u==
"function"){x=u;u=500}if(typeof r=="string"){var z=r;r={};r[z]=u;u=500}if(x){var B=l();v[B]=x}if(u===undefined)u=500;i=g._api().fp_animate(b,r,u,B);return f},css:function(r,u){if(u!==undefined){var x={};x[r]=u;r=x}i=g._api().fp_css(b,r);n(f,i);return f},show:function(){this.display="block";g._api().fp_showPlugin(b);return f},hide:function(){this.display="none";g._api().fp_hidePlugin(b);return f},toggle:function(){this.display=g._api().fp_togglePlugin(b);return f},fadeTo:function(r,u,x){if(typeof u==
"function"){x=u;u=500}if(x){var z=l();v[z]=x}this.display=g._api().fp_fadeTo(b,r,u,z);this.opacity=r;return f},fadeIn:function(r,u){return f.fadeTo(1,r,u)},fadeOut:function(r,u){return f.fadeTo(0,r,u)},getName:function(){return b},getPlayer:function(){return g},_fireEvent:function(r,u){if(r=="onUpdate"){var x=g._api().fp_getPlugin(b);if(!x)return;n(f,x);delete f.methods;if(!A){m(x.methods,function(){var z=""+this;f[z]=function(){var B=[].slice.call(arguments);B=g._api().fp_invoke(b,z,B);return B===
"undefined"||B===undefined?f:B}});A=true}}if(x=v[r]){x=x.apply(f,u);r.slice(0,1)=="_"&&delete v[r];return x}return f}})},e=[];window.flowplayer=window.$f=function(){var b=null,i=arguments[0];if(!arguments.length){m(e,function(){if(this.isLoaded()){b=this;return false}});return b||e[0]}if(arguments.length==1)if(typeof i=="number")return e[i];else{if(i=="*")return new p(e);m(e,function(){if(this.id()==i.id||this.id()==i||this.getParent()==i){b=this;return false}});return b}if(arguments.length>1){var g=
arguments[1],h=arguments.length==3?arguments[2]:{};if(typeof g=="string")g={src:g};g=n({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},g);if(typeof i=="string")if(i.indexOf(".")!=-1){var f=[];m(j(i),function(){f.push(new s(this,c(g),c(h)))});return new p(f)}else{var v=document.getElementById(i);return new s(v!==null?v:i,g,h)}else if(i)return new s(i,g,h)}return null};n(window.$f,{fireEvent:function(){var b=[].slice.call(arguments),
i=$f(b[0]);return i?i._fireEvent(b.slice(1)):null},addPlugin:function(b,i){s.prototype[b]=i;return $f},each:m,extend:n});if(typeof jQuery=="function")jQuery.fn.flowplayer=function(b,i){if(!arguments.length||typeof arguments[0]=="number"){var g=[];this.each(function(){var h=$f(this);h&&g.push(h)});return arguments.length?g[arguments[0]]:new p(g)}return this.each(function(){$f(this,c(b),i?c(i):{})})}})();
(function(){function c(a,e){if(e)for(key in e)if(e.hasOwnProperty(key))a[key]=e[key];return a}function m(a,e){var b=[];for(var i in a)if(a.hasOwnProperty(i))b[i]=e(a[i]);return b}function n(a,e,b){if(p.isSupported(e.version))a.innerHTML=p.getHTML(e,b);else if(e.expressInstall&&p.isSupported([6,65]))a.innerHTML=p.getHTML(c(e,{src:e.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!a.innerHTML.replace(/\s/g,"")){a.innerHTML="<h2>Flash version "+
e.version+" or greater is required</h2><h3>"+(o[0]>0?"Your version is "+o:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+k+"'>here</a></p>");if(a.tagName=="A")a.onclick=function(){location.href=k}}if(e.onFail){var i=e.onFail.call(this);if(typeof i=="string")a.innerHTML=i}}if(j)window[e.id]=document.getElementById(e.id);c(this,{getRoot:function(){return a},getOptions:function(){return e},getConf:function(){return b},
getApi:function(){return a.firstChild}})}var j=document.all,k="http://www.adobe.com/go/getflashplayer",d=typeof jQuery=="function",l=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,s={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(a,e,b){if(typeof a=="string")a=document.getElementById(a.replace("#",""));if(a){if(typeof e=="string")e={src:e};return new n(a,c(c({},s),e),b)}};var p=c(window.flashembed,{conf:s,getVersion:function(){var a;try{a=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(e){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b&&b.GetVariable("$version")}catch(i){}}return(a=l.exec(a))?[a[1],a[3]]:[0,0]},asString:function(a){if(a===null||a===undefined)return null;
var e=typeof a;if(e=="object"&&a.push)e="array";switch(e){case "string":a=a.replace(RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+a+'"';case "array":return"["+m(a,function(i){return p.asString(i)}).join(",")+"]";case "function":return'"function()"';case "object":e=[];for(var b in a)a.hasOwnProperty(b)&&e.push('"'+b+'":'+p.asString(a[b]));return"{"+e.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(a,e){a=c({},a);var b='<object width="'+
a.width+'" height="'+a.height+'" id="'+a.id+'" name="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();b+=a.w3c||!j?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';b+=">";if(a.w3c||j)b+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;a.onFail=a.version=a.expressInstall=null;for(var i in a)if(a[i])b+='<param name="'+i+'" value="'+a[i]+'" />';i="";if(e){for(var g in e)if(e[g]){var h=
e[g];i+=g+"="+(/function|object/.test(typeof h)?p.asString(h):h)+"&"}i=i.slice(0,-1);b+='<param name="flashvars" value=\''+i+"' />"}b+="</object>";return b},isSupported:function(a){return o[0]>a[0]||o[0]==a[0]&&o[1]>=a[1]}}),o=p.getVersion();if(d){jQuery.tools=jQuery.tools||{version:"3.2.0"};jQuery.tools.flashembed={conf:s};jQuery.fn.flashembed=function(a,e){return this.each(function(){$(this).data("flashembed",flashembed(this,a,e))})}}})();(function(c){c.ui=c.ui||{};var m=/left|center|right/,n=/top|center|bottom/,j=c.fn.position;c.fn.position=function(k){if(!k||!k.of)return j.apply(this,arguments);var d=c(k.of),l=(k.collision||"flip").split(" "),s=k.offset?k.offset.split(" "):[0,0],p,o,a;if(k.of.nodeType===9){p=d.width();o=d.height();a={top:0,left:0}}else if("scrollTo"in k.of&&k.of.document){p=d.width();o=d.height();a={top:d.scrollTop(),left:d.scrollLeft()}}else if(k.of.preventDefault){k.at="left top";p=o=0;a={top:k.of.pageY,left:k.of.pageX}}else{p=
d.outerWidth();o=d.outerHeight();a=d.offset()}c.each(["my","at"],function(){var e=(k[this]||"").split(" ");e=e.length==1?m.test(e[0])?e.concat(["center"]):n.test(e[0])?["center"].concat(e):["center","center"]:e;e[0]=m.test(e[0])?e[0]:"center";e[1]=n.test(e[1])?e[1]:"center";k[this]=e});if(l.length==1)l[1]=l[0];s[0]=parseInt(s[0],10)||0;if(s.length==1)s[1]=s[0];s[1]=parseInt(s[1],10)||0;switch(k.at[0]){case "right":a.left+=p;break;case "center":a.left+=p/2;break}switch(k.at[1]){case "bottom":a.top+=
o;break;case "center":a.top+=o/2;break}a.left+=s[0];a.top+=s[1];return this.each(function(){var e=c(this),b=e.outerWidth(),i=e.outerHeight(),g=c.extend({},a);switch(k.my[0]){case "right":g.left-=b;break;case "center":g.left-=b/2;break}switch(k.my[1]){case "bottom":g.top-=i;break;case "center":g.top-=i/2;break}c.each(["left","top"],function(h,f){c.ui.position[l[h]]&&c.ui.position[l[h]][f](g,{targetWidth:p,targetHeight:o,elemWidth:b,elemHeight:i,offset:s,my:k.my,at:k.at})});k.stackfix!==false&&c.fn.stackfix&&
e.stackfix();c.isFunction(k.by)?k.by.call(this,g):e.offset(g)})};c.ui.position={fit:{left:function(k,d){var l=k.left+d.elemWidth-c(window).width()-c(window).scrollLeft();k.left=l>0?k.left-l:Math.max(0,k.left)},top:function(k,d){var l=k.top+d.elemHeight-c(window).height()-c(window).scrollTop();k.top=l>0?k.top-l:Math.max(0,k.top)}},flip:{left:function(k,d){if(d.at[0]!="center"){var l=k.left+d.elemWidth-c(window).width()-c(window).scrollLeft(),s=d.my[0]=="left"?-d.elemWidth:d.my[0]=="right"?d.elemWidth:
0,p=-2*d.offset[0];k.left+=k.left<0?s+d.targetWidth+p:l>0?s-d.targetWidth+p:0}},top:function(k,d){if(d.at[1]!="center"){var l=k.top+d.elemHeight-c(window).height()-c(window).scrollTop(),s=d.my[1]=="top"?-d.elemHeight:d.my[1]=="bottom"?d.elemHeight:0,p=d.at[1]=="top"?d.targetHeight:-d.targetHeight,o=-2*d.offset[1];k.top+=k.top<0?s+d.targetHeight+o:l>0?s+p+o:0}}}};c.fn.extend({_offset:c.fn.offset,offset:function(k){return!k?this._offset():this.each(function(){var d=c(this),l=/relative|static/.test(d.css("position")),
s=d.css("display")=="none";l&&d.css("position","relative");s&&d.show();var p=d.offset(),o={left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10)};o.left=!isNaN(o.left)?o.left:l?0:this.offsetLeft;o.top=!isNaN(o.top)?o.top:l?0:this.offsetTop;if(k.left||k.left===0)d.css("left",k.left-p.left+o.left);if(k.top||k.top===0)d.css("top",k.top-p.top+o.top);s&&d.hide()})}})})(jQuery);(function(c){c.fn.wrapList=function(m){var n=c.extend(c.fn.wrapList.defaults,m);this.each(function(){var j=c(this).children("li");c(this).empty();for(var k=0;k<n.itemsPerColumn;k++)c(this).append(j[k]);var d=this;c(d).css("float","left");for(k=1;k<j.length/n.itemsPerColumn;k++){var l=document.createElement("ul");c(l).attr("class",c(this).attr("class"));for(var s=n.itemsPerColumn*k;s<n.itemsPerColumn*k+n.itemsPerColumn;s++)c(l).append(j[s]);c(l).css("float","left");c(d).after(l);d=l}})}})(jQuery);$.fn.watch=function(c,m,n,j){function k(d){var l=$(this);d=l.data(d);var s=false,p=0;if(d){for(;p<d.props.length;p++){var o=l.css(d.props[p]);if(d.vals[p]!=o){d.vals[p]=o;s=true;break}}s&&d.func&&d.func.call(this,d,p)}}n||(n=200);j||(j="_watcher");return this.each(function(){var d=this,l=$(this),s=function(){k.call(d,j)},p=null;if(typeof this.onpropertychange=="object")l.bind("propertychange."+j,s);else if($.browser.mozilla)l.bind("DOMAttrModified."+j,s);else p=setInterval(s,n);var o={id:p,props:c.split(","),
func:m,vals:[c.split(",").length]};$.each(o.vals,function(a){o.vals[a]=l.css(o.props[a])});l.data(j,o)})};jQuery.fn.dropdown=function(){this.find("ul").wrapList({itemsPerColumn:10});var c=this;$("#county-list-btn").click(function(){var n=m();c.css({right:n.right,top:n.top,left:"auto"}).appendTo("body").slideDown("normal");$(this).parent().addClass("hit")});this.find(".close").click(function(){$(this).parent().slideUp("normal");$(".country-select-btn").removeClass("hit")});$(window).resize(function(){var n=m();c.css({right:n.right,top:n.top,left:"auto"})});var m=function(){var n=$(window).width()-$(".country-select-btn").offset().left-
$(".country-select-btn").outerWidth(),j=$(".country-select-btn").offset().top+$(".country-select-btn").height();return{right:n,top:j}}};jQuery.fn.setWidth=function(c){c=c||16;this.each(function(m,n){for($(n).width(1);$(n).height()>c;)$(n).width($(n).width()+5);var j=$(n).find("span").width();j>$(n).width()&&$(n).width(j)})};function shortenMenu(){var c=$("form.search").offset().left,m=false;$(".sf-menu:eq(0) > li").each(function(n,j){if($(j).offset().left+$(j).outerWidth()>=c)m=true});m&&$("form.search").position({my:"top",at:"bottom",of:$("div.country-select"),offset:"-19 6"}).addClass("misplaced-search-bar")};jQuery.fn.audioPlayer=function(c,m){m=$.extend({backgroundColor:"#262626",backgroundImage:"url(http://tw.shelomodobkin.com/images/audio-player-bg.jpg)",backgroundRepeat:"repeat-x",backgroundGradient:"none",height:30,buttonColor:"#5E5E5E",fullscreen:false},m);$f(this.attr("id"),{src:"http://media.towerswatson.com/flowplayer/flowplayer.swf",wmode:"transparent"},{plugins:{rtmp:{url:"http://media.towerswatson.com/flowplayer/flowplayer.rtmp-3.1.3.swf",netConnectionUrl:"rtmp://skbdm94xkykzb.cloudfront.net/cfx/st",
durationFunc:"getStreamLength"},controls:m},clip:{url:c,provider:"rtmp",autoPlay:false}})};jQuery.fn.standardVideoPlayer=function(){$f($(this).attr("id"),{src:"http://media.towerswatson.com/flowplayer/flowplayer.swf",wmode:"opaque"},{clip:{autoPlay:false,autoBuffering:true},canvas:{backgroundColor:"#ffffff",backgroundGradient:"none",borderRadius:0},plugins:{controls:null},key:"#@eab2a3d66e800a675f8",contextMenu:["Towers Watson Video Player"]})};$.fn.twmod=function(){return $(this).wrapInner('<div class="bd"></div>').find("h4").prependTo(this).wrap('<div class="hd"></div>').parent().append('<span class="show-hide"></span>')};jQuery.fn.equalHeights=function(){var c=0;this.each(function(){if(this.offsetHeight>c)c=this.offsetHeight});this.each(function(){$(this).height(c+"px");this.offsetHeight>c&&$(this).height(c-(this.offsetHeight-c)+"px")})};
jQuery.fn.jwaudio=function(c,m){m=$.extend({height:30,width:400,skin:"http://media.towerswatson.com/jw/skins/tw.audio.zip",frontcolor:"ffffff",wmode:"transparent",screencolor:"ffffff",image:""},m);m.file=c;$(this).each(function(n,j){$(j).flashembed({src:"http://media.towerswatson.com/jw/player-licensed.swf",height:m.height,width:m.width,wmode:m.wmode},m)})};
