$(document).ready(function(){if($.browser.msie&&$.browser.version<=6){return
}$("#content .pf-help").addClass("hidden");
$("#page, #content").css("overflow","visible");
$("#content .help-button").click(function(){var f=$(this);
var a=$(window).height();
var h=(($(this).position().top)+10);
var c=(($(this).position().left)+10);
var i=(($(this).offset().top)-($(window).scrollTop()));
$("#help-popup").remove();
$(f.attr("href")).clone().removeAttr("id").insertAfter(f).prepend('<span id="help-close">x</span>').wrap('<div id="help-popup"><div id="sb"></div></div>').parent().append('<!--[if lte IE 6.5]><iframe src="javascript:false;"></iframe><![endif]-->').find("#help-popup strong:first").remove();
var d=true;
if(window.dontPositionHelpPanels!=undefined){if(dontPositionHelpPanels){d=false
}}if(d){var b=$("#content").width();
var e=$("#help-popup").height();
var g=$("#help-popup").width();
if((i+e)>a){h=(h-(e+20))
}if(c>(b-g)){c=(c-(g+10))
}}$("#help-popup").css({left:c,top:h,visibility:"visible"});
$("#help-popup #help-close").click(function(){$(this).parent().parent().parent().remove();
$("body").unbind("click");
return false
});
$("body").click(function(){$("#help-popup").remove();
$("body").unbind("click");
return false
});
return false
})
});
