(function(a){a.fn.superfish=function(h){var e=a.fn.superfish,c=e.c,b=a(['<span class="',c.arrowClass,'"> &#187;</span>'].join("")),d=function(){var b=a(this),d=j(b);clearTimeout(d.sfTimer);b.showSuperfishUl().siblings().hideSuperfishUl()},f=function(){var b=a(this),k=j(b),c=e.op;clearTimeout(k.sfTimer);k.sfTimer=setTimeout(function(){c.retainPath=a.inArray(b[0],c.$path)>-1;b.hideSuperfishUl();c.$path.length&&b.parents(["li.",c.hoverClass].join("")).length<1&&d.call(c.$path)},c.delay)},j=function(a){a=
a.parents(["ul.",c.menuClass,":first"].join(""))[0];e.op=e.o[a.serial];return a};return this.each(function(){var j=this.serial=e.o.length,k=a.extend({},e.defaults,h);k.$path=a("li."+k.pathClass,this).slice(0,k.pathLevels).each(function(){a(this).addClass([k.hoverClass,c.bcClass].join(" ")).filter("li:has(ul)").removeClass(k.pathClass)});e.o[j]=e.op=k;a("li:has(ul)",this)[a.fn.hoverIntent&&!k.disableHI?"hoverIntent":"hover"](d,f).each(function(){k.autoArrows&&a(">a:first-child",this).addClass(c.anchorClass).append(b.clone())}).not("."+
c.bcClass).hideSuperfishUl();var n=a("a",this);n.each(function(a){var b=n.eq(a).parents("li");n.eq(a).focus(function(){d.call(b)}).blur(function(){f.call(b)})});k.onInit.call(this)}).each(function(){var b=[c.menuClass];e.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)&&b.push(c.shadowClass);a(this).addClass(b.join(" "))})};var f=a.fn.superfish;f.o=[];f.op={};f.IE7fix=function(){var h=f.op;a.browser.msie&&a.browser.version>6&&h.dropShadows&&h.animation.opacity!=void 0&&this.toggleClass(f.c.shadowClass+
"-off")};f.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};f.defaults={hoverClass:"sfHover",pathClass:"testclass",pathLevels:1,delay:700,animation:{opacity:"show"},speed:"normal",autoArrows:!0,dropShadows:!0,disableHI:!1,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var h=f.op,e=h.retainPath===!0?h.$path:"";h.retainPath=!1;e=a(["li.",
h.hoverClass].join(""),this).add(this).not(e).removeClass(h.hoverClass).find(">ul").hide().css("visibility","hidden");h.onHide.call(e);return this},showSuperfishUl:function(){var a=f.op,e=this.addClass(a.hoverClass).find(">ul:hidden").css("visibility","visible");f.IE7fix.call(e);a.onBeforeShow.call(e);e.animate(a.animation,a.speed,function(){f.IE7fix.call(e);a.onShow.call(e)});return this}})})(jQuery);
(function(a){a.fn.hoverIntent=function(f,h){var e={sensitivity:7,interval:100,timeout:0},e=a.extend(e,h?{over:f,out:h}:f),c,b,d,t,j=function(a){c=a.pageX;b=a.pageY},i=function(k,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if(Math.abs(d-c)+Math.abs(t-b)<e.sensitivity)return a(f).unbind("mousemove",j),f.hoverIntent_s=1,e.over.apply(f,[k]);else d=c,t=b,f.hoverIntent_t=setTimeout(function(){i(k,f)},e.interval)},k=function(b){for(var c=(b.type=="mouseover"?b.fromElement:b.toElement)||b.relatedTarget;c&&
c!=this;)try{c=c.parentNode}catch(k){c=this}if(c==this)return!1;var f=jQuery.extend({},b),h=this;if(h.hoverIntent_t)h.hoverIntent_t=clearTimeout(h.hoverIntent_t);if(b.type=="mouseover"){if(d=f.pageX,t=f.pageY,a(h).bind("mousemove",j),h.hoverIntent_s!=1)h.hoverIntent_t=setTimeout(function(){i(f,h)},e.interval)}else if(a(h).unbind("mousemove",j),h.hoverIntent_s==1)h.hoverIntent_t=setTimeout(function(){h.hoverIntent_t=clearTimeout(h.hoverIntent_t);h.hoverIntent_s=0;e.out.apply(h,[f])},e.timeout)};return this.mouseover(k).mouseout(k)}})(jQuery);
(function(a){a.fn.bgIframe=a.fn.bgiframe=function(f){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){var f=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:!0,src:"javascript:false;"},f||{}),h=function(a){return a&&a.constructor==Number?a+"px":a},e='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+f.src+'"style="display:block;position:absolute;z-index:-1;'+(f.opacity!==!1?"filter:Alpha(Opacity='0');":"")+"top:"+(f.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
h(f.top))+";left:"+(f.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":h(f.left))+";width:"+(f.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":h(f.width))+";height:"+(f.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":h(f.height))+';"/>';return this.each(function(){a("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(e),this.firstChild)})}return this}})(jQuery);(function(a){function f(c,b){var d=a(b);return d.length<2?d:c.parent().find(b)}function h(c,b){var d=this,h=c.add(d),j=c.children(),i=0,k=b.vertical;e||(e=d);j.length>1&&(j=a(b.items,c));a.extend(d,{getConf:function(){return b},getIndex:function(){return i},getSize:function(){return d.getItems().size()},getNaviButtons:function(){return x.add(u)},getRoot:function(){return c},getItemWrap:function(){return j},getItems:function(){return j.children(b.item).not("."+b.clonedClass)},move:function(a,b){return d.seekTo(i+
a,b)},next:function(a){return d.move(1,a)},prev:function(a){return d.move(-1,a)},begin:function(a){return d.seekTo(0,a)},end:function(a){return d.seekTo(d.getSize()-1,a)},focus:function(){return e=d},addItem:function(c){c=a(c);b.circular?(j.children("."+b.clonedClass+":last").before(c),j.children("."+b.clonedClass+":first").replaceWith(c.clone().addClass(b.clonedClass))):j.append(c);h.trigger("onAddItem",[c]);return d},seekTo:function(c,f,n){c.jquery||(c*=1);if(b.circular&&c===0&&i==-1&&f!==0)return d;
if(!b.circular&&c<0||c>d.getSize()||c<-1)return d;var l=c;c.jquery?c=d.getItems().index(c):l=d.getItems().eq(c);var u=a.Event("onBeforeSeek");if(!n&&(h.trigger(u,[c,f]),u.isDefaultPrevented()||!l.length))return d;l=k?{top:-l.position().top}:{left:-l.position().left};i=c;e=d;f===void 0&&(f=b.speed);j.animate(l,f,b.easing,n||function(){h.trigger("onSeek",[c])});return d}});a.each(["onBeforeSeek","onSeek","onAddItem"],function(c,e){a.isFunction(b[e])&&a(d).bind(e,b[e]);d[e]=function(b){b&&a(d).bind(e,
b);return d}});if(b.circular){var n=d.getItems().slice(-1).clone().prependTo(j),l=d.getItems().eq(1).clone().appendTo(j);n.add(l).addClass(b.clonedClass);d.onBeforeSeek(function(a,b,c){if(!a.isDefaultPrevented()){if(b==-1)return d.seekTo(n,c,function(){d.end(0)}),a.preventDefault();b==d.getSize()&&d.seekTo(l,c,function(){d.begin(0)})}});d.seekTo(0,0,function(){})}var x=f(c,b.prev).click(function(){d.prev()}),u=f(c,b.next).click(function(){d.next()});!b.circular&&d.getSize()>1&&(d.onBeforeSeek(function(a,
c){setTimeout(function(){a.isDefaultPrevented()||(x.toggleClass(b.disabledClass,c<=0),u.toggleClass(b.disabledClass,c>=d.getSize()-1))},1)}),b.initialIndex||x.addClass(b.disabledClass));b.mousewheel&&a.fn.mousewheel&&c.mousewheel(function(a,c){if(b.mousewheel)return d.move(c<0?1:-1,b.wheelSpeed||50),!1});if(b.touch){var z={};j[0].ontouchstart=function(a){a=a.touches[0];z.x=a.clientX;z.y=a.clientY};j[0].ontouchmove=function(a){if(a.touches.length==1&&!j.is(":animated")){var b=a.touches[0],c=z.x-b.clientX,
b=z.y-b.clientY;d[k&&b>0||!k&&c>0?"next":"prev"]();a.preventDefault()}}}b.keyboard&&a(document).bind("keydown.scrollable",function(c){if(b.keyboard&&!c.altKey&&!c.ctrlKey&&!a(c.target).is(":input")&&!(b.keyboard!="static"&&e!=d)){var f=c.keyCode;if(k&&(f==38||f==40))return d.move(f==38?-1:1),c.preventDefault();if(!k&&(f==37||f==39))return d.move(f==37?-1:1),c.preventDefault()}});b.initialIndex&&d.seekTo(b.initialIndex,0,function(){})}a.tools=a.tools||{version:"v1.2.5"};a.tools.scrollable={conf:{activeClass:"active",
circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",speed:400,vertical:!1,touch:!0,wheelSpeed:0}};var e;a.fn.scrollable=function(c){var b=this.data("scrollable");if(b)return b;c=a.extend({},a.tools.scrollable.conf,c);this.each(function(){b=new h(a(this),c);a(this).data("scrollable",b)});return c.api?b:this}})(jQuery);
(function(a){var f=a.tools.scrollable;f.autoscroll={conf:{autoplay:!0,interval:3E3,autopause:!0}};a.fn.autoscroll=function(h){typeof h=="number"&&(h={interval:h});var e=a.extend({},f.autoscroll.conf,h),c;this.each(function(){var b=a(this).data("scrollable");b&&(c=b);var d;b.play=function(){d||(d=setInterval(function(){b.next()},e.interval))};b.pause=function(){d=clearInterval(d)};b.stop=function(){b.pause()};e.autopause&&b.getRoot().add(b.getNaviButtons()).hover(b.pause,b.play);e.autoplay&&b.play()});
return e.api?c:this}})(jQuery);
(function(a){function f(e,c){var b=a(c);return b.length<2?b:e.parent().find(c)}var h=a.tools.scrollable;h.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,idPrefix:null,history:!1}};a.fn.navigator=function(e){typeof e=="string"&&(e={navi:e});var e=a.extend({},h.navigator.conf,e),c;this.each(function(){function b(a,b,c){i.seekTo(b);if(x)location.hash&&(location.hash=a.attr("href").replace("#",""));else return c.preventDefault()}function d(){return k.find(e.naviItem||"> *")}
function h(c){var d=a("<"+(e.naviItem||"a")+"/>").click(function(d){b(a(this),c,d)}).attr("href","#"+c);c===0&&d.addClass(l);e.indexed&&d.text(c+1);e.idPrefix&&d.attr("id",e.idPrefix+c);return d.appendTo(k)}function j(a,b){var c=d().eq(b.replace("#",""));c.length||(c=d().filter("[href="+b+"]"));c.click()}var i=a(this).data("scrollable"),k=e.navi.jquery?e.navi:f(i.getRoot(),e.navi),n=i.getNaviButtons(),l=e.activeClass,x=e.history&&a.fn.history;i&&(c=i);i.getNaviButtons=function(){return n.add(k)};
d().length?d().each(function(c){a(this).click(function(d){b(a(this),c,d)})}):a.each(i.getItems(),function(a){h(a)});i.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var c=d().eq(b);!a.isDefaultPrevented()&&c.length&&d().removeClass(l).eq(b).addClass(l)}},1)});i.onAddItem(function(a,b){b=h(i.getItems().index(b));x&&b.history(j)});x&&d().history(j)});return e.api?c:this}})(jQuery);
(function(){function a(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function f(a,b){var c=[],d;for(d in a)a.hasOwnProperty(d)&&(c[d]=b(a[d]));return c}function h(b,d,f){if(j.isSupported(d.version))b.innerHTML=j.getHTML(d,f);else if(d.expressInstall&&j.isSupported([6,65]))b.innerHTML=j.getHTML(a(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else if(b.innerHTML.replace(/\s/g,"")||(b.innerHTML="<h2>Flash version "+d.version+
" or greater is required</h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"</h3>"+(b.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+c+"'>here</a></p>"),b.tagName=="A"&&(b.onclick=function(){location.href=c})),d.onFail){var h=d.onFail.call(this);typeof h=="string"&&(b.innerHTML=h)}e&&(window[d.id]=document.getElementById(d.id));a(this,{getRoot:function(){return b},getOptions:function(){return d},getConf:function(){return f},
getApi:function(){return b.firstChild}})}var e=document.all,c="http://www.adobe.com/go/getflashplayer",b=typeof jQuery=="function",d=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,t={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});
window.flashembed=function(b,c,d){typeof b=="string"&&(b=document.getElementById(b.replace("#","")));if(b)return typeof c=="string"&&(c={src:c}),new h(b,a(a({},t),c),d)};var j=a(window.flashembed,{conf:t,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(c){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&a.GetVariable("$version")}catch(e){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&a.GetVariable("$version")}catch(f){}}}return(b=
d.exec(b))?[b[1],b[3]]:[0,0]},asString:function(a){if(a===null||a===void 0)return null;var b=typeof a;b=="object"&&a.push&&(b="array");switch(b){case "string":return a=a.replace(RegExp('(["\\\\])',"g"),"\\$1"),a=a.replace(/^\s?(\d+\.?\d+)%/,"$1pct"),'"'+a+'"';case "array":return"["+f(a,function(a){return j.asString(a)}).join(",")+"]";case "function":return'"function()"';case "object":var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push('"'+c+'":'+j.asString(a[c]));return"{"+b.join(",")+"}"}return String(a).replace(/\s/g,
" ").replace(/\'/g,'"')},getHTML:function(b,c){var b=a({},b),d='<object width="'+b.width+'" height="'+b.height+'" id="'+b.id+'" name="'+b.id+'"';b.cachebusting&&(b.src+=(b.src.indexOf("?")!=-1?"&":"?")+Math.random());b.w3c||!e?d+=' data="'+b.src+'" type="application/x-shockwave-flash"':d+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';d+=">";if(b.w3c||e)d+='<param name="movie" value="'+b.src+'" />';b.width=b.height=b.id=b.w3c=b.src=null;b.onFail=b.version=b.expressInstall=null;for(var f in b)b[f]&&
(d+='<param name="'+f+'" value="'+b[f]+'" />');f="";if(c){for(var h in c)if(c[h]){var i=c[h];f+=h+"="+(/function|object/.test(typeof i)?j.asString(i):i)+"&"}f=f.slice(0,-1);d+='<param name="flashvars" value=\''+f+"' />"}d+="</object>";return d},isSupported:function(a){return i[0]>a[0]||i[0]==a[0]&&i[1]>=a[1]}}),i=j.getVersion();b&&(jQuery.tools=jQuery.tools||{version:"v1.2.5"},jQuery.tools.flashembed={conf:t},jQuery.fn.flashembed=function(a,b){return this.each(function(){$(this).data("flashembed",
flashembed(this,a,b))})})})();
(function(a){function f(a){if(a){var b=e.contentWindow.document;b.open().close();b.location.hash=a}}var h,e,c,b;a.tools=a.tools||{version:"v1.2.5"};a.tools.history={init:function(d){b||(a.browser.msie&&a.browser.version<"8"?e||(e=a("<iframe/>").attr("src","javascript:false;").hide().get(0),a("body").append(e),setInterval(function(){var b=e.contentWindow.document.location.hash;h!==b&&a.event.trigger("hash",b)},100),f(location.hash||"#")):setInterval(function(){var b=location.hash;b!==h&&a.event.trigger("hash",
b)},100),c=c?c.add(d):d,d.click(function(b){var c=a(this).attr("href");e&&f(c);if(c.slice(0,1)!="#")return location.href="#"+c,b.preventDefault()}),b=!0)}};a(window).bind("hash",function(b,e){e?c.filter(function(){var b=a(this).attr("href");return b==e||b==e.replace("#","")}).trigger("history",[e]):c.eq(0).trigger("history",[e]);h=e});a.fn.history=function(b){a.tools.history.init(this);return this.bind("history",b)}})(jQuery);
(function(a){function f(e){switch(e.type){case "mousemove":return a.extend(e.data,{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY});case "DOMMouseScroll":a.extend(e,e.data);e.delta=-e.detail/3;break;case "mousewheel":e.delta=e.wheelDelta/120}e.type="wheel";return a.event.handle.call(this,e,e.delta)}a.fn.mousewheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){a.event.add(this,h,f,{})},teardown:function(){a.event.remove(this,h,f)}};
var h=a.browser.mozilla?"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":""):"mousewheel"})(jQuery);
(function(a){function f(c,b,d){var e=d.relative?c.position().top:c.offset().top,f=d.relative?c.position().left:c.offset().left,h=d.position[0];e-=b.outerHeight()-d.offset[0];f+=c.outerWidth()+d.offset[1];/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var k=b.outerHeight()+c.outerHeight();h=="center"&&(e+=k/2);h=="bottom"&&(e+=k);h=d.position[1];c=b.outerWidth()+c.outerWidth();h=="center"&&(f-=c/2);h=="left"&&(f-=c);return{top:e,left:f}}function h(c,b){var d=this,h=c.add(d),j,i=0,k=
0,n=c.attr("title"),l=c.attr("data-tooltip"),x=e[b.effect],u,z=c.is(":input"),J=z&&c.is(":checkbox, :radio, select, :button, :submit"),K=c.attr("type"),A=b.events[K]||b.events[z?J?"widget":"input":"def"];if(!x)throw'Nonexistent effect "'+b.effect+'"';A=A.split(/,\s*/);if(A.length!=2)throw"Tooltip: bad events configuration for "+K;c.bind(A[0],function(a){clearTimeout(i);b.predelay?k=setTimeout(function(){d.show(a)},b.predelay):d.show(a)}).bind(A[1],function(a){clearTimeout(k);b.delay?i=setTimeout(function(){d.hide(a)},
b.delay):d.hide(a)});n&&b.cancelDefault&&(c.removeAttr("title"),c.data("title",n));a.extend(d,{show:function(e){if(!j&&(l?j=a(l):b.tip?j=a(b.tip).eq(0):n?j=a(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(n):(j=c.next(),j.length||(j=c.parent().next())),!j.length))throw"Cannot find tooltip for "+c;if(d.isShown())return d;j.stop(!0,!0);var y=f(c,j,b);b.tip&&j.html(c.data("title"));e=e||a.Event();e.type="onBeforeShow";h.trigger(e,[y]);if(e.isDefaultPrevented())return d;y=f(c,j,
b);j.css({position:"absolute",top:y.top,left:y.left});u=!0;x[0].call(d,function(){e.type="onShow";u="full";h.trigger(e)});y=b.events.tooltip.split(/,\s*/);j.data("__set")||(j.bind(y[0],function(){clearTimeout(i);clearTimeout(k)}),y[1]&&!c.is("input:not(:checkbox, :radio), textarea")&&j.bind(y[1],function(a){a.relatedTarget!=c[0]&&c.trigger(A[1].split(" ")[0])}),j.data("__set",!0));return d},hide:function(c){if(!j||!d.isShown())return d;c=c||a.Event();c.type="onBeforeHide";h.trigger(c);if(!c.isDefaultPrevented())return u=
!1,e[b.effect][1].call(d,function(){c.type="onHide";h.trigger(c)}),d},isShown:function(a){return a?u=="full":u},getConf:function(){return b},getTip:function(){return j},getTrigger:function(){return c}});a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(c,e){a.isFunction(b[e])&&a(d).bind(e,b[e]);d[e]=function(b){b&&a(d).bind(e,b);return d}})}a.tools=a.tools||{version:"v1.2.5"};a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top",
"center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,d){e[a]=[b,d]}};var e={toggle:[function(a){var b=this.getConf(),d=this.getTip(),b=b.opacity;b<1&&d.css({opacity:b});d.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,
a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};a.fn.tooltip=function(c){var b=this.data("tooltip");if(b)return b;c=a.extend(!0,{},a.tools.tooltip.conf,c);typeof c.position=="string"&&(c.position=c.position.split(/,?\s/));this.each(function(){b=new h(a(this),c);a(this).data("tooltip",b)});return c.api?b:this}})(jQuery);(function(a){a.fn.wrapList=function(f){var h=a.extend(a.fn.wrapList.defaults,f);this.each(function(){var e=a(this).children("li");a(this).empty();for(var c=0;c<h.itemsPerColumn;c++)a(this).append(e[c]);var b=this;a(b).css("float","left");for(c=1;c<e.length/h.itemsPerColumn;c++){var d=document.createElement("ul");a(d).attr("class",a(this).attr("class"));for(var f=h.itemsPerColumn*c;f<h.itemsPerColumn*c+h.itemsPerColumn;f++)a(d).append(e[f]);a(d).css("float","left");a(b).after(d);b=d}})}})(jQuery);$.fn.watch=function(a,f,h,e){function c(a){var c=$(this),a=c.data(a),e=!1,f=0;if(a){for(;f<a.props.length;f++){var h=c.css(a.props[f]);if(a.vals[f]!=h){a.vals[f]=h;e=!0;break}}e&&a.func&&a.func.call(this,a,f)}}h||(h=200);e||(e="_watcher");return this.each(function(){var b=this,d=$(this),t=function(){c.call(b,e)},j=null;typeof this.onpropertychange=="object"?d.bind("propertychange."+e,t):$.browser.mozilla?d.bind("DOMAttrModified."+e,t):j=setInterval(t,h);var i={id:j,props:a.split(","),func:f,vals:[a.split(",").length]};
$.each(i.vals,function(a){i.vals[a]=d.css(i.props[a])});d.data(e,i)})};jQuery.fn.dropdown=function(){this.find("ul").wrapList({itemsPerColumn:10});var a=this;$("#county-list-btn").click(function(){var h=f();a.css({right:h.right,top:h.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 h=f();a.css({right:h.right,top:h.top,left:"auto"})});var f=function(){var a=$(window).width()-$(".country-select-btn").offset().left-
$(".country-select-btn").outerWidth(),e=$(".country-select-btn").offset().top+$(".country-select-btn").height();return{right:a,top:e}}};jQuery.fn.setWidth=function(a){a=a||16;this.each(function(f,h){for($(h).width(1);$(h).height()>a;)$(h).width($(h).width()+5);var e=$(h).find("span").width();e>$(h).width()&&$(h).width(e)})};function shortenMenu(){var a=$("form.search").offset().left,f=!1;$(".sf-menu:eq(0) > li").each(function(h,e){$(e).offset().left+$(e).outerWidth()>=a&&(f=!0)});f&&$("form.search").position({my:"top",at:"bottom",of:$("div.country-select"),offset:"-19 6"}).addClass("misplaced-search-bar")};jQuery.fn.audioPlayer=function(a,f){f=$.extend({backgroundColor:"#262626",backgroundImage:"url(http://tw.shelomodobkin.com/images/audio-player-bg.jpg)",backgroundRepeat:"repeat-x",backgroundGradient:"none",height:30,buttonColor:"#5E5E5E",fullscreen:!1},f);$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:f},clip:{url:a,provider:"rtmp",autoPlay:!1}})};jQuery.fn.standardVideoPlayer=function(){$f($(this).attr("id"),{src:"http://media.towerswatson.com/flowplayer/flowplayer.swf",wmode:"opaque"},{clip:{autoPlay:!1,autoBuffering:!0},canvas:{backgroundColor:"#ffffff",backgroundGradient:"none",borderRadius:0},plugins:{controls:null},key:"#@eab2a3d66e800a675f8",contextMenu:["Towers Watson Video Player"]})};(function(a,f,h){function e(c){if(!U){v=c;d(a.extend(g,a.data(v,n)));o=a(v);p=0;g.rel!=="nofollow"&&(o=a("."+M).filter(function(){return(a.data(this,n).rel||this.rel)===g.rel}),p=o.index(v),p===-1&&(o=o.add(v),p=o.length-1));if(!C){C=N=!0;r.show();if(g.returnFocus)try{v.blur(),a(v).one(K,function(){try{this.focus()}catch(a){}})}catch(e){}D.css({opacity:+g.opacity,cursor:g.overlayClose?"pointer":"auto"}).show();g.w=j(g.initialWidth,"x");g.h=j(g.initialHeight,"y");m.position(0);y&&w.bind("resize."+
T+" scroll."+T,function(){D.css({width:w.width(),height:w.height(),top:w.scrollTop(),left:w.scrollLeft()})}).trigger("resize."+T);b(x,g.onOpen);V.add(W).hide();X.html(g.close).show()}m.load(!0)}}function c(){var a,b=l+"Slideshow_",c="click."+l,d,e;g.slideshow&&o[1]&&(d=function(){O.text(g.slideshowStop).unbind(c).bind(z,function(){if(p<o.length-1||g.loop)a=setTimeout(m.next,g.slideshowSpeed)}).bind(u,function(){clearTimeout(a)}).one(c+" "+J,e);r.removeClass(b+"off").addClass(b+"on");a=setTimeout(m.next,
g.slideshowSpeed)},e=function(){clearTimeout(a);O.text(g.slideshowStart).unbind([z,u,J,c].join(" ")).one(c,d);r.removeClass(b+"on").addClass(b+"off")},g.slideshowAuto?d():e())}function b(b,c){c&&c.call(v);a.event.trigger(b)}function d(b){for(var c in b)a.isFunction(b[c])&&c.substring(0,2)!=="on"&&(b[c]=b[c].call(v));b.rel=b.rel||v.rel||"nofollow";b.href=a.trim(b.href||a(v).attr("href"));b.title=b.title||v.title}function t(a){return g.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(a)}
function j(a,b){b=b==="x"?w.width():w.height();return typeof a=="string"?Math.round(/%/.test(a)?b/100*parseInt(a,10):parseInt(a,10)):a}function i(b,c){var d=f.createElement("div");b&&(d.id=l+b);d.style.cssText=c||!1;return a(d)}var k={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,
current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0},n="colorbox",l="cbox",x=l+"_open",u=l+"_load",z=l+"_complete",J=l+"_cleanup",K=l+"_closed",A=l+"_purge",L=a.browser.msie&&!a.support.opacity,y=L&&a.browser.version<7,T=l+"_IE6",
D,r,G,B,Y,Z,aa,ba,o,w,s,P,Q,W,ca,O,R,S,X,V,g={},H,I,E,F,v,p,q,C,N,U=!1,m,M=l+"Element";m=a.fn[n]=a[n]=function(b,c){var d=this,f;if(!d[0]&&d.selector)return d;b=b||{};c&&(b.onComplete=c);if(!d[0]||d.selector===void 0)d=a("<a/>"),b.open=!0;d.each(function(){a.data(this,n,a.extend({},a.data(this,n)||k,b));a(this).addClass(M)});f=b.open;a.isFunction(f)&&(f=f.call(d));f&&e(d[0]);return d};m.init=function(){w=a(h);r=i().attr({id:n,"class":L?l+(y?"IE6":"IE"):""});D=i("Overlay",y?"position:absolute":"").hide();
G=i("Wrapper");B=i("Content").append(s=i("LoadedContent","width:0; height:0; overflow:hidden"),Q=i("LoadingOverlay").add(i("LoadingGraphic")),W=i("Title"),ca=i("Current"),R=i("Next"),S=i("Previous"),O=i("Slideshow").bind(x,c),X=i("Close"));G.append(i().append(i("TopLeft"),Y=i("TopCenter"),i("TopRight")),i(!1,"clear:left").append(Z=i("MiddleLeft"),B,aa=i("MiddleRight")),i(!1,"clear:left").append(i("BottomLeft"),ba=i("BottomCenter"),i("BottomRight"))).children().children().css({"float":"left"});P=i(!1,
"position:absolute; width:9999px; visibility:hidden; display:none");a("body").prepend(D,r.append(G,P));B.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover");H=Y.height()+ba.height()+B.outerHeight(!0)-B.height();I=Z.width()+aa.width()+B.outerWidth(!0)-B.width();E=s.outerHeight(!0);F=s.outerWidth(!0);r.css({"padding-bottom":H,"padding-right":I}).hide();R.click(function(){m.next()});S.click(function(){m.prev()});X.click(function(){m.close()});
V=R.add(S).add(ca).add(O);B.children().removeClass("hover");a("."+M).live("click",function(a){a.button!==0&&typeof a.button!="undefined"||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),e(this))});D.click(function(){g.overlayClose&&m.close()});a(f).bind("keydown."+l,function(a){var b=a.keyCode;C&&g.escKey&&b===27&&(a.preventDefault(),m.close());C&&g.arrowKey&&o[1]&&(b===37?(a.preventDefault(),S.click()):b===39&&(a.preventDefault(),R.click()))})};m.remove=function(){r.add(D).remove();a("."+M).die("click").removeData(n).removeClass(M)};
m.position=function(a,b){function c(a){Y[0].style.width=ba[0].style.width=B[0].style.width=a.style.width;Q[0].style.height=Q[1].style.height=B[0].style.height=Z[0].style.height=aa[0].style.height=a.style.height}var d,e=Math.max(f.documentElement.clientHeight-g.h-E-H,0)/2+w.scrollTop(),h=Math.max(w.width()-g.w-F-I,0)/2+w.scrollLeft();d=r.width()===g.w+F&&r.height()===g.h+E?0:a;G[0].style.width=G[0].style.height="9999px";r.dequeue().animate({width:g.w+F,height:g.h+E,top:e,left:h},{duration:d,complete:function(){c(this);
N=!1;G[0].style.width=g.w+F+I+"px";G[0].style.height=g.h+E+H+"px";b&&b()},step:function(){c(this)}})};m.resize=function(a){if(C){a=a||{};a.width&&(g.w=j(a.width,"x")-F-I);a.innerWidth&&(g.w=j(a.innerWidth,"x"));s.css({width:g.w});a.height&&(g.h=j(a.height,"y")-E-H);a.innerHeight&&(g.h=j(a.innerHeight,"y"));if(!a.innerHeight&&!a.height)a=s.wrapInner("<div style='overflow:auto'></div>").children(),g.h=a.height(),a.replaceWith(a.children());s.css({height:g.h});m.position(g.transition==="none"?0:g.speed)}};
m.prep=function(c){function d(c){m.position(c,function(){var c,d,e,f,j=o.length,i,k;!C||(k=function(){Q.hide();b(z,g.onComplete)},L&&q&&s.fadeIn(100),W.html(g.title).add(s).show(),j>1?(typeof g.current=="string"&&ca.html(g.current.replace(/\{current\}/,p+1).replace(/\{total\}/,j)).show(),R[g.loop||p<j-1?"show":"hide"]().html(g.next),S[g.loop||p?"show":"hide"]().html(g.previous),c=p?o[p-1]:o[j-1],e=p<j-1?o[p+1]:o[0],g.slideshow&&O.show(),g.preloading&&(f=a.data(e,n).href||e.href,d=a.data(c,n).href||
c.href,f=a.isFunction(f)?f.call(e):f,d=a.isFunction(d)?d.call(c):d,t(f)&&(a("<img/>")[0].src=f),t(d)&&(a("<img/>")[0].src=d))):V.hide(),g.iframe?(i=a("<iframe/>").addClass(l+"Iframe")[0],g.fastIframe?k():a(i).load(k),i.name=l+ +new Date,i.src=g.href,g.scrolling||(i.scrolling="no"),L&&(i.frameBorder=0,i.allowTransparency="true"),a(i).appendTo(s).one(A,function(){i.src="//about:blank"})):k(),g.transition==="fade"?r.fadeTo(h,1,function(){r[0].style.filter=""}):r[0].style.filter="",w.bind("resize."+l,
function(){m.position(0)}))})}function e(){g.h=g.h||s.height();g.h=g.mh&&g.mh<g.h?g.mh:g.h;return g.h}function f(){g.w=g.w||s.width();g.w=g.mw&&g.mw<g.w?g.mw:g.w;return g.w}if(C){var h=g.transition==="none"?0:g.speed;w.unbind("resize."+l);s.remove();s=i("LoadedContent").html(c);s.hide().appendTo(P.show()).css({width:f(),overflow:g.scrolling?"auto":"hidden"}).css({height:e()}).prependTo(B);P.hide();a(q).css({"float":"none"});y&&a("select").not(r.find("select")).filter(function(){return this.style.visibility!==
"hidden"}).css({visibility:"hidden"}).one(J,function(){this.style.visibility="inherit"});g.transition==="fade"?r.fadeTo(h,0,function(){d(0)}):d(h)}};m.load=function(c){var e,f,h=m.prep;N=!0;q=!1;v=o[p];c||d(a.extend(g,a.data(v,n)));b(A);b(u,g.onLoad);g.h=g.height?j(g.height,"y")-E-H:g.innerHeight&&j(g.innerHeight,"y");g.w=g.width?j(g.width,"x")-F-I:g.innerWidth&&j(g.innerWidth,"x");g.mw=g.w;g.mh=g.h;g.maxWidth&&(g.mw=j(g.maxWidth,"x")-F-I,g.mw=g.w&&g.w<g.mw?g.w:g.mw);g.maxHeight&&(g.mh=j(g.maxHeight,
"y")-E-H,g.mh=g.h&&g.h<g.mh?g.h:g.mh);e=g.href;Q.show();g.inline?(i().hide().insertBefore(a(e)[0]).one(A,function(){a(this).replaceWith(s.children())}),h(a(e))):g.iframe?h(" "):g.html?h(g.html):t(e)?(a(q=new Image).addClass(l+"Photo").error(function(){g.title=!1;h(i("Error").text("This image could not be loaded"))}).load(function(){var a;q.onload=null;g.scalePhotos&&(f=function(){q.height-=q.height*a;q.width-=q.width*a},g.mw&&q.width>g.mw&&(a=(q.width-g.mw)/q.width,f()),g.mh&&q.height>g.mh&&(a=(q.height-
g.mh)/q.height,f()));g.h&&(q.style.marginTop=Math.max(g.h-q.height,0)/2+"px");o[1]&&(p<o.length-1||g.loop)&&(q.style.cursor="pointer",q.onclick=function(){m.next()});L&&(q.style.msInterpolationMode="bicubic");setTimeout(function(){h(q)},1)}),setTimeout(function(){q.src=e},1)):e&&P.load(e,function(b,c,d){h(c==="error"?i("Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})};m.next=function(){!N&&o[1]&&(p<o.length-1||g.loop)&&(p=p<o.length-1?p+1:0,m.load())};m.prev=function(){!N&&
o[1]&&(p||g.loop)&&(p=p?p-1:o.length-1,m.load())};m.close=function(){C&&!U&&(U=!0,C=!1,b(J,g.onCleanup),w.unbind("."+l+" ."+T),D.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(D).css({opacity:1,cursor:"auto"}).hide();b(A);s.remove();setTimeout(function(){U=!1;b(K,g.onClosed)},1)}))};m.element=function(){return a(v)};m.settings=k;a(m.init)})(jQuery,document,this);$.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 a=0;this.each(function(){if(this.offsetHeight>a)a=this.offsetHeight});this.each(function(){$(this).height(a+"px");this.offsetHeight>a&&$(this).height(a-(this.offsetHeight-a)+"px")})};
jQuery.fn.jwaudio=function(a,f){f=$.extend({height:30,width:400,skin:"http://media.towerswatson.com/jw/skins/tw.audio.zip",frontcolor:"ffffff",wmode:"transparent",screencolor:"ffffff",image:""},f);f.file=a;$(this).each(function(a,e){$(e).flashembed({src:"http://media.towerswatson.com/jw/player-licensed.swf",height:f.height,width:f.width,wmode:f.wmode},f)})};
(function(){jQuery.fn.createBtn=function(){return this.each(function(){var a=jQuery(this).attr("data-class");a?jQuery(this).button({icons:{primary:"ui-icon-"+a}}):jQuery(this).button().addClass("full-btn")})}})(jQuery);
$(function(){var a=$("html").attr("lang");$("body").addClass(a+"-hook");$(".sf-menu").superfish({animation:{opacity:"show",height:"show"},speed:"fast",onBeforeShow:function(){$(this).width(800)}});$(".segment-menu div:nth-child(odd)").addClass("odd");$(".segment-menu div:nth-child(even)").addClass("even");$(".segment-menu div, .country-office-listing .vcard").equalHeights();$(".jb").insertAfter(".article h1:first");$(".build").each(function(){$(this).twmod()});$(".segment-menu div").length%2==1&&
$(".segment-menu div:last").css("border-bottom","0 none");$(".setWidth").each(function(){var a=$(this).find("span").width();$(this).width(a)});$(".show-hide").click(function(){$(this).parent().next().slideToggle("fast");$(this).toggleClass("active")});$(".article .caption").each(function(){var a=$(this).find("img").width();$(this).width(a)});$(".article .question:first").css("border-top","0 none");var f=0;$("#contact-form label").each(function(){$(this).width()>f&&(f=$(this).width())});$("#contact-form label").width(f);
$(".table tr:nth-child(odd)").addClass("odd");$(".table tr:nth-child(even)").addClass("even");$(".sb").removeClass("sb");$(".mod").addClass("gsb");$(".datefield").datepicker({changeMonth:!0,changeYear:!0});$(".ico.calendar").click(function(){$(this).prev().datepicker("show")});$.browser.msie&&$.browser.version<=6&&$(".top-level-service-list li, .results li").hover(function(){$(this).addClass("hovered")},function(){$(this).removeClass("hovered")});$(".gsb .list a").length==0&&$(".gsb .list").addClass("noLink");
$(".colorbox").colorbox({opacity:0,transition:"elastic",initialWidth:0,initialHeight:0});jQuery(".btn").createBtn()});
