var _browser=new TBrowser();
var _arRegisterMenu=new Array();
var _arRegisterMenuIndex=-1;
var _arTriggerMenu=new Array();
var _arRegisterPopID=new Array();
var _arRegisterPopIndex=new Array();
var _arRegisterTriggerPopID=new Array();
var _arRegisterTriggerPopIndex=new Array();
var _arMMClick=new Array();
function Initialize(){
var _1=_arRegisterMenuIndex;
for(var i=0;i<=_1;i++){
_arRegisterMenu[i].Init();
}
}
function InitResize(){
var _3=_arRegisterMenuIndex;
for(var i=0;i<=_3;i++){
_arRegisterMenu[i].Resize();
}
}
function TBrowser(){
this._name="";
this._version="";
this._os="";
}
var detect=navigator.userAgent.toLowerCase();
var total,thestring;
if(checkIt("konqueror")){
_browser._name="Konqueror";
_browser._os="Linux";
}else{
if(checkIt("safari")){
_browser._name="Safari";
}else{
if(checkIt("omniweb")){
_browser._name="OmniWeb";
}else{
if(checkIt("opera")){
_browser._name="Opera";
}else{
if(checkIt("webtv")){
_browser._name="WebTV";
}else{
if(checkIt("icab")){
_browser._name="iCab";
}else{
if(checkIt("msie")){
_browser._name="IE";
}else{
if(!checkIt("compatible")){
_browser._name="Netscape";
_browser._version=detect.charAt(8);
}else{
_browser._name="none";
}
}
}
}
}
}
}
}
if(_browser._version==""){
_browser._version=detect.charAt(place+thestring.length);
}
if(_browser._os==""){
if(checkIt("linux")){
_browser._os="Linux";
}else{
if(checkIt("x11")){
_browser._os="Unix";
}else{
if(checkIt("mac")){
_browser._os="Mac";
}else{
if(checkIt("win")){
_browser._os="Windows";
}else{
_browser._os="none";
}
}
}
}
}
function checkIt(_4){
place=detect.indexOf(_4)+1;
thestring=_4;
return place;
}
function TMainMenu(_5,_6){
_arRegisterMenuIndex++;
_arRegisterMenu[_arRegisterMenuIndex]=this;
_arRegisterPopID[_arRegisterMenuIndex]=new Array();
_arRegisterPopIndex[_arRegisterMenuIndex]=-1;
_arRegisterTriggerPopID[_arRegisterMenuIndex]=new Array();
_arRegisterTriggerPopIndex[_arRegisterMenuIndex]=-1;
_arMMClick[_arRegisterMenuIndex]=true;
this._popOnClick=false;
this._expandIcon=new TExpandIcon();
this._expandIcon._create=false;
this._registerMenuIndex=_arRegisterMenuIndex;
this._uniqueID=0;
this._name=_5;
this._id="_"+_5+"ID";
this._index=_arRegisterMenuIndex;
this._correction=new TCorrection();
this._parent=null;
this._width="auto";
this._direction=_6;
if(this._direction=="horizontal"){
this._expandIcon._symbol="&#9660;";
}else{
this._expandIcon._symbol="&#9658;";
}
this._position="relative";
this._top=0;
this._left=0;
this._cellSpacing=0;
this._itemHeight="auto";
this._itemWidth="auto";
this._background=new TBackground();
this._background._color="buttonface";
this._pop=new TPopParameter();
this._pop._mmName=this._name;
this._pop._index=this._index;
this._shadow=new TShadow();
this._font=new TFont();
this._font._family="tahoma,verdana,sans-serif";
this._font._size="8pt";
this._itemIndex=-1;
this._items=new Array();
this._itemText=new TText();
this._itemText._color="black";
this._itemBack=new TBackground();
this._itemTextHL=new TText();
this._itemTextHL._color="white";
this._itemBackHL=new TBackground();
this._itemBackHL._color="#B6BDD2";
this._border=new TBorder();
this._itemBorder=new TBorder();
this._itemBorderHL=new TBorder();
this._itemBorderHL._top="1px navy solid";
this._itemBorderHL._right="1px navy solid";
this._itemBorderHL._bottom="1px navy solid";
this._itemBorderHL._left="1px navy solid";
this._itemTextClick=new TText();
this._itemTextClick._color="white";
this._itemBackClick=new TBackground();
this._itemBackClick._color="#B6BDD2";
this._itemBorderClick=new TBorder();
this._itemBorderClick._top="1px navy solid";
this._itemBorderClick._right="1px navy solid";
this._itemBorderClick._bottom="1px navy solid";
this._itemBorderClick._left="1px navy solid";
this._hideObject=new THiddenObject();
this._pop._header=new TPopHeader();
this._header=new TPopHeader();
this._header._font._size="6pt";
this._type="";
this._initialTop=0;
this._initialLeft=0;
this._headerClickState=false;
this._headerText="Click Here";
this.SetHeaderText=SetMMHeaderText;
this.Add=AddItem;
this.Build=BuildMenu;
this.BuildStyle=BuildStyle;
this.Draw=DrawMenu;
this.Init=InitMenu;
this.SetExpandIcon=SetExpandIcon;
this.SetParent=SetParent;
this.SetType=SetMenuType;
this.SetPopOnClick=SetPopOnClick;
this.SetWidth=SetWidth;
this.SetBorder=SetBorder;
this.SetBorderTop=SetBorderTop;
this.SetBorderRight=SetBorderRight;
this.SetBorderBottom=SetBorderBottom;
this.SetBorderLeft=SetBorderLeft;
this.SetItemDimension=SetItemDimension;
this.SetItemBorder=SetItemBorder;
this.SetItemBorderTop=SetItemBorderTop;
this.SetItemBorderRight=SetItemBorderRight;
this.SetItemBorderBottom=SetItemBorderBottom;
this.SetItemBorderLeft=SetItemBorderLeft;
this.SetItemBorderHL=SetItemBorderHL;
this.SetItemBorderTopHL=SetItemBorderTopHL;
this.SetItemBorderRightHL=SetItemBorderRightHL;
this.SetItemBorderBottomHL=SetItemBorderBottomHL;
this.SetItemBorderLeftHL=SetItemBorderLeftHL;
this.SetItemBorderClick=SetItemBorderClick;
this.SetItemBorderTopClick=SetItemBorderTopClick;
this.SetItemBorderRightClick=SetItemBorderRightClick;
this.SetItemBorderBottomClick=SetItemBorderBottomClick;
this.SetItemBorderLeftClick=SetItemBorderLeftClick;
this.SetShadow=SetShadow;
this.SetFont=SetFont;
this.SetBackground=SetBackground;
this.SetDirection=SetDirection;
this.SetPosition=SetPosition;
this.SetCorrection=SetCorrection;
this.SetCellSpacing=SetCellSpacing;
this.SetItemText=SetItemText;
this.SetItemTextHL=SetItemTextHL;
this.SetItemTextClick=SetItemTextClick;
this.SetItemBackground=SetItemBackground;
this.SetItemBackgroundHL=SetItemBackgroundHL;
this.SetItemBackgroundClick=SetItemBackgroundClick;
this.Resize=ResizeMenu;
}
function ResizeMenu(){
if(this._shadow._create){
if(document.all){
var _7=document.all(this._id);
var _8=document.all("sh_"+this._id);
}else{
if(document.getElementById){
var _7=document.getElementById(this._id);
var _8=document.getElementById("sh_"+this._id);
}
}
var _9=findPosY(_7);
var _10=findPosX(_7);
if(_browser._name=="IE"){
_8.style.width=_7.offsetWidth+10;
_8.childNodes[0].style.width=_7.offsetWidth;
_8.style.top=_9;
_8.style.left=_10;
}else{
_8.style.width=_7.offsetWidth;
_8.style.top=_9+this._shadow._distance;
_8.style.left=_10+this._shadow._distance;
}
}
}
function SetDirection(_11){
_11=_11.toLowerCase();
switch(_11){
case "vertical":
this._direction="vertical";
break;
default:
this._direction="horizontal";
}
}
function SetMMHeaderText(_12){
this._headerText=_12;
}
function SetMenuType(_13){
_13=_13.toLowerCase();
switch(_13){
case "float":
this._type="float";
break;
case "free":
this._type="free";
break;
default:
this._type="";
}
}
function TPopHeader(){
this._background=new TBackground();
this._background._color="black";
this._itemText=new TText();
this._itemText._weight="bold";
this._itemText._color="white";
this._font=new TFont();
this._font._family="arial,sans-serif,";
this._font._size="8pt";
this.SetBackground=SetBackground;
this.SetFont=SetFont;
this.SetText=SetItemText;
}
function THiddenObject(){
this._itemIndex=-1;
this._items=new Array();
this._isHide=false;
this._isShow=true;
this.Add=AddItem;
this.Hide=HideObject;
this.Show=ShowObject;
this.Clear=ClearObject;
}
function ClearObject(){
if(this._itemIndex>-1){
var _14=this._itemIndex+1;
for(var i=0;i<_14;i++){
delete this._items[i];
}
this._isHide=false;
this._itemIndex=-1;
}
}
function HideObject(){
if(this._itemIndex>-1){
var _15=this._itemIndex+1;
for(var i=0;i<_15;i++){
if(document.all){
document.all(this._items[i]).style.visibility="hidden";
}else{
if(document.getElementById){
document.getElementById(this._items[i]).style.visibility="hidden";
}
}
}
this._isHide=true;
}
}
function ShowObject(){
if(this._isHide){
var _16=this._itemIndex+1;
for(var i=0;i<_16;i++){
if(document.all){
document.all(this._items[i]).style.visibility="visible";
}else{
if(document.getElementById){
document.getElementById(this._items[i]).style.visibility="visible";
}
}
}
}
}
function SetPopOnClick(_17){
if(_17){
this._popOnClick=true;
_arMMClick[this._registerMenuIndex]=false;
}else{
this._popOnClick=false;
_arMMClick[this._registerMenuIndex]=true;
}
}
function TPopMenu(_18,_19,_20,_21,_22){
this._id="";
this._parent=null;
this._parentPop=null;
this._label=_18;
this._top=0;
this._left=0;
this._status=_22;
this._tmpIcon=_19;
this._icon="";
this._itemIndex=-1;
this._items=new Array();
switch(_20){
case "function":
this._eClick=_21;
break;
case "f":
this._eClick=_21;
break;
case "address":
this._eClick="_openURL('"+_21+"')";
break;
case "a":
this._eClick="_openURL('"+_21+"')";
break;
default:
this._eClick="";
}
this._type="";
this.Add=AddItem;
this.Draw=DrawPopMenu;
this.Init=InitPopMenu;
this.SetType=SetPopType;
this.SetParent=SetParent;
}
function SetPopType(_23){
_23=_23.toLowerCase();
switch(_23){
case "header":
this._type="h";
break;
case "h":
this._type="h";
break;
default:
this._type="";
}
}
function TPopParameter(){
this._index=-1;
this._mmName="";
this._padding="1px 1px 1px 1px";
this._separator=new TSeparator();
this._expandIcon=new TExpandIcon();
this._correction=new TCorrection();
this._font=new TFont();
this._font._family="arial,sans-serif";
this._font._size="8pt";
this._alpha=100;
this._itemWidth=200;
this._itemHeight="auto";
this._itemBorder=new TBorder();
this._itemBorder._top="0px none solid";
this._itemBorder._right="0px none solid";
this._itemBorder._bottom="0px none solid";
this._itemBorder._left="0px none solid";
this._itemPadding="1px 1px 1px 1px";
this._itemText=new TText();
this._itemBack=new TBackground();
this._itemBorderHL=new TBorder();
this._itemBorderHL._top="1px navy solid";
this._itemBorderHL._right="1px navy solid";
this._itemBorderHL._bottom="1px navy solid";
this._itemBorderHL._left="1px navy solid";
this._itemPaddingHL="0px 0px 0px 0px";
this._itemTextHL=new TText();
this._itemTextHL._color="white";
this._itemBackHL=new TBackground();
this._itemBackHL._color="#B6BDD2";
this._background=new TBackground();
this._background._color="whitesmoke";
this._border=new TBorder();
this._border._top="1px #03a7eb solid";
this._border._right="1px #03a7eb solid";
this._border._bottom="1px #03a7eb solid";
this._border._left="1px #03a7eb solid";
this._shadow=new TShadow();
this._header=new TPopHeader();
this._timeOut=750;
this.SetAlpha=SetAlpha;
this.SetBorder=SetBorder;
this.SetPadding=SetPadding;
this.SetPaddings=SetPaddings;
this.SetBorderTop=SetBorderTop;
this.SetBorderRight=SetBorderRight;
this.SetBorderBottom=SetBorderBottom;
this.SetBorderLeft=SetBorderLeft;
this.SetItemDimension=SetItemDimension;
this.SetItemBorder=SetItemBorder;
this.SetItemPadding=SetItemPadding;
this.SetItemPaddingHL=SetItemPaddingHL;
this.SetItemPaddings=SetItemPaddings;
this.SetItemPaddingsHL=SetItemPaddingsHL;
this.SetItemBorderTop=SetItemBorderTop;
this.SetItemBorderRight=SetItemBorderRight;
this.SetItemBorderBottom=SetItemBorderBottom;
this.SetItemBorderLeft=SetItemBorderLeft;
this.SetItemBorderHL=SetItemBorderHL;
this.SetItemBorderTopHL=SetItemBorderTopHL;
this.SetItemBorderRightHL=SetItemBorderRightHL;
this.SetItemBorderBottomHL=SetItemBorderBottomHL;
this.SetItemBorderLeftHL=SetItemBorderLeftHL;
this.SetShadow=SetShadow;
this.SetFont=SetFont;
this.SetBackground=SetBackground;
this.SetCorrection=SetCorrection;
this.SetExpandIcon=SetExpandIcon;
this.SetSeparator=SetSeparator;
this.SetDelay=SetDelay;
this.SetItemText=SetItemText;
this.SetItemTextHL=SetItemTextHL;
this.SetItemBackground=SetItemBackground;
this.SetItemBackgroundHL=SetItemBackgroundHL;
}
function SetAlpha(_24){
_24=parseInt(_24);
this._alpha=_24;
}
function TCorrection(){
this._top=0;
this._left=0;
}
function TText(){
this._color="black";
this._align="left";
this._decoration="none";
this._whiteSpace="normal";
this._weight="normal";
}
function TShadow(){
this._create=false;
this._color="black";
this._distance=3;
}
function TSeparator(){
this._align="center";
this._width=200;
this._margin="0px 0px 0px 0px";
this._border=new TBorder();
this._border._top="1px black solid";
this._border._bottom="1px white solid";
}
function TFont(){
this._family="arial,sans-serif";
this._size="8pt";
}
function TBackground(){
this._image="none";
this._repeat="no-repeat";
this._color="";
this._position="top left";
}
function TExpandIcon(){
this._create=true;
this._symbol="&#9658;";
this._font=new TFont();
this._font._size="6pt";
}
function TBorder(){
this._top="1px gray solid";
this._right="1px gray solid";
this._bottom="1px gray solid";
this._left="1px gray solid";
}
function BuildMenu(){
var _25="";
var _26=-1;
this.SetParent(this);
_25+=this.BuildStyle();
_25+=this.Draw(_26++);
_26++;
for(var i=0;i<=this._itemIndex;i++){
_25+=this._items[i].Draw(_26);
_25+=BuildPopUpMenu(this._items[i],_26);
}
document.write(_25);
}
function InitMenu(){
if(document.all){
var _27=document.all(this._id);
}else{
if(document.getElementById){
var _27=document.getElementById(this._id);
}
}
this._position=this._position.toLowerCase();
if(this._position=="absolute"){
_27.style.top=this._top;
_27.style.left=this._left;
}else{
this._top=findPosY(_27);
this._left=findPosX(_27);
}
_27.style.zIndex=100;
if((this._type=="free")&&(this._position=="absolute")){
if(document.all){
var _28=document.all("fr_"+this._id);
}else{
if(document.getElementById){
var _28=document.getElementById("fr_"+this._id);
}
}
_28.style.top=this._top+"px";
_28.style.left=this._left+"px";
_28.style.width=_27.offsetWidth;
_28.style.height=_27.offsetHeight;
_28.style.zIndex=100;
}
if(this._shadow._create){
if(document.all){
var _29=document.all("sh_"+this._id);
}else{
if(document.getElementById){
var _29=document.getElementById("sh_"+this._id);
}
}
if(_browser._name=="IE"){
_29.style.top=this._top+"px";
_29.style.left=this._left+"px";
_29.style.width=_27.offsetWidth+10+"px";
_29.style.height=_27.offsetHeight+10+"px";
_29.childNodes[0].style.width=_27.offsetWidth+"px";
_29.childNodes[0].style.height=_27.offsetHeight+"px";
_29.childNodes[0].style.backgroundColor=this._shadow._color;
_29.style.visibility="visible";
}else{
if(_browser._name=="Konqueror"&&this._position=="relative"){
_29.style.visibility="hidden";
}else{
_29.style.top=this._top+this._shadow._distance+"px";
_29.style.left=this._left+this._shadow._distance+"px";
_29.style.width=_27.offsetWidth+"px";
_29.style.height=_27.offsetHeight+"px";
_29.style.backgroundColor=this._shadow._color;
_29.style.visibility="visible";
}
}
_29.style.zIndex=0;
}
for(var i=0;i<=this._itemIndex;i++){
if(document.all){
var _30=document.all("pr_"+this._items[i]._id);
}else{
if(document.getElementById){
var _30=document.getElementById("pr_"+this._items[i]._id);
}
}
if(this._items[i]._itemIndex>-1){
if(document.all){
var _31=document.all(this._items[i]._id);
}else{
if(document.getElementById){
var _31=document.getElementById(this._items[i]._id);
}
}
_31.style.zIndex=102;
if(this._items[i]._parent._pop._shadow._create){
if(document.all){
var _32=document.all("sh_"+this._items[i]._id);
}else{
if(document.getElementById){
var _32=document.getElementById("sh_"+this._items[i]._id);
}
}
if(_browser._name=="IE"){
_32.style.width=_31.offsetWidth+10+"px";
_32.style.height=_31.offsetHeight+10+"px";
_32.childNodes[0].style.width=_31.offsetWidth+"px";
_32.childNodes[0].style.height=_31.offsetHeight+"px";
_32.childNodes[0].style.backgroundColor=this._items[i]._parent._pop._shadow._color;
}else{
_32.style.width=_31.offsetWidth+"px";
_32.style.height=_31.offsetHeight+"px";
_32.style.backgroundColor=this._items[i]._parent._pop._shadow._color;
}
_32.style.zIndex=101;
}
this._items[i].Init(102);
}
}
_27.style.visibility="visible";
if((this._type=="float")&&(this._position=="absolute")){
this._initialTop=this._top;
this._initialLeft=this._left;
_floatingMMEffect(this);
}
}
function SetParent(_33){
for(var i=0;i<=this._itemIndex;i++){
this._items[i]._parent=_33;
this._items[i]._parentPop=this;
this._items[i]._id="_"+_33._name+"-"+_33._uniqueID+"ID";
var _34=parseInt(this._items[i]._tmpIcon);
if((_34>0)){
this._items[i]._icon="<td style=\"padding-left:"+_34+"px;\">";
}else{
switch(this._items[i]._tmpIcon){
case "":
this._items[i]._icon="<td style=\"padding-left:24px;\">";
break;
case "0":
this._items[i]._icon="<td>";
break;
default:
this._items[i]._icon="<td class=\"TIcon"+this._items[i]._parent._index+"\"><img class=\"TIcon"+this._items[i]._parent._index+"\" src=\""+this._items[i]._tmpIcon+"\" /></td><td>";
}
}
_33._uniqueID++;
this._items[i].SetParent(_33);
}
}
function DrawMenu(_35){
var _36="";
if(this._shadow._create){
if(_browser._name=="IE"){
_36+="<div style=\"position:absolute;visibility:hidden;filter: blur( direction=135, strength="+this._shadow._distance+", add=1);\" id=\"sh_"+this._id+"\" align=\"left\"><div></div></div>";
}else{
_36+="<div style=\"position:absolute;visibility:hidden;\" id=\"sh_"+this._id+"\"></div>";
}
}
if((this._type=="free")&&(this._position=="absolute")){
_36+="<table class=\"TMenu"+this._index+"\" id=\"fr_"+this._id+"\"";
_36+=" cellspacing=\""+this._cellSpacing+"\" cellpadding=\"0\" style=\"position:absolute;visibility:hidden;\">";
_36+="<tr><td class=\"TMMHeader"+this._index+"\"";
_36+=" onclick=\"onMMHeaderClick(event,"+this._name+")\"";
_36+=">"+this._headerText+"</td></tr>";
_36+="<tr><td> </td></tr>";
_36+="</table>";
}
_36+="<table class=\"TMenu"+this._index+"\" id=\""+this._id+"\"";
_36+=" cellspacing=\""+this._cellSpacing+"\" cellpadding=\"0\">";
if(this._direction=="horizontal"){
if(this._itemIndex>-1){
if((this._type=="free")&&(this._position=="absolute")){
var _37=this._itemIndex+1;
_36+="<tr><td colspan=\""+_37+"\" class=\"TMMHeader"+this._index+"\"";
_36+=" onclick=\"onMMHeaderClick(event,"+this._name+")\">"+this._headerText+"</td></tr>";
}
}
_36+="<tr>";
}else{
if((this._type=="free")&&(this._position=="absolute")){
_36+="<td class=\"TMMHeader"+this._index+"\"";
_36+=" onclick=\"onMMHeaderClick(event,"+this._name+")\">"+this._headerText+"</td>";
}
}
if(this._itemIndex>-1){
var _38=false;
for(var i=0;i<=this._itemIndex;i++){
var _39="";
var _40="";
_39+="<td nowrap class=\"TMenuItem"+this._index+"\" id=\"pr_"+this._items[i]._id+"\"";
if(this._items[i]._itemIndex>-1){
_39+=" onmouseover=\"onMainMOver(event,this,'"+this._items[i]._id+"',"+_35+","+this._name+",'"+escape(this._items[i]._status)+"')\"";
if(this._popOnClick){
_39+="onclick=\"onMainClick(event,this,'"+this._items[i]._id+"',"+this._name+")\"";
}else{
_39+=" onclick=\""+this._items[i]._eClick+"\"";
}
_39+=" onmouseout=\"onMainMOut(event,this,'"+this._items[i]._id+"',"+this._name+")\"";
if(this._items[i]._parent._expandIcon._create){
_40="<td class=\"TMMExpand"+this._items[i]._parent._index+"\">"+this._items[i]._parent._expandIcon._symbol+"</td>";
_38=true;
}
}else{
_39+=" onmouseover=\"onMainMOver(event,this,'',"+_35+","+this._name+",'"+escape(this._items[i]._status)+"')\"";
_39+=" onmouseout=\"onMainMOut(event,this,'',"+this._name+")\"";
_39+=" onclick=\""+this._items[i]._eClick+"\"";
}
var _41=parseInt(this._items[i]._tmpIcon);
if((_41>0)){
this._items[i]._icon="<td style=\"padding-left:"+_41+"px;\">";
}else{
switch(this._items[i]._tmpIcon){
case "":
if(_38&&_40==""){
this._items[i]._icon="<td style=\"padding-left:30px;padding-right:16px\">";
}else{
this._items[i]._icon="<td style=\"padding-left:30px\">";
}
break;
case "0":
if(_38&&_40==""){
this._items[i]._icon="<td  style=\"padding-right:16px\">";
}else{
this._items[i]._icon="<td>";
}
break;
default:
if(_38&&_40==""){
this._items[i]._icon="<td class=\"TIcon"+this._items[i]._parent._index+"\"><img class=\"TIcon"+this._items[i]._parent._index+"\" src=\""+this._items[i]._tmpIcon+"\" /></td><td  style=\"padding-right:16px\">";
}else{
this._items[i]._icon="<td class=\"TIcon"+this._items[i]._parent._index+"\"><img class=\"TIcon"+this._items[i]._parent._index+"\" src=\""+this._items[i]._tmpIcon+"\" style=\"margin-left: 8px;\" /></td><td>";
}
}
}
_39+="><table cellpadding=\"0\" class=\"TMenuItemChild"+this._index+"\"><tr>"+this._items[i]._icon+this._items[i]._label+"</td>";
_39+=_40+"</tr></table></td>";
if(this._direction=="horizontal"){
_36+=_39;
}else{
_36+="<tr>"+_39+"</tr>";
}
}
}else{
var _39="";
_39+="<td>&nbsp;</td>";
if(this._direction=="horizontal"){
_36+=_39;
}else{
_36+="<tr>"+_39+"</tr>";
}
}
if(this._direction=="horizontal"){
_36+="</tr>";
}
_36+="</table>";
return _36;
}
function DrawPopMenu(_42){
var _43="";
if(this._itemIndex>-1){
if(this._parent._pop._shadow._create){
if(_browser._name=="IE"){
_43+="<div style=\"position:absolute;visibility:hidden;filter: blur( direction=135, strength="+this._parent._pop._shadow._distance+", add=1);\" id=\"sh_"+this._id+"\" align=\"left\"><div></div></div>";
}else{
_43+="<div style=\"position:absolute;visibility:hidden;\" id=\"sh_"+this._id+"\" align=\"left\"></div>";
}
}
_43+="<div class=\"TPopUp"+this._parent._index+"\" id=\""+this._id+"\" style=\"filter:alpha(opacity="+this._parent._pop._alpha+");\">";
for(var i=0;i<=this._itemIndex;i++){
if(this._items[i]._label!="-"){
if(this._items[i]._itemIndex>-1){
_43+="<div class=\"TPopUpItem"+this._items[i]._parent._index+"\" id=\"di_"+this._items[i]._id+"\">";
_43+="<table class=\"TPopUpItem"+this._items[i]._parent._index+"\" cellspacing=\"0\" cellpadding=\"0\"";
_43+=" onmouseover=\"onPopItemMOver(event,this,'"+this._items[i]._id+"',"+_42+","+this._items[i]._parent._name+",'"+this._items[i]._status+"')\"";
_43+=" onmouseout=\"onPopItemMOut(event,this,'"+this._items[i]._id+"',"+this._items[i]._parent._name+")\"";
_43+=" onclick=\""+this._items[i]._eClick+"\"";
_43+=" id=\"pr_"+this._items[i]._id+"\"><tr>"+this._items[i]._icon+this._items[i]._label+"</td>";
if(this._items[i]._parent._pop._expandIcon._create){
_43+="<td class=\"TExpand"+this._items[i]._parent._index+"\">"+this._items[i]._parent._pop._expandIcon._symbol+"</td>";
}
_43+="</tr></table>";
_43+="</div>";
}else{
if(this._items[i]._type=="h"){
_43+="<div class=\"TPopUpHeader"+this._items[i]._parent._index+"\">";
_43+="<table class=\"TPopUpHeader"+this._items[i]._parent._index+"\" cellspacing=\"0\" cellpadding=\"2\"";
_43+=" onmouseover=\"onStaticPopItemMOver(event,"+this._items[i]._parent._name+",'"+this._items[i]._status+"')\"";
_43+=" onmouseout=\"onStaticPopItemMOut(event,"+this._items[i]._parent._name+",'"+this._items[i]._status+"')\"";
_43+="><tr><td>"+this._items[i]._label;
_43+="</td></tr></table></div>";
}else{
_43+="<div class=\"TPopUpItem"+this._items[i]._parent._index+"\">";
_43+="<table class=\"TPopUpItem"+this._items[i]._parent._index+"\" cellspacing=\"0\" cellpadding=\"0\"";
_43+=" onmouseover=\"onPopItemMOver(event,this,'',"+_42+","+this._items[i]._parent._name+",'"+this._items[i]._status+"')\"";
_43+=" onmouseout=\"onPopItemMOut(event,this,'',"+this._items[i]._parent._name+")\"";
_43+=" onclick=\"hideAll("+this._items[i]._parent._name+");"+this._items[i]._eClick+"\"";
_43+="><tr>"+this._items[i]._icon+this._items[i]._label+"</td>";
_43+="</tr></table>";
_43+="</div>";
}
}
}else{
if(_browser._name=="IE"){
_43+="<div style=\"margin-right:-2px;padding:0px 0px 0px 0px;background-color:"+this._parent._pop._itemBack._color+";\" ";
}else{
_43+="<div style=\"margin-right:0px;padding:0px 0px 0px 0px;background-color:"+this._parent._pop._itemBack._color+";\" ";
}
_43+=" onmouseover=\"onStaticPopItemMOver(event,"+this._parent._name+",'')\"";
_43+=" onmouseout=\"onStaticPopItemMOut(event,"+this._parent._name+",'')\"";
_43+=" ><div class=\"TSeparator"+this._parent._index+"\" ";
_43+="></div></div>";
}
}
_43+="</div>";
}
return _43;
}
function AddItem(_44){
this._itemIndex++;
this._items[this._itemIndex]=_44;
}
function InitPopMenu(_45){
if(this._itemIndex>-1){
for(var i=0;i<=this._itemIndex;i++){
if(this._items[i]._itemIndex>-1){
if(document.all){
var _46=document.all("pr_"+this._items[i]._id);
var el=document.all(this._items[i]._id);
}else{
if(document.getElementById){
var _46=document.getElementById("pr_"+this._items[i]._id);
var el=document.getElementById(this._items[i]._id);
}
}
_45++;
el.style.zIndex=_45+1;
if(this._items[i]._parent._pop._shadow._create){
if(document.all){
var _48=document.all("sh_"+this._items[i]._id);
}else{
if(document.getElementById){
var _48=document.getElementById("sh_"+this._items[i]._id);
}
}
if(_browser._name=="IE"){
_48.style.width=el.offsetWidth+10+"px";
_48.style.height=el.offsetHeight+10+"px";
_48.childNodes[0].style.width=el.offsetWidth+"px";
_48.childNodes[0].style.height=el.offsetHeight+"px";
_48.childNodes[0].style.backgroundColor=this._items[i]._parent._pop._shadow._color;
}else{
_48.style.width=el.offsetWidth;
_48.style.height=el.offsetHeight;
_48.style.backgroundColor=this._items[i]._parent._pop._shadow._color;
}
_48.style.zIndex=_45;
}
this._items[i].Init(_45+1);
}
}
}
}
function BuildPopUpMenu(_49,_50){
var _51="";
_50++;
for(var i=0;i<=_49._itemIndex;i++){
_51+=_49._items[i].Draw(_50);
_51+=BuildPopUpMenu(_49._items[i],_50);
}
return _51;
}
function BuildStyle(){
var _52="";
var tyH;
var tyW;
_52+="<style type=\"text/css\">";
_52+="table.TMenu"+this._index+"{";
_52+="cursor:pointer";
_52+=";visibility:hidden";
_52+=";position:"+this._position;
tyW=typeof (this._width);
if(tyW=="string"){
this._width=this._width.toLowerCase();
if(this._width!="auto"||this._width!=""){
_52+=";width:"+this._width+"px";
}
}else{
_52+=";width:"+this._width+"px";
}
_52+=";border-top:"+this._border._top;
_52+=";border-right:"+this._border._right;
_52+=";border-bottom:"+this._border._bottom;
_52+=";border-left:"+this._border._left;
_52+=";background-color:"+this._background._color;
_52+=";background-image:"+this._background._image;
_52+=";background-position:"+this._background._position;
_52+=";background-repeat:"+this._background._repeat;
_52+=";}";
_52+="table.TMenuItemChild"+this._index+"{";
_52+="width:100%";
_52+=";font-family:"+this._font._family;
_52+=";font-size:"+this._font._size;
_52+=";font-weight:"+this._itemText._weight;
_52+=";text-align:"+this._itemText._align;
_52+=";color:"+this._itemText._color;
_52+=";text-decoration:"+this._itemText._decoration;
_52+=";white-space:"+this._itemText._whiteSpace;
_52+=";}";
_52+="td.TMenuItem"+this._index+"{";
_52+="padding: 0px 0px 0px 0px";
tyH=typeof (this._itemHeight);
tyW=typeof (this._itemWidth);
if(tyH=="string"){
if(this._itemHeight.toLowerCase()!="auto"||this._itemHeight!=""){
_52+=";height:"+this._itemHeight+"px";
}
}else{
_52+=";height:"+this._itemHeight+"px";
}
if(tyW=="string"){
if(this._itemWidth.toLowerCase()!="auto"||this._itemWidth!=""){
_52+=";width:"+this._itemWidth+"px";
}
}else{
_52+=";width:"+this._itemWidth+"px";
}
_52+=";border-top:"+this._itemBorder._top;
_52+=";border-right:"+this._itemBorder._right;
_52+=";border-bottom:"+this._itemBorder._bottom;
_52+=";border-left:"+this._itemBorder._left;
_52+=";background-color:"+this._itemBack._color;
_52+=";background-repeat:"+this._itemBack._repeat;
_52+=";background-image:"+this._itemBack._image;
_52+=";background-position:"+this._itemBack._position;
_52+=";}";
_52+="td.TMMExpand"+this._index+"{";
_52+="width:10px";
_52+=";text-align:right";
_52+=";padding-right:2px";
_52+=";font-family:"+this._expandIcon._font._family;
_52+=";font-size:"+this._expandIcon._font._size;
_52+=";font-weight:normal";
_52+=";text-decoration:none !important";
_52+=";white-space:nowrap !important";
_52+=";}";
_52+="td.TMMHeader"+this._index+"{";
_52+="height:1px";
_52+=";background-color:"+this._header._background._color;
_52+=";background-image:"+this._header._background._image;
_52+=";background-position:"+this._header._background._position;
_52+=";background-repeat:"+this._header._background._repeat;
_52+=";text-align:"+this._header._itemText._align;
_52+=";text-decoration:"+this._header._itemText._decoration;
_52+=";white-space:"+this._header._itemText._whiteSpace;
_52+=";font-weight:"+this._header._itemText._weight;
_52+=";font-family:"+this._header._font._family;
_52+=";font-size:"+this._header._font._size;
_52+=";color:"+this._header._itemText._color;
_52+=";}";
_52+="div.TPopUp"+this._index+"{";
_52+="position:absolute";
_52+=";padding:"+this._pop._padding;
_52+=";visibility:hidden";
_52+=";width:"+this._pop._itemWidth+"px";
_52+=";border-top:"+this._pop._border._top;
_52+=";border-right:"+this._pop._border._right;
_52+=";border-bottom:"+this._pop._border._bottom;
_52+=";border-left:"+this._pop._border._left;
_52+=";background-color:"+this._pop._background._color;
_52+=";background-image:"+this._pop._background._image;
_52+=";background-position:"+this._pop._background._position;
_52+=";background-repeat:"+this._pop._background._repeat;
_52+=";display:block";
_52+=";}";
_52+="table.TPopUpHeader"+this._index+"{";
_52+="width:100%";
_52+=";cursor:pointer";
_52+=";height:"+this._pop._itemHeight+"px";
_52+=";text-align:"+this._pop._header._itemText._align;
_52+=";text-decoration:"+this._pop._header._itemText._decoration;
_52+=";white-space:"+this._pop._header._itemText._whiteSpace;
_52+=";font-weight:"+this._pop._header._itemText._weight;
_52+=";font-family:"+this._pop._header._font._family;
_52+=";font-size:"+this._pop._header._font._size;
_52+=";color:"+this._pop._header._itemText._color;
_52+=";}";
_52+="div.TPopUpHeader"+this._index+"{";
_52+=";background-color:"+this._pop._header._background._color;
_52+=";background-image:"+this._pop._header._background._image;
_52+=";background-position:"+this._pop._header._background._position;
_52+=";background-repeat:"+this._pop._header._background._repeat;
if(_browser._name=="IE"){
_52+=";margin-right:-2px";
}
_52+=";}";
_52+="table.TPopUpItem"+this._index+"{";
_52+="width:100%";
_52+=";height:"+this._pop._itemHeight+"px";
_52+=";cursor:pointer";
_52+=";font-family:"+this._pop._font._family;
_52+=";font-size:"+this._pop._font._size;
_52+=";color:"+this._pop._itemText._color;
_52+=";text-align:"+this._pop._itemText._align;
_52+=";text-decoration:"+this._pop._itemText._decoration;
_52+=";white-space:"+this._pop._itemText._whiteSpace;
_52+=";font-weight:"+this._pop._itemText._weight;
_52+=";}";
_52+="div.TPopUpItem"+this._index+"{";
_52+="cursor:pointer";
_52+=";background-color:"+this._pop._itemBack._color;
_52+=";background-image:"+this._pop._itemBack._image;
_52+=";background-position:"+this._pop._itemBack._position;
_52+=";background-repeat:"+this._pop._itemBack._repeat;
_52+=";border-top:"+this._pop._itemBorder._top;
_52+=";border-right:"+this._pop._itemBorder._right;
_52+=";border-bottom:"+this._pop._itemBorder._bottom;
_52+=";border-left:"+this._pop._itemBorder._left;
_52+=";padding:"+this._pop._itemPadding;
_52+=";}";
_52+="div.TPopUpItem"+this._index+"_1{";
_52+="cursor:pointer";
_52+=";background-color :"+this._pop._itemBackHL._color;
_52+=";background-image:"+this._pop._itemBackHL._image;
_52+=";background-position:"+this._pop._itemBackHL._position;
_52+=";background-repeat:"+this._pop._itemBackHL._repeat;
_52+=";border-top:"+this._pop._itemBorderHL._top;
_52+=";border-right:"+this._pop._itemBorderHL._right;
_52+=";border-bottom:"+this._pop._itemBorderHL._bottom;
_52+=";border-left:"+this._pop._itemBorderHL._left;
_52+=";padding:"+this._pop._itemPaddingHL;
_52+=";}";
this._pop._separator._width=((this._pop._itemWidth-this._pop._separator._width)<0)?this._pop._itemWidth:this._pop._separator._width;
var _55=Math.floor((this._pop._itemWidth-this._pop._separator._width)/2);
switch(this._pop._separator._align){
case "left":
this._pop._separator._margin="0px "+(_55*2)+"px 0px 0px";
break;
case "right":
this._pop._separator._margin="0px 0px 0px "+(_55*2)+"px";
break;
default:
this._pop._separator._margin="0px "+_55+"px 0px "+_55+"px";
}
_52+="div.TSeparator"+this._index+"{";
_52+="margin:"+this._pop._separator._margin;
_52+=";border-top:"+this._pop._separator._border._top;
_52+=";border-bottom:"+this._pop._separator._border._bottom;
_52+=";}";
_52+="td.TExpand"+this._index+"{";
_52+="width:10px";
_52+=";text-align:right";
_52+=";padding-right:2px";
_52+=";font-family:"+this._pop._expandIcon._font._family;
_52+=";font-size:"+this._pop._expandIcon._font._size;
_52+=";font-weight:normal";
_52+=";text-decoration:none !important";
_52+=";white-space:nowrap !important";
_52+=";}";
_52+="td.TIcon"+this._index+"{";
_52+="width:24px";
_52+=";text-align:left";
_52+=";text-decoration:normal";
_52+=";white-space:nowrap";
_52+=";font-weight:normal";
_52+=";}";
_52+="img.TIcon"+this._index+"{";
_52+="vertical-align:middle";
_52+=";}";
_52+="</style>";
return _52;
}
function SetCorrection(_56,_57){
_56=parseInt(_56);
if(!_56){
this._correction._left=0;
}else{
this._correction._left=_56;
}
_57=parseInt(_57);
if(!_57){
this._correction._top=0;
}else{
this._correction._top=_57;
}
}
function SetPosition(_58,_59,_60){
switch(_58){
case "absolute":
this._position=_58;
break;
default:
this._position="relative";
}
_59=parseInt(_59);
if(!_59){
this._left=0;
}else{
this._left=_59;
}
_60=parseInt(_60);
if(!_60){
this._top=0;
}else{
this._top=_60;
}
}
function SetCellSpacing(_61){
_61=parseInt(_61);
if(!_61){
this._cellSpacing=0;
}else{
this._cellSpacing=_61;
}
}
function SetWidth(_62){
_62=parseInt(_62);
if(!_62){
this._width="auto";
}else{
this._width=_62;
}
}
function SetItemDimension(_63,_64){
_63=parseInt(_63);
_64=parseInt(_64);
if(!_63){
this._itemWidth="auto";
}else{
this._itemWidth=_63;
}
if(!_64){
this._itemHeight="auto";
}else{
this._itemHeight=_64;
}
}
function SetBackground(_65,_66,_67,_68){
(_65=="")?this._background._color="transparent":this._background._color=_65;
(_66=="")?this._background._image="none":this._background._image="url('"+_66+"')";
(_67=="")?this._background._repeat="no-repeat":this._background._repeat=_67;
(_68=="")?this._background._position="top left":this._background._position=_68;
}
function SetItemBackground(_69,_70,_71,_72){
(_69=="")?this._itemBack._color="transparent":this._itemBack._color=_69;
(_70=="")?this._itemBack._image="none":this._itemBack._image="url('"+_70+"')";
(_71=="")?this._itemBack._repeat="no-repeat":this._itemBack._repeat=_71;
(_72=="")?this._itemBack._position="top left":this._itemBack._position=_72;
}
function SetItemBackgroundHL(_73,_74,_75,_76){
(_73=="")?this._itemBackHL._color="transparent":this._itemBackHL._color=_73;
(_74=="")?this._itemBackHL._image="none":this._itemBackHL._image="url('"+_74+"')";
(_75=="")?this._itemBackHL._repeat="no-repeat":this._itemBackHL._repeat=_75;
(_76=="")?this._itemBackHL._position="top left":this._itemBackHL._position=_76;
}
function SetItemBackgroundClick(_77,_78,_79,_80){
(_77=="")?this._itemBackClick._color="transparent":this._itemBackClick._color=_77;
(_78=="")?this._itemBackClick._image="none":this._itemBackClick._image="url('"+_78+"')";
(_79=="")?this._itemBackClick._repeat="no-repeat":this._itemBackClick._repeat=_79;
(_80=="")?this._itemBackClick._position="top left":this._itemBackClick._position=_80;
}
function SetShadow(_81,_82,_83){
if(_81){
this._shadow._create=_81;
this._shadow._color=_82;
this._shadow._distance=_83;
}
}
function SetFont(_84,_85){
this._font._family=_84;
this._font._size=_85;
}
function SetBorder(_86,_87,_88){
var _89=_86+"px "+_87+" "+_88;
this._border._top=_89;
this._border._right=_89;
this._border._bottom=_89;
this._border._left=_89;
}
function SetItemBorder(_90,_91,_92){
_90=parseInt(_90);
if(!_90){
_90=0;
}
var _93=_90+"px "+_91+" "+_92;
this._itemBorder._top=_93;
this._itemBorder._right=_93;
this._itemBorder._bottom=_93;
this._itemBorder._left=_93;
}
function SetItemBorderHL(_94,_95,_96){
_94=parseInt(_94);
if(!_94){
_94=0;
}
var _97=_94+"px "+_95+" "+_96;
this._itemBorderHL._top=_97;
this._itemBorderHL._right=_97;
this._itemBorderHL._bottom=_97;
this._itemBorderHL._left=_97;
}
function SetItemBorderClick(_98,_99,_100){
_98=parseInt(_98);
if(!_98){
_98=0;
}
var _101=_98+"px "+_99+" "+_100;
this._itemBorderClick._top=_101;
this._itemBorderClick._right=_101;
this._itemBorderClick._bottom=_101;
this._itemBorderClick._left=_101;
}
function SetBorderTop(_102,_103,_104){
_102=parseInt(_102);
if(!_102){
_102=0;
}
var _105=_102+"px "+_103+" "+_104;
this._border._top=_105;
}
function SetItemBorderTop(_106,_107,_108){
_106=parseInt(_106);
if(!_106){
_106=0;
}
var _109=_106+"px "+_107+" "+_108;
this._itemBorder._top=_109;
}
function SetItemBorderTopHL(_110,_111,_112){
_110=parseInt(_110);
if(!_110){
_110=0;
}
var _113=_110+"px "+_111+" "+_112;
this._itemBorderHL._top=_113;
}
function SetItemBorderTopClick(_114,_115,_116){
_114=parseInt(_114);
if(!_114){
_114=0;
}
var _117=_114+"px "+_115+" "+_116;
this._itemBorderClick._top=_117;
}
function SetBorderRight(_118,_119,_120){
_118=parseInt(_118);
if(!_118){
_118=0;
}
var _121=_118+"px "+_119+" "+_120;
this._border._right=_121;
}
function SetItemBorderRight(_122,_123,_124){
_122=parseInt(_122);
if(!_122){
_122=0;
}
var _125=_122+"px "+_123+" "+_124;
this._itemBorder._right=_125;
}
function SetItemBorderRightHL(_126,_127,_128){
_126=parseInt(_126);
if(!_126){
_126=0;
}
var _129=_126+"px "+_127+" "+_128;
this._itemBorderHL._right=_129;
}
function SetItemBorderRightClick(_130,_131,_132){
_130=parseInt(_130);
if(!_130){
_130=0;
}
var _133=_130+"px "+_131+" "+_132;
this._itemBorderClick._right=_133;
}
function SetBorderBottom(_134,_135,_136){
_134=parseInt(_134);
if(!_134){
_134=0;
}
var _137=_134+"px "+_135+" "+_136;
this._border._bottom=_137;
}
function SetItemBorderBottom(_138,_139,_140){
_138=parseInt(_138);
if(!_138){
_138=0;
}
var _141=_138+"px "+_139+" "+_140;
this._itemBorder._bottom=_141;
}
function SetItemBorderBottomHL(_142,_143,_144){
_142=parseInt(_142);
if(!_142){
_142=0;
}
var _145=_142+"px "+_143+" "+_144;
this._itemBorderHL._bottom=_145;
}
function SetItemBorderBottomClick(_146,_147,_148){
_146=parseInt(_146);
if(!_146){
_146=0;
}
var _149=_146+"px "+_147+" "+_148;
this._itemBorderClick._bottom=_149;
}
function SetBorderLeft(_150,_151,_152){
_150=parseInt(_150);
if(!_150){
_150=0;
}
var _153=_150+"px "+_151+" "+_152;
this._border._left=_153;
}
function SetItemBorderLeft(_154,_155,_156){
_154=parseInt(_154);
if(!_154){
_154=0;
}
var _157=_154+"px "+_155+" "+_156;
this._itemBorder._left=_157;
}
function SetItemBorderLeftHL(_158,_159,_160){
_158=parseInt(_158);
if(!_158){
_158=0;
}
var _161=_158+"px "+_159+" "+_160;
this._itemBorderHL._left=_161;
}
function SetItemBorderLeftClick(_162,_163,_164){
_162=parseInt(_162);
if(!_162){
_162=0;
}
var _165=_162+"px "+_163+" "+_164;
this._itemBorderClick._left=_165;
}
function SetItemText(_166,_167,_168,_169,_170){
this._itemText._color=_166;
(_167=="")?this._itemText._align="left":this._itemText._align=_167;
(_168=="")?this._itemText._weight="normal":this._itemText._weight=_168;
(_169=="")?this._itemText._decoration="none":this._itemText._decoration=_169;
(_170=="")?this._itemText._whiteSpace="normal":this._itemText._whiteSpace=_170;
}
function SetItemTextHL(_171,_172,_173,_174,_175){
this._itemTextHL._color=_171;
(_172=="")?this._itemTextHL._align="left":this._itemTextHL._align=_172;
(_173=="")?this._itemTextHL._weight="normal":this._itemTextHL._weight=_173;
(_174=="")?this._itemTextHL._decoration="none":this._itemTextHL._decoration=_174;
(_175=="")?this._itemTextHL._whiteSpace="normal":this._itemTextHL._whiteSpace=_175;
}
function SetItemTextClick(_176,_177,_178,_179,_180){
this._itemTextClick._color=_176;
(_177=="")?this._itemTextClick._align="left":this._itemTextClick._align=_177;
(_178=="")?this._itemTextClick._weight="normal":this._itemTextClick._weight=_178;
(_179=="")?this._itemTextClick._decoration="none":this._itemTextClick._decoration=_179;
(_180=="")?this._itemTextClick._whiteSpace="normal":this._itemTextClick._whiteSpace=_180;
}
function SetPaddings(_181){
_181=parseInt(_181);
if(!_181){
_181=0;
}
var dPad=_181+"px "+_181+"px "+_181+"px "+_181+"px";
this._padding=dPad;
}
function SetItemPaddingsHL(_183){
_183=parseInt(_183);
if(!_183){
_183=0;
}
var dPad=_183+"px "+_183+"px "+_183+"px "+_183+"px";
this._itemPaddingHL=dPad;
}
function SetItemPaddings(_184){
_184=parseInt(_184);
if(!_184){
_184=0;
}
var dPad=_184+"px "+_184+"px "+_184+"px "+_184+"px";
this._itemPadding=dPad;
}
function SetPadding(dTop,_186,_187,_188){
dTop=parseInt(dTop);
_186=parseInt(_186);
_187=parseInt(_187);
_188=parseInt(_188);
if(!dTop){
dTop=0;
}
if(!_186){
_186=0;
}
if(!_187){
_187=0;
}
if(!_188){
_188=0;
}
var dPad=dTop+"px "+_186+"px "+_187+"px "+_188+"px";
this._padding=dPad;
}
function SetItemPaddingHL(dTop,_189,_190,_191){
dTop=parseInt(dTop);
_189=parseInt(_189);
_190=parseInt(_190);
_191=parseInt(_191);
if(!dTop){
dTop=0;
}
if(!_189){
_189=0;
}
if(!_190){
_190=0;
}
if(!_191){
_191=0;
}
var dPad=dTop+"px "+_189+"px "+_190+"px "+_191+"px";
this._itemPaddingHL=dPad;
}
function SetItemPadding(dTop,_192,_193,_194){
dTop=parseInt(dTop);
_192=parseInt(_192);
_193=parseInt(_193);
_194=parseInt(_194);
if(!dTop){
dTop=0;
}
if(!_192){
_192=0;
}
if(!_193){
_193=0;
}
if(!_194){
_194=0;
}
var dPad=dTop+"px "+_192+"px "+_193+"px "+_194+"px";
this._itemPadding=dPad;
}
function SetSeparator(_195,_196,_197,_198){
_195=parseInt(_195);
if(!_195){
_195="auto";
}
this._separator._width=_195;
this._separator._align=_196;
this._separator._border._top="1px "+_197+" solid";
(_198=="")?this._separator._border._bottom="0px none solid":this._separator._border._bottom="1px "+_198+" solid";
}
function SetExpandIcon(_199,_200,_201){
if(_199){
this._expandIcon._create=true;
switch(_200){
case "":
break;
default:
this._expandIcon._symbol=_200;
}
_201=parseInt(_201);
if(!_201){
_201=6;
}
this._expandIcon._font._size=_201+"pt";
}else{
this._expandIcon._create=false;
}
}
function SetDelay(_202){
_202=parseInt(_202);
if(!_202){
_202=0;
}
this._timeOut=_202;
}
function findPosX(obj){
if(_browser._name=="Konqueror"){
var _204=0;
}else{
var _204=0;
}
if(obj.offsetParent){
while(obj.offsetParent){
_204+=obj.offsetLeft;
obj=obj.offsetParent;
}
}else{
if(obj.x){
_204+=obj.x;
}
}
return _204;
}
function findPosY(obj){
if(_browser._name=="Konqueror"){
var _205=0;
}else{
var _205=0;
}
if(obj.offsetParent){
while(obj.offsetParent){
_205+=obj.offsetTop;
obj=obj.offsetParent;
}
}else{
if(obj.y){
_205+=obj.y;
}
}
return _205;
}
function findTriggerPopID(_206,_207){
var _208=-1;
for(var i=0;i<=_arRegisterTriggerPopIndex[_207._index];i++){
if(_arRegisterTriggerPopID[_207._index][i]==_206){
_208=i;
break;
}
}
return _208;
}
function saveTriggerPopID(_209,_210){
_arRegisterTriggerPopIndex[_210._index]++;
var j=_arRegisterTriggerPopIndex[_210._index];
_arRegisterTriggerPopID[_210._index][j]=_209;
if(document.all){
var el=document.all(_209);
}else{
if(document.getElementById){
var el=document.getElementById(_209);
}
}
if(el.className.indexOf("TMenuItem")!=-1){
el.style.backgroundColor=_210._itemBackClick._color;
el.style.backgroundImage=_210._itemBackClick._image;
el.style.backgroundRepeat=_210._itemBackClick._repeat;
el.style.backgroundPosition=_210._itemBackClick._position;
el.childNodes[0].style.color=_210._itemTextClick._color;
el.childNodes[0].style.textAlign=_210._itemTextClick._align;
el.childNodes[0].style.textDecoration=_210._itemTextClick._decoration;
el.childNodes[0].style.whiteSpace=_210._itemTextClick._whiteSpace;
el.childNodes[0].style.fontWeight=_210._itemTextClick._weight;
el.style.borderTop=_210._itemBorderClick._top;
el.style.borderRight=_210._itemBorderClick._right;
el.style.borderBottom=_210._itemBorderClick._bottom;
el.style.borderLeft=_210._itemBorderClick._left;
}else{
el.className="TPopUpItem"+_210._index+"_1";
}
}
function removeTriggerPopID(_212,_213){
var _214=findTriggerPopID(_212,_213);
if(_214>-1){
for(var i=_arRegisterTriggerPopIndex[_213._index];i>=_214;i--){
var ID=_arRegisterTriggerPopID[_213._index][i];
if(document.all){
var el=document.all(ID);
}else{
if(document.getElementById){
var el=document.getElementById(ID);
}
}
if(el.className.indexOf("TMenuItem")!=-1){
el.style.backgroundColor=_213._itemBack._color;
el.style.backgroundImage=_213._itemBack._image;
el.style.backgroundRepeat=_213._itemBack._repeat;
el.style.backgroundPosition=_213._itemBack._position;
el.childNodes[0].style.color=_213._itemText._color;
el.childNodes[0].style.textAlign=_213._itemText._align;
el.childNodes[0].style.textDecoration=_213._itemText._decoration;
el.childNodes[0].style.whiteSpace=_213._itemText._whiteSpace;
el.childNodes[0].style.fontWeight=_213._itemText._weight;
el.style.borderTop=_213._itemBorder._top;
el.style.borderRight=_213._itemBorder._right;
el.style.borderBottom=_213._itemBorder._bottom;
el.style.borderLeft=_213._itemBorder._left;
}else{
var _216=ID.length;
var _217="pr_"+ID.substr(3,_216);
if(document.all){
var _218=document.all(_217);
}else{
if(document.getElementById){
var _218=document.getElementById(_217);
}
}
el.className="TPopUpItem"+_213._index;
_218.style.color=_213._pop._itemText._color;
_218.style.textAlign=_213._pop._itemText._align;
_218.style.textDecoration=_213._pop._itemText._decoration;
_218.style.whiteSpace=_213._pop._itemText._whiteSpace;
_218.style.fontWeight=_213._pop._itemText._weight;
}
_arRegisterTriggerPopID[_213._index][i]=null;
}
_arRegisterTriggerPopIndex[_213._index]=_214-1;
}
}
function removeTriggerPopIDByIndex(_219,_220){
if(_arRegisterTriggerPopIndex[_220._index]>-1&&_219>-1){
for(var i=_arRegisterTriggerPopIndex[_220._index];i>=_219;i--){
var ID=_arRegisterTriggerPopID[_220._index][i];
if(document.all){
var el=document.all(ID);
}else{
if(document.getElementById){
var el=document.getElementById(ID);
}
}
if(el.className.indexOf("TMenuItem")!=-1){
el.style.backgroundColor=_220._itemBack._color;
el.style.backgroundImage=_220._itemBack._image;
el.style.backgroundRepeat=_220._itemBack._repeat;
el.style.backgroundPosition=_220._itemBack._position;
el.childNodes[0].style.color=_220._itemText._color;
el.childNodes[0].style.textAlign=_220._itemText._align;
el.childNodes[0].style.textDecoration=_220._itemText._decoration;
el.childNodes[0].style.whiteSpace=_220._itemText._whiteSpace;
el.childNodes[0].style.fontWeight=_220._itemText._weight;
el.style.borderTop=_220._itemBorder._top;
el.style.borderRight=_220._itemBorder._right;
el.style.borderBottom=_220._itemBorder._bottom;
el.style.borderLeft=_220._itemBorder._left;
}else{
var _221=ID.length;
var _222="pr_"+ID.substr(3,_221);
if(document.all){
var _223=document.all(_222);
}else{
if(document.getElementById){
var _223=document.getElementById(_222);
}
}
el.className="TPopUpItem"+_220._index;
_223.style.color=_220._pop._itemText._color;
_223.style.textAlign=_220._pop._itemText._align;
_223.style.textDecoration=_220._pop._itemText._decoration;
_223.style.whiteSpace=_220._pop._itemText._whiteSpace;
_223.style.fontWeight=_220._pop._itemText._weight;
}
_arRegisterTriggerPopID[_220._index][i]=null;
}
_arRegisterTriggerPopIndex[_220._index]=_219-1;
}
}
function removeAllTriggerPopID(_224){
if(_arRegisterTriggerPopIndex[_224._index]>-1){
for(var i=_arRegisterTriggerPopIndex[_224._index];i>=0;i--){
var ID=_arRegisterTriggerPopID[_224._index][i];
if(document.all){
var el=document.getElementById(ID);
}else{
if(document.getElementById){
var el=document.getElementById(ID);
}
}
if(el.className.indexOf("TMenuItem")!=-1){
if(_arMMClick[_224._index]){
el.style.backgroundColor=_224._itemBack._color;
el.style.backgroundImage=_224._itemBack._image;
el.style.backgroundRepeat=_224._itemBack._repeat;
el.style.backgroundPosition=_224._itemBack._position;
el.childNodes[0].style.color=_224._itemText._color;
el.childNodes[0].style.textAlign=_224._itemText._align;
el.childNodes[0].style.textDecoration=_224._itemText._decoration;
el.childNodes[0].style.whiteSpace=_224._itemText._whiteSpace;
el.childNodes[0].style.fontWeight=_224._itemText._weight;
el.style.borderTop=_224._itemBorder._top;
el.style.borderRight=_224._itemBorder._right;
el.style.borderBottom=_224._itemBorder._bottom;
el.style.borderLeft=_224._itemBorder._left;
}
}else{
var _225=ID.length;
var _226="pr_"+ID.substr(3,_225);
if(document.all){
var _227=document.all(_226);
}else{
if(document.getElementById){
var _227=document.getElementById(_226);
}
}
el.className="TPopUpItem"+_224._index;
_227.style.color=_224._pop._itemText._color;
_227.style.textAlign=_224._pop._itemText._align;
_227.style.textDecoration=_224._pop._itemText._decoration;
_227.style.whiteSpace=_224._pop._itemText._whiteSpace;
_227.style.fontWeight=_224._pop._itemText._weight;
}
_arRegisterTriggerPopID[_224._index][i]=null;
}
_arRegisterTriggerPopIndex[_224._index]=-1;
}
}
function findRegisteredPopUpMenuID(_228,_229){
var _230=-1;
for(var i=0;i<=_arRegisterPopIndex[_229._index];i++){
if(_arRegisterPopID[_229._index][i]==_228){
_230=i;
break;
}
}
return _230;
}
function showPopUpMenu(_231,_232,_233,_234){
_arRegisterPopIndex[_233._index]++;
var j=_arRegisterPopIndex[_233._index];
_arRegisterPopID[_233._index][j]=_232;
var _235=0;
var _236=0;
var _237=0;
var _238=0;
if(document.all){
var _239=document.all(_231);
var elm=document.all(_232);
}else{
if(document.getElementById){
var _239=document.getElementById(_231);
var elm=document.getElementById(_232);
}
}
_236=findPosX(_239);
_238=findPosY(_239);
var _241=0;
var _242=0;
if(window.innerHeight){
_241=window.pageYOffset;
_242=window.pageXOffset;
}else{
if(document.documentElement&&document.documentElement.scrollTop){
_241=document.documentElement.scrollTop;
_242=document.documentElement.scrollLeft;
}else{
if(document.body){
_241=document.body.scrollTop;
_242=document.body.scrollLeft;
}
}
}
if(_234=="mm"){
if(_233._direction=="horizontal"){
if((_236-elm.offsetWidth-_233._correction._left)<0){
if(_236<_242){
_235=_236+_239.offsetWidth+_233._correction._left-1;
}else{
_235=_236+_233._correction._left-1;
}
}else{
if(_236-_242+elm.offsetWidth+_233._correction._left>document.body.clientWidth){
if(_236+_239.offsetWidth-_242>document.body.clientWidth){
_235=_236-elm.offsetWidth-_233._correction._left;
}else{
_235=_236+_239.offsetWidth-elm.offsetWidth-_233._correction._left-1;
}
}else{
if(_236<_242){
_235=_236+_239.offsetWidth+_233._correction._left-1;
}else{
_235=_236+_233._correction._left-1;
}
}
}
if((_238-_241-elm.offsetHeight-_233._correction._top)<0){
_237=_238+_239.offsetHeight+1+_233._correction._top;
}else{
if(_238+_239.offsetHeight+elm.offsetHeight-_241+_233._correction._top<document.body.clientHeight){
_237=_238+_239.offsetHeight+1+_233._correction._top;
}else{
_237=_238-elm.offsetHeight-_233._correction._top;
}
}
}else{
if(_236-_242-elm.offsetWidth-_233._correction._left<0){
_235=_236+_239.offsetWidth+_233._correction._left+1;
}else{
if((_236-_242+_239.offsetWidth+elm.offsetWidth+_233._correction._left)<document.body.clientWidth){
_235=_236+_239.offsetWidth+_233._correction._left+1;
}else{
_235=_236-elm.offsetWidth-_233._correction._left-1;
}
}
if(_238-_241-elm.offsetHeight-_233._correction._top<0){
if(_238<_241){
_237=_238+_239.offsetHeight+_233._correction._top-1;
}else{
_237=_238+_233._correction._top-1;
}
}else{
if(_238-_241+elm.offsetHeight+_233._correction._top<document.body.clientHeight){
_237=_238+_233._correction._top-1;
}else{
if(_238-_241+_239.offsetHeight<document.body.clientHeight){
_237=_238+_239.offsetHeight-elm.offsetHeight-_233._correction._top+1;
}else{
_237=_238-elm.offsetHeight-_233._correction._top+1;
}
}
}
}
elm.style.left=_235+"px";
elm.style.top=_237+"px";
if(_233._pop._shadow._create){
if(document.all){
var _243=document.all("sh_"+_232);
}else{
if(document.getElementById){
var _243=document.getElementById("sh_"+_232);
}
}
if(_browser._name=="IE"){
_243.style.left=_235+"px";
_243.style.top=_237+"px";
}else{
_243.style.left=_235+_233._pop._shadow._distance+"px";
_243.style.top=_237+_233._pop._shadow._distance+"px";
}
_243.style.visibility="visible";
}
}else{
_237=_238;
_235=_236+_239.offsetWidth;
if(_237-elm.offsetHeight<0){
_237=_237+_233._pop._correction._top;
}else{
if(_237-_241+elm.offsetHeight<document.body.clientHeight){
_237=_237+_233._pop._correction._top-2;
}else{
_237=_237-elm.offsetHeight+_239.offsetHeight+_233._pop._correction._top+2;
}
}
if((_235-((elm.offsetWidth+_233._pop._correction._left+1)*2))<0){
_235=_235+_233._pop._correction._left-3;
}else{
if((_235-_242+elm.offsetWidth+_233._pop._correction._left)>document.body.clientWidth){
_235=_235-_239.offsetWidth-elm.offsetWidth-_233._pop._correction._left+5;
}else{
_235=_235+_233._pop._correction._left-3;
}
}
elm.style.top=_237+"px";
elm.style.left=_235+"px";
if(_233._pop._shadow._create){
if(document.all){
var _243=document.all("sh_"+_232);
}else{
if(document.getElementById){
var _243=document.getElementById("sh_"+_232);
}
}
if(_browser._name=="IE"){
_243.style.left=_235+"px";
_243.style.top=_237+"px";
}else{
_243.style.left=_235+_233._pop._shadow._distance+"px";
_243.style.top=_237+_233._pop._shadow._distance+"px";
}
_243.style.visibility="visible";
}
}
elm.style.visibility="visible";
}
function hidePopUpMenu(_244,_245){
var _246=findRegisteredPopUpMenuID(_244,_245);
if(_246>-1){
for(var i=_arRegisterPopIndex[_245._index];i>=_246;i--){
var ID=_arRegisterPopID[_245._index][i];
if(document.all){
document.all(ID).style.visibility="hidden";
}else{
if(document.getElementById){
document.getElementById(ID).style.visibility="hidden";
}
}
if(_245._pop._shadow._create){
if(document.all){
document.all("sh_"+ID).style.visibility="hidden";
}else{
if(document.getElementById){
document.getElementById("sh_"+ID).style.visibility="hidden";
}
}
}
}
_arRegisterPopIndex[_245._index]=_246-1;
}
}
function hidePopUpMenuByIndex(_247,_248){
if(_arRegisterPopIndex[_248._index]>=_247){
for(var i=_arRegisterPopIndex[_248._index];i>=_247;i--){
var ID=_arRegisterPopID[_248._index][i];
if(document.all){
document.all(ID).style.visibility="hidden";
}else{
if(document.getElementById){
document.getElementById(ID).style.visibility="hidden";
}
}
if(_248._pop._shadow._create){
if(document.all){
document.all("sh_"+ID).style.visibility="hidden";
}else{
if(document.getElementById){
document.getElementById("sh_"+ID).style.visibility="hidden";
}
}
}
}
_arRegisterPopIndex[_248._index]=_247-1;
}
}
function hideAllPopUpMenu(_249){
var _250=_arRegisterPopIndex[_249._index];
if(_250>-1){
for(i=_250;i>=0;i--){
var ID=_arRegisterPopID[_249._index][i];
if(document.all){
document.all(ID).style.visibility="hidden";
}else{
if(document.getElementById){
document.getElementById(ID).style.visibility="hidden";
}
}
if(_249._pop._shadow._create){
document.getElementById("sh_"+ID).style.visibility="hidden";
}
}
}
_arRegisterPopIndex[_249._index]=-1;
}
function triggerHideAll(_251){
_arTriggerMenu[_251._index]=window.setTimeout("hideAll("+_251._name+")",_251._pop._timeOut);
}
function clearTriggerHideAll(_252){
window.clearTimeout(_arTriggerMenu[_252._index]);
}
function hideAll(_253){
hideAllPopUpMenu(_253);
removeAllTriggerPopID(_253);
if(_253._popOnClick){
_arMMClick[_253._index]=false;
}else{
_arMMClick[_253._index]=true;
}
window.status="";
_253._hideObject.Show();
}
function onMainClick(_254,elm,_255,_256){
if(!_arMMClick[_256._index]){
_arMMClick[_256._index]=true;
if(_255!=""){
showPopUpMenu(elm.id,_255,_256,"mm");
saveTriggerPopID(elm.id,_256);
}
}else{
_arMMClick[_256._index]=false;
hideAllPopUpMenu(_256);
removeAllTriggerPopID(_256);
elm.style.backgroundColor=_256._itemBackHL._color;
elm.style.backgroundImage=_256._itemBackHL._image;
elm.style.backgroundRepeat=_256._itemBackHL._repeat;
elm.style.backgroundPosition=_256._itemBackHL._position;
elm.childNodes[0].style.color=_256._itemTextHL._color;
elm.childNodes[0].style.textAlign=_256._itemTextHL._align;
elm.childNodes[0].style.textDecoration=_256._itemTextHL._decoration;
elm.childNodes[0].style.whiteSpace=_256._itemTextHL._whiteSpace;
elm.childNodes[0].style.fontWeight=_256._itemTextHL._weight;
elm.style.borderTop=_256._itemBorderHL._top;
elm.style.borderRight=_256._itemBorderHL._right;
elm.style.borderBottom=_256._itemBorderHL._bottom;
elm.style.borderLeft=_256._itemBorderHL._left;
}
_256._hideObject.Hide();
onBubble(_254);
}
function onMainMOver(_257,elm,_258,_259,_260,_261){
window.status=unescape(_261);
clearTriggerHideAll(_260);
if(_arRegisterTriggerPopID[_260._index][0]!=elm.id){
if(_arRegisterTriggerPopID[_260._index][0]!=null){
removeAllTriggerPopID(_260);
}
if(_arMMClick[_260._index]){
hideAllPopUpMenu(_260);
removeAllTriggerPopID(_260);
if(_258!=""){
showPopUpMenu(elm.id,_258,_260,"mm");
saveTriggerPopID(elm.id,_260);
}
if(_260._popOnClick){
elm.style.backgroundColor=_260._itemBackClick._color;
elm.style.backgroundImage=_260._itemBackClick._image;
elm.style.backgroundRepeat=_260._itemBackClick._repeat;
elm.style.backgroundPosition=_260._itemBackClick._position;
elm.childNodes[0].style.color=_260._itemTextClick._color;
elm.childNodes[0].style.textAlign=_260._itemTextClick._align;
elm.childNodes[0].style.textDecoration=_260._itemTextClick._decoration;
elm.childNodes[0].style.whiteSpace=_260._itemTextClick._whiteSpace;
elm.childNodes[0].style.fontWeight=_260._itemTextClick._weight;
elm.style.borderTop=_260._itemBorderClick._top;
elm.style.borderRight=_260._itemBorderClick._right;
elm.style.borderBottom=_260._itemBorderClick._bottom;
elm.style.borderLeft=_260._itemBorderClick._left;
}else{
elm.style.backgroundColor=_260._itemBackHL._color;
elm.style.backgroundImage=_260._itemBackHL._image;
elm.style.backgroundRepeat=_260._itemBackHL._repeat;
elm.style.backgroundPosition=_260._itemBackHL._position;
elm.childNodes[0].style.color=_260._itemTextHL._color;
elm.childNodes[0].style.textAlign=_260._itemTextHL._align;
elm.childNodes[0].style.textDecoration=_260._itemTextHL._decoration;
elm.childNodes[0].style.whiteSpace=_260._itemTextHL._whiteSpace;
elm.childNodes[0].style.fontWeight=_260._itemTextHL._weight;
elm.style.borderTop=_260._itemBorderHL._top;
elm.style.borderRight=_260._itemBorderHL._right;
elm.style.borderBottom=_260._itemBorderHL._bottom;
elm.style.borderLeft=_260._itemBorderHL._left;
_260._hideObject.Hide();
}
}else{
elm.style.backgroundColor=_260._itemBackHL._color;
elm.style.backgroundImage=_260._itemBackHL._image;
elm.style.backgroundRepeat=_260._itemBackHL._repeat;
elm.style.backgroundPosition=_260._itemBackHL._position;
elm.childNodes[0].style.color=_260._itemTextHL._color;
elm.childNodes[0].style.textAlign=_260._itemTextHL._align;
elm.childNodes[0].style.textDecoration=_260._itemTextHL._decoration;
elm.childNodes[0].style.whiteSpace=_260._itemTextHL._whiteSpace;
elm.childNodes[0].style.fontWeight=_260._itemTextHL._weight;
elm.style.borderTop=_260._itemBorderHL._top;
elm.style.borderRight=_260._itemBorderHL._right;
elm.style.borderBottom=_260._itemBorderHL._bottom;
elm.style.borderLeft=_260._itemBorderHL._left;
}
}
onBubble(_257);
}
function onBubble(_262){
if(!_262){
var _262=window.event;
}
_262.cancelBubble=true;
if(_262.stopPropagation){
_262.stopPropagation();
}
}
function onMainMOut(_263,elm,_264,_265){
if(!_arMMClick[_265._index]||_264==""){
elm.style.backgroundColor=_265._itemBack._color;
elm.style.backgroundImage=_265._itemBack._image;
elm.style.backgroundRepeat=_265._itemBack._repeat;
elm.style.backgroundPosition=_265._itemBack._position;
elm.childNodes[0].style.color=_265._itemText._color;
elm.childNodes[0].style.textAlign=_265._itemText._align;
elm.childNodes[0].style.textDecoration=_265._itemText._decoration;
elm.childNodes[0].style.whiteSpace=_265._itemText._whiteSpace;
elm.childNodes[0].style.fontWeight=_265._itemText._weight;
elm.style.borderTop=_265._itemBorder._top;
elm.style.borderRight=_265._itemBorder._right;
elm.style.borderBottom=_265._itemBorder._bottom;
elm.style.borderLeft=_265._itemBorder._left;
}
triggerHideAll(_265);
onBubble(_263);
}
function onStaticPopItemMOver(_266,_267,_268){
window.status=_268;
clearTriggerHideAll(_267);
onBubble(_266);
}
function onStaticPopItemMOut(_269,_270){
triggerHideAll(_270);
onBubble(_269);
}
function onPopItemMOver(_271,elm,_272,_273,_274,_275){
var _276=-1;
window.status=_275;
clearTriggerHideAll(_274);
elm.parentNode.className="TPopUpItem"+_274._index+"_1";
elm.style.color=_274._pop._itemTextHL._color;
elm.style.textAlign=_274._pop._itemTextHL._align;
elm.style.textDecoration=_274._pop._itemTextHL._decoration;
elm.style.whiteSpace=_274._pop._itemTextHL._whiteSpace;
elm.style.fontWeight=_274._pop._itemTextHL._weight;
if(_272!=""){
_276=findRegisteredPopUpMenuID(_272,_274);
if(_276==-1){
hidePopUpMenuByIndex(_273,_274);
removeTriggerPopIDByIndex(_273,_274);
showPopUpMenu(elm.id,_272,_274,"pm");
saveTriggerPopID("di_"+_272,_274);
}
}else{
hidePopUpMenuByIndex(_273,_274);
removeTriggerPopIDByIndex(_273,_274);
}
onBubble(_271);
}
function onPopItemMOut(_277,elm,_278,_279){
if(_278==""){
elm.parentNode.className="TPopUpItem"+_279._index;
elm.style.color=_279._pop._itemText._color;
elm.style.textAlign=_279._pop._itemText._align;
elm.style.textDecoration=_279._pop._itemText._decoration;
elm.style.whiteSpace=_279._pop._itemText._whiteSpace;
elm.style.fontWeight=_279._pop._itemText._weight;
}
triggerHideAll(_279);
onBubble(_277);
}
window.onresize=InitResize;
if(_browser._name=="Netscape"&&_browser._version==4){
window.captureEvents(event.RESIZE);
}
var _mmHeaderMoveObj;
var _mmHeaderMoveObjCorrectionX=0;
var _mmHeaderMoveObjCorrectionY=0;
function onMMHeaderMove(_280){
if(!_280){
_280=window.event;
}
var xPos=(_280.clientX)?_280.clientX:_280.pageX;
var yPos=(_280.clientY)?_280.clientY:_280.pageY;
xPos=parseInt(xPos);
if(!xPos){
xPos=0;
}
yPos=parseInt(yPos);
if(!yPos){
yPos=0;
}
if(document.all){
var _283=document.all("fr_"+_mmHeaderMoveObj._id);
}else{
if(document.getElementById){
var _283=document.getElementById("fr_"+_mmHeaderMoveObj._id);
}
}
xPos=xPos-_mmHeaderMoveObjCorrectionX;
yPos=yPos-_mmHeaderMoveObjCorrectionY;
if(_mmHeaderMoveObj._shadow._create){
if(document.all){
var _284=document.all("sh_"+_mmHeaderMoveObj._id);
}else{
if(document.getElementById){
var _284=document.getElementById("sh_"+_mmHeaderMoveObj._id);
}
}
if(_browser._name=="IE"){
_284.style.left=xPos;
_284.style.top=yPos;
}else{
_284.style.left=xPos+_mmHeaderMoveObj._shadow._distance;
_284.style.top=yPos+_mmHeaderMoveObj._shadow._distance;
}
}
_283.style.left=xPos;
_283.style.top=yPos;
}
function onMMDocumentClick(_285){
onMMHeaderClick(_285,_mmHeaderMoveObj);
}
function onMMHeaderClick(_286,_287){
if(!_286){
_286=window.event;
}
if((_browser._name=="IE")||(_browser._name=="Konqueror")){
var xPos=_286.clientX;
var yPos=_286.clientY;
}else{
var xPos=_286.pageX;
var yPos=_286.pageY;
}
if(document.all){
var elm=document.all(_287._id);
var _288=document.all("fr_"+_287._id);
}else{
(document.getElementById);
}
var elm=document.getElementById(_287._id);
var _288=document.getElementById("fr_"+_287._id);
if(_287._headerClickState){
_287._headerClickState=false;
document.onmousemove=null;
_mmHeaderMoveObj=null;
if(_browser._name=="Netscape"&&_browser._version==4){
window.releaseEvents(_286.MOUSEMOVE);
}
elm.style.top=_288.style.top;
elm.style.left=_288.style.left;
_287._left=xPos-_mmHeaderMoveObjCorrectionX;
_287._top=yPos-_mmHeaderMoveObjCorrectionY;
_288.style.visibility="hidden";
elm.style.visibility="visible";
}else{
_mmHeaderMoveObjCorrectionX=xPos-_287._left;
_mmHeaderMoveObjCorrectionY=yPos-_287._top;
elm.style.visibility="hidden";
_288.style.visibility="visible";
_287._headerClickState=true;
_mmHeaderMoveObj=_287;
document.onmousemove=onMMHeaderMove;
if(_browser._name=="Netscape"&&_browser._version==4){
window.captureEvents(_286.MOUSEMOVE);
}
clearTriggerHideAll(_287);
hideAll(_287);
}
onBubble(_286);
}
function _floatingMMEffect(_289){
var posX=0;
var posY=0;
if(window.innerHeight){
posY=window.pageYOffset;
posX=window.pageXOffset;
}else{
if(document.documentElement&&document.documentElement.scrollTop){
posX=document.documentElement.scrollLeft;
posY=document.documentElement.scrollTop;
}else{
if(document.body){
posX=document.body.scrollLeft;
posY=document.body.scrollTop;
}
}
}
if(document.all){
var elm=document.all(_289._id);
var _292=document.all("sh_"+_289._id);
}else{
if(document.getElementById){
var elm=document.getElementById(_289._id);
var _292=document.getElementById("sh_"+_289._id);
}
}
if(posY<_289._initialTop){
posY=_289._initialTop;
}else{
posY+=_289._initialTop;
}
if(posY==_289._top){
elm.style.top=posY;
if(_289._shadow._create){
if(_browser._name=="IE"){
_292.style.top=posY;
}else{
_292.style.top=posY+_289._shadow._distance;
}
}
}
_289._top=posY;
if(posX<_289._initialLeft){
posX=_289._initialLeft;
}else{
posX+=_289._initialLeft;
}
if(posX==_289._left){
elm.style.left=posX;
if(_289._shadow._create){
if(_browser._name=="IE"){
_292.style.left=posX;
}else{
_292.style.left=posX+_289._shadow._distance;
}
}
}
_289._left=posX;
temp=setTimeout("_floatingMMEffect("+_289._name+")",500);
}
function _openURL(_293){
self.location=_293;
}
function OutputAllMenuPosition(_294){
var _295="";
var dTop=0;
var _296=0;
for(var i=0;i<=_294._itemIndex;i++){
if(document.all){
var elm=document.all("pr_"+_294._items[i]._id);
}else{
if(document.getElementById){
var elm=document.getElementById("pr_"+_294._items[i]._id);
}
}
dTop=findPosY(elm);
_296=findPosX(elm);
_295+="pr_"+_294._items[i]._id+" : top="+dTop+",left="+_296+"<br>";
_295+=OutputAllPopMenuPosition("--",_294._items[i]);
}
return _295;
}
function OutputAllPopMenuPosition(_297,_298){
var _299="";
var dTop=0;
var _300=0;
_297=_297+"--";
for(var i=0;i<=_298._itemIndex;i++){
if((_298._items[i]._label=="-")||(_298._items[i]._type=="h")||(_298._items[i]._itemIndex==-1)){
dTop=0;
_300=0;
}else{
dTop=0;
_300=0;
if(document.all){
var elm=document.all("di_"+_298._items[i]._id);
}else{
if(document.getElementById){
var elm=document.getElementById("di_"+_298._items[i]._id);
}
}
dTop=findPosY(elm);
_300=findPosX(elm);
}
_299+=_297+" label : "+_298._items[i]._label+" : top="+dTop+",left="+_300+"<br>";
_299+=OutputAllPopMenuPosition(_297,_298._items[i]);
}
return _299;
}


