(function(g){var b,d,k,m,l,j,h,f,i,a;b=document.namespaces;has_canvas=document.createElement("canvas");has_canvas=has_canvas&&has_canvas.getContext;if(!(has_canvas||b)){g.fn.maphilight=function(){return this};return}if(has_canvas){h=function(p,o,n){if(o<=1){p.style.opacity=o;window.setTimeout(h,10,p,o+0.1,10)}};f=function(n){return Math.max(0,Math.min(parseInt(n,16),255))};i=function(n,o){return"rgba("+f(n.substr(0,2))+","+f(n.substr(2,2))+","+f(n.substr(4,2))+","+o+")"};d=function(n){var o=g('<canvas style="width:'+n.width+"px;height:"+n.height+'px;"></canvas>').get(0);o.getContext("2d").clearRect(0,0,o.width,o.height);return o};k=function(p,n,s,o){var r,q=p.getContext("2d");q.beginPath();if(n=="rect"){q.rect(s[0],s[1],s[2]-s[0],s[3]-s[1])}else{if(n=="poly"){q.moveTo(s[0],s[1]);for(r=2;r<s.length;r+=2){q.lineTo(s[r],s[r+1])}}else{if(n=="circ"){q.arc(s[0],s[1],s[2],0,Math.PI*2,false)}}}q.closePath();if(o.fill){q.fillStyle=i(o.fillColor,o.fillOpacity);q.fill()}if(o.stroke){q.strokeStyle=i(o.strokeColor,o.strokeOpacity);q.lineWidth=o.strokeWidth;q.stroke()}if(o.fade){h(p,0)}};m=function(n,o){n.getContext("2d").clearRect(0,0,n.width,n.height)}}else{document.namespaces.add("v","urn:schemas-microsoft-com:vml");var c=document.createStyleSheet();var e=["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"];g.each(e,function(){c.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")});d=function(n){return g('<var style="zoom:1;overflow:hidden;display:block;width:'+n.width+"px;height:"+n.height+'px;"></var>').get(0)};k=function(q,n,r,p){var u,t,o,s;u='<v:fill color="#'+p.fillColor+'" opacity="'+(p.fill?p.fillOpacity:0)+'" />';t=(p.stroke?'strokeweight="'+p.strokeWidth+'" stroked="t" strokecolor="#'+p.strokeColor+'"':'stroked="f"');o='<v:stroke opacity="'+p.strokeOpacity+'"/>';if(n=="rect"){s=g('<v:rect filled="t" '+t+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+r[0]+"px;top:"+r[1]+"px;width:"+(r[2]-r[0])+"px;height:"+(r[3]-r[1])+'px;"></v:rect>')}else{if(n=="poly"){s=g('<v:shape filled="t" '+t+' coordorigin="0,0" coordsize="'+q.width+","+q.height+'" path="m '+r[0]+","+r[1]+" l "+r.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+q.width+"px;height:"+q.height+'px;"></v:shape>')}else{if(n=="circ"){s=g('<v:oval filled="t" '+t+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(r[0]-r[2])+"px;top:"+(r[1]-r[2])+"px;width:"+(r[2]*2)+"px;height:"+(r[2]*2)+'px;"></v:oval>')}}}s.get(0).innerHTML=u+o;g(q).append(s)};m=function(n){g(n).empty()}}l=function(o){var n,p=o.getAttribute("coords").split(",");for(n=0;n<p.length;n++){p[n]=parseFloat(p[n])}return[o.getAttribute("shape").toLowerCase().substr(0,4),p]};a=function(n){if(!n.complete){return false}if(typeof n.naturalWidth!="undefined"&&n.naturalWidth==0){return false}return true};j={position:"absolute",left:0,top:0,padding:0,border:0};g.fn.maphilight=function(n){n=g.extend({},g.fn.maphilight.defaults,n);return this.each(function(){var p,s,r,t,q,o;p=g(this);if(!a(this)){return window.setTimeout(function(){p.maphilight()},200)}r=g.metadata?g.extend({},n,p.metadata()):n;t=g('map[name="'+p.attr("usemap").substr(1)+'"]');if(!(p.is("img")&&p.attr("usemap")&&t.size()>0&&!p.hasClass("maphilighted"))){return}s=g("<div>").css({display:"block",background:"url("+this.src+")",position:"relative",padding:0,width:this.width,height:this.height});p.before(s).css("opacity",0).css(j).remove();if(g.browser.msie){p.css("filter","Alpha(opacity=0)")}s.append(p);q=d(this);g(q).css(j);q.height=this.height;q.width=this.width;o=function(v){var u=l(this);k(q,u[0],u[1],g.metadata?g.extend({},r,g(this).metadata()):r)};if(r.alwaysOn){g(t).find("area[coords]").each(o)}else{g(t).find("area[coords]").mouseover(o).mouseout(function(u){m(q)})}p.before(q);p.addClass("maphilighted")})};g.fn.maphilight.defaults={fill:true,fillColor:"000000",fillOpacity:0.2,stroke:true,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:true,alwaysOn:false}})(jQuery);(function(e){var b={},k,m,o,j=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);h(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(l).mouseout(f).click(f)},fixPNG:j?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:j?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(p){if(b.parent){return}b.parent=e('<div id="'+p.id+'"><h4></h4><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h4",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(p){return e.data(p,"tooltip")}function g(p){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(p)}function l(){if(e.tooltip.blocked||this==k||(!this.tooltipText&&!c(this).bodyHandler)){return}k=this;m=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var s=c(this).bodyHandler.call(this);if(s.nodeType||s.jquery){b.body.empty().append(s)}else{b.body.html(s)}b.body.show()}else{if(c(this).showBody){var r=m.split(c(this).showBody);b.title.html(r.shift()).show();b.body.empty();for(var q=0,p;(p=r[q]);q++){if(q>0){b.body.append("<br/>")}b.body.append(p)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function n(){o=null;if((!j||!e.fn.bgiframe)&&c(k).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(k).fade,k.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(k).fade,k.tOpacity):b.parent.fadeIn(c(k).fade)}}else{b.parent.show()}d()}function d(s){if(e.tooltip.blocked){return}if(s&&s.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(k==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var u=b.parent[0].offsetLeft;var t=b.parent[0].offsetTop;if(s){u=s.pageX+c(k).left;t=s.pageY+c(k).top;var q="auto";if(c(k).positionLeft){q=e(window).width()-u;u="auto"}b.parent.css({left:u,right:q,top:t})}var p=i(),r=b.parent[0];if(p.x+p.cx<r.offsetLeft+r.offsetWidth){u-=r.offsetWidth+20+c(k).left;b.parent.css({left:u+"px"}).addClass("viewport-right")}if(p.y+p.cy<r.offsetTop+r.offsetHeight){t-=r.offsetHeight+20+c(k).top;b.parent.css({top:t+"px"}).addClass("viewport-bottom")}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width()-20,cy:e(window).height()-20}}function f(r){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}k=null;var q=c(this);function p(){b.parent.removeClass(q.extraClass).hide().css("opacity","")}if((!j||!e.fn.bgiframe)&&q.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(q.fade,0,p)}else{b.parent.stop().fadeOut(q.fade,p)}}else{p()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);


