function PageBlocker(){}var ua=navigator.userAgent.toLowerCase();
var isOpera=(ua.indexOf("opera")>-1);
var isIE=(window.ActiveXObject);
PageBlocker.prototype.start=function(b){this.addBlockingDivToWindow(b);
var a=this.getBlockingDiv();
a.style.height=this.getDocumentHeight()+"px";
a.style.width=this.getDocumentWidth()+"px";
a.style.display="";
if(b!=true){document.body.scrollTop=0
}this.setSelectBoxVisibility("hidden")
};
PageBlocker.prototype.stop=function(){var a=this.getBlockingDiv();
if(a){a.style.display="none";
this.setSelectBoxVisibility("visible")
}};
PageBlocker.prototype.addBlockingDivToWindow=function(c){if(!this.divForBlockingAdded){var a=top.document.body;
if(a){this.divForBlockingAdded=true;
var e=top.document.createElement("DIV");
e.id="PageBlocker_DivForBlocking";
e.style.zIndex=20000;
e.style.position="absolute";
e.style.width="100%";
e.style.height="100%";
e.style.left=0;
e.style.top=0;
e.style.cursor="wait";
e.style.display="none";
e.style.backgroundImage='url("images/mask_bg_white.gif")';
e.style.backgroundRepeat="repeat";
e.innerHTML="<IMG src='images/loading.gif' style='position: relative;top: "+(c==true?300+document.body.scrollTop:300)+";left: 350;'/>";
a.appendChild(e);
var b=this.getBlockingDiv();
b.onclick=PageBlocker.eventHandler;
b.onkeydown=b.onclick;
b.onkeypress=b.onclick;
b.onkeyup=b.onclick
}}};
PageBlocker.eventHandler=function(){try{if(top.window.event.keyCode==27){var b=top.document.getElementById("PageBlocker_DivForBlocking");
if(b){b.style.display="none"
}top.window.event.returnValue=true
}else{top.window.event.cancelBubble=true;
top.window.event.returnValue=false
}}catch(a){}return false
};
PageBlocker.prototype.getBlockingDiv=function(){return top.document.getElementById("PageBlocker_DivForBlocking")
};
PageBlocker.prototype.setSelectBoxVisibility=function(a){var d=top.document;
for(var b=0;
b<d.forms.length;
b++){for(var c=0;
c<d.forms[b].length;
c++){if(d.forms[b].elements[c].tagName=="SELECT"){d.forms[b].elements[c].style.visibility=a
}}}};
PageBlocker.prototype.descendingOrderComp=function(d,c){return(c-d)
};
PageBlocker.prototype.getDocumentHeight=function(){var b=-1,i=-1,g=-1;
var c=0;
var f=0;
var d=top.document;
var e=d.compatMode;
if((e||isIE)&&!isOpera){switch(e){case"CSS1Compat":b=((window.innerHeight&&window.scrollMaxY)?window.innerHeight+window.scrollMaxY:-1);
i=[d.documentElement.clientHeight,self.innerHeight||-1].sort(this.descendingOrderComp)[0];
g=d.body.offsetHeight+c+f;
break;
default:b=d.body.scrollHeight;
g=d.body.clientHeight
}}else{b=d.documentElement.scrollHeight;
i=self.innerHeight;
g=d.documentElement.clientHeight
}var a=[b,i,g].sort(this.descendingOrderComp);
return a[0]
};
PageBlocker.prototype.getDocumentWidth=function(){var d=-1,a=-1,c=-1;
var f=0;
var e=0;
var g=top.document;
var h=g.compatMode;
if(h||isIE){switch(h){case"CSS1Compat":d=g.documentElement.clientWidth;
a=g.body.offsetWidth+e+f;
break;
default:a=g.body.clientWidth;
d=g.body.scrollWidth;
break
}}else{d=g.documentElement.clientWidth;
a=g.body.offsetWidth+e+f
}var b=Math.max(d,a);
return b
};