var LastShownHelpDiv=null;
function ShowHelp(_1,_2,_3){
var _4=null;
if(typeof (_3)!="undefined"){
_4=_3;
}else{
_4=getElementPosition(_2);
}
var _5=document.getElementById(_1);
if(_5==null){
return false;
}
var _6=_5.parentNode;
if(LastShownHelpDiv==_5){
HideHelp();
return false;
}
if(LastShownHelpDiv!=null){
HideHelp();
}
LastShownHelpDiv=_5;
if(typeof (_5.Initialized)=="undefined"){
InitializeHelpDiv(_5);
_5.Initialized=true;
}
var _7=getElementSize(_6);
var _8=_4[0]+_7[0];
if(_8>790){
_4[0]=780-_7[0];
}
_6.style.top=_4[1]+"px";
_6.style.left=_4[0]+"px";
Effect.SlideDown(_1,{duration:0.2});
if(typeof document.uniqueID!="undefined"){
window.setTimeout(CreateIFrame,200);
}
return false;
}
function InitializeHelpDiv(_9){
_9.onclick=HideHelp;
var _a=document.createElement("img");
_a.className="helpDivClose";
_a.src=ImagePath+"close.gif";
_a.onclick=HideHelp;
_9.firstChild.firstChild.appendChild(_a);
var _b=_9.firstChild;
var _c=document.createElement("div");
_c.className="Bottom";
_b.appendChild(_c);
}
function CreateIFrame(){
var _d=LastShownHelpDiv;
var _e=document.createElement("<iframe frameborder=\"0\">");
_e.tabIndex=-1;
_e.className="Vertical";
_e.src=RootPath+"blankiframehelpdiv.html";
_e.style.width=(_d.offsetWidth-10)+"px";
_e.style.height=(_d.offsetHeight+3)+"px";
_d.parentNode.appendChild(_e);
_e=document.createElement("<iframe frameborder=\"0\">");
_e.tabIndex=-1;
_e.className="Horizontal";
_e.src=RootPath+"blankiframehelpdiv.html";
_e.style.width=_d.offsetWidth+"px";
_e.style.height=(_d.offsetHeight-10)+"px";
_d.parentNode.appendChild(_e);
}
function RemoveIFrame(){
var _f=LastShownHelpDiv;
var _10=_f.parentNode.getElementsByTagName("iframe");
while(_10.length>0){
_10[0].parentNode.removeChild(_10[0]);
}
}
function HideHelp(){
if(LastShownHelpDiv!=null){
RemoveIFrame();
Effect.SlideUp(LastShownHelpDiv,{duration:0.2});
LastShownHelpDiv=null;
}
}
function PopupHelp(URL,_12,_13){
var _14=window.open(URL,"popuphelp","resizable=yes,scrollbars=yes,status=yes,width=400,height=400");
if(_14==null){
return ShowHelp(_12,_13);
}
if(_14.closed){
return ShowHelp(_12,_13);
}
return false;
}


