/*  * jQuery mapHighlight 1.2.2  * http://plugins.jquery.com/project/maphilight  */
(function(f){var b,c,j,m,l,i,g,e,h,a,k;b=document.namespaces;has_canvas=!!document.createElement("canvas").getContext;if(!(has_canvas||b)){f.fn.maphilight=function(){return this};return}if(has_canvas){g=function(p,o,n){if(o<=1){p.style.opacity=o;window.setTimeout(g,10,p,o+0.1,10)}};e=function(n){return Math.max(0,Math.min(parseInt(n,16),255))};h=function(n,o){return"rgba("+e(n.substr(0,2))+","+e(n.substr(2,2))+","+e(n.substr(4,2))+","+o+")"};c=function(n){var o=f('<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};j=function(q,n,t,p,o){var s,r=q.getContext("2d");r.beginPath();if(n=="rect"){r.rect(t[0],t[1],t[2]-t[0],t[3]-t[1])}else{if(n=="poly"){r.moveTo(t[0],t[1]);for(s=2;s<t.length;s+=2){r.lineTo(t[s],t[s+1])}}else{if(n=="circ"){r.arc(t[0],t[1],t[2],0,Math.PI*2,false)}}}r.closePath();if(p.fill){r.fillStyle=h(p.fillColor,p.fillOpacity);r.fill()}if(p.stroke){r.strokeStyle=h(p.strokeColor,p.strokeOpacity);r.lineWidth=p.strokeWidth;r.stroke()}if(p.fade){g(q,0)}};m=function(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}}else{c=function(n){return f('<var style="zoom:1;overflow:hidden;display:block;width:'+n.width+"px;height:"+n.height+'px;"></var>').get(0)};j=function(o,r,s,v,n){var t,u,p,q;t='<v:fill color="#'+v.fillColor+'" opacity="'+(v.fill?v.fillOpacity:0)+'" />';u=(v.stroke?'strokeweight="'+v.strokeWidth+'" stroked="t" strokecolor="#'+v.strokeColor+'"':'stroked="f"');p='<v:stroke opacity="'+v.strokeOpacity+'"/>';if(r=="rect"){q=f('<v:rect name="'+n+'" filled="t" '+u+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+s[0]+"px;top:"+s[1]+"px;width:"+(s[2]-s[0])+"px;height:"+(s[3]-s[1])+'px;"></v:rect>')}else{if(r=="poly"){q=f('<v:shape name="'+n+'" filled="t" '+u+' coordorigin="0,0" coordsize="'+o.width+","+o.height+'" path="m '+s[0]+","+s[1]+" l "+s.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+o.width+"px;height:"+o.height+'px;"></v:shape>')}else{if(r=="circ"){q=f('<v:oval name="'+n+'" filled="t" '+u+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(s[0]-s[2])+"px;top:"+(s[1]-s[2])+"px;width:"+(s[2]*2)+"px;height:"+(s[2]*2)+'px;"></v:oval>')}}}q.get(0).innerHTML=t+p;f(o).append(q)};m=function(n){f(n).find("[name=highlighted]").remove()}}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]};k=function(p,o){var n=f(p);return f.extend({},o,f.metadata?n.metadata():false,n.data("maphilight"))};a=function(n){if(!n.complete){return false}if(typeof n.naturalWidth!="undefined"&&n.naturalWidth==0){return false}return true};i={position:"absolute",left:0,top:0,padding:0,border:0};var d=false;f.fn.maphilight=function(p){p=f.extend({},f.fn.maphilight.defaults,p);if(f.browser.msie&&!d){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var o=document.createStyleSheet();var n=["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"];f.each(n,function(){o.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")});d=true}return this.each(function(){var v,s,z,r,u,w,y,t,x;v=f(this);if(!a(this)){return window.setTimeout(function(){v.maphilight(p)},200)}z=f.extend({},p,f.metadata?v.metadata():false,v.data("maphilight"));x=v.get(0).getAttribute("usemap");r=f('map[name="'+x.substr(1)+'"]');if(!(v.is("img")&&x&&r.size()>0)){return}if(v.hasClass("maphilighted")){var q=v.parent();v.insertBefore(q);q.remove();f(r).unbind(".maphilight").find("area[coords]").unbind(".maphilight")}s=f("<div></div>").css({display:"block",background:"url("+this.src+")",position:"relative",padding:0,width:this.width,height:this.height});if(z.wrapClass){if(z.wrapClass===true){s.addClass(f(this).attr("class"))}else{s.addClass(z.wrapClass)}}v.before(s).css("opacity",0).css(i).remove();if(f.browser.msie){v.css("filter","Alpha(opacity=0)")}s.append(v);u=c(this);f(u).css(i);u.height=this.height;u.width=this.width;y=function(C){var A,B;B=k(this,z);if(!B.neverOn&&!B.alwaysOn){A=l(this);j(u,A[0],A[1],B,"highlighted");if(B.groupBy&&f(this).attr(B.groupBy)){var D=this;r.find("area["+B.groupBy+"="+f(this).attr(B.groupBy)+"]").each(function(){if(this!=D){var F=k(this,z);if(!F.neverOn&&!F.alwaysOn){var E=l(this);j(u,E[0],E[1],F,"highlighted")}}})}}};f(r).bind("alwaysOn.maphilight",function(){if(w){m(w)}if(!has_canvas){f(u).empty()}f(r).find("area[coords]").each(function(){var A,B;B=k(this,z);if(B.alwaysOn){if(!w&&has_canvas){w=c(v.get());f(w).css(i);w.width=v.width();w.height=v.height();v.before(w)}A=l(this);if(has_canvas){j(w,A[0],A[1],B,"")}else{j(u,A[0],A[1],B,"")}}})});if(z.alwaysOn){f(r).find("area[coords]").each(y)}else{f(r).find("area[coords]").trigger("alwaysOn.maphilight").bind("mouseover.maphilight",y).bind("mouseout.maphilight",function(A){m(u)})}v.before(u);v.addClass("maphilighted")})};f.fn.maphilight.defaults={fill:true,fillColor:"4A7FB4",fillOpacity:0.4,stroke:true,strokeColor:"3F3F3F",strokeOpacity:0.5,strokeWidth:3,fade:false,alwaysOn:false,neverOn:false,groupBy:false,wrapClass:true}})(jQuery);
/*  * jQuery contextMenu 1.0  * http://abeautifulsite.net/  */
(function (a) {
    a.extend(a.fn, {
        contextMenu: function (b, c) {
            if (b.menu == undefined) {
                return false
            }
            if (b.inSpeed == undefined) {
                b.inSpeed = 150
            }
            if (b.outSpeed == undefined) {
                b.outSpeed = 75
            }
            if (b.leftButton == undefined) {
                b.leftButton = false
            }
            if (b.inSpeed == 0) {
                b.inSpeed = -1
            }
            if (b.outSpeed == 0) {
                b.outSpeed = -1
            }
            a(this).each(function () {
                var d = a(this);
                var e = a(d).offset();
                a("#" + b.menu).addClass("contextMenu");
                a(this).mousedown(function (g) {
                    var f = g;
                    a(this).mouseup(function (l) {
                        var i = a(this);
                        a(this).unbind("mouseup");
                        if (f.button == 2 || b.leftButton == true) {
                            a(".contextMenu").hide();
                            var n = a("#" + b.menu);
                            if (a(d).hasClass("disabled")) {
                                return false
                            }
                            var m = {},
                                h, o;
                            if (self.innerHeight) {
                                m.pageYOffset = self.pageYOffset;
                                m.pageXOffset = self.pageXOffset;
                                m.innerHeight = self.innerHeight;
                                m.innerWidth = self.innerWidth
                            } else {
                                if (document.documentElement && document.documentElement.clientHeight) {
                                    m.pageYOffset = document.documentElement.scrollTop;
                                    m.pageXOffset = document.documentElement.scrollLeft;
                                    m.innerHeight = document.documentElement.clientHeight;
                                    m.innerWidth = document.documentElement.clientWidth
                                } else {
                                    if (document.body) {
                                        m.pageYOffset = document.body.scrollTop;
                                        m.pageXOffset = document.body.scrollLeft;
                                        m.innerHeight = document.body.clientHeight;
                                        m.innerWidth = document.body.clientWidth
                                    }
                                }
                            }
                            var j = a(n).find("li").length;
                            (l.pageX) ? h = l.pageX : h = l.clientX + m.scrollLeft;
                            (l.pageY) ? o = l.pageY - (32 * (j / 2)) : h = l.clientY + m.scrollTop;
                            a(document).unbind("click");
                            var k;
                            if (a(n).find("li").attr("class") == "none") {
                                k = 170
                            }
                            a(n).css({
                                top: o,
                                left: h,
                                width: k
                            }).fadeIn(b.inSpeed);
                            a(n).find("A").mouseover(function () {
                                a(n).find("LI.hover").removeClass("hover");
                                a(this).parent().addClass("hover")
                            }).mouseout(function () {
                                a(n).find("LI.hover").removeClass("hover")
                            });
                            a(document).keypress(function (p) {
                                switch (p.keyCode) {
                                case 38:
                                    if (a(n).find("LI.hover").size() == 0) {
                                        a(n).find("LI:last").addClass("hover")
                                    } else {
                                        a(n).find("LI.hover").removeClass("hover").prevAll("LI:not(.disabled)").eq(0).addClass("hover");
                                        if (a(n).find("LI.hover").size() == 0) {
                                            a(n).find("LI:last").addClass("hover")
                                        }
                                    }
                                    break;
                                case 40:
                                    if (a(n).find("LI.hover").size() == 0) {
                                        a(n).find("LI:first").addClass("hover")
                                    } else {
                                        a(n).find("LI.hover").removeClass("hover").nextAll("LI:not(.disabled)").eq(0).addClass("hover");
                                        if (a(n).find("LI.hover").size() == 0) {
                                            a(n).find("LI:first").addClass("hover")
                                        }
                                    }
                                    break;
                                case 27:
                                    a(document).trigger("click");
                                    break
                                }
                            });
                            a("#" + b.menu).find("A").unbind("click");
                            a("#" + b.menu).find("LI:not(.disabled) A").click(function () {
                                a(document).unbind("click").unbind("keypress");
                                a(".contextMenu").hide();
                                if (c) {
                                    c(a(this).attr("href").substr(1), a(i), {
                                        x: h - e.left,
                                        y: o - e.top,
                                        docX: h,
                                        docY: o
                                    })
                                }
                                return false
                            });
                            setTimeout(function () {
                                a(document).click(function () {
                                    a(document).unbind("click").unbind("keypress");
                                    a(n).fadeOut(b.outSpeed);
                                    return false
                                })
                            }, 0)
                        }
                    })
                });
                if (a.browser.mozilla) {
                    a("#" + b.menu).each(function () {
                        a(this).css({
                            MozUserSelect: "none"
                        })
                    })
                } else {
                    if (a.browser.msie) {
                        a("#" + b.menu).each(function () {
                            a(this).bind("selectstart.disableTextSelect", function () {
                                return false
                            })
                        })
                    } else {
                        a("#" + b.menu).each(function () {
                            a(this).bind("mousedown.disableTextSelect", function () {
                                return false
                            })
                        })
                    }
                }
                a(d).add("UL.contextMenu").bind("contextmenu", function () {
                    return false
                })
            });
            return a(this)
        },
        disableContextMenuItems: function (b) {
            if (b == undefined) {
                a(this).find("LI").addClass("disabled");
                return (a(this))
            }
            a(this).each(function () {
                if (b != undefined) {
                    var e = b.split(",");
                    for (var c = 0; c < e.length; c++) {
                        a(this).find('A[href="' + e[c] + '"]').parent().addClass("disabled")
                    }
                }
            });
            return (a(this))
        },
        enableContextMenuItems: function (b) {
            if (b == undefined) {
                a(this).find("LI.disabled").removeClass("disabled");
                return (a(this))
            }
            a(this).each(function () {
                if (b != undefined) {
                    var e = b.split(",");
                    for (var c = 0; c < e.length; c++) {
                        a(this).find('A[href="' + e[c] + '"]').parent().removeClass("disabled")
                    }
                }
            });
            return (a(this))
        },
        disableContextMenu: function () {
            a(this).each(function () {
                a(this).addClass("disabled")
            });
            return (a(this))
        },
        enableContextMenu: function () {
            a(this).each(function () {
                a(this).removeClass("disabled")
            });
            return (a(this))
        },
        destroyContextMenu: function () {
            a(this).each(function () {
                a(this).unbind("mousedown").unbind("mouseup")
            });
            return (a(this))
        }
    })
})(jQuery);
