function iframeclick(){document.getElementById("menu4iframe").contentWindow.document.body.onclick=function(){$("#ehtooltip").fadeOut();};}(function(c){var b="<div id='ehtooltip' class='toolTip'>"+"<!--[if IE 6]><iframe onload='iframeclick()' id='menu4iframe' src='javascript:false;' marginwidth='0' marginheight='0' align='bottom' scrolling='no' frameborder='0' style='position:absolute; left:0; top:0px; display:block; filter:alpha(opacity=0);' ></iframe><![endif]-->"+"<div class='toolTipData toolTipTop tipPropertyHeight'></div><div class='toolTipArea'><table class='top'><tr><td><img src='/Images/ToolTip/topTooltipLeft.gif'></td><td class='center'></td><td><img src='/Images/ToolTip/topTooltipRight.gif'></td></tr></table><div class='title contentStyle TextMinusThreeBold' ></div><div class='ehTipContent contentStyle TextMinusThree'></div><table><tr><td><img src='/Images/ToolTip/bottomTooltipLeft.gif'></td><td class='centerBot'></td><td><img src='/Images/ToolTip/bottomTooltipRight.gif'></td></tr></table></div><div class='toolTipData toolTipBottom tipPropertyHeight'></div></div>";var a="<br/><div class='ButtonSquare29 TextMinusTwoBold ButtonBlueSquare29'><a><div class='buttonLeft'></div><div class='buttonCenter'>Close</div><div class='buttonRight'></div></a></div>";c(document).ready(function(){c("body").append(b);c(".ButtonSquare29").live("click",function(){c("#ehtooltip").fadeOut();});});if(typeof window.resize==="function"){window.resize(function(d){c(".toolTip").hide();});}c.fn.ehTip=function(l){var g={target:"#ehtooltip",title:".help-popup-title",description:".help-popup-body",mouseover:false,centerTip:false,padding:5,theme:"/Images/ToolTip",imageType:".gif",minWidth:"300px",speed:400,bounce:false,slide:false};l=c.extend(g,l);var i=c(this);var k=c(l.target);var o="toolTipBottom";var p=1;k.each(function(r){if(l.mouseover){i.mousemove(function(s){k.css("width",l.minWidth);d(s);d(s);n();k.fadeIn(l.speed);m();}).mouseout(function(){k.hide();});}else{i.click(function(t){k.css("width",l.minWidth);if(c(".toolTip").show()){c(".toolTip").hide();}d(t);d(t);n();var s=k.css("margin-top");if(l.slide){k.slideDown(l.speed);}else{k.fadeIn(l.speed);}if(l.bounce){k.animate({marginTop:"-15px"},60).animate({marginTop:"0px"},60).animate({marginTop:"-5px"},60).animate({marginTop:"0px"},60).animate({marginTop:"-10px"},60).animate({marginTop:s},60);}m();});}});function m(){if(c(".long",k).css("width")>l.minWidth){k.css("width",(parseInt(c(".long").css("width"),10)+22)+"px");c(".ehTipContent").css("width",c(".long").css("width"));}else{k.css("width",l.minWidth);c(".ehTipContent").css("width",parseInt(l.minWidth,10)-22);}}function d(r){f();if(l.centerTip){k.css({left:e(r.pageX),top:q(r.pageY)});}else{k.css({left:h(r.pageX),top:q(r.pageY)});}}function e(r){p=2;return h(r)-k.width()/2;}function j(r){p=2;return q(r)-k.height()/2;}function q(r){if(k.css("top")==="auto"||parseInt(k.css("top"),10)-k.height()>=document.documentElement.scrollTop){k.css("margin-top",-l.padding);o="toolTipBottom";return r-k.height();}else{o="toolTipTop";k.css("margin-top",l.padding);return r;}}function h(r){if(c(window).width()<=parseInt(k.css("left"),10)+parseInt(k.width(),10)){p=3;return r-k.width()+12;}else{return r-12;}}function n(){c(".toolTipTop",k).css("background-image","none");c(".toolTipBottom",k).css("background-image","none");switch(p){case 1:p="4% 0%";break;case 2:p="50% 0%";break;case 3:p="96% 0%";break;}c("."+o,k).css("background-image","url("+l.theme+"/"+o+l.imageType+")");c("."+o,k).css("background-position",p);}function f(){k.find(".title").html(l.title);k.find(".ehTipContent").html(l.description+a);}};})(jQuery);