
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 8/23/2006 3:40:11 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
var menuCache ={ _count: 0, _idPrefix: "ISMenuCache",  getId: function (){ return this._idPrefix +this._count++; },  remove: function (vba212 ){ delete this[ vba212.id ]; }};function Menu(){ this.items =[]; this.parentMenu =null; this.parentMenuItem =null; this.popup =null; this.shownSubMenu =null; this._aboutToShowSubMenu =false;  this.selectedIndex =-1; this._drawn =false; this._scrollingMode =false; this._showTimer =null; this._closeTimer =null;  this._onCloseInterval =null; this._closed =true; this._closedAt =0;  this._cachedSizes ={}; this._measureInvalid =true;  this.id =menuCache.getId(); menuCache[ this.id ] =this;}Menu.prototype.cssFile ="ISMenu.css";Menu.prototype.cssText =null;Menu.prototype.mouseHoverDisabled =true;Menu.prototype.showTimeout =250;Menu.prototype.closeTimeout =250;Menu.keyboardAccelKey =27;  Menu.keyboardAccelProperty ="ctrlKey"; Menu.prototype.add =function (mi,beforeMi ){ if (beforeMi !=null ){ var items =this.items; var l =items.length; for (var i =0; i <l; i++){if (items[i] ==beforeMi )break; }this.items =items.slice(0,i ).concat(mi ).concat(items.slice(i,l )); } else this.items.push(mi ); mi.parentMenu =this; mi.itemIndex =this.items.length -1; if (mi.subMenu ){ mi.subMenu.parentMenu =this; mi.subMenu.parentMenuItem =mi; } return mi;};Menu.prototype.remove =function (mi ){ var res =[]; var items =this.items; var l =items.length; for (var i =0; i <l; i++){ if (items[i] !=mi ){ res.push(items[i] ); items[i].itemIndex =res.length -1; } } this.items =res; mi.parentMenu =null; return mi;};Menu.prototype.toHtml =function (isMoz){  var items =this.items; var l =items.length; var itemsHtml =new Array(l ); for (var i =0; i <l; i++) itemsHtml[i] =items[i].toHtml();  var header ="<html><head>" + (this.cssText ==null ? "<link type=\"text/css\" rel=\"StyleSheet\" href=\"" +this.cssFile +"\" />" : "<style type=\"text/css\">" +this.cssText +"</style>")+ "</head><body class=\"menu-body\">";  var footer ="</body></html>";  if (isMoz) { header =""; footer =""; } return header + "<div class=\"outer-border\"><div class=\"inner-border\">" + "<table id=\"scroll-up-item\" cellspacing=\"0\" style=\"display: none\">" + "<tr class=\"disabled\"><td>" + "<span class=\"disabled-container\"><span class=\"disabled-container\">" + (IS.ie ? "5" : "<font face=webdings>5</font>")+ "</span></span>" +"</td></tr></table>" + "<div id=\"scroll-container\">" + "<table cellspacing=\"0\">" +  itemsHtml.join("" )+  "</table>" + "</div>" + "<table id=\"scroll-down-item\" cellspacing=\"0\" style=\"display: none\">" + "<tr><td>" + "<span class=\"disabled-container\"><span class=\"disabled-container\">" + (IS.ie ? "6" : "<font face=webdings>6</font>")+ "</span></span>" + "</td></tr></table>" + "</div></div>" + footer;};Menu.prototype.createPopup =function (){ var w; var pm =this.parentMenu; if (pm ==null ) w =window; else w =pm.getDocument().parentWindow; this.popup =w.createPopup();};Menu.prototype.SetCssFile =function(grid){ this.cssFile =grid.GetCssMenuFile();};Menu.prototype.getMeasureDocument =function (){ if (this._drawn &&this.isShown()) return this.getDocument(); var mf =Menu._measureFrame; if (mf ==null ){ mf =Menu._measureFrame =IS.GetTempIFrame(); }  var d =mf.contentWindow.document;  if (Menu._measureMenu ==this &&!this._measureInvalid ) return d;   if (IS.ie) { d.open("text/html","replace" ); d.write(this.toHtml()); d.close(); }  Menu._measureMenu =this; this._measureInvalid =false;  return d;};Menu.prototype.getDocument =function (){ if (this.popup ){ try { return this.popup.document; } catch (ex){ return null; } } else return null;};Menu.prototype.getPopup =function (){ if (this.popup ==null ) this.createPopup(); return this.popup;};Menu.prototype.invalidate =function (){ if (this._drawn ){ if (this._scrollUpButton ) this._scrollUpButton.destroy(); if (this._scrollDownButton ) this._scrollDownButton.destroy();  var items =this.items; var l =items.length; var mi; for (var i =0; i <l; i++){ mi =items[i]; if (mi.subMenu ) { mi.subMenu.invalidate(); mi.subMenu.popup =null; } if (mi._htmlElement ) { mi._htmlElement._menuItem =null; mi._htmlElement =null; } } this.detachEvents(); } this._drawn =false; this.resetSizeCache(); this._measureInvalid =true;};Menu.prototype.redrawMenu =function (){ this.invalidate(); this.drawMenu();};Menu.prototype.drawMenu =function (){ if (this._drawn )return; this.getPopup();  var d =this.getDocument(); d.open("text/html","replace" ); d.write(this.toHtml(IS.moz)); d.close(); this._drawn =true;  var up =d.getElementById("scroll-up-item" ); var down =d.getElementById("scroll-down-item" ); var scrollContainer =d.getElementById("scroll-container" ); if (IS.moz) scrollContainer =d._e.firstChild.firstChild.childNodes[1]; new ScrollButton(up,scrollContainer,8 ); new ScrollButton(down,scrollContainer,2 ); var rows =scrollContainer.firstChild.tBodies[0].rows; var items =this.items; var l =rows.length; var mi; if (l !=items.length) { alert('error'); } for (var i =0; i <l; i++){ mi =items[i]; rows[i]._menuItem =mi; if (mi) mi._htmlElement =rows[i]; }  this.hookupMenu(d );  };Menu.prototype.show =function (left,top,w,h ){ var pm =this.parentMenu; if (pm ) pm.closeAllSubs(this ); this.drawMenu(); if (left ==null )left =0; if (top ==null )top =0; w =w ||Math.min(window.screen.width,this.getPreferredWidth()); h =h ||Math.min(window.screen.availHeight,this.getPreferredHeight()); if (IS.moz) { top -=window.screenTop; left -=window.screenLeft;  this.popup._e.className ="menu-body"; top +=document.body.scrollTop; if (top +ISPosLib.getHeight(this.popup._e.firstChild)>document.body.clientHeight) top =(document.body.clientHeight -ISPosLib.getHeight(this.popup._e.firstChild)); if (left +(ISPosLib.getWidth(this.popup._e.firstChild))>document.body.clientWidth) { if (!pm) left =document.body.clientWidth -ISPosLib.getWidth(this.popup._e.firstChild); else left =ISPosLib.getLeft(pm.popup._e.firstChild)-ISPosLib.getWidth(this.popup._e.firstChild); }  top +=window.screenTop; left +=window.screenLeft; } this.popup.show(left,top,w,h );  if (IS.moz) { this.popup._e.setActive(); }  if (this.getPreferredWidth()==0 ){ this.invalidate(); this.show(left,top,w,h ); return; } this.fixScrollButtons(); this.fixScrollEnabledState();  if (this.selectedIndex !=-1 ){ if (this.items[ this.selectedIndex ] ) this.items[ this.selectedIndex ].setSelected(false );  }  if (pm ){ pm.shownSubMenu =this; pm._aboutToShowSubMenu =false; }  window.clearTimeout(this._showTimer ); window.clearTimeout(this._closeTimer ); this._closed =false; this._startClosePoll();};Menu.prototype.isShown =function (){ this._checkCloseState(); var retVal =false;  try { retVal =this.popup !=null &&this.popup.isOpen; } catch(e) { retVal =false; }  return retVal;};Menu.prototype.fixSize =function (){ var w =Math.min(window.screen.width,this.getPreferredWidth()); var h =Math.min(window.screen.availHeight,this.getPreferredHeight()); var l =Math.max(0,this.getLeft()); var t =Math.max(0,this.getTop()); this.popup.show(l,t,w,h );};Menu.prototype.getWidth =function (){ var d =this.getDocument(); if (d !=null ) return d.body.offsetWidth; else return 0;};Menu.prototype.getHeight =function (){ var d =this.getDocument();  if (IS.ie) { if (d !=null ) return d.body.offsetHeight; else return 0; } else { if (d) return d._e.offsetHeight; else return 0; }};Menu.prototype.getPreferredWidth =function (){ this.updateSizeCache(); return this._cachedSizes.preferredWidth;};Menu.prototype.getPreferredHeight =function (){ this.updateSizeCache(); return this._cachedSizes.preferredHeight;};Menu.prototype.getLeft =function (){ var d =this.getDocument(); if (d !=null ) return d.parentWindow.screenLeft; else return 0;};Menu.prototype.getTop =function (){ var d =this.getDocument(); if (d !=null ) return d.parentWindow.screenTop; else return 0;};Menu.prototype.getInsetLeft =function (){ this.updateSizeCache(); return this._cachedSizes.insetLeft;};Menu.prototype.getInsetRight =function (){ this.updateSizeCache(); return this._cachedSizes.insetRight;};Menu.prototype.getInsetTop =function (){ this.updateSizeCache(); return this._cachedSizes.insetTop;};Menu.prototype.getInsetBottom =function (){ this.updateSizeCache(); return this._cachedSizes.insetBottom;};Menu.prototype.areSizesCached =function (){ var cs =this._cachedSizes; return this._drawn && "preferredWidth" in cs && "preferredHeight" in cs && "insetLeft" in cs && "insetRight" in cs && "insetTop" in cs && "insetBottom" in cs;};Menu.prototype.cacheSizes =function (bForce ){ return updateSizeCache(bForce );};Menu.prototype.resetSizeCache =function (){ this._cachedSizes ={};};Menu.prototype.updateSizeCache =function (bForce ){ if (this.areSizesCached()&&!bForce ) return;  if (IS.moz) return;  var d =this.getMeasureDocument(); var body =d.body;  var cs =this._cachedSizes ={}; var scrollContainer =d.getElementById("scroll-container" );  cs.preferredWidth =d.body.scrollWidth; scrollContainer.style.overflow ="visible"; cs.preferredHeight =body.firstChild.offsetHeight; scrollContainer.style.overflow ="hidden";  cs.insetLeft =ISPosLib.getLeft(scrollContainer ); cs.insetRight =body.scrollWidth -ISPosLib.getLeft(scrollContainer )- scrollContainer.offsetWidth;  var up =d.getElementById("scroll-up-item" ); if (IS.moz)up.currentStyle =up.style; if (up.currentStyle.display =="none" ) cs.insetTop =ISPosLib.getTop(scrollContainer ); else cs.insetTop =ISPosLib.getTop(up );  var down =d.getElementById("scroll-down-item" ); if (IS.moz)down.currentStyle =down.style; if (down.currentStyle.display =="none" ){ cs.insetBottom =body.scrollHeight -ISPosLib.getTop(scrollContainer )- scrollContainer.offsetHeight; } else { cs.insetBottom =body.scrollHeight -ISPosLib.getTop(down )- down.offsetHeight; }};Menu.prototype.fixScrollButtons =function (){ var d =this.getDocument(); var up =d.getElementById("scroll-up-item" ); var down =d.getElementById("scroll-down-item" ); var scrollContainer =d.getElementById("scroll-container" ); var scs =scrollContainer.style;  if (scrollContainer.scrollHeight >this.getHeight()){ up.style.display =""; down.style.display =""; scs.height =""; scs.overflow ="visible"; scs.height =Math.max(0,this.getHeight()- (d.body.scrollHeight -scrollContainer.offsetHeight ))+"px"; scs.overflow ="hidden";  this._scrollingMode =true; } else { up.style.display ="none"; down.style.display ="none"; scs.overflow ="visible"; scs.height ="";  this._scrollingMode =false; }};Menu.prototype.fixScrollEnabledState =function (){ var d =this.getDocument(); var up =d.getElementById("scroll-up-item" ); var down =d.getElementById("scroll-down-item" ); var scrollContainer =d.getElementById("scroll-container" ); var tr;  tr =up.rows[0]; if (scrollContainer.scrollTop ==0 ){ if (tr.className =="hover" ||tr.className =="disabled-hover" ) tr.className ="disabled-hover"; else tr.className ="disabled"; } else { if (tr.className =="disabled-hover" ||tr.className =="hover" ) tr.className ="hover"; else tr.className =""; }  tr =down.rows[0]; if (scrollContainer.scrollHeight -scrollContainer.clientHeight <= scrollContainer.scrollTop ){  if (tr.className =="hover" ||tr.className =="disabled-hover" ) tr.className ="disabled-hover"; else tr.className ="disabled"; } else { if (tr.className =="disabled-hover" ||tr.className =="hover" ) tr.className ="hover"; else tr.className ="";  }};Menu.prototype.closeAllMenus =function (){ if (this.parentMenu ) this.parentMenu.closeAllMenus(); else this.close();};Menu.prototype.close =function (){ this.closeAllSubs();  window.clearTimeout(this._showTimer ); window.clearTimeout(this._closeTimer );  if (this.popup &&this.popup.hide ) this.popup.hide();  var pm =this.parentMenu; if (pm &&pm.shownSubMenu ==this ) pm.shownSubMenu =null;  this.setSelectedIndex(-1 ); this._checkCloseState();};Menu.prototype.closeAllSubs =function (oNotThisSub){ var items =this.items; var l =items.length; for (var i =0; i <l; i++){ if (items[i].subMenu !=null &&items[i].subMenu !=oNotThisSub ) items[i].subMenu.close(); }};Menu.prototype.getSelectedIndex =function (){ return this.selectedIndex;};Menu.prototype.setSelectedIndex =function (nIndex ){ if (this.selectedIndex ==nIndex )return;  if (nIndex >=this.items.length ) nIndex =-1;  var mi;  if (this.selectedIndex !=-1 ){ mi =this.items[ this.selectedIndex ]; if (mi !=null) mi.setSelected(false ); }  this.selectedIndex =nIndex; mi =this.items[ this.selectedIndex ]; if (mi !=null ) mi.setSelected(true );};Menu.prototype.goToNextMenuItem =function (){ var i =0; var items =this.items; var length =items.length; var index =this.getSelectedIndex(); var tmp;  do { if (index ==-1 ||index >=length ) index =0; else  index++; i++; tmp =items[index]; }while (!(tmp !=null &&tmp instanceof MenuItem && !(tmp instanceof MenuSeparator)||i >=length ))  if (tmp !=null ) this.setSelectedIndex(index );};Menu.prototype.goToPreviousMenuItem =function (){ var i =0; var items =this.items; var length =items.length; var index =this.getSelectedIndex(); var tmp;  do { if (index ==-1 ||index >=length ) index =length -1; else  index--; i++; tmp =items[index] }while (!(tmp !=null &&tmp instanceof MenuItem && !(tmp instanceof MenuSeparator)||i >=length ));  if (tmp !=null ) this.setSelectedIndex(index );};Menu.prototype.goToNextMenu =function (){ var index =this.getSelectedIndex(); var mi =this.items[ index ];  if (mi &&mi.subMenu &&!mi.disabled ){ mi.subMenu.setSelectedIndex(0 ); mi.showSubMenu(false ); } else { var mb =this.getMenuBar(); if (mb !=null ) mb.goToNextMenuItem(); }};Menu.prototype.goToPreviousMenu =function (){ if (this.parentMenuItem &&this.parentMenuItem instanceof MenuButton ){ this.parentMenu.goToPreviousMenuItem(); } else if (this.parentMenuItem ){ this.close(); }};Menu.prototype.getMenuBar =function (){ if (this.parentMenu ==null ) return null; return this.parentMenu.getMenuBar();};Menu.prototype.makeEventListeners =function (){ if (this.eventListeners !=null ) return; this.eventListeners ={ onscroll: new Function("eventListeners.menu.onscroll(\"" +this.id +"\")" ), onmouseover: new Function("eventListeners.menu.onmouseover(\"" +this.id +"\")" ), onmouseout: new Function("eventListeners.menu.onmouseout(\"" +this.id +"\")" ), onmouseup: new Function("eventListeners.menu.onmouseup(\"" +this.id +"\")" ), onmousewheel: new Function("eventListeners.menu.onmousewheel(\"" +this.id +"\")" ), onreadystatechange: new Function("eventListeners.menu.onreadystatechange(\"" +this.id +"\")" ), onkeydown: new Function("eventListeners.menu.onkeydown(\"" +this.id +"\")" ), oncontextmenu: new Function("eventListeners.menu.oncontextmenu(\"" +this.id +"\")" ), onunload: new Function("eventListeners.menu.onunload(\"" +this.id +"\")" ) };};Menu.prototype.detachEvents =function (){ if (this.eventListeners ==null) return;  var d =this.getDocument();  if (d) { var w =d.parentWindow; var scrollContainer =d.getElementById("scroll-container");  if (!scrollContainer)return;  scrollContainer.detachEvent("onscroll",this.eventListeners.onscroll );  d.detachEvent("onmouseover",this.eventListeners.onmouseover ); d.detachEvent("onmouseout",this.eventListeners.onmouseout ); d.detachEvent("onmouseup",this.eventListeners.onmouseup ); d.detachEvent("onmousewheel",this.eventListeners.onmousewheel );  if (this.cssText ==null){ if (IS.ie) { var linkEl =d.getElementsByTagName("LINK")[0]; linkEl.detachEvent("onreadystatechange",this.eventListeners.onreadystatechange ); } } d.detachEvent("onkeydown",this.eventListeners.onkeydown ); d.detachEvent("oncontextmenu",this.eventListeners.oncontextmenu ); } window.detachEvent("onunload",this.eventListeners.onunload );};Menu.prototype.hookupMenu =function (d ){ this.detachEvents(); this.makeEventListeners(); var oThis =this; var d =this.getDocument(); var w =d.parentWindow; var scrollContainer =d.getElementById("scroll-container");  scrollContainer.attachEvent("onscroll",this.eventListeners.onscroll );  d.attachEvent("onmouseover",this.eventListeners.onmouseover ); d.attachEvent("onmouseout",this.eventListeners.onmouseout ); d.attachEvent("onmouseup",this.eventListeners.onmouseup ); d.attachEvent("onmousewheel",this.eventListeners.onmousewheel );   if (this.cssText ==null){ if (IS.ie) { var linkEl =d.getElementsByTagName("LINK")[0]; if (linkEl.readyState !="complete"){ linkEl.attachEvent("onreadystatechange",this.eventListeners.onreadystatechange ); } } } if (IS.ie) d.attachEvent("onkeydown",this.eventListeners.onkeydown ); d.attachEvent("oncontextmenu",this.eventListeners.oncontextmenu ); window.attachEvent("onunload",this.eventListeners.onunload );  var all =d.all; var l =all.length; };Menu.prototype.handleKeyEvent =function (oEvent ){ if (this.shownSubMenu ||IS.moz){ return; } var nKeyCode =oEvent.keyCode;  oEvent.returnValue =false; oEvent.keyCode =0;  switch (nKeyCode ){ case 40: this.goToNextMenuItem(); break;  case 38: this.goToPreviousMenuItem(); break;  case 39: this.goToNextMenu(); break;  case 37: this.goToPreviousMenu(); break;  case 13: var mi =this.items[ this.getSelectedIndex()]; if (mi ) mi.dispatchAction(); break;  case 27: this.close();  break;   case Menu.keyboardAccelKey: this.closeAllMenus(); break; default: var c =String.fromCharCode(nKeyCode ).toLowerCase(); var items =this.items; var l =items.length; for (var i =0; i <l; i++){ if (items[i].mnemonic ==c ){ items[i].dispatchAction(); break; } } }};Menu.prototype._startClosePoll =function (){ var oThis =this; window.clearInterval(this._onCloseInterval ); this._onCloseInterval =window.setInterval( "eventListeners.menu.oncloseinterval(\"" +this.id +"\")",100 );};Menu.prototype._checkCloseState =function (){ var closed;  try { closed =this.popup ==null ||!this.popup.isOpen; } catch(e) { closed =true; }  if (closed &&this._closed !=closed ){ this._closed =closed; this._closedAt =new Date().valueOf(); window.clearInterval(this._onCloseInterval ); if (typeof this._onclose =="function" ){ var e =this.getDocument().parentWindow.event; if (e !=null &&e.keyCode ==27 ) this._closeReason ="escape"; else this._closeReason ="unknown"; this._onclose(); } }};Menu.prototype._isCssFileLoaded =function (){ if (this.cssText !=null ||IS.moz) return true;  var d =this.getMeasureDocument(); var l =d.getElementsByTagName("LINK")[0]; return l.readyState =="complete";};Menu.prototype.destroy =function (){ var l =this.items.length; for (var i =l -1; i >=0; i--) this.items[i].destroy(); this.detachEvents(); this.items =[]; this.parentMenu =null; this.parentMenuItem =null; this.shownSubMenu =null; this._cachedSizes =null; this.eventListeners =null;  if (this.popup !=null ){ try { var d =this.popup.document; d.open("text/plain","replace"); d.write(""); d.close(); } catch(e) {}  this.popup =null; } if (Menu._measureMenu ==this ){ Menu._measureMenu =null; var d =Menu._measureFrame.contentWindow.document; d.open("text/plain","replace"); d.write(""); d.close(); }  menuCache.remove(this );};function MenuItem(v8ba92,v30f81,v11732,vd2369 ){ this.icon =v11732 ||""; this.text =v8ba92; this.action =v30f81;  this.subMenu =vd2369; this.parentMenu =null; this.alwaysVisible =false;  this._selected =false; this._useInsets =true;  this.id =menuCache.getId(); menuCache[ this.id ] =this;}MenuItem.prototype.subMenuDirection ="horizontal";MenuItem.prototype.disabled =false;MenuItem.prototype.mnemonic =null;MenuItem.prototype.shortcut =null;MenuItem.prototype.toolTip ="";MenuItem.prototype.target =null;MenuItem.prototype.visible =true;MenuItem.prototype.toHtml =function (){ var cssClass =this.getCssClass(); var toolTip =this.getToolTip();  return "<tr" + (cssClass !="" ? " class=\"" +cssClass +"\"" : "")+ (toolTip !="" ? " title=\"" +toolTip +"\"" : "")+ (!this.visible ? " style=\"display: none\"" : "")+ ">" + this.getIconCellHtml()+ this.getTextCellHtml()+ this.getShortcutCellHtml()+ this.getSubMenuArrowCellHtml()+ "</tr>";};MenuItem.prototype.getTextHtml =function (){ var s =this.text; if (!s ||!this.mnemonic ) return s;  var re =new RegExp("^(((<([^>]|" +this.mnemonic +")+>)|[^<" + this.mnemonic +"])*)(" +this.mnemonic +")","i" ); re.exec(s ); if (RegExp.index !=-1 &&RegExp.$5 !="" ) return RegExp.$1 +"<u>" +RegExp.$5 +"</u>" +RegExp.rightContext; else return s;};MenuItem.prototype.getIconHtml =function (){ return this.icon !="" ? "<img src=\"" +this.icon +"\">" : "<span>&nbsp;</span>";};MenuItem.prototype.getTextCellHtml =function (){ return "<td class=\"label-cell\" nowrap=\"nowrap\"" +(IsGecko18()? " style='width:auto' " : "")+">" + this.makeDisabledContainer( this.getTextHtml() )+ "</td>";};MenuItem.prototype.getIconCellHtml =function (){ return "<td class=\"" + (this.icon !="" ? "icon-cell" : "empty-icon-cell")+ "\">" + this.makeDisabledContainer( this.getIconHtml() )+ "</td>";};MenuItem.prototype.getCssClass =function (){ if (this.disabled &&this._selected ) return "disabled-hover"; else if (this.disabled ) return "disabled"; else if (this._selected ) return "hover";  return "";};MenuItem.prototype.getToolTip =function (){ return this.toolTip;};MenuItem.prototype.getShortcutHtml =function (){ if (this.shortcut ==null ) return "&nbsp;";  return this.shortcut;};MenuItem.prototype.getShortcutCellHtml =function (){ return "<td class=\"shortcut-cell\" nowrap=\"nowrap\">" + this.makeDisabledContainer( this.getShortcutHtml() )+ "</td>";};MenuItem.prototype.getSubMenuArrowHtml =function (){ if (this.subMenu ==null ) return "&nbsp;";  if (IS.ie) return 4; else return "<font face='Webdings'>4</face>";};MenuItem.prototype.getSubMenuArrowCellHtml =function (){ return "<td class=\"arrow-cell\">" + this.makeDisabledContainer( this.getSubMenuArrowHtml() )+ "</td>";};MenuItem.prototype.makeDisabledContainer =function (s ){ if (this.disabled ) return "<span class=\"disabled-container\"><span class=\"disabled-container\">" + s +"</span></span>"; return s;};MenuItem.prototype.dispatchAction =function (){ if (this.disabled ) return;  this.setSelected(true );  if (this.subMenu ){ if (!this.subMenu.isShown()) this.showSubMenu(false ); return; }  if (typeof this.action =="function" ){ if (!this.alwaysVisible){ this.setSelected(false );  this.parentMenu.closeAllMenus(); } this.action();  } else if (typeof this.action =="string" ){this.setSelected(false ); this.parentMenu.closeAllMenus(); if (this.target !=null ) window.open(this.action,this.target ); else document.location.href =this.action; }};MenuItem.prototype.getElement =function(doc){var d =this.parentMenu.getDocument();return doc.getElementById(this.id);};MenuItem.prototype.setSelected =function (bSelected ){ if (this._selected ==bSelected )return;  this._selected =Boolean(bSelected ); var tr =this._htmlElement; if (tr ) tr.className =this.getCssClass();  if (!this._selected ) this.closeSubMenu(true ); var pm =this.parentMenu; if (bSelected ){  pm.setSelectedIndex(this.itemIndex ); this.scrollIntoView();  if (pm.parentMenuItem ) pm.parentMenuItem.setSelected(true ); } else pm.setSelectedIndex(-1 );  if (this._selected ){ window.clearTimeout(pm._closeTimer ); }};MenuItem.prototype.getSelected =function (){ return this.itemIndex ==this.parentMenu.selectedIndex;};MenuItem.prototype.showSubMenu =function (bDelayed ){ var sm =this.subMenu; var pm =this.parentMenu; if (sm &&!this.disabled ){  pm._aboutToShowSubMenu =true;  window.clearTimeout(sm._showTimer ); window.clearTimeout(sm._closeTimer );  var showTimeout =bDelayed ? sm.showTimeout : 0;  var oThis =this; sm._showTimer =window.setTimeout( "eventListeners.menuItem.onshowtimer(\"" +this.id +"\")", showTimeout ); }};MenuItem.prototype.closeSubMenu =function (bDelay ){ var sm =this.subMenu; if (sm ){ window.clearTimeout(sm._showTimer ); window.clearTimeout(sm._closeTimer ); if (sm.popup ){ if (!bDelay ) sm.close(); else { var oThis =this; sm._closeTimer =window.setTimeout( "eventListeners.menuItem.onclosetimer(\"" +this.id +"\")", sm.closeTimeout ); } } }};MenuItem.prototype.scrollIntoView =function (){ if (this.parentMenu._scrollingMode ){ var d =this.parentMenu.getDocument(); var sc =d.getElementById("scroll-container" ); var scrollTop =sc.scrollTop; var clientHeight =sc.clientHeight; var offsetTop =this._htmlElement.offsetTop; var offsetHeight =this._htmlElement.offsetHeight;  if (offsetTop <scrollTop ) sc.scrollTop =offsetTop; else if (offsetTop +offsetHeight >scrollTop +clientHeight ) sc.scrollTop =offsetTop +offsetHeight -clientHeight; }};MenuItem.prototype.positionSubMenu =function (){ var dir =this.subMenuDirection; var el =this._htmlElement; var useInsets =this._useInsets; var sm =this.subMenu;  var oThis =this;  if (!sm._isCssFileLoaded()&&IS.ie ){ window.setTimeout( "eventListeners.menuItem.onpositionsubmenutimer(\"" +this.id +"\")", 1 ); return; }   rect ={ left: ISPosLib.getScreenLeft(el ), top: ISPosLib.getScreenTop(el ), width: el.offsetWidth, height: el.offsetHeight }; var menuRect =null; menuRect ={left: sm.getLeft(),top: sm.getTop(),width: sm.getPreferredWidth(),height: sm.getPreferredHeight(),insetLeft: useInsets ? sm.getInsetLeft(): 0,insetRight: useInsets ? sm.getInsetRight(): 0,insetTop: useInsets ? sm.getInsetTop(): 0,insetBottom: useInsets ? sm.getInsetBottom(): 0 }; if (IS.moz){with (menuRect){left =top =width =height =insetLeft =insetRight =insetTop =insetBottom =0; }}var screenWidth =screen.width; var screenHeight =screen.availHeight; while (rect.left >screenWidth )screenWidth +=screen.width; while (rect.top >screenHeight )screenHeight +=screen.height; var left,top,width =menuRect.width,height =menuRect.height; if (dir =="vertical" ){if (rect.left +menuRect.width -menuRect.insetLeft <=screenWidth ) left =rect.left -menuRect.insetLeft; else if (screenWidth >=menuRect.width ) left =screenWidth -menuRect.width; else left =0;  if (rect.top +rect.height +menuRect.height -menuRect.insetTop <=screenHeight ) top =rect.top +rect.height -menuRect.insetTop; else if (rect.top -menuRect.height +menuRect.insetBottom >=0 ) top =rect.top -menuRect.height +menuRect.insetBottom; else {var sizeAbove =rect.top +menuRect.insetBottom; var sizeBelow =screenHeight -rect.top -rect.height +menuRect.insetTop; if (sizeBelow >=sizeAbove ){ top =rect.top +rect.height -menuRect.insetTop; height =sizeBelow;  } else { top =0; height =sizeAbove; } } }else { if (rect.top +menuRect.height -menuRect.insetTop <=screenHeight ) top =rect.top -menuRect.insetTop; else if (rect.top +rect.height -menuRect.height +menuRect.insetBottom >=0) top =rect.top +rect.height -menuRect.height +menuRect.insetBottom; else if (screenHeight >=menuRect.height ) top =screenHeight -menuRect.height; else { top =0; height =screenHeight }  if (rect.left +rect.width +menuRect.width -menuRect.insetLeft <=screenWidth ) left =rect.left +rect.width -menuRect.insetLeft; else if (rect.left -menuRect.width +menuRect.insetRight >=0 ) left =rect.left -menuRect.width +menuRect.insetRight; else if (screenWidth >=menuRect.width ) left =screenWidth -menuRect.width; else left =0; } var scrollBefore =sm._scrollingMode; sm.cssFile =sm.parentMenu.cssFile; sm.show(left,top,width,height );  if (sm._scrollingMode !=scrollBefore ) this.positionSubMenu();};MenuItem.prototype.destroy =function (){ if (this.subMenu !=null ) this.subMenu.destroy(); this.subMenu =null; this.parentMenu =null; var el =this._htmlElement; if (el !=null ) el._menuItem =null; this._htmlElement =null;  menuCache.remove(this );};function RadioButtonMenuItem(v9f683,v88129,vebb36,vbb213,ve6860 ){ this.MenuItem =MenuItem; this.MenuItem(v9f683,vbb213,null,ve6860); this.checked =v88129; this.radioGroupName =vebb36;}RadioButtonMenuItem.prototype =new MenuItem;RadioButtonMenuItem.prototype.getIconHtml =function (){ return "<span class=\"radio-button\">" + (this.checked ? "n" : "&nbsp;")+ "</span>";};RadioButtonMenuItem.prototype.getIconCellHtml =function (){ return "<td class=\"icon-cell\">" + this.makeDisabledContainer( this.getIconHtml() )+ "</td>";};RadioButtonMenuItem.prototype.getCssClass =function (){ var s =(this.checked ? " checked" : ""); if (this.disabled &&this._selected ) return "disabled-hover" +s; else if (this.disabled ) return "disabled" +s; else if (this._selected ) return "hover" +s;  return s;};RadioButtonMenuItem.prototype._menuItem_dispatchAction = MenuItem.prototype.dispatchAction;RadioButtonMenuItem.prototype.dispatchAction =function (){ if (!this.disabled){ if (!this.checked ){ var items =this.parentMenu.items; var l =items.length; for (var i =0; i <l; i++){ if (items[i] instanceof RadioButtonMenuItem ){ if (items[i].radioGroupName ==this.radioGroupName ){ items[i].checked =items[i] ==this; } } } this.parentMenu.invalidate(); } this._menuItem_dispatchAction(); this.parentMenu.closeAllMenus(); }};function MenuSeparator(){ this.MenuItem =MenuItem; this.MenuItem();}MenuSeparator.prototype =new MenuItem;MenuSeparator.prototype.toHtml =function (){ return "<tr class=\"" +this.getCssClass()+"\"" + (!this.visible ? " style=\"display: none\"" : "")+ "><td colspan=\"4\">" + "<div class=\"separator-line\"></div>" + "</td></tr>";};MenuSeparator.prototype.getCssClass =function (){ return "separator";};function getMenuItemElement(v9e338 ){ while (v9e338 !=null &&v9e338._menuItem ==null) v9e338 =v9e338.parentNode; return v9e338;}function getTrElement(v29022 ){ while (v29022 !=null &&v29022.tagName !="TR" ) v29022 =v29022.parentNode; return v29022;}var eventListeners ={ menu: { onkeydown: function (vef142 ){ var v61423 =menuCache[vef142]; var v14922 =v61423.getDocument().parentWindow; v61423.handleKeyEvent(v14922.event ); }, onunload: function (v2de78 ){ if (v2de78 in menuCache){ menuCache[v2de78].closeAllMenus(); menuCache[v2de78].destroy(); } }, oncontextmenu: function (v48978 ){ var v25578 =menuCache[v48978]; var v53a1 =v25578.getDocument().parentWindow; v53a1.event.returnValue =false; },  onscroll: function (v69378 ){ menuCache[v69378].fixScrollEnabledState(); }, onmouseover: function (v6a553 ){ var v81878 =menuCache[v6a553]; var v3de1 =v81878.getDocument().parentWindow;  var vbf616 =getTrElement(v3de1.event.fromElement ); var vb5717 =getTrElement(v3de1.event.toElement );  if (vb5717 !=null &&vb5717 !=vbf616 ){ var v10345 =vb5717._menuItem; if (v10345 ){ if (!v10345.disabled ||v81878.mouseHoverDisabled ){ v10345.setSelected(true ); v10345.showSubMenu(true ); } } else {if (vb5717.className =="disabled" ||vb5717.className =="disabled-hover" ) vb5717.className ="disabled-hover"; else vb5717.className ="hover"; v81878.selectedIndex =-1; } } }, onmouseout: function (v1be89 ){ var vd5589 =menuCache[v1be89]; var v51b59 =vd5589.getDocument().parentWindow; var v2fb86 =getTrElement(v51b59.event.fromElement ); var vc5824 =getTrElement(v51b59.event.toElement );  if (v2fb86 !=null &&vc5824 !=v2fb86 ){  var v1be89 =v2fb86.parentNode.parentNode.id; var vb5d55 =v2fb86._menuItem;  if (v1be89 =="scroll-up-item" ||v1be89 =="scroll-down-item" ){ if (v2fb86.className =="disabled-hover" ||v2fb86.className =="disabled" ) v2fb86.className ="disabled"; else v2fb86.className =""; vd5589.selectedIndex =-1; }  else if (vb5d55 && (vc5824 !=null ||vb5d55.subMenu ==null ||vb5d55.disabled )){  vb5d55.setSelected(false ); } } },  onmouseup: function (v40c54 ){ var v7a739 =menuCache[v40c54]; var vd5837 =v7a739.getDocument().parentWindow;  var v1bf91 =getMenuItemElement(vd5837.event.srcElement );  if (v1bf91 !=null ){ var v40c54 =v1bf91.parentNode.parentNode.id; if (v40c54 =="scroll-up-item" ||v40c54 =="scroll-down-item" ){ return; }  v7a739.selectedIndex =v1bf91.rowIndex; var v43832 =v7a739.items[ v7a739.selectedIndex ]; v43832.dispatchAction(); } },  onmousewheel: function (vc1a89 ){ var vd5a50 =menuCache[vc1a89]; var v38295 =vd5a50.getDocument(); var vab961 =v38295.parentWindow; var v83260 =v38295.getElementById("scroll-container"); v83260.scrollTop -=3 *vab961.event.wheelDelta /120 *ScrollButton.scrollAmount; },  onreadystatechange: function (v01680 ){ var v64c25 =menuCache[v01680]; var v23783 =v64c25.getDocument(); var vfd113 =v23783.getElementsByTagName("LINK")[0]; if (vfd113.readyState =="complete" ){ v64c25.resetSizeCache(); v64c25.fixSize(); v64c25.fixScrollButtons(); } },  oncloseinterval: function (v17d80 ){ if (menuCache[v17d80]) menuCache[v17d80]._checkCloseState(); } },   menuItem: { onshowtimer: function (vf6b19 ){  var v4b064 =menuCache[vf6b19]; var vecf3 =v4b064.subMenu; var v40e47 =v4b064.parentMenu; var v6cc48 =vecf3.getSelectedIndex();  v40e47.closeAllSubs(vecf3 ); window.setTimeout("eventListeners.menuItem.onshowtimer2(\"" +vf6b19 +"\")",1); },  onshowtimer2: function (ve1610 ){ var v14955 =menuCache[ve1610]; var vbd551 =v14955.subMenu; var v69851 =vbd551.getSelectedIndex(); v14955.positionSubMenu(); vbd551.setSelectedIndex(v69851 ); v14955.setSelected(true ); }, onclosetimer: function (v07730 ){ var v63394 =menuCache[v07730]; var vd9670 =v63394.subMenu; vd9670.close(); },  onpositionsubmenutimer: function (v61430 ){ var v9d630 =menuCache[v61430]; var v35940 =v9d630.subMenu; v35940.resetSizeCache(); v9d630.positionSubMenu(); v35940.setSelectedIndex(0 ); } }};var scrollButtonCache ={ _count: 0, _idPrefix: "-ISScrollCache-",  getId: function (){ return this._idPrefix +this._count++; },  remove: function (v49b3 ){ delete this[ v49b3.id ]; }};function ScrollButton(v3db22,v0fd48,ve6770 ){ this.htmlElement =v3db22; this.scrollContainer =v0fd48; this.dir =ve6770;  this.id =scrollButtonCache.getId(); scrollButtonCache[ this.id ] =this;  this.makeEventListeners(); this.attachEvents();};ScrollButton.scrollIntervalPause =100;ScrollButton.scrollAmount =18;ScrollButton.prototype.startScroll =function (){ this._interval =window.setInterval( "ScrollButton.eventListeners.oninterval(\"" +this.id +"\")", ScrollButton.scrollIntervalPause );};ScrollButton.prototype.endScroll =function (){ if (this._interval !=null ){ window.clearInterval(this._interval ); delete this._interval; }};ScrollButton.prototype.makeEventListeners =function (){ if (this.eventListeners !=null ) return; this.eventListeners ={ onmouseover: new Function("ScrollButton.eventListeners.onmouseover(\"" +this.id +"\")" ), onmouseout: new Function("ScrollButton.eventListeners.onmouseout(\"" +this.id +"\")" ), onunload: new Function("ScrollButton.eventListeners.onunload(\"" +this.id +"\")" ) };};ScrollButton.prototype.attachEvents =function (){ if (this.eventListeners ==null ) return; this.htmlElement.attachEvent("onmouseover",this.eventListeners.onmouseover ); this.htmlElement.attachEvent("onmouseout",this.eventListeners.onmouseout ); window.attachEvent("onunload",this.eventListeners.onunload );};ScrollButton.prototype.detachEvents =function (){ if (this.eventListeners ==null ) return; try { this.htmlElement.detachEvent("onmouseover",this.eventListeners.onmouseover ); this.htmlElement.detachEvent("onmouseout",this.eventListeners.onmouseout ); }catch(e){} window.detachEvent("onunload",this.eventListeners.onunload );};ScrollButton.prototype.destroy =function (){ this.endScroll(); this.detachEvents();  this.htmlElement =null; this.scrollContainer =null; this.eventListeners =null;  scrollButtonCache.remove(this );};ScrollButton.eventListeners ={ onmouseover: function (id ){ scrollButtonCache[id].startScroll(); },  onmouseout: function (id ){ scrollButtonCache[id].endScroll(); },  oninterval: function (id ){ var oThis =scrollButtonCache[id]; switch (oThis.dir ){ case 8: oThis.scrollContainer.scrollTop -=ScrollButton.scrollAmount; break;  case 2: oThis.scrollContainer.scrollTop +=ScrollButton.scrollAmount; break;  case 4: oThis.scrollContainer.scrollLeft -=ScrollButton.scrollAmount; break;  case 6: oThis.scrollContainer.scrollLeft +=ScrollButton.scrollAmount; break; } },  onunload: function (id ){ scrollButtonCache[id].destroy(); }};