if(typeof(ComponentUs)=="undefined"){ComponentUs=new Object();if(typeof(ComponentUs.WebControls)=="undefined"){ComponentUs.WebControls=new Object();if(typeof(ComponentUs.WebControls.Browser)=="undefined"){ComponentUs.WebControls.Browser=new Object();}if(typeof(ComponentUs.WebControls.Events)=="undefined"){ComponentUs.WebControls.Events=new Object();}}}ComponentUs.WebControls.ActiveMenu=null;ComponentUs.WebControls.zgzhl=false;ComponentUs.WebControls.KeyboardItem=null;ComponentUs.WebControls.VERTICAL="vertical";ComponentUs.WebControls.HORIZONTAL="horizontal";ComponentUs.WebControls.STARTITEMINDEX=9;ComponentUs.WebControls.MenuSet=[];ComponentUs.WebControls.MenuSetAjax=[];//-->
ComponentUs.WebControls.MenuItemLook=function(look,owner){this.Name=look[0];this.CssClass=look[1];this.ImageUrl=look[2];this.LeftIconUrl=look[3];this.RightIconUrl=look[4];this.Menu=owner.Menu;};ComponentUs.WebControls.MenuItemLook.prototype={}//-->
;ComponentUs.WebControls.MenuGroupLook=function(look){this.Name=look[0];this.ArrowUrl=look[1];this.CssClass=look[2];this.HoverArrowUrl=look[3];};ComponentUs.WebControls.MenuGroupLook.prototype={};ComponentUs.WebControls.MenuSeparatorLook=function(look){this.Name=look[0];this.CssClass=look[1];};ComponentUs.WebControls.MenuSeparatorLook.prototype={};ComponentUs.WebControls.MenuSkin=function(data){this.Name=data;};ComponentUs.WebControls.MenuSkin.prototype={};ComponentUs.WebControls.zgzhm=function(id,menu){this.Id=id;this.Ref=document.getElementById(id);this.Menu=menu;this.zgzhbj();};ComponentUs.WebControls.zgzhm.prototype={zgzhbj:function(){eval(this.Id+"this = "+"this;");this.Ref.onfocus=new Function("e",this.Id+"this.zgzhav(e)");this.Ref.onblur=new Function("e",this.Id+"this.zgzhF(e)");},zgzhav:function(e){var link=document.getElementById(this.Menu.Id+"_focusgetter");if(link!=null){if(!ComponentUs.WebControls.Browser.zgzhbw()){link.focus();}this.Menu.zgzhax=true;ComponentUs.WebControls.ActiveMenu=this.Menu;ComponentUs.WebControls.zgzha(e);}},zgzhF:function(e){this.Menu.zgzhX();this.Menu.zgzhax=false;}};ComponentUs.WebControls.zgzho=function(id,zgzhex,type){this.Id=id;this.ParentGroup=zgzhex;this.Ref=document.getElementById(id);this.Menu=zgzhex.Menu;this.zgzhbj(type);};ComponentUs.WebControls.zgzho.prototype={zgzhbj:function(dir){eval(this.Id+"this = "+"this;");this.Ref.onmouseover=new Function(this.Id+"this.zgzhE("+dir+")");this.Ref.onmouseout=new Function(this.Id+"this.zgzhaq("+dir+")");this.Ref.onclick=new Function("e",this.Id+"this.zgzhQ(e)");this.Ref.onmousedown=new Function(this.Id+"this.zgzhbi()");this.Ref.onmouseup=new Function(this.Id+"this.zgzhal()");this.Ref.setAttribute("cus","1");},zgzhQ:function(e){this.Menu.zgzhQ(e);},zgzhbi:function(e){this.ParentGroup.zgzhcJ=100;},zgzhal:function(e){this.ParentGroup.zgzhcJ=400;},zgzhE:function(dir){var zgzhfh=this.ParentGroup.ParentItem;for(var item=zgzhfh;item!=null;item=item.ParentGroup.ParentItem){delete this.Menu.zgzhcF[item.ParentGroup.zgzhbG.Id];item.ParentGroup.zgzhdz();}this.ParentGroup.zgzhbd();this.ParentGroup.zgzhcH(dir);if(dir==1||dir==4){this.ParentGroup.zgzhdi(this.Ref,dir);}else{this.ParentGroup.zgzhcQ(this.Ref,dir);}return false;},zgzhaq:function(dir){this.ParentGroup.zgzhdB();if(dir==1||dir==4){this.ParentGroup.zgzhdj(this.Ref,dir);}else{this.ParentGroup.zgzhcR(this.Ref,dir);}return false;},zgzhdq:function(){this.zgzhdh("");},zgzhbc:function(){this.ParentGroup.zgzhdB();this.zgzhdh("none");return;},zgzhdh:function(state){this.Ref.style.display=state;}};ComponentUs.WebControls.ResolveUrl=function(url){return unescape(url).replace("~/","");};ComponentUs.WebControls.OnHideContext=function(e){if(!e){e=window.event;}if(ComponentUs.WebControls.ActiveMenu==null){return;}var zgzhfy=ComponentUs.WebControls.Events.zgzhaV(e);if(ComponentUs.WebControls.IsMenuPart(zgzhfy)){return;}ComponentUs.WebControls.ActiveMenu.zgzhX();var j=ComponentUs.WebControls.MenuSet.length;do{j--;var menu=ComponentUs.WebControls.MenuSet[j];if(menu){menu.zgzhbR=false;}}while(j>0);var l=ComponentUs.WebControls.MenuSetAjax.length;do{l--;var menu=ComponentUs.WebControls.MenuSetAjax[l];if(menu){menu.zgzhbR=false;}}while(l>0);var contexts=ComponentUs.WebControls.ContextMenuSet;if(contexts){var i=contexts.length;do{i--;var CtxMenu=document.getElementById(contexts[i]+"zgzhbG");if(CtxMenu&&CtxMenu.style.visibility=="visible"){var current=eval(ComponentUs.WebControls.ContextMenuSet[i]);current.zgzhbe(e);}}while(i>0);CtxMenu=document.getElementById(ComponentUs.WebControls.PageContextMenu[0]+"zgzhbG");if(CtxMenu&&CtxMenu.style.visibility=="visible"){var current=eval(ComponentUs.WebControls.PageContextMenu[0]);current.zgzhbe(e);}}};function ClientRect(left,top,width,height){this.zgzhdL=top;this.zgzhbH=left;this.Width=width;this.Height=height;};ComponentUs.WebControls.zgzhh=function(element){var left=0;var top=0;var width=element.offsetWidth;var height=element.offsetHeight;while(element){left+=element.offsetLeft;top+=element.offsetTop;element=element.offsetParent;}return new ClientRect(left,top,width,height);};function ViewportRect(width,height){this.Width=width;this.Height=height;};ComponentUs.WebControls.zgzhi=function(){var width=0;var height=0;if(typeof(window.innerWidth)=='number'){width=window.innerWidth;height=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){width=document.documentElement.clientWidth;height=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){width=document.body.clientWidth;height=document.body.clientHeight;}return new ViewportRect(width,height);};ComponentUs.WebControls.IsMenuPart=function(element){if(element==null){return false;}if(element.tagName=="BODY"||element.tagName=="HTML"){return false;}if(element.getAttribute("cus")=="1"){return true;}while(element.parentNode){element=element.parentNode;if(element.tagName=="BODY"||element.tagName=="HTML"){return false;}if(element.getAttribute("cus")=="1"){return true;}}return false;};ComponentUs.WebControls.zgzhk=function(string){if(string==null||string==""){return true;}if(typeof(string)=="undefined"){return true;}string=string.replace(/\s/g,"");if(string.length==parseInt(0)){return true;}return false;};ComponentUs.WebControls.Browser.zgzhbp=function(){var version=0;if(navigator.appVersion.indexOf("MSIE")!=-1){var temp=navigator.appVersion.split("MSIE");version=parseFloat(temp[1]);}return((version>=5.5)&&(!ComponentUs.WebControls.Browser.zgzhbu())&&(!ComponentUs.WebControls.Browser.zgzhbw())&&(!ComponentUs.WebControls.Browser.zgzhbz())&&(!ComponentUs.WebControls.Browser.zgzhbs()));};ComponentUs.WebControls.Browser.zgzhbq=function(){var version=0;if(navigator.appVersion.indexOf("MSIE")!=-1){var temp=navigator.appVersion.split("MSIE");version=parseFloat(temp[1]);}return((version==7)&&(!ComponentUs.WebControls.Browser.zgzhbu())&&(!ComponentUs.WebControls.Browser.zgzhbw())&&(!ComponentUs.WebControls.Browser.zgzhbz())&&(!ComponentUs.WebControls.Browser.zgzhbs()));};ComponentUs.WebControls.Browser.zgzhbw=function(){return(navigator.userAgent.indexOf("Opera")!=-1);};ComponentUs.WebControls.Browser.zgzhbu=function(){return((navigator.product=='Gecko')&&(!ComponentUs.WebControls.Browser.zgzhbw())&&(!ComponentUs.WebControls.Browser.zgzhbz()));};ComponentUs.WebControls.Browser.zgzhbz=function(){return((navigator.userAgent.toLowerCase().indexOf("safari")!=-1)||(navigator.vendor=="Apple Computer, Inc."));};ComponentUs.WebControls.Browser.zgzhbs=function(){return((navigator.appName=="Microsoft Internet Explorer")&&(navigator.userAgent.toLowerCase().indexOf("mac")!=-1)||(navigator.vendor=="Apple Computer, Inc."));};ComponentUs.WebControls.Browser.zgzhdD=function(){return((!ComponentUs.WebControls.Browser.zgzhbq()&&ComponentUs.WebControls.Browser.zgzhbp())||ComponentUs.WebControls.Browser.zgzhbs());};ComponentUs.WebControls.Browser.zgzhbC=function(){return((ComponentUs.WebControls.Browser.zgzhbw())||(ComponentUs.WebControls.Browser.zgzhbu()));};ComponentUs.WebControls.Events.zgzht=function(obj,eventType,fn){if(obj.addEventListener){obj.addEventListener(eventType,fn,true);return true;}else if(obj.attachEvent){return obj.attachEvent("on"+eventType,fn);}else{return false;}};ComponentUs.WebControls.Events.zgzhcr=function(obj,eventType,fn,zgzhfH){if(obj.removeEventListener){obj.removeEventListener(eventType,fn,zgzhfH);return true;}else if(obj.detachEvent){return obj.detachEvent("on"+eventType,fn);}else{alert("Error... Handler could not be removed.");}};ComponentUs.WebControls.Events.zgzhZ=function(zgzhfb,zgzheG){if(ComponentUs.WebControls.IsMenuPart(zgzhfb)){return;}if(zgzheG==null||zgzhfb==null||zgzheG.parentNode==null){return false;}if(zgzheG==zgzhfb){return true;}while(zgzheG.parentNode){zgzheG=zgzheG.parentNode;if(zgzheG==zgzhfb){return true;}}return false;};ComponentUs.WebControls.Events.zgzhdK=function(e){if(e==null){return null;}if(!e){var e=window.event;}if(e.toElement)return e.toElement;if(e.type=="mouseover"){return e.target;}if(e.type=="mouseout"){return e.relatedTarget;}if(e.type=="click"){return e.target;}return null;};ComponentUs.WebControls.Events.zgzhaV=function(e){if(!e){return null;}return e.target||e.srcElement;};ComponentUs.WebControls.FindContextMenuByID=function(id,zgzheL){for(var i=0;i<ComponentUs.WebControls.ContextMenuSet.length;i++){var menu=eval(ComponentUs.WebControls.ContextMenuSet[i]);var zgzheV=(zgzheL)?menu.ID:menu.zgzhcN;if(menu&&zgzheV==id){return menu;}}return null;};ComponentUs.WebControls.zgzhg=function(id,zgzheL){for(var i=0;i<ComponentUs.WebControls.MenuSet.length;i++){var menu=ComponentUs.WebControls.MenuSet[i];var zgzheV=(zgzheL)?menu.Id:menu.zgzhcN;if(menu&&zgzheV==id){return i;}}return null;};ComponentUs.WebControls.FindMenuByID=function(id,zgzheL){for(var i=0;i<ComponentUs.WebControls.MenuSet.length;i++){var menu=ComponentUs.WebControls.MenuSet[i];var zgzheV=(zgzheL)?menu.Id:menu.zgzhcN;if(menu&&zgzheV==id){return menu;}}return null;};ComponentUs.WebControls.zgzhd=function(e){if(!e){e=window.event;}if(ComponentUs.WebControls.ActiveMenu&&ComponentUs.WebControls.ActiveMenu.zgzhax){return ComponentUs.WebControls.ActiveMenu.zgzhQ(e,true);}};ComponentUs.WebControls.zgzhe=function(e){if(!e){e=window.event;}var menu=ComponentUs.WebControls.ActiveMenu;if(menu){menu.zgzhap(e);menu.zgzhbD=false;}};ComponentUs.WebControls.zgzha=function(e){var menu=ComponentUs.WebControls.ActiveMenu;if(menu!=null){ComponentUs.WebControls.zgzhl=false;ComponentUs.WebControls.KeyboardItem=ComponentUs.WebControls.ActiveMenu.zgzhcE.Items[0];menu.Depth=0;menu.zgzhbR=true;menu.zgzhar(e,true);}};ComponentUs.WebControls.zgzhc=function(e){if(!e){e=window.event;}if(ComponentUs.WebControls.MenuSet==null){return;}if(ComponentUs.WebControls.MenuSet.length==1){ComponentUs.WebControls.ActiveMenu=ComponentUs.WebControls.MenuSet[0];}var i=ComponentUs.WebControls.MenuSet.length-1;do{if(ComponentUs.WebControls.MenuSet[i]==null){return;}if(ComponentUs.WebControls.MenuSet[i].AccessKey==null){return;}var menu=ComponentUs.WebControls.MenuSet[i];var accessKey=menu.AccessKey;var zgzheY=accessKey.lastIndexOf("+");var zgzhft=accessKey.substring(zgzheY+1,accessKey.length);var zgzhfK=menu.zgzhaO(zgzhft);var zgzhew=false;if(zgzhfK==e.keyCode&&zgzheY==-1){var altKey=(!ComponentUs.WebControls.Browser.zgzhbw())?e.altKey&&!e.shiftKey&&(!e.ctrlKey||!e.metaKey):e.altKey&&e.shiftKey&&(!e.ctrlKey||!e.metaKey);if(!altKey){continue;}if(ComponentUs.WebControls.ActiveMenu&&ComponentUs.WebControls.ActiveMenu!=menu){ComponentUs.WebControls.ActiveMenu.zgzhF(e);}ComponentUs.WebControls.ActiveMenu=menu;zgzhew=true;}if(zgzhew){if(ComponentUs.WebControls.ActiveMenu.zgzhax){var item=ComponentUs.WebControls.KeyboardItem;if(item){item.zgzhbZ(e);item.ParentGroup.zgzhcy();menu.zgzhF(e);return;}}else{menu.zgzhF(e);menu.zgzhav(e);}}}while(i--)};ComponentUs.WebControls.zgzhb=function(dir){if(ComponentUs.WebControls.zgzhl){return false;}if(ComponentUs.WebControls.KeyboardItem==null){return false;}var zgzhex=ComponentUs.WebControls.KeyboardItem.ParentGroup;var button=(dir==1||dir==4)?zgzhex.zgzhdN:zgzhex.zgzhan;if(button){button.zgzhE(dir);ComponentUs.WebControls.zgzhl=true;}};ComponentUs.WebControls.zgzhf=function(e){if(!e){e=window.event;}ComponentUs.WebControls.zgzhc(e);if(ComponentUs.WebControls.MenuSet.length==1){ComponentUs.WebControls.ActiveMenu=ComponentUs.WebControls.MenuSet[0];}if(ComponentUs.WebControls.ActiveMenu==null){return;}ComponentUs.WebControls.ActiveMenu.zgzhbD=false;if(ComponentUs.WebControls.KeyboardItem){var item=ComponentUs.WebControls.KeyboardItem;var id=item.HasSubMenu;var zgzhfc=item.ParentGroup.Orientation.toLowerCase();var menu=ComponentUs.WebControls.ActiveMenu;if(item.ParentGroup){item.ParentGroup.zgzhdz();if(item.ParentGroup.zgzhbG.zgzhdJ){return;}}if(e.shiftKey&&e.keyCode==40&&zgzhfc==ComponentUs.WebControls.VERTICAL){ComponentUs.WebControls.zgzhb(0);}if(e.shiftKey&&e.keyCode==39&&zgzhfc==ComponentUs.WebControls.HORIZONTAL){ComponentUs.WebControls.zgzhb(3);}if(e.shiftKey&&e.keyCode==38&&zgzhfc==ComponentUs.WebControls.VERTICAL){ComponentUs.WebControls.zgzhb(1);}if(e.shiftKey&&e.keyCode==37&&zgzhfc==ComponentUs.WebControls.HORIZONTAL){ComponentUs.WebControls.zgzhb(4);}if(!e.shiftKey&&e.keyCode==39){if(id){menu.zgzhct(id,item);}if((zgzhfc==ComponentUs.WebControls.VERTICAL)||(zgzhfc!=ComponentUs.WebControls.VERTICAL&&menu.Depth==0)){menu.zgzhbP(e);}else{menu.zgzhbN(e);}}if(!e.shiftKey&&e.keyCode==37){if((zgzhfc==ComponentUs.WebControls.VERTICAL)||(zgzhfc!=ComponentUs.WebControls.VERTICAL&&menu.Depth==0)){menu.zgzhbO(e);}else{menu.zgzhbQ(e);}}if(!e.shiftKey&&e.keyCode==40){if(zgzhfc==ComponentUs.WebControls.VERTICAL){menu.zgzhbN(e);}else{menu.zgzhbP(e);}}if(!e.shiftKey&&e.keyCode==38){if(zgzhfc==ComponentUs.WebControls.VERTICAL){menu.zgzhbQ(e);}else{menu.zgzhbO(e);}}if(item&&e.keyCode==13){if(id){menu.zgzhar(e,true);}else{item.zgzhbW(e);}}}var menu=ComponentUs.WebControls.ActiveMenu;if(menu.zgzhdo&&menu.zgzhdo.Items.length>0){menu.zgzham(e,menu.zgzhdo.Items);}return!ComponentUs.WebControls.ActiveMenu.zgzhax;};function Trasher(){if(ComponentUs.WebControls.MenuSet){for(var menu=0;menu<ComponentUs.WebControls.MenuSet.length;menu++){var current=ComponentUs.WebControls.MenuSet[menu];if(current.zgzhcG){window.clearInterval(current.zgzhcG);current.zgzhcG=null;current=null;}}ComponentUs.WebControls.MenuSet=null;if(ComponentUs.WebControls.Browser){ComponentUs.WebControls.Browser=null;}if(ComponentUs.WebControls.Events){ComponentUs.WebControls.Events=null;}if(ComponentUs){ComponentUs=null;}}};window.onunload=Trasher;ComponentUs.WebControls.Events.zgzht(document,"keydown",ComponentUs.WebControls.zgzhf);ComponentUs.WebControls.Events.zgzht(document,"keyup",ComponentUs.WebControls.zgzhe);if(ComponentUs.WebControls.Browser.zgzhbu()){ComponentUs.WebControls.Events.zgzht(document,"keypress",ComponentUs.WebControls.zgzhd);}ComponentUs.WebControls.Events.zgzht(document,"click",ComponentUs.WebControls.OnHideContext);ComponentUs.WebControls.MenuItem=function(data,zgzhff,zgzhfj){this.zgzhai=data;this.ParentGroup=zgzhff;this.Menu=zgzhfj;this.Id="i_"+this.Menu.Id+"_"+((this.zgzhai[0])?this.zgzhai[0]:null);this.Depth=this.zgzhai[1]?this.zgzhai[1]:0;this.Text=this.zgzhai[2]?unescape(this.zgzhai[2]):null;this.NavigateUrl=this.zgzhai[3]?unescape(this.zgzhai[3]):null;this.Value=this.zgzhai[4]?unescape(this.zgzhai[4]):null;this.ToolTip=this.zgzhai[5]?unescape(this.zgzhai[5]):null;this.Target=this.zgzhai[6]?this.zgzhai[6]:"_self";this.Shortcut=this.zgzhai[7]?this.zgzhai[7]:null;this.Separator=this.zgzhai[8]==1?true:false;this.zgzhdH=this.zgzhai[9]?this.zgzhai[9]:null;this.Selected=(this.zgzhai[10]==1)?true:false;this.Enabled=(this.zgzhai[11]==1)?true:false;this.DefaultLook=new ComponentUs.WebControls.MenuItemLook(this.zgzhai[12],this);this.DisabledLook=new ComponentUs.WebControls.MenuItemLook(this.zgzhai[13],this);this.ExpandedLook=new ComponentUs.WebControls.MenuItemLook(this.zgzhai[14],this);this.HoverLook=new ComponentUs.WebControls.MenuItemLook(this.zgzhai[15],this);this.SelectedLook=new ComponentUs.WebControls.MenuItemLook(this.zgzhai[16],this);this.SeparatorLook=new ComponentUs.WebControls.MenuSeparatorLook(this.zgzhai[17]);this.HasSubMenu=(this.zgzhai[18]==1)?true:false;this.zgzhdC=this.zgzhai[19]?this.zgzhai[19]:null;this.Modifier=this.zgzhai[20]?this.zgzhai[20]:null;this.Mnemonic=this.zgzhai[21];this.Ref=null;this.SubMenu=null;this.Skin=null;this.zgzhdG=null;this.zgzhbg=new Array();this.Attributes=new Array();};ComponentUs.WebControls.MenuItem.prototype.zgzhdE=function(){if(ComponentUs.WebControls.KeyboardItem){ComponentUs.WebControls.KeyboardItem.SetDefault();}ComponentUs.WebControls.KeyboardItem=this;};ComponentUs.WebControls.MenuItem.prototype.SetAttribute=function(name,value){this.Attributes[name]=value;};ComponentUs.WebControls.MenuItem.prototype.GetAttribute=function(name){return(this.Attributes[name])?this.Attributes[name]:null;};ComponentUs.WebControls.MenuItem.prototype.zgzhbj=function(){this.zgzhbI=this.Ref.firstChild.firstChild.firstChild.firstChild;this.LeftIcon=this.zgzhbI.firstChild;this.zgzhdI=this.zgzhbI.nextSibling;this.zgzhdn=this.zgzhdI.nextSibling;this.zgzhcC=this.zgzhdn.nextSibling;this.RightIcon=this.zgzhcC.firstChild;eval(this.Id+"this = "+"this;");this.Ref.onmouseover=new Function("e",this.Id+"this.zgzhca(e)");this.Ref.onmouseout=new Function("e",this.Id+"this.zgzhbZ(e)");this.Ref.onclick=new Function("e",this.Id+"this.zgzhbW(e)");this.Ref.onmousedown=new Function(this.Id+"this.zgzhbY()");this.Ref.onmouseup=new Function(this.Id+"this.zgzhcb()");this.Ref.setAttribute("cus","1");if(this.ToolTip){this.Ref.title=this.ToolTip;}};ComponentUs.WebControls.MenuItem.prototype.zgzhG=function(table){this.zgzhdI.style.display="none";this.zgzhcC.style.display="none";};ComponentUs.WebControls.MenuItem.prototype.zgzhaH=function(id){for(var i=0;i<this.ParentGroup.Items.length;i++){if(this.ParentGroup.Items[i].Id==id){return i;}}return-1;};ComponentUs.WebControls.MenuItem.prototype.zgzhI=function(table){this.zgzhbI.style.whiteSpace="nowrap";this.zgzhbI.className=this.Menu.Skin.Name+"_cell leftcell depth"+this.Depth+" "+this.Menu.Skin.Name+"_cell-leftcell-depth"+this.Depth;if(this.Text){if(this.Menu.EnableMnemonics&&this.Mnemonic!=-1){var zgzhfG=this.Text.substring(0,this.Mnemonic-1)+'<u>'+this.Text.charAt(this.Mnemonic-1)+'<\/u>'+this.Text.substring(this.Mnemonic);this.zgzhdI.innerHTML=zgzhfG;}else{this.zgzhdI.innerHTML=this.Text;}this.zgzhdI.className=(this.Depth==0)?"textcell toolbar"+this.zgzhaH(this.Id)+" "+"textcell-toolbar"+this.zgzhaH(this.Id):"textcell";}if(this.Shortcut){this.zgzhdn.style.display="";this.zgzhdn.innerHTML=(this.Modifier)?this.Modifier+"+"+this.Shortcut:this.Shortcut;this.zgzhdn.style.whiteSpace="nowrap";this.zgzhdn.className="textcell shortcutcell"+" "+"textcell-shortcutcell";}this.zgzhcC.style.whiteSpace="nowrap";this.zgzhcC.className=this.Menu.Skin.Name+"_cell rightcell depth"+this.Depth+" "+this.Menu.Skin.Name+"_cell-rightcell-depth"+this.Depth;};ComponentUs.WebControls.MenuItem.prototype.zgzhdm=function(w){this.Ref.style.width=parseInt(w)+"px";};ComponentUs.WebControls.MenuItem.prototype.zgzhcV=function(h){this.Ref.style.height=parseInt(h)+"px";};ComponentUs.WebControls.MenuItem.prototype.zgzhdh=function(look,zgzhfD){if(look){this.zgzhdg(look);if(look.CssClass==null){var zgzhfx=this.Menu.Skin.Name;var idx=this.GetAttribute("idx");var fl=(idx==null)?"":" "+idx;var zgzhep=(idx==null)?"":"-"+idx;var roosub=(this.Depth==0)?"_rootitem":"_subitem";var norm=zgzhfx+roosub+zgzhfD+fl;var zgzheH=zgzhfx+roosub+zgzhfD+zgzhep;look.CssClass=norm+" "+zgzheH;}this.Ref.className=look.CssClass;}};ComponentUs.WebControls.MenuItem.prototype.zgzhae=function(){if(this.zgzhdH){var c=document.getElementById(this.Menu.Id+"T"+this.zgzhai[0]);if(c){var zgzhdX=document.createElement("td");var row=this.Ref.getElementsByTagName("tr")[0];var tcell=this.Ref.getElementsByTagName("td")[1];if(this.Menu.zpAzA){row.removeChild(row.firstChild);row.removeChild(row.firstChild);row.removeChild(row.firstChild);row.removeChild(row.firstChild);zgzhdX.appendChild(c);row.appendChild(zgzhdX);}else{if(tcell!=null){tcell.innerHTML="";tcell.appendChild(c);}}c.style.display="block";}}};ComponentUs.WebControls.MenuItem.prototype.SetDefault=function(){if(this.Enabled){this.zgzhdh(this.DefaultLook,"");if(this.Selected){this.SetSelected();}}if(!this.Enabled){this.SetDisabled();}this.zgzhat=false;};ComponentUs.WebControls.MenuItem.prototype.SetHover=function(){if(this.Enabled){this.zgzhdh(this.HoverLook,"hover");}};ComponentUs.WebControls.MenuItem.prototype.SetSelected=function(){if(this.Enabled){this.zgzhdh(this.SelectedLook,"selected");}};ComponentUs.WebControls.MenuItem.prototype.SetDisabled=function(){if(!this.Enabled){this.zgzhdh(this.DisabledLook,"disabled");}};ComponentUs.WebControls.MenuItem.prototype.SetExpanded=function(){if(this.Enabled){var zgzheb=this.DefaultLook;var zgzhen=this.ExpandedLook;var zgzheF=this.HoverLook;var look=(zgzhen)?zgzhen:(zgzheF)?zgzheF:zgzheb;if(zgzhen&&zgzhen.CssClass==null){var zgzhfx=this.Menu.Skin.Name;var idx=this.GetAttribute("idx");var fl=(idx==null)?"":" "+idx;var zgzhep=(idx==null)?"":"-"+idx;var roosub=(this.Depth==0)?"_rootitemexpanded":"_subitemexpanded";var norm=zgzhfx+roosub+fl;var zgzheH=zgzhfx+roosub+zgzhep;look.CssClass=norm+" "+zgzheH;}if(look){this.ExpandedLook.ImageUrl=(zgzhen.ImageUrl)?zgzhen.ImageUrl:zgzheF.ImageUrl;this.ExpandedLook.LeftIconUrl=(zgzhen.LeftIconUrl)?zgzhen.LeftIconUrl:zgzheF.LeftIconUrl;this.ExpandedLook.RightIconUrl=(zgzhen.RightIconUrl)?zgzhen.RightIconUrl:zgzheF.RightIconUrl;this.zgzhdg(this.ExpandedLook);this.Ref.className=look.CssClass;}this.zgzhat=true;}};ComponentUs.WebControls.MenuItem.prototype.zgzhcW=function(look){if(look.ImageUrl){if(this.zgzhbg["i"+look.Name]==null){this.zgzhbg["i"+look.Name]=document.createElement("img");this.zgzhbg["i"+look.Name].src=ComponentUs.WebControls.ResolveUrl(look.ImageUrl);}if(this.zgzhbg["i"+look.Name].src){this.LeftIcon.style.display="";this.LeftIcon.src=this.zgzhbg["i"+look.Name].src;}}};ComponentUs.WebControls.MenuItem.prototype.ChangeLeftIcon=function(look,url){if(url==null){return;}this.zgzhbg["l"+look.Name]=null;look.LeftIconUrl=url;this.zgzhcX(look);};ComponentUs.WebControls.MenuItem.prototype.zgzhcX=function(look){if(look.LeftIconUrl){if(this.zgzhbg["l"+look.Name]==null){this.zgzhbg["l"+look.Name]=document.createElement("img");this.zgzhbg["l"+look.Name].src=ComponentUs.WebControls.ResolveUrl(look.LeftIconUrl);}if(this.zgzhbg["l"+look.Name].src){this.LeftIcon.style.display="";this.LeftIcon.src=this.zgzhbg["l"+look.Name].src;}}};ComponentUs.WebControls.MenuItem.prototype.zgzhdc=function(look){var zgzheB=this.ParentGroup.DefaultLook;if(this.zgzhbg["r"+look.Name]==null){this.zgzhbg["r"+look.Name]=document.createElement("img");}if(this.HasSubMenu){if(zgzheB.ArrowUrl){var path=this.zgzhaU();this.zgzhbg["r"+look.Name].src=path+zgzheB.ArrowUrl;if(zgzheB.HoverArrowUrl&&parseInt(look.Name)>1){this.zgzhbg["r"+look.Name].src=path+zgzheB.HoverArrowUrl;}}else{var icon=this.zgzhaT();if((icon&&this.ParentGroup.Orientation.toLowerCase()!="horizontal"&&this.Depth>0)||(this.ParentGroup==this.Menu.zgzhcE&&this.Menu.zgzhcE.Orientation.toLowerCase()=="vertical")){this.zgzhbg["r"+look.Name].src=(parseInt(look.Name)==0)?icon.NormalArrowPath:icon.zgzhj;}}}if(look.RightIconUrl){this.zgzhbg["r"+look.Name].src=ComponentUs.WebControls.ResolveUrl(look.RightIconUrl);}if(this.zgzhbg["r"+look.Name].src){this.RightIcon.src=this.zgzhbg["r"+look.Name].src;this.RightIcon.style.display="";}};ComponentUs.WebControls.MenuItem.prototype.zgzhdg=function(look){this.zgzhcX(look);this.zgzhdc(look);this.zgzhcW(look);};ComponentUs.WebControls.MenuItem.prototype.zgzhaU=function(){return ComponentUs.WebControls.ResolveUrl((this.Menu.SkinBaseUrl)?this.Menu.SkinBaseUrl+this.Menu.Skin.Name+"/images/":"~/");};ComponentUs.WebControls.MenuItem.prototype.zgzhaC=function(){return ComponentUs.WebControls.ResolveUrl(this.Menu.zgzhaA());};ComponentUs.WebControls.MenuItem.prototype.zgzhaT=function(){if(this.Menu.Skin.Name=="defaultT"){return{NormalArrowPath:this.zgzhaC(),zgzhj:this.zgzhaC()};}else{var path=ComponentUs.WebControls.ResolveUrl(this.Menu.SkinBaseUrl)+this.Menu.Skin.Name;return{NormalArrowPath:path+"/images/arrow.png",zgzhj:path+"/images/arrowHover.png"};}};ComponentUs.WebControls.MenuItem.prototype.EnableItem=function(state){this.Enabled=(state)?true:false;if(state){this.SetDefault();}else{this.SetDisabled();}};ComponentUs.WebControls.MenuItem.prototype.zgzhbY=function(){if(this.Menu.zgzhbr){return;}if(!this.Enabled){return false;}this.RaiseEvent("OnClientItemMouseDown");this.zgzhdG=this.Ref.className;if(this.CssExpanded){this.SetExpanded();}};ComponentUs.WebControls.MenuItem.prototype.zgzhcb=function(){if(!this.Enabled){return false;}if(this.zgzhdG){this.Ref.className=this.zgzhdG;}};ComponentUs.WebControls.MenuItem.prototype.zgzhO=function(){var postBack=false;if(this.NavigateUrl=="!"||this.Menu.zgzhB){postBack=true;}if(this.Menu.zgzhR){postBack=this.Menu.zgzhby();if(!this.Menu.zgzhB){postBack=false;}if((this.NavigateUrl=="!"&&!this.Menu.zgzhB)||(this.Menu.zgzhB)){postBack=true;}}return postBack;};ComponentUs.WebControls.MenuItem.prototype.zgzhbW=function(e){if(!e){var e=window.event;}if(this.zgzhdH){return;}if(this.Menu.zgzhbr){return;}this.Menu.zgzhQ(e);this.Menu.zgzhbR=(this.Menu.ExpandOnClick&&this.Depth==0)?true:false;if(this.Enabled&&!this.Menu.zgzhbR){this.Menu.LastClicked=this;if(!this.RaiseEvent("OnClientItemClicking")){return this.Menu.zgzhQ(e,true);}if(this.NavigateUrl){if(this.NavigateUrl!="undefined"&&this.NavigateUrl!="!"){window.open(this.NavigateUrl,this.Target);}if(this.zgzhO()){var options=this.Menu.zgzhaL();if(options){if((options[0]&&options[1])||(options[2])){WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(this.Menu.Name,this.Id,options[0],options[1],options[2],false,options[3]));}else{__doPostBack(this.Menu.Name,this.Id);}}}}this.RaiseEvent("OnClientItemClicked");if(this.Menu.IsContext){this.Menu.zgzhU=true;this.Menu.zgzhbe(e);return;}this.Menu.zgzhX();}else{if(this.Depth>0){return this.Menu.zgzhQ(e,true);}if(this.Menu.zgzhbR&&this.Enabled){if(!this.Menu.zgzhV){this.SubMenu.zgzhbG.zgzhdq();}else{this.SubMenu.zgzhbG.zgzhbc();this.Menu.zgzhbR=false;}this.Menu.zgzhV=!this.Menu.zgzhV;}}};ComponentUs.WebControls.MenuItem.prototype.zgzhcn=function(){var key=ComponentUs.WebControls.KeyboardItem;if(key){if(key.SubMenu){this.Menu.zgzhcF[key.SubMenu.zgzhbG.Id]=key.SubMenu.zgzhbG;}for(var item=key;item!=null;item=item.ParentGroup.ParentItem){this.Menu.zgzhcF[item.ParentGroup.zgzhbG.Id]=item.ParentGroup.zgzhbG;}key.SetDefault();ComponentUs.WebControls.KeyboardItem=null;}};ComponentUs.WebControls.MenuItem.prototype.zgzhcm=function(){if(this.SubMenu){this.Menu.zgzhcF[this.SubMenu.zgzhbG.Id]=this.SubMenu.zgzhbG;}for(var item=this;item!=null;item=item.ParentGroup.ParentItem){this.Menu.zgzhcF[item.ParentGroup.zgzhbG.Id]=item.ParentGroup.zgzhbG;}};ComponentUs.WebControls.MenuItem.prototype.zgzhaj=function(){if(this.SubMenu){delete this.Menu.zgzhcF[this.SubMenu.zgzhbG.Id];}for(var item=this;item!=null;item=item.ParentGroup.ParentItem){delete this.Menu.zgzhcF[item.ParentGroup.zgzhbG.Id];}};ComponentUs.WebControls.MenuItem.prototype.zgzhbA=function(){if(this.SubMenu){return this.SubMenu.zgzhbG.zgzhbv;}};ComponentUs.WebControls.MenuItem.prototype.zgzhca=function(e){if(!e){var e=window.event;}var layer=this.ParentGroup.zgzhbG;if(this.ParentGroup.ParentItem&&!this.ParentGroup.ParentItem.ParentGroup.zgzhbG.zgzhbv){this.Menu.zgzhcE.zgzhcy();layer.zgzhbc();return;}this.Menu.zgzhbF=null;this.Menu.LastHovered=this;if(ComponentUs.WebControls.Browser.zgzhbp()&&document.readyState!="complete"){return;}if(ComponentUs.WebControls.Browser.zgzhbp()&&e&&this.Ref.contains(e.fromElement)){return;}if(ComponentUs.WebControls.Browser.zgzhbC()&&e&&ComponentUs.WebControls.Events.zgzhZ(this.Ref,e.relatedTarget)){return;}if(ComponentUs.WebControls.CanDrag){return;}if(this.Menu.zgzhbr){return;}if(ComponentUs.WebControls.KeyboardItem!=this&&layer&&layer.zgzhdJ!=null&&!layer.zgzhbv&&!layer.zgzhbx){return;}else{this.Menu.zgzhbt=true;}ComponentUs.WebControls.ActiveMenu=this.Menu;this.Menu.Depth=this.Depth;this.zgzhcn();this.zgzhaj();this.zgzhdE();this.Menu.zgzhbf(this.ParentGroup);if(!this.Enabled){if((layer&&layer.zgzhdJ==null&&layer.zgzhbv&&layer.zgzhbx)||this.Menu.Depth==0){this.zgzhci();}}else{if(this.HasSubMenu){this.Menu.zgzhct(this.zgzhdC,this);}this.zgzhci();if(layer&&layer.zgzhdJ==null){if(!this.Menu.ExpandOnClick||this.Menu.zgzhbR){this.RaiseEvent("OnClientItemMouseOver");if(this.SubMenu){this.SubMenu.zgzhbG.zgzhdq();}}}}};ComponentUs.WebControls.MenuItem.prototype.zgzhbZ=function(e){if(!e){var e=window.event;}this.Menu.zgzhbF=this;this.Menu.LastHovered=null;if(!this.Menu.zgzhbt){return;}if(ComponentUs.WebControls.Browser.zgzhbp()&&document.readyState!="complete"){return;}if(ComponentUs.WebControls.Browser.zgzhbp()&&e&&this.Ref.contains(e.toElement)){return;}if(ComponentUs.WebControls.Browser.zgzhbC()&&e&&ComponentUs.WebControls.Events.zgzhZ(this.Ref,ComponentUs.WebControls.Events.zgzhdK(e))){return;}if(ComponentUs.WebControls.CanDrag||this.Menu.zgzhbr){return;}if(this.Enabled){this.RaiseEvent("OnClientItemMouseOut");this.SetDefault();}this.zgzhcm();};ComponentUs.WebControls.MenuItem.prototype.zgzhci=function(){this.zgzhdr();this.SetHover();};ComponentUs.WebControls.MenuItem.prototype.zgzhdr=function(){if(this.Menu.zgzhbF&&this.Menu.zgzhbF.ParentGroup.Id==this.ParentGroup.Id){return;}this.ParentGroup.zgzhcy();for(var item=this;item!=null;item=item.ParentGroup.ParentItem){item.SetExpanded();}};ComponentUs.WebControls.MenuItem.prototype.RaiseEvent=function(name){return this.Menu.RaiseEvent(name,{Item:this});};ComponentUs.WebControls.MenuItem.prototype.zgzhaH=function(){var i=this.ParentGroup.Items.length-1;do{if(this.ParentGroup.Items[i].Id==this.Id){return i;}}while(i--)return-1;};ComponentUs.WebControls.MenuItem.prototype.zgzhcD=function(){for(var i=0;i<this.Menu.zgzhcE.Items.length;i++){var item=this.Menu.zgzhcE.Items[i];if(item.zgzhat){return item;}}return null;};ComponentUs.WebControls.MenuItem.prototype.zgzhbT=function(){var index=this.zgzhaH();var i=this.ParentGroup.Items[index+1];return(i)?i:this.zgzhau();};ComponentUs.WebControls.MenuItem.prototype.zgzhcj=function(){var index=this.zgzhaH();var i=this.ParentGroup.Items[index-1];return(i)?i:this.zgzhbE();};ComponentUs.WebControls.MenuItem.prototype.zgzhau=function(){return this.ParentGroup.Items[0];};ComponentUs.WebControls.MenuItem.prototype.zgzhbE=function(){return this.ParentGroup.Items[this.ParentGroup.Items.length-1];};ComponentUs.WebControls.MenuItem.prototype.zgzhP=function(){if(!this.Enabled){return false;}if(this.zgzhdH){return false;}return true;};ComponentUs.WebControls.MenuGroup=function(data,id,zgzhfh,zgzhfe,zgzhfj){if(!this.zgzhcv){this.zgzhai=data;this.Id=id;this.Items=new Array();this.Menu=zgzhfj;if(zgzhfe!=null){this.Ref=document.getElementById(id);this.ParentItem=zgzhfh;this.zgzhbG=zgzhfe;this.zgzhdF=document.getElementById(id+"zgzhdF");this.zgzhbG.zgzhdF=this.zgzhdF;this.zgzhcv=false;this.zgzhdN=null;this.zgzhan=null;this.zgzhcJ=400;this.zgzhcd=false;this.DefaultLook=new ComponentUs.WebControls.MenuGroupLook(this.zgzhai[1]);this.Direction=this.zgzhai[2]?this.zgzhai[2]:"auto";this.Height=this.zgzhai[3]?this.zgzhai[3]:parseInt(0);this.OffsetX=this.zgzhai[4]?this.zgzhai[4]:parseInt(0);this.OffsetY=this.zgzhai[5]?this.zgzhai[5]:parseInt(0);this.Orientation=this.zgzhai[6]?this.zgzhai[6]:"vertical";this.Width=this.zgzhai[7]?this.zgzhai[7]:parseInt(0);this.AutoResizeAlign=this.zgzhai[8];if(this.AutoResizeAlign.toLowerCase()!="none"){this.Orientation="horizontal";}}}};ComponentUs.WebControls.MenuGroup.prototype.zgzhbj=function(){if(this.ParentItem){this.ParentItem.SubMenu=this;}else{this.Menu.zgzhcE=this;this.Menu.zgzhcE.zgzhbG=this.zgzhbG;}this.zgzhcT();this.Ref.setAttribute("cus","1");this.SetDefault();this.zgzhcv=true;};ComponentUs.WebControls.MenuGroup.prototype.zgzhcT=function(){eval(this.Id+"this = "+"this;");this.Ref.onmouseover=new Function(this.Id+"this.zgzhdz()");this.Ref.onmouseout=new Function(this.Id+"this.zgzhD()");};ComponentUs.WebControls.MenuGroup.prototype.SetDefault=function(){var look=this.DefaultLook;var zgzhfx=this.Menu.Skin.Name;var zgzhev=(this.ParentItem)?this.ParentItem.Depth+1:"";this.Ref.className=(look&&look.CssClass)?look.CssClass:this.ParentItem?zgzhfx+"_submenu depth"+zgzhev+" "+zgzhfx+"_submenu-depth"+zgzhev:zgzhfx+"_rootmenu";};ComponentUs.WebControls.MenuGroup.prototype.zgzhaJ=function(){return(this.ParentItem!=null)?this.ParentItem:this.zgzhch;};ComponentUs.WebControls.MenuGroup.prototype.zgzhcH=function(dir){this.zgzhdB();eval(this.Id+"this = "+"this;");this.zgzhcK=window.setTimeout(this.Id+"this.zgzhcI('"+dir+"')",10);};ComponentUs.WebControls.MenuGroup.prototype.zgzhcI=function(dir){var mode="vertical";if(dir==3||dir==4){mode="horizontal";}if(this.zgzhdN==null||this.zgzhan==null){return;}var size=(mode=="vertical")?this.zgzhbG.zgzhaG():this.zgzhbG.zgzhaZ();var zgzher=(mode=="vertical")?this.zgzhbG.zgzhaD():this.zgzhbG.zgzhaE();var xy=(mode=="vertical")?this.zgzhbG.zgzhdF.style.top:this.zgzhbG.zgzhdF.style.left;var step=Math.ceil(zgzher/this.zgzhcJ);if(dir==0||dir==3){if(parseInt(xy)>parseInt(size-zgzher)){this.zgzhbG.zgzhdF.style[mode=="vertical"?"top":"left"]=parseInt(this.zgzhbG.zgzhdF.style[mode=="vertical"?"top":"left"])+(-step)+"px";this.zgzhdN.zgzhdq();}else{this.zgzhan.zgzhbc();return;}}if(dir==1||dir==4){if(parseInt(xy)<0){this.zgzhbG.zgzhdF.style[mode=="vertical"?"top":"left"]=parseInt(this.zgzhbG.zgzhdF.style[mode=="vertical"?"top":"left"])+step+"px";this.zgzhan.zgzhdq();}else{this.zgzhdN.zgzhbc();return;}}eval(this.Id+"this = "+"this;");this.zgzhcK=window.setTimeout(this.Id+"this.zgzhcI('"+dir+"')",10);};ComponentUs.WebControls.MenuGroup.prototype.zgzhdB=function(){if(this.zgzhcK){window.clearTimeout(this.zgzhcK);this.zgzhcK=null;this.zgzhcJ=400;}};ComponentUs.WebControls.MenuGroup.prototype.zgzhcQ=function(button,dir){var zgzhfx=this.Menu.Skin.Name;button.className=(parseInt(dir)==0)?zgzhfx+"_downhoverscroll":zgzhfx+"_righthoverscroll";};ComponentUs.WebControls.MenuGroup.prototype.zgzhdi=function(button,dir){var zgzhfx=this.Menu.Skin.Name;button.className=(parseInt(dir)==1)?zgzhfx+"_uphoverscroll":zgzhfx+"_lefthoverscroll";};ComponentUs.WebControls.MenuGroup.prototype.zgzhcR=function(button,dir){var zgzhfx=this.Menu.Skin.Name;button.className=(parseInt(dir)==0)?zgzhfx+"_downscroll":zgzhfx+"_rightscroll";};ComponentUs.WebControls.MenuGroup.prototype.zgzhdj=function(button,dir){var zgzhfx=this.Menu.Skin.Name;button.className=(parseInt(dir)==1)?zgzhfx+"_upscroll":zgzhfx+"_leftscroll";};ComponentUs.WebControls.MenuGroup.prototype.zgzhbd=function(){this.Menu.zgzhbf(this);};ComponentUs.WebControls.MenuGroup.prototype.zgzhdz=function(){if(this.zgzhbG.zgzhdJ==null){this.Menu.zgzhbD=true;delete this.Menu.zgzhcF[this.zgzhbG.Id];this.Menu.zgzhdb(null);if(this.zgzhY){window.clearTimeout(this.zgzhY);this.zgzhY=null;}}};ComponentUs.WebControls.MenuGroup.prototype.zgzhD=function(timer){this.zgzhdz();if(this.zgzhbG.zgzhdJ==null){if(this.Menu.ExpandOnClick&&this.Menu.zgzhV){return;}if(!this.Menu.zgzhbD){return;}this.Menu.zgzhcF[this.zgzhbG.Id]=this.zgzhbG;this.Menu.zgzhdb(this);eval(this.Menu.Id+"this.Menu = "+"this.Menu;");this.zgzhY=window.setTimeout(this.Menu.Id+"this.Menu.zgzhcq()",(timer)?timer:this.Menu.CollapseDelay);}};ComponentUs.WebControls.MenuGroup.prototype.zgzhcy=function(){for(var i=this.Items.length-1;i>=0;i--){var item=this.Items[i];if(item.zgzhat){item.SetDefault();}}};ComponentUs.WebControls.MenuGroup.prototype.zgzhs=function(item){this.Items[this.Items.length]=item;};ComponentUs.WebControls.zgzhn=function(id,zgzhfh,zgzhfj){this.Id=id;this.Menu=zgzhfj;this.Ref=document.getElementById(id);this.zgzhdJ=null;this.zgzhbv=false;this.zgzhbx=false;this.zgzhbl=null;this.zgzhay=false;this.zgzhce=new Object();this.zgzhah=0;this.Width=0;this.Height=0;this.ExpandDuration=this.Menu.ExpandDuration/10;this.CollapseDuration=this.Menu.CollapseDuration/10;this.zgzhbh=0;this.zgzhak=0;this.ParentItem=zgzhfh;this.zgzhdF=null;this.zgzhds=null;this.zgzhbm=false;this.zgzhbn=false;};ComponentUs.WebControls.zgzhn.prototype.zgzhaW=function(){var table=document.getElementById(this.zgzhbl.Id+"zgzhdF");var size=ComponentUs.WebControls.zgzhh(table);return size;};ComponentUs.WebControls.zgzhn.prototype.zgzhy=function(){var zgzheK=this.zgzhbl;var depth=this.ParentItem.Depth;var top=0;var left=0;var zgzhfi=ComponentUs.WebControls.zgzhh(this.ParentItem.Ref);var zgzhfg=ComponentUs.WebControls.zgzhh(this.ParentItem.ParentGroup.Ref);var zgzheA=zgzhfg.zgzhbH;var zgzheQ=zgzhfi.zgzhbH;var zgzheR=zgzhfi.zgzhdL;var zgzheP=zgzhfi.Height;var zgzheS=zgzhfi.Width;var zgzhfL=ComponentUs.WebControls.zgzhi();var zgzhek=this.Menu.zgzhaP()+zgzhfL.Width;var zgzhef=this.Menu.zgzhaQ()+zgzhfL.Height;var look=zgzheK.DefaultLook;var zgzhfc=zgzheK.Orientation.toLowerCase();var offsetX=zgzheK.OffsetX;var offsetY=zgzheK.OffsetY;var direction=zgzheK.Direction.toLowerCase();this.zgzhcz=false;this.zgzhcA=false;var height=this.Height;var width=this.Width;var zgzheM=this.ParentItem.ParentGroup.Orientation.toLowerCase()=="horizontal";if(this.zgzhbl.AutoResizeAlign.toLowerCase()!="none"){direction="auto";}switch(direction.toLowerCase()){case "left":top=zgzheR;left=zgzheQ-width;break;case "right":top=zgzheR;left=zgzheQ+zgzheS;break;case "up":top=zgzheR-height;left=zgzheQ;this.zgzhay=true;break;case "down":top=zgzheR;left=zgzheQ;break;case "auto":default:top=zgzheR;left=zgzheQ+zgzheS;if(zgzheM){top=zgzheR+zgzheP;left=zgzheQ;}if(this.zgzhbl.AutoResizeAlign.toLowerCase()!="none"){left=zgzheA;}break;}this.SetY((parseInt(offsetY)>0)?top+parseInt(offsetY):top);this.SetX((parseInt(offsetX)>0)?left+parseInt(offsetX):left);if(direction.toLowerCase()=="auto"&&this.zgzhbl.AutoResizeAlign.toLowerCase()=="none"){this.zgzhcw(zgzhfc);this.zgzhcx(zgzhfc);this.zgzhcP(zgzhfc,zgzhek-this.Menu.zgzhaP());this.zgzhcO(zgzhfc,zgzhef-this.Menu.zgzhaQ());if(parseInt(this.GetY()+height)>=zgzhef){var xy=(zgzheM)?parseInt(zgzheR-height)+"px":parseInt(zgzheR+zgzheP-height)+"px";this.zgzhC((depth>0)?parseInt(zgzhef-height)+"px":xy,true);}if(parseInt(this.zgzhba()+width)>=zgzhek){var xy=(!zgzheM)?parseInt(zgzheQ-width)+"px":parseInt(zgzheQ+zgzheS-width)+"px";this.zgzhC((depth>0)?parseInt(zgzhek-width)+"px":xy,false);}}this.zgzhdy=(this.zgzhbo)?this.zgzhba():this.GetY();this.zgzhcZ();};ComponentUs.WebControls.zgzhn.prototype.zgzhcP=function(zgzhfc,zgzhek){var zgzheD=parseInt(this.zgzhdF.getAttribute("groupwidth"));if((zgzheD>=parseInt(0+zgzhek))&&(zgzhfc=="horizontal")){if(!this.zgzhbn){var zgzhdP=(ComponentUs.WebControls.Browser.zgzhbu()?20:0);this.SetX(this.Menu.zgzhaP());this.zgzhbl.Ref.style.width=parseInt(zgzhek-zgzhdP)+"px";this.zgzhdF.style.width=zgzheD+"px";this.zgzhdk(false);this.zgzhcS(false);this.zgzhbm=true;}}};ComponentUs.WebControls.zgzhn.prototype.zgzhcO=function(zgzhfc,zgzhef){if(parseInt(this.Height)>=parseInt(0+zgzhef)){if(zgzhfc!="horizontal"){var zgzhdP=(ComponentUs.WebControls.Browser.zgzhbu()?20:0);this.zgzhbl.Ref.style.height=parseInt(zgzhef-zgzhdP)+"px";this.SetY(this.Menu.zgzhaQ());this.zgzhdk(true);this.zgzhcS(true);this.zgzhbm=true;}}};ComponentUs.WebControls.zgzhn.prototype.zgzhcY=function(){var opacity=this.Menu.Opacity;if(opacity==""){return;}if(opacity>=100||opacity<0){return;}this.Ref.style.filter+=" "+"progid:DXImageTransform.Microsoft.Alpha(style=0,opacity="+opacity+")";this.Ref.style.MozOpacity=opacity/100;};ComponentUs.WebControls.zgzhn.prototype.zgzhcZ=function(){if(ComponentUs.WebControls.Browser.zgzhdD()){this.zgzhcf=document.getElementById(this.Id+"zgzhce");if(this.zgzhcf==null){var ifr=document.createElement("IFRAME");ifr.id=this.Id+"zgzhce";ifr.setAttribute("src","about:blank");ifr.setAttribute("scrolling","no");ifr.setAttribute("frameborder",0);ifr.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";ifr.style.position="absolute";document.forms[this.Menu.zgzhaz].appendChild(ifr);this.zgzhcf=ifr;}this.zgzhce=this.zgzhcf.style;this.zgzhce.visibility="visible";this.zgzhce.width=this.zgzhaZ()+"px";this.zgzhce.height=this.zgzhaG()+"px";this.zgzhce.top=this.GetY()+"px";this.zgzhce.left=this.zgzhba()+"px";this.zgzhce.zIndex=this.GetZ()-1;if(this.zgzhbl.Id!=this.Menu.Id){this.zgzhbM(-this.zgzhds);}}};ComponentUs.WebControls.zgzhn.prototype.zgzhcs=function(){if(ComponentUs&&this.zgzhce&&ComponentUs.WebControls.Browser.zgzhdD()){this.zgzhce.visibility="hidden";}};ComponentUs.WebControls.zgzhn.prototype.zgzhC=function(xy,dir){var zgzhfL=ComponentUs.WebControls.zgzhi();var zgzhel=(dir)?zgzhfL.Height:zgzhfL.Width;var zgzhfu=(dir)?this.Menu.zgzhaQ():this.Menu.zgzhaP();var zgzheC=(dir)?this.Height:this.Width;if(parseInt(zgzheC)<=parseInt(0+zgzhel)){if(dir){if(parseInt(xy)>zgzhfu){this.zgzhcA=true;this.SetY(xy);}else{this.zgzhcA=false;this.SetY(parseInt(zgzhel+zgzhfu)-parseInt(zgzheC));}}else{if(parseInt(xy)>zgzhfu){this.zgzhcz=true;this.SetX(xy);}else{this.zgzhcz=false;this.SetX(parseInt(zgzhel+zgzhfu)-parseInt(zgzheC));}}}};ComponentUs.WebControls.zgzhn.prototype.zgzhcw=function(zgzhfc){if(this.zgzhbm&&zgzhfc!="horizontal"){this.zgzhdF.style.top=0+"px";;this.zgzhbl.zgzhan.zgzhbc();this.zgzhbl.zgzhdN.zgzhbc();this.zgzhbm=false;}};ComponentUs.WebControls.zgzhn.prototype.zgzhcx=function(zgzhfc){if(this.zgzhbm&&zgzhfc=="horizontal"){this.zgzhdF.style.left=0+"px";this.zgzhdm(this.zgzhaE());this.zgzhbl.zgzhan.zgzhbc();this.zgzhbl.zgzhdN.zgzhbc();this.zgzhbm=false;}};ComponentUs.WebControls.zgzhn.prototype.zgzhbS=function(){var dir=(this.zgzhbo)?"left":"top";if((this.zgzhcz&&!this.zgzhcA&&dir=="left")||(this.zgzhcA&&!this.zgzhcz&&dir=="top")||(this.zgzhcA&&this.zgzhcz&&dir=="left")||(this.zgzhcA&&this.zgzhcz&&dir=="top")){return true;}return false;}//-->
;ComponentUs.WebControls.zgzhn.prototype.zgzhaM=function(){return ComponentUs.WebControls.zgzhh(this.Ref);};ComponentUs.WebControls.zgzhn.prototype.zgzhba=function(){return this.zgzhaM().zgzhbH;};ComponentUs.WebControls.zgzhn.prototype.GetY=function(){return this.zgzhaM().zgzhdL;};ComponentUs.WebControls.zgzhn.prototype.GetZ=function(){return this.Ref.style.zIndex;};ComponentUs.WebControls.zgzhn.prototype.zgzhaG=function(){return this.zgzhbl.Ref.offsetHeight;};ComponentUs.WebControls.zgzhn.prototype.zgzhaZ=function(){return this.zgzhbl.Ref.offsetWidth;};ComponentUs.WebControls.zgzhn.prototype.zgzhaD=function(){return this.zgzhdF.offsetHeight;};ComponentUs.WebControls.zgzhn.prototype.zgzhaE=function(){return this.zgzhdF.offsetWidth;}//-->
;ComponentUs.WebControls.zgzhn.prototype.zgzhbB=function(){return(this.Ref.style.visibility=="visible")?true:false;};ComponentUs.WebControls.zgzhn.prototype.zgzhdl=function(visibility){this.Ref.style.visibility=(!visibility)?"hidden":"visible";};ComponentUs.WebControls.zgzhn.prototype.zgzhda=function(position){this.Ref.style.position=position;};ComponentUs.WebControls.zgzhn.prototype.SetZ=function(z){this.Ref.style.zIndex=z;this.zgzhbl.Ref.style.zIndex=z;};ComponentUs.WebControls.zgzhn.prototype.SetX=function(x){if(!isNaN(parseInt(x))){this.Ref.style.left=parseInt(x)+"px";}};ComponentUs.WebControls.zgzhn.prototype.SetY=function(y){if(!isNaN(parseInt(y))){this.Ref.style.top=parseInt(y)+"px";}};ComponentUs.WebControls.zgzhn.prototype.zgzhdm=function(width){if(width&&parseInt(width)>=0){this.zgzhbl.Ref.style.width=parseInt(width)+"px";}};ComponentUs.WebControls.zgzhn.prototype.zgzhcV=function(height){if(width&&parseInt(width)>=0){this.zgzhbl.Ref.style.height=parseInt(height)+"px";}};ComponentUs.WebControls.zgzhn.prototype.zgzhM=function(){this.Width=this.zgzhN();this.Height=this.zgzhL();this.zgzhdm(this.Width);this.zgzhds=(this.zgzhbo)?this.Width:this.Height;this.zgzhbM(-this.zgzhds);};ComponentUs.WebControls.zgzhn.prototype.zgzhN=function(){var zgzhes=parseInt(this.zgzhaE());var width=parseInt(this.zgzhbl.Width);var zgzhdS=this.Menu.zgzhaI().Width;if(width==0||isNaN(width)){this.zgzhbl.Ref.style.width=(this.zgzhbl.AutoResizeAlign.toLowerCase()!="none")?parseInt(zgzhdS)+"px":this.zgzhbl.Ref.firstChild.offsetWidth+"px";this.Ref.style.width=this.zgzhbl.Ref.offsetWidth+"px";}if(this.zgzhbl.AutoResizeAlign.toLowerCase()!="none"){if(this.zgzhbl.AutoResizeAlign.toLowerCase()=="none"){this.zgzhdF.style.width="100%";}else{this.zgzhdF.parentNode.setAttribute("align",this.zgzhbl.AutoResizeAlign.toLowerCase());if(ComponentUs.WebControls.Browser.zgzhbz()){this.zgzhdF.setAttribute("align",this.zgzhbl.AutoResizeAlign.toLowerCase());}}zgzhes=parseInt(zgzhdS)+"px";}else{this.zgzhdF.style.width="100%";}if((width>0)){if(width<zgzhes){this.zgzhbl.Ref.style.width=width+"px";if(this.zgzhbl.Orientation.toLowerCase()=="horizontal"){this.zgzhdF.style.width=parseInt(this.zgzhdF.getAttribute("groupwidth"))+"px";this.zgzhdk(false);this.zgzhcS(false);this.zgzhbn=true;}return parseInt(this.zgzhbl.Ref.offsetWidth);}return width;}return zgzhes;};ComponentUs.WebControls.zgzhn.prototype.zgzhL=function(){var zgzheq=parseInt(this.zgzhaD());var height=parseInt(this.zgzhbl.Height);if(height>0){if(height<zgzheq){this.zgzhbl.Ref.style.height=height+"px";if(this.zgzhbl.Orientation.toLowerCase()!="horizontal"){this.zgzhdk(true);this.zgzhcS(true);this.zgzhbn=true;}return parseInt(this.zgzhbl.Ref.offsetHeight);}return height;}return zgzheq;};ComponentUs.WebControls.zgzhn.prototype.zgzhaN=function(){var zgzhfo="100%";if((!ComponentUs.WebControls.Browser.zgzhbq()&&ComponentUs.WebControls.Browser.zgzhbp())&&this.zgzhbl.Items.length>0){zgzhfo=this.zgzhbl.Items[0].Ref.offsetHeight;}return zgzhfo;};ComponentUs.WebControls.zgzhn.prototype.zgzhcS=function(dir){var style=null;var button=document.getElementById(this.Id+"_downScroller");if(button==null){button=document.createElement("div");button.id=this.Id+"_downScroller";this.zgzhbl.zgzhcR(button,(dir)?0:3);this.zgzhbl.Ref.appendChild(button);style=button.style;style.display="";style.position="absolute";style.zIndex=999;this.zgzhbl.zgzhan=new ComponentUs.WebControls.zgzho(button.id,this.zgzhbl,(dir)?0:3);}style=button.style;style.height=(dir)?16+"px":this.zgzhaN();if(dir){style.left=0+"px";style.bottom=0+"px";}else{style.top=0+"px";style.right=0+"px";}style.width=(dir)?"100%":24+"px";style.display="";};ComponentUs.WebControls.zgzhn.prototype.zgzhdk=function(dir){var style=null;var button=document.getElementById(this.Id+"_upScroller");if(button==null){button=document.createElement("div");button.id=this.Id+"_upScroller";this.zgzhbl.zgzhdj(button,(dir)?1:4);this.zgzhbl.Ref.appendChild(button);style=button.style;style.display="";style.position="absolute";style.zIndex=999;style.display="none";this.zgzhbl.zgzhdN=new ComponentUs.WebControls.zgzho(button.id,this.zgzhbl,(dir)?1:4);}style=button.style;style.height=(dir)?16+"px":this.zgzhaN();style.top=0+"px";style.left=0+"px";style.width=(dir)?"100%":24+"px";};ComponentUs.WebControls.zgzhn.prototype.zgzhbj=function(zgzhex){this.zgzhbl=zgzhex;this.zgzhbl.zgzhbj();var zgzhfh=this.zgzhbl.ParentItem;var zgzhfc=zgzhex.Orientation.toLowerCase();this.zgzhbo=zgzhfc==ComponentUs.WebControls.HORIZONTAL;if(zgzhfh&&zgzhfh.Depth==0&&zgzhfh.ParentGroup.Orientation.toLowerCase()=="vertical"){this.zgzhbo=ComponentUs.WebControls.VERTICAL;}if(this.Menu.Id+"zgzhbG"!=this.Id){this.zgzhw();this.SetZ(990+this.ParentItem.Depth);}if(this.Menu.Opacity){this.zgzhcY();}};ComponentUs.WebControls.zgzhn.prototype.zgzhw=function(){if(this.ParentItem&&this.ParentItem.Depth>0){this.zgzhbo=!this.zgzhbo;}};ComponentUs.WebControls.zgzhn.prototype.zgzhdq=function(){this.zgzhbx=true;if(!this.zgzhbv){this.zgzhM();this.zgzhdl(true);this.zgzhy();this.zgzhcZ();this.zgzhdu(true);this.zgzhbl.ParentItem.ParentGroup.zgzhcd=true;}};ComponentUs.WebControls.zgzhn.prototype.zgzhbc=function(){if(this.zgzhbl.Id==this.Menu.zgzhcE.Id){return;}this.zgzhbx=false;if(this.zgzhbv){this.zgzhdu(false);this.zgzhbl.ParentItem.ParentGroup.zgzhcd=false;}};ComponentUs.WebControls.zgzhn.prototype.zgzhdu=function(state){eval(this.Id+"this = "+"this;");this.zgzhbv=state;this.zgzhS();this.zgzhah=0;if(state&&this.Menu.ExpandAnimation.toLowerCase()=="none"){this.zgzhbM(0);}if(!state&&this.Menu.CollapseAnimation.toLowerCase()=="none"){this.zgzhbM(0);}this.zgzhdA();this.zgzhdJ=window.setInterval(this.Id+"this.zgzhz("+state+")",10);};ComponentUs.WebControls.zgzhn.prototype.zgzhz=function(state){if(state){for(var item=this.zgzhbl.ParentItem;item!=null;item=item.ParentGroup.ParentItem){item.ParentGroup.zgzhdz();}}this.zgzhbM(this.zgzhK(this.zgzhah++));var duration=(state)?this.ExpandDuration:this.CollapseDuration;if(this.zgzhah>duration){this.zgzhdA();}if(this.zgzhah>duration&&!state&&this.zgzhdJ==null){this.zgzhdA();this.zgzhbv=false;this.zgzhbx=false;this.zgzhcs();this.zgzhdl(false);if(this.zgzhbo){this.SetX(-this.zgzhds);}else{this.SetY(-this.zgzhds);}this.zgzhcZ();this.zgzhbl.ParentItem.SetDefault();if(this.Menu.zgzhcp!=null){this.zgzhbl.ParentItem.ParentGroup.zgzhbG.zgzhbc();}if(this.Menu.IsContext&&this.Menu.zgzhU){this.Menu.zgzhbe();this.Menu.zgzhU=false;}this.Menu.zgzhV=false;}if(this.zgzhah>duration&&state&&this.zgzhdJ==null){this.zgzhdA();this.zgzhbv=true;this.zgzhbx=true;if(this.Menu.LastHovered&&this.Menu.LastHovered.SubMenu){this.Menu.LastHovered.SubMenu.zgzhbG.zgzhdq();}if(this.Menu.zgzhbF!=null){this.Menu.zgzhbF.ParentGroup.zgzhD(10);}this.zgzhbl.ParentItem.SetExpanded();this.Menu.zgzhV=true;}};ComponentUs.WebControls.zgzhn.prototype.zgzhS=function(){if(this.zgzhbv){this.SetZ(990+this.ParentItem.Depth);}else{this.SetZ(989+this.ParentItem.Depth);}};ComponentUs.WebControls.zgzhn.prototype.zgzhK=function(zgzhea){var zgzhem=this.Menu.ExpandAnimation.toLowerCase();if(zgzhem=="none"){this.zgzhbh=this.zgzhds;this.ExpandDuration=0;}if(zgzhem=="linear"){this.zgzhbh=this.zgzhds*zgzhea/this.ExpandDuration;}if(zgzhem=="accelerate"){this.zgzhbh=this.zgzhds*Math.pow(zgzhea/this.ExpandDuration,4);}if(zgzhem=="decelerate"){this.zgzhbh=this.zgzhds-this.zgzhds*Math.pow(this.ExpandDuration-zgzhea,2)/Math.pow(this.ExpandDuration,2);}if(zgzhem=="bounce"){var pos=Math.floor(this.ExpandDuration*(0.3));if(zgzhea==0){this.zgzhbh=0;}if((zgzhea/=this.ExpandDuration)==1){this.zgzhbh=-this.zgzhds;}this.zgzhbh=-this.zgzhds*Math.pow(2,-10*zgzhea)*Math.sin((zgzhea*this.ExpandDuration-pos/10)*(2*Math.PI)/pos)+this.zgzhds;}var zgzhdW=this.Menu.CollapseAnimation.toLowerCase();if(zgzhdW=="none"){this.zgzhak=this.zgzhds;this.CollapseDuration=0;}if(zgzhdW=="linear"){this.zgzhak=this.zgzhds*zgzhea/this.CollapseDuration;}if(zgzhdW=="accelerate"){this.zgzhak=this.zgzhds*Math.pow(zgzhea/this.CollapseDuration,4);}if(zgzhdW=="decelerate"){this.zgzhak=this.zgzhds-this.zgzhds*Math.pow(this.CollapseDuration-zgzhea,2)/Math.pow(this.CollapseDuration,2);}if(zgzhdW=="bounce"){var pos=Math.floor(this.CollapseDuration*(0.6));if(zgzhea==0){this.zgzhak=0;}this.zgzhak=this.zgzhds+this.zgzhds+this.zgzhds*Math.pow(2,-10*zgzhea)*Math.sin((zgzhea*this.CollapseDuration-pos/10)*(2*Math.PI)/pos)-this.zgzhds;}return-((this.zgzhbv&&this.zgzhbx)?this.zgzhds-this.zgzhbh:this.zgzhak);};ComponentUs.WebControls.zgzhn.prototype.zgzhdA=function(){window.clearInterval(this.zgzhdJ);this.zgzhdJ=null;};ComponentUs.WebControls.zgzhn.prototype.zgzhbM=function(pos){if(!isNaN(pos)){var zgzhfz=(this.zgzhbo)?this.zgzhbl.Ref.offsetWidth:this.zgzhbl.Ref.offsetHeight;if(!this.zgzhay){if(this.zgzhbS()){this.zgzhcB(zgzhfz,pos);}else{this.zgzhbl.Ref.style[this.zgzhbo?"left":"top"]=pos+"px";this.Ref.style[this.zgzhbo?"width":"height"]=Math.abs(zgzhfz+pos+2)+"px";this.zgzhce[this.zgzhbo?"width":"height"]=Math.abs(zgzhfz+pos+2)+"px";}}else{this.zgzhcB(zgzhfz,pos);}}};ComponentUs.WebControls.zgzhn.prototype.zgzhcB=function(zgzhfz,pos){var zgzhfA=this.zgzhdy;var zgzhfs=Math.abs(zgzhfz+pos);this.Ref.style[this.zgzhbo?"width":"height"]=zgzhfs+"px";this.zgzhce[this.zgzhbo?"width":"height"]=zgzhfs+"px";this.zgzhbl.Ref.style[this.zgzhbo?"left":"top"]=-pos+"px";if(this.zgzhbo){this.SetX(this.zgzhdy-pos);this.zgzhce.left=this.zgzhba()+"px";}else{this.SetY(this.zgzhdy-pos);this.zgzhce.top=this.GetY()+"px";}}