window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);(typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a))}};(function(e){function h(){}for(var g="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;f=g.pop();){e[f]=e[f]||h}})((function(){try{console.log();return window.console}catch(a){return window.console={}}})());(function(e){function b(p,c,g){var o=this,f=p.add(this),n=p.find(g.tabs),m=c.jquery?c:p.children(c),k;n.length||(n=p.children());m.length||(m=p.parent().find(c));m.length||(m=e(c));e.extend(this,{click:function(j,i){var h=n.eq(j);if(typeof j=="string"&&j.replace("#","")){h=n.filter("[href*="+j.replace("#","")+"]");j=Math.max(n.index(h),0)}if(g.rotate){var l=n.length-1;if(j<0){return o.click(l,i)}if(j>l){return o.click(0,i)}}if(!h.length){if(k>=0){return o}j=g.initialIndex;h=n.eq(j)}if(j===k){return o}i=i||e.Event();i.type="onBeforeClick";f.trigger(i,[j]);if(!i.isDefaultPrevented()){d[g.effect].call(o,j,function(){i.type="onClick";f.trigger(i,[j])});k=j;n.removeClass(g.current);h.addClass(g.current);return o}},getConf:function(){return g},getTabs:function(){return n},getPanes:function(){return m},getCurrentPane:function(){return m.eq(k)},getCurrentTab:function(){return n.eq(k)},getIndex:function(){return k},next:function(){return o.click(k+1)},prev:function(){return o.click(k-1)},destroy:function(){n.unbind(g.event).removeClass(g.current);m.find("a[href^=#]").unbind("click.T");return o}});e.each("onBeforeClick,onClick".split(","),function(i,h){e.isFunction(g[h])&&e(o).bind(h,g[h]);o[h]=function(j){j&&e(o).bind(h,j);return o}});if(g.history&&e.fn.history){e.tools.history.init(n);g.event="history"}n.each(function(h){e(this).bind(g.event,function(i){o.click(h,i);return i.preventDefault()})});m.find("a[href^=#]").bind("click.T",function(h){o.click(e(this).attr("href"),h)});if(location.hash&&g.tabs=="a"&&p.find("[href="+location.hash+"]").length){o.click(location.hash)}else{if(g.initialIndex===0||g.initialIndex>0){o.click(g.initialIndex)}}}e.tools=e.tools||{version:"1.2.5"};e.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(f,c){d[f]=c}};var d={"default":function(f,c){this.getPanes().hide().eq(f).show();c.call()},fade:function(i,c){var g=this.getConf(),h=g.fadeOutSpeed,f=this.getPanes();h?f.fadeOut(h):f.hide();f.eq(i).fadeIn(g.fadeInSpeed,c)},slide:function(f,c){this.getPanes().slideUp(200);this.getPanes().eq(f).slideDown(400,c)},ajax:function(f,c){this.getPanes().eq(0).load(this.getTabs().eq(f).attr("href"),c)}},a;e.tools.tabs.addEffect("horizontal",function(f,c){a||(a=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){e(this).hide()});this.getPanes().eq(f).animate({width:a},function(){e(this).show();c.call()})});e.fn.tabs=function(g,c){var f=this.data("tabs");if(f){f.destroy();this.removeData("tabs")}if(e.isFunction(c)){c={onBeforeClick:c}}c=e.extend({},e.tools.tabs.conf,c);this.each(function(){f=new b(e(this),g,c);e(this).data("tabs",f)});return c.api?f:this}})(jQuery);(function(d){function a(s,v){function e(g){var h=d(g);return h.length<2?h:s.parent().find(g)}var u=this,q=s.add(this),t=s.data("tabs"),r,p=true,c=e(v.next).click(function(){t.next()}),o=e(v.prev).click(function(){t.prev()});d.extend(u,{getTabs:function(){return t},getConf:function(){return v},play:function(){if(r){return u}var g=d.Event("onBeforePlay");q.trigger(g);if(g.isDefaultPrevented()){return u}r=setInterval(t.next,v.interval);p=false;q.trigger("onPlay");return u},pause:function(){if(!r){return u}var g=d.Event("onBeforePause");q.trigger(g);if(g.isDefaultPrevented()){return u}r=clearInterval(r);q.trigger("onPause");return u},stop:function(){u.pause();
p=true}});d.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(g,h){d.isFunction(v[h])&&d(u).bind(h,v[h]);u[h]=function(i){return d(u).bind(h,i)}});v.autopause&&t.getTabs().add(c).add(o).add(t.getPanes()).hover(u.pause,function(){p||u.play()});v.autoplay&&u.play();v.clickable&&t.getPanes().click(function(){t.next()});if(!t.getConf().rotate){var f=v.disabledClass;t.getIndex()||o.addClass(f);t.onBeforeClick(function(g,h){o.toggleClass(f,!h);c.toggleClass(f,h==t.getTabs().length-1)})}}var b;b=d.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3000,clickable:true,api:false}};d.fn.slideshow=function(e){var c=this.data("slideshow");if(c){return c}e=d.extend({},b.conf,e);this.each(function(){c=new a(d(this),e);d(this).data("slideshow",c)});return e.api?c:this}})(jQuery);(function(b){function c(f,e,n){var l=n.relative?f.position().top:f.offset().top,m=n.relative?f.position().left:f.offset().left,k=n.position[0];l-=e.outerHeight()-n.offset[0];m+=f.outerWidth()+n.offset[1];if(/iPad/i.test(navigator.userAgent)){l-=b(window).scrollTop()}var g=e.outerHeight()+f.outerHeight();if(k=="center"){l+=g/2}if(k=="bottom"){l+=g}k=n.position[1];f=e.outerWidth()+f.outerWidth();if(k=="center"){m-=f/2}if(k=="left"){m-=f}return{top:l,left:m}}function a(A,z){var y=this,w=A.add(y),x,u=0,p=0,g=A.attr("title"),f=A.attr("data-tooltip"),e=d[z.effect],n,D=A.is(":input"),B=D&&A.is(":checkbox, :radio, select, :button, :submit"),C=A.attr("type"),o=z.events[C]||z.events[D?B?"widget":"input":"def"];if(!e){throw'Nonexistent effect "'+z.effect+'"'}o=o.split(/,\s*/);if(o.length!=2){throw"Tooltip: bad events configuration for "+C}A.bind(o[0],function(h){clearTimeout(u);if(z.predelay){p=setTimeout(function(){y.show(h)},z.predelay)}else{y.show(h)}}).bind(o[1],function(h){clearTimeout(p);if(z.delay){u=setTimeout(function(){y.hide(h)},z.delay)}else{y.hide(h)}});if(g&&z.cancelDefault){A.removeAttr("title");A.data("title",g)}b.extend(y,{show:function(i){if(!x){if(f){x=b(f)}else{if(z.tip){x=b(z.tip).eq(0)}else{if(g){x=b(z.layout).addClass(z.tipClass).appendTo(document.body).hide().append(g)}else{x=A.next();x.length||(x=A.parent().next())}}}if(!x.length){throw"Cannot find tooltip for "+A}}if(y.isShown()){return y}x.stop(true,true);var h=c(A,x,z);z.tip&&x.html(A.data("title"));i=i||b.Event();i.type="onBeforeShow";w.trigger(i,[h]);if(i.isDefaultPrevented()){return y}h=c(A,x,z);x.css({position:"absolute",top:h.top,left:h.left});n=true;e[0].call(y,function(){i.type="onShow";n="full";w.trigger(i)});h=z.events.tooltip.split(/,\s*/);if(!x.data("__set")){x.bind(h[0],function(){clearTimeout(u);clearTimeout(p)});h[1]&&!A.is("input:not(:checkbox, :radio), textarea")&&x.bind(h[1],function(j){j.relatedTarget!=A[0]&&A.trigger(o[1].split(" ")[0])});x.data("__set",true)}return y},hide:function(h){if(!x||!y.isShown()){return y}h=h||b.Event();h.type="onBeforeHide";w.trigger(h);if(!h.isDefaultPrevented()){n=false;d[z.effect][1].call(y,function(){h.type="onHide";w.trigger(h)});return y}},isShown:function(h){return h?n=="full":n},getConf:function(){return z},getTip:function(){return x},getTrigger:function(){return A}});b.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(i,h){b.isFunction(z[h])&&b(y).bind(h,z[h]);y[h]=function(j){j&&b(y).bind(h,j);return y}})}b.tools=b.tools||{version:"1.2.5"};b.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(f,e,g){d[f]=[e,g]}};var d={toggle:[function(f){var e=this.getConf(),g=this.getTip();e=e.opacity;e<1&&g.css({opacity:e});g.show();f.call()},function(e){this.getTip().hide();e.call()}],fade:[function(f){var e=this.getConf();this.getTip().fadeTo(e.fadeInSpeed,e.opacity,f)
},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};b.fn.tooltip=function(f){var e=this.data("tooltip");if(e){return e}f=b.extend(true,{},b.tools.tooltip.conf,f);if(typeof f.position=="string"){f.position=f.position.split(/,?\s/)}this.each(function(){e=new a(b(this),f);b(this).data("tooltip",e)});return f.api?e:this}})(jQuery);(function(c){var a=c.tools.tooltip;c.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!c.browser.msie});var b={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};a.addEffect("slide",function(h){var e=this.getConf(),i=this.getTip(),d=e.slideFade?{opacity:e.opacity}:{},j=b[e.direction]||b.up;d[j[1]]=j[0]+"="+e.slideOffset;e.slideFade&&i.css({opacity:0});i.show().animate(d,e.slideInSpeed,h)},function(j){var e=this.getConf(),k=e.slideOffset,d=e.slideFade?{opacity:0}:{},l=b[e.direction]||b.up,i=""+l[0];if(e.bounce){i=i=="+"?"-":"+"}d[l[1]]=i+"="+k;this.getTip().animate(d,e.slideOutSpeed,function(){c(this).hide();j.call()})})})(jQuery);(function(d){function b(e){var i=d(window),g=i.width()+i.scrollLeft(),f=i.height()+i.scrollTop();return[e.offset().top<=i.scrollTop(),g<=e.offset().left+e.width(),f<=e.offset().top+e.height(),i.scrollLeft()>=e.offset().left]}function a(e){for(var f=e.length;f--;){if(e[f]){return false}}return true}var c=d.tools.tooltip;c.dynamic={conf:{classNames:"top right bottom left"}};d.fn.dynamic=function(e){if(typeof e=="number"){e={speed:e}}e=d.extend({},c.dynamic.conf,e);var g=e.classNames.split(/\s/),f;this.each(function(){var i=d(this).tooltip().onBeforeShow(function(k,j){k=this.getTip();var h=this.getConf();f||(f=[h.position[0],h.position[1],h.offset[0],h.offset[1],d.extend({},h)]);d.extend(h,f[4]);h.position=[f[0],f[1]];h.offset=[f[2],f[3]];k.css({visibility:"hidden",position:"absolute",top:j.top,left:j.left}).show();j=b(k);if(!a(j)){if(j[2]){d.extend(h,e.top);h.position[0]="top";k.addClass(g[0])}if(j[3]){d.extend(h,e.right);h.position[1]="right";k.addClass(g[1])}if(j[0]){d.extend(h,e.bottom);h.position[0]="bottom";k.addClass(g[2])}if(j[1]){d.extend(h,e.left);h.position[1]="left";k.addClass(g[3])}if(j[0]||j[2]){h.offset[0]*=-1}if(j[1]||j[3]){h.offset[1]*=-1}}k.css({visibility:"visible"}).hide()});i.onBeforeShow(function(){var h=this.getConf();this.getTip();setTimeout(function(){h.position=[f[0],f[1]];h.offset=[f[2],f[3]]},0)});i.onHide(function(){var h=this.getTip();h.removeClass(e.classNames)});ret=i});return e.api?ret:this}})(jQuery);(function(d){function c(g,h){var e=d(h);return e.length<2?e:g.parent().find(h)}function b(v,w){var x=this,i=v.add(x),u=v.children(),p=0,r=w.vertical;a||(a=x);if(u.length>1){u=d(w.items,v)}d.extend(x,{getConf:function(){return w},getIndex:function(){return p},getSize:function(){return x.getItems().size()},getNaviButtons:function(){return h.add(e)},getRoot:function(){return v},getItemWrap:function(){return u},getItems:function(){return u.children(w.item).not("."+w.clonedClass)},move:function(f,g){return x.seekTo(p+f,g)},next:function(f){return x.move(1,f)},prev:function(f){return x.move(-1,f)},begin:function(f){return x.seekTo(0,f)},end:function(f){return x.seekTo(x.getSize()-1,f)},focus:function(){return a=x},addItem:function(f){f=d(f);if(w.circular){u.children("."+w.clonedClass+":last").before(f);u.children("."+w.clonedClass+":first").replaceWith(f.clone().addClass(w.clonedClass))}else{u.append(f)}i.trigger("onAddItem",[f]);return x},seekTo:function(f,m,j){f.jquery||(f*=1);if(w.circular&&f===0&&p==-1&&m!==0){return x}if(!w.circular&&f<0||f>x.getSize()||f<-1){return x}var g=f;if(f.jquery){f=x.getItems().index(f)}else{g=x.getItems().eq(f)}var l=d.Event("onBeforeSeek");if(!j){i.trigger(l,[f,m]);if(l.isDefaultPrevented()||!g.length){return x}}g=r?{top:-g.position().top}:{left:-g.position().left};p=f;a=x;if(m===undefined){m=w.speed}u.animate(g,m,w.easing,j||function(){i.trigger("onSeek",[f])});return x}});d.each(["onBeforeSeek","onSeek","onAddItem"],function(f,g){d.isFunction(w[g])&&d(x).bind(g,w[g]);
x[g]=function(j){j&&d(x).bind(g,j);return x}});if(w.circular){var z=x.getItems().slice(-1).clone().prependTo(u),y=x.getItems().eq(1).clone().appendTo(u);z.add(y).addClass(w.clonedClass);x.onBeforeSeek(function(f,j,g){if(!f.isDefaultPrevented()){if(j==-1){x.seekTo(z,g,function(){x.end(0)});return f.preventDefault()}else{j==x.getSize()&&x.seekTo(y,g,function(){x.begin(0)})}}});x.seekTo(0,0,function(){})}var h=c(v,w.prev).click(function(){x.prev()}),e=c(v,w.next).click(function(){x.next()});if(!w.circular&&x.getSize()>1){x.onBeforeSeek(function(f,g){setTimeout(function(){if(!f.isDefaultPrevented()){h.toggleClass(w.disabledClass,g<=0);e.toggleClass(w.disabledClass,g>=x.getSize()-1)}},1)});w.initialIndex||h.addClass(w.disabledClass)}w.mousewheel&&d.fn.mousewheel&&v.mousewheel(function(f,g){if(w.mousewheel){x.move(g<0?1:-1,w.wheelSpeed||50);return false}});if(w.touch){var k={};u[0].ontouchstart=function(f){f=f.touches[0];k.x=f.clientX;k.y=f.clientY};u[0].ontouchmove=function(f){if(f.touches.length==1&&!u.is(":animated")){var j=f.touches[0],g=k.x-j.clientX;j=k.y-j.clientY;x[r&&j>0||!r&&g>0?"next":"prev"]();f.preventDefault()}}}w.keyboard&&d(document).bind("keydown.scrollable",function(f){if(!(!w.keyboard||f.altKey||f.ctrlKey||d(f.target).is(":input"))){if(!(w.keyboard!="static"&&a!=x)){var g=f.keyCode;if(r&&(g==38||g==40)){x.move(g==38?-1:1);return f.preventDefault()}if(!r&&(g==37||g==39)){x.move(g==37?-1:1);return f.preventDefault()}}}});w.initialIndex&&x.seekTo(w.initialIndex,0,function(){})}d.tools=d.tools||{version:"1.2.5"};d.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,touch:true,wheelSpeed:0}};var a;d.fn.scrollable=function(e){var g=this.data("scrollable");if(g){return g}e=d.extend({},d.tools.scrollable.conf,e);this.each(function(){g=new b(d(this),e);d(this).data("scrollable",g)});return e.api?g:this}})(jQuery);(function(a){var c=a.tools.scrollable;c.autoscroll={conf:{autoplay:true,interval:3000,autopause:true}};a.fn.autoscroll=function(f){if(typeof f=="number"){f={interval:f}}var e=a.extend({},c.autoscroll.conf,f),b;this.each(function(){var d=a(this).data("scrollable");if(d){b=d}var i,g=true;d.play=function(){if(!i){g=false;i=setInterval(function(){d.prev()},e.interval)}};d.pause=function(){i=clearInterval(i)};d.stop=function(){d.pause();g=true};e.autopause&&d.getRoot().add(d.getNaviButtons()).hover(d.pause,d.play);e.autoplay&&d.play()});return e.api?b:this}})(jQuery);(function(c){function b(d,f){var e=c(f);return e.length<2?e:d.parent().find(f)}var a=c.tools.scrollable;a.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};c.fn.navigator=function(d){if(typeof d=="string"){d={navi:d}}d=c.extend({},a.navigator.conf,d);var e;this.each(function(){function t(f,j,h){v.seekTo(j);if(s){if(location.hash){location.hash=f.attr("href").replace("#","")}}else{return h.preventDefault()}}function u(){return r.find(d.naviItem||"> *")}function m(f){var h=c("<"+(d.naviItem||"a")+"/>").click(function(j){t(c(this),f,j)}).attr("href","#"+f);f===0&&h.addClass(p);d.indexed&&h.text(f+1);d.idPrefix&&h.attr("id",d.idPrefix+f);return h.appendTo(r)}function i(f,h){f=u().eq(h.replace("#",""));f.length||(f=u().filter("[href="+h+"]"));f.click()}var v=c(this).data("scrollable"),r=d.navi.jquery?d.navi:b(v.getRoot(),d.navi),g=v.getNaviButtons(),p=d.activeClass,s=d.history&&c.fn.history;if(v){e=v}v.getNaviButtons=function(){return g.add(r)};u().length?u().each(function(f){c(this).click(function(h){t(c(this),f,h)})}):c.each(v.getItems(),function(f){m(f)});v.onBeforeSeek(function(f,h){setTimeout(function(){if(!f.isDefaultPrevented()){var j=u().eq(h);!f.isDefaultPrevented()&&j.length&&u().removeClass(p).eq(h).addClass(p)}},1)});v.onAddItem(function(f,h){h=m(v.getItems().index(h));s&&h.history(i)});s&&u().history(i)});
return d.api?e:this}})(jQuery);(function(b){function c(u,w){var v=this,r=u.add(v),h=b(window),q,t,l,s=b.tools.expose&&(w.mask||w.expose),i=Math.random().toString().slice(10);if(s){if(typeof s=="string"){s={color:s}}s.closeOnClick=s.closeOnEsc=false}var a=w.target||u.attr("rel");t=a?b(a):u;if(!t.length){throw"Could not find Overlay: "+a}u&&u.index(t)==-1&&u.click(function(f){v.load(f);return f.preventDefault()});b.extend(v,{load:function(n){if(v.isOpened()){return v}var k=e[w.effect];if(!k){throw'Overlay: cannot find effect : "'+w.effect+'"'}w.oneInstance&&b.each(d,function(){this.close(n)});n=n||b.Event();n.type="onBeforeLoad";r.trigger(n);if(n.isDefaultPrevented()){return v}l=true;s&&b(t).expose(s);var j=w.top,m=w.left,g=t.outerWidth({margin:true}),f=t.outerHeight({margin:true});if(typeof j=="string"){j=j=="center"?Math.max((h.height()-f)/2,0):parseInt(j,10)/100*h.height()}if(m=="center"){m=Math.max((h.width()-g)/2,0)}k[0].call(v,{top:j,left:m},function(){if(l){n.type="onLoad";r.trigger(n)}});s&&w.closeOnClick&&b.mask.getMask().one("click",v.close);w.closeOnClick&&b(document).bind("click."+i,function(o){b(o.target).parents(t).length||v.close(o)});w.closeOnEsc&&b(document).bind("keydown."+i,function(o){o.keyCode==27&&v.close(o)});return v},close:function(f){if(!v.isOpened()){return v}f=f||b.Event();f.type="onBeforeClose";r.trigger(f);if(!f.isDefaultPrevented()){l=false;e[w.effect][1].call(v,function(){f.type="onClose";r.trigger(f)});b(document).unbind("click."+i).unbind("keydown."+i);s&&b.mask.close();return v}},getOverlay:function(){return t},getTrigger:function(){return u},getClosers:function(){return q},isOpened:function(){return l},getConf:function(){return w}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(g,f){b.isFunction(w[f])&&b(v).bind(f,w[f]);v[f]=function(j){j&&b(v).bind(f,j);return v}});q=t.find(w.close||".close");if(!q.length&&!w.close){q=b('<a class="close"></a>');t.prepend(q)}q.click(function(f){v.close(f)});w.load&&v.load()}b.tools=b.tools||{version:"1.2.5"};b.tools.overlay={addEffect:function(f,a,g){e[f]=[a,g]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!b.browser.msie||b.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var d=[],e={};b.tools.overlay.addEffect("default",function(g,a){var h=this.getConf(),f=b(window);if(!h.fixed){g.top+=f.scrollTop();g.left+=f.scrollLeft()}g.position=h.fixed?"fixed":"absolute";this.getOverlay().css(g).fadeIn(h.speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});b.fn.overlay=function(f){var a=this.data("overlay");if(a){return a}if(b.isFunction(f)){f={onBeforeLoad:f}}f=b.extend(true,{},b.tools.overlay.conf,f);this.each(function(){a=new c(b(this),f);d.push(a);b(this).data("overlay",a)});return f.api?a:this}})(jQuery);(function(c){function b(h){var f=h.offset();return{top:f.top+h.height()/2,left:f.left+h.width()/2}}var a=c.tools.overlay,e=c(window);c.extend(a.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function g(s,r){var v=this.getOverlay(),t=this.getConf(),q=this.getTrigger(),f=this,k=v.outerWidth({margin:true}),u=v.data("img"),h=t.fixed?"fixed":"absolute";if(!u){u=v.css("backgroundImage");if(!u){throw"background-image CSS property not set for overlay"}u=u.slice(u.indexOf("(")+1,u.indexOf(")")).replace(/\"/g,"");v.css("backgroundImage","none");u=c('<img src="'+u+'"/>');u.css({border:0,display:"none"}).width(k);c("body").append(u);v.data("img",u)}var o=t.start.top||Math.round(e.height()/2),l=t.start.left||Math.round(e.width()/2);if(q){q=b(q);o=q.top;l=q.left}if(t.fixed){o-=e.scrollTop();l-=e.scrollLeft()}else{s.top+=e.scrollTop();s.left+=e.scrollLeft()}u.css({position:"absolute",top:o,left:l,width:0,zIndex:t.zIndex}).show();s.position=h;v.css(s);u.animate({top:v.css("top"),left:v.css("left"),width:k},t.speed,function(){v.css("zIndex",t.zIndex+1).fadeIn(t.fadeInSpeed,function(){f.isOpened()&&!c(this).index(v)?r.call():v.hide()
})}).css("position",h)}function d(j){var i=this.getOverlay().hide(),f=this.getConf(),k=this.getTrigger();i=i.data("img");var h={top:f.start.top,left:f.start.left,width:0};k&&c.extend(h,b(k));f.fixed&&i.css({position:"absolute"}).animate({top:"+="+e.scrollTop(),left:"+="+e.scrollLeft()},0);i.animate(h,f.closeSpeed,j)}a.addEffect("apple",g,d)})(jQuery);(function(){function s(f,e){if(e){for(var g in e){if(e.hasOwnProperty(g)){f[g]=e[g]}}}return f}function d(f,e){var i=[];for(var g in f){if(f.hasOwnProperty(g)){i[g]=e(f[g])}}return i}function c(f,e,i){if(t.isSupported(e.version)){f.innerHTML=t.getHTML(e,i)}else{if(e.expressInstall&&t.isSupported([6,65])){f.innerHTML=t.getHTML(s(e,{src:e.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+e.version+" or greater is required</h2><h3>"+(r[0]>0?"Your version is "+r:"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='"+h+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=h}}}if(e.onFail){var g=e.onFail.call(this);if(typeof g=="string"){f.innerHTML=g}}}}if(q){window[e.id]=document.getElementById(e.id)}s(this,{getRoot:function(){return f},getOptions:function(){return e},getConf:function(){return i},getApi:function(){return f.firstChild}})}var q=document.all,h="http://www.adobe.com/go/getflashplayer",b=typeof jQuery=="function",a=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,p={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(f,e,g){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(f){if(typeof e=="string"){e={src:e}}return new c(f,s(s({},p),e),g)}};var t=s(window.flashembed,{conf:p,getVersion:function(){var f,e;try{e=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(j){try{e=(f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&f.GetVariable("$version")}catch(i){try{e=(f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&f.GetVariable("$version")}catch(g){}}}return(e=a.exec(e))?[e[1],e[3]]:[0,0]},asString:function(f){if(f===null||f===undefined){return null}var e=typeof f;if(e=="object"&&f.push){e="array"}switch(e){case"string":f=f.replace(new RegExp('(["\\\\])',"g"),"\\$1");f=f.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+f+'"';case"array":return"["+d(f,function(i){return t.asString(i)}).join(",")+"]";case"function":return'"function()"';case"object":e=[];for(var g in f){f.hasOwnProperty(g)&&e.push('"'+g+'":'+t.asString(f[g]))}return"{"+e.join(",")+"}"}return String(f).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(f,e){f=s({},f);var j='<object width="'+f.width+'" height="'+f.height+'" id="'+f.id+'" name="'+f.id+'"';if(f.cachebusting){f.src+=(f.src.indexOf("?")!=-1?"&":"?")+Math.random()}j+=f.w3c||!q?' data="'+f.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';j+=">";if(f.w3c||q){j+='<param name="movie" value="'+f.src+'" />'}f.width=f.height=f.id=f.w3c=f.src=null;f.onFail=f.version=f.expressInstall=null;for(var i in f){if(f[i]){j+='<param name="'+i+'" value="'+f[i]+'" />'}}f="";if(e){for(var g in e){if(e[g]){i=e[g];f+=g+"="+(/function|object/.test(typeof i)?t.asString(i):i)+"&"}}f=f.slice(0,-1);j+='<param name="flashvars" value=\''+f+"' />"}j+="</object>";return j},isSupported:function(e){return r[0]>e[0]||r[0]==e[0]&&r[1]>=e[1]}}),r=t.getVersion();if(b){jQuery.tools=jQuery.tools||{version:"1.2.5"};jQuery.tools.flashembed={conf:p};jQuery.fn.flashembed=function(f,e){return this.each(function(){$(this).data("flashembed",flashembed(this,f,e))})}}})();(function(a){function e(d){if(d){var b=l.contentWindow.document;
b.open().close();b.location.hash=d}}var j,l,k,c;a.tools=a.tools||{version:"1.2.5"};a.tools.history={init:function(b){if(!c){if(a.browser.msie&&a.browser.version<"8"){if(!l){l=a("<iframe/>").attr("src","javascript:false;").hide().get(0);a("body").append(l);setInterval(function(){var d=l.contentWindow.document;d=d.location.hash;j!==d&&a.event.trigger("hash",d)},100);e(location.hash||"#")}}else{setInterval(function(){var d=location.hash;d!==j&&a.event.trigger("hash",d)},100)}k=!k?b:k.add(b);b.click(function(d){var f=a(this).attr("href");l&&e(f);if(f.slice(0,1)!="#"){location.href="#"+f;return d.preventDefault()}});c=true}}};a(window).bind("hash",function(d,b){b?k.filter(function(){var f=a(this).attr("href");return f==b||f==b.replace("#","")}).trigger("history",[b]):k.eq(0).trigger("history",[b]);j=b});a.fn.history=function(b){a.tools.history.init(this);return this.bind("history",b)}})(jQuery);(function(r){function d(){if(r.browser.msie){var b=r(document).height(),c=r(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b-c<20?c:b]}return[r(document).width(),r(document).height()]}function n(b){if(b){return b.call(r.mask)}}r.tools=r.tools||{version:"1.2.5"};var a;a=r.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};var q,m,p,o,f;r.mask={load:function(c,e){if(p){return this}if(typeof c=="string"){c={color:c}}c=c||o;o=c=r.extend(r.extend({},a.conf),c);q=r("#"+c.maskId);if(!q.length){q=r("<div/>").attr("id",c.maskId);r("body").append(q)}var b=d();q.css({position:"absolute",top:0,left:0,width:b[0],height:b[1],display:"none",opacity:c.startOpacity,zIndex:c.zIndex});c.color&&q.css("backgroundColor",c.color);if(n(c.onBeforeLoad)===false){return this}c.closeOnEsc&&r(document).bind("keydown.mask",function(g){g.keyCode==27&&r.mask.close(g)});c.closeOnClick&&q.bind("click.mask",function(g){r.mask.close(g)});r(window).bind("resize.mask",function(){r.mask.fit()});if(e&&e.length){f=e.eq(0).css("zIndex");r.each(e,function(){var g=r(this);/relative|absolute|fixed/i.test(g.css("position"))||g.css("position","relative")});m=e.css({zIndex:Math.max(c.zIndex+1,f=="auto"?0:f)})}q.css({display:"block"}).fadeTo(c.loadSpeed,c.opacity,function(){r.mask.fit();n(c.onLoad);p="full"});p=true;return this},close:function(){if(p){if(n(o.onBeforeClose)===false){return this}q.fadeOut(o.closeSpeed,function(){n(o.onClose);m&&m.css({zIndex:f});p=false});r(document).unbind("keydown.mask");q.unbind("click.mask");r(window).unbind("resize.mask")}return this},fit:function(){if(p){var b=d();q.css({width:b[0],height:b[1]})}},getMask:function(){return q},isLoaded:function(b){return b?p=="full":p},getConf:function(){return o},getExposed:function(){return m}};r.fn.mask=function(b){r.mask.load(b);return this};r.fn.expose=function(b){r.mask.load(b,this);return this}})(jQuery);(function(a){function f(b){switch(b.type){case"mousemove":return a.extend(b.data,{clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY});case"DOMMouseScroll":a.extend(b,b.data);b.delta=-b.detail/3;break;case"mousewheel":b.delta=b.wheelDelta/120;break}b.type="wheel";return a.event.handle.call(this,b,b.delta)}a.fn.mousewheel=function(b){return this[b?"bind":"trigger"]("wheel",b)};a.event.special.wheel={setup:function(){a.event.add(this,e,f,{})},teardown:function(){a.event.remove(this,e,f)}};var e=!a.browser.mozilla?"mousewheel":"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":"")})(jQuery);$("p, ul.navigation, .follow h4, #main_copy .left_column div.box ul, #main_copy .left_column div.box p, #main_copy .right_column div.content div.bar h3, #main_copy .right_column div.content h2").css({"text-shadow":"2px 2px 2px #000"});$(".footer a.validxhtml, .footer a.validcss, #main_copy .left_column div.box h3").css({"text-shadow":"1px 1px 1px #000"});$("#main_copy .left_column").css({"text-shadow":"1px 1px 1px #3d3d3d"});$("ul.slideshow").bannerAds({speed:1000,timeout:5000,type:"random",containerheight:"125px"});
