if (typeof(window.RadTabStripNamespace)=="\x75\x6edefine\x64"){window.RadTabStripNamespace=new Object(); } ; RadTabStripNamespace.ItemGroup= function (l3,i3){ this.Size=0; this.ExpandableSize=0; this.FixedSize=0; this.Items=[]; this.SizeMethod=i3; this.SizeProperty=l3; };RadTabStripNamespace.ItemGroup.prototype.RegisterItem= function (item,I3){var o4=item.className.indexOf("separato\x72")>-1; if (o4){I3= true; }else {item=item.firstChild; } this.Size+=RadTabStripNamespace.Box[this.SizeMethod](item); if (o4 || (I3 && item.firstChild.firstChild.style[this.SizeProperty])){ this.FixedSize+=RadTabStripNamespace.Box[this.SizeMethod](item); return; } this.ExpandableSize+=RadTabStripNamespace.Box[this.SizeMethod](item); this.Items[this.Items.length]=item; };RadTabStripNamespace.Align= function (O,O4,I3){ this.Element=O; this.ItemGroups=[]; if (O4=="\x68orizontal"){ this.OuterSizeMethod="\x47etOuterWid\x74\x68"; this.InnerSizeMethod="GetInnerW\x69\x64th"; this.SetSizeMethod="\x53\145t\x4f\x75terWi\x64\x74h"; this.OffsetProperty="o\x66\x66setTop"; this.SizeProperty="width"; }else { this.OuterSizeMethod="G\x65\x74OuterHe\x69\x67ht"; this.InnerSizeMethod="GetInnerHei\x67\x68t"; this.SetSizeMethod="SetOuterHei\x67\x68t"; this.OffsetProperty="offse\x74\x4ceft"; this.SizeProperty="\x68eight"; } this.SkipFixedSize=I3; if (!this.Element.ItemGroups){ this.BuildItemGroups(); this.Element.ItemGroups=this.ItemGroups; }else { this.ItemGroups=this.Element.ItemGroups; }};RadTabStripNamespace.Align.prototype.CreateItemGroup= function (){return new RadTabStripNamespace.ItemGroup(this.SizeProperty,this.OuterSizeMethod); };RadTabStripNamespace.Align.prototype.BuildItemGroups= function (){var l4=3; var children=this.Element.childNodes; var i4=0; var I4=-1; this.ItemGroups[0]=this.CreateItemGroup(); for (var i=0; iI4+1){i4++; this.ItemGroups[i4]=this.CreateItemGroup(); I4=o5; } this.ItemGroups[i4].RegisterItem(item); } this.CalculateItemSizePercentage(); };RadTabStripNamespace.Align.prototype.CalculateItemSizePercentage= function (){for (var j=0; j0){O.style.height=O7+"\160\x78"; }}} ,SafeParseInt:function (value){var Oe=parseInt(value); return isNaN(Oe)?0:Oe; } ,GetStyleValues:function (style){var value=0; for (var i=1; i8); this.IsIE=!this.IsMacIE && !this.IsMozilla && !this.IsOpera && !this.IsSafari; this.StandardsMode=this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode=="\x43SS1Compat"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo();;if (typeof window.RadControlsNamespace=="u\x6e\x64\x65fine\x64"){window.RadControlsNamespace= {} ; }RadControlsNamespace.DomEventMixin= {Initialize:function (le){le.CreateEventHandler=this.CreateEventHandler; le.AttachDomEvent=this.AttachDomEvent; le.DetachDomEvent=this.DetachDomEvent; le.DisposeDomEventHandlers=this.DisposeDomEventHandlers; le.DomEventHandlers=[]; le.DomEventHandlersHash= {} ; le._domEventHandlingEnabled= true; le.EnableDomEventHandling=this.EnableDomEventHandling; le.DisableDomEventHandling=this.DisableDomEventHandling; } ,EnableDomEventHandling:function (){ this._domEventHandlingEnabled= true; } ,DisableDomEventHandling:function (){ this._domEventHandlingEnabled= false; } ,CreateEventHandler:function (ie,Ie){var Z=this ; return function (e){if (!Z._domEventHandlingEnabled && !Ie){return false; }return Z[ie](e || window.event); };} ,AttachDomEvent:function (O,of,Of,Ie){var If=this.CreateEventHandler(Of,Ie); var og= { "Element":O,"N\x61me":of,"\x48\x61ndler":If } ; this.DomEventHandlers[this.DomEventHandlers.length]=og; this.DomEventHandlersHash[Of]=If; if (O.addEventListener){O.addEventListener(of,If, false); }else if (O.attachEvent){O.attachEvent("\x6fn"+of,If); }} ,DetachDomEvent:function (O,of,If){if (typeof If=="\x73tring"){If=this.DomEventHandlersHash[If]; }if (!O){return; }if (O.removeEventListener){O.removeEventListener(of,If, false); }else if (O.detachEvent){O.detachEvent("\x6fn"+of,If); }} ,DisposeDomEventHandlers:function (){for (var i=0; i=" "){if (D=="\134" || D=="\x22"){e("\134"); }e(D); }else {switch (D){case "\010":e("\134b"); break; case "\014":e("\134\x66"); break; case "\012":e("\x5cn"); break; case "\x0d":e("\134\x72"); break; case "\011":e("\134\x74"); break; default:D=D.charCodeAt(); e("\134\x75\x300"+Math.floor(D/16).toString(16)+(D%16).toString(16)); }}}e("\x22"); return ""; case "bo\x6f\x6cean":e(String(x)); return ""; default:e("null"); return ""; }}f(h,0); return a.join(""); } ,stringifyHashTable:function (hash,C,B){var a=[]; if (!B)B=[]; for (var i=0; i=this.PageViews.length){return; }for (var i=0; i"); }else {var I8=document.createElement("\114\x49\x4eK"); I8.rel="sty\x6c\x65sheet"; I8.type="\x74ext/css"; I8.href=i8; document.getElementById(l8+"StyleShe\x65\x74Hold\x65\x72").appendChild(I8); }} ; RadTabStripNamespace.TabStripAlign= {Left: 0,Center: 1,Right: 2,Justify: 3 } ; RadTabStripNamespace.GetChildren= function (O,o9){var children=[]; var O9=O.firstChild; o9=o9.toLowerCase(); while (O9){if (O9.nodeType==1 && O9.tagName.toLowerCase()==o9){children[children.length]=O9; }O9=O9.nextSibling; }return children; };function RadTabStrip(l9){var i7=window[l9]; if (i7!=null && typeof(i7.Dispose)=="\x66unction"){i7.Dispose(); } this.DomElement=document.getElementById(l9); this.ChildStripDomElement=this.DomElement.getElementsByTagName("ul")[0]; this.StateField=document.getElementById(l9+"\x5fHidden"); this.Tabs=[]; this.AllTabs=[]; this.ID=l9; this.LevelWraps=[]; this.LevelWraps[0]=this.ChildStripDomElement.parentNode; RadControlsNamespace.EventMixin.Initialize(this ); this.SelectedTab=null; this.SelectedIndex=-1; this.IsVertical= false; this.ReverseLevelOrder= false; this.ScrollChildren= false; this.ScrollPosition=0; this.ScrollButtonsPosition=RadControlsNamespace.ScrollButtonsPosition.Right; this.PerTabScrolling= false; this.MultiPageID=""; this.MultiPageClientID=""; this.CausesValidation= true; this.ValidationGroup=""; this.Enabled= true; this.Direction="\x6ctr"; this.Align=RadTabStripNamespace.TabStripAlign.Left; this.ReorderTabRows= false; this.UnSelectChildren= false; this.ClickSelectedTab= false; this.OnClientTabSelected=""; this.OnClientTabSelecting=""; this.OnClientMouseOver=""; this.OnClientMouseOut=""; this.OnClientTabUnSelected=""; this.OnClientTabEnabled=""; this.OnClientTabDisabled=""; this.OnClientLoad=""; this.DepthLevel=0; this.MaxLevel=0; this.TabData= {} ; this.InPostBack= false; this.Disposed= false; this.InitialAllTabs=[]; this.TabsState= {} ; this.InUpdate= false; this.Initialized= false; if (RadControlsNamespace.Browser.IsIE){var Z=this ; this.i9= function (){Z.Dispose(); };window.attachEvent("\x6fnunload",this.i9); }}RadTabStrip.prototype.Dispose= function (){if (this.Disposed){return; } this.Disposed= true; try {for (var i=0; iia?"\156\x6fne": "\x62lock"; if (this.LevelWraps[i].style.display!=Ia){ this.LevelWraps[i].style.display=Ia; }if (this.LevelWraps[i].style.display=="block"){height+=this.LevelWraps[i].offsetHeight; }}if (!this.IsVertical && RadControlsNamespace.Browser.IsMozilla){ this.DomElement.style.height=height+"px"; }};RadTabStrip.prototype.DetermineDirection= function (){var el=this.DomElement; while (el.tagName.toLowerCase()!="\x68tml"){if (el.dir){ this.Direction=el.dir.toLowerCase(); return; }el=el.parentNode; } this.Direction="\x6c\x74r"; };RadTabStrip.prototype.ApplyTabBreaks= function (ob){var N=ob.getElementsByTagName("li"); for (var i=0; i0){ this.DomElement.insertBefore(this.LevelWraps[Ib],this.LevelWraps[Ib-1]); }else { this.DomElement.appendChild(this.LevelWraps[Ib]); } this.LevelWraps[Ib].className="levelw\x72\x61p lev\x65\x6c"+(Ib+1); if (this.Direction=="\x72tl"){ this.LevelWraps[Ib].style.cssFloat="\x72ight"; this.LevelWraps[Ib].style.styleFloat="\x72ight"; }return this.LevelWraps[Ib]; };RadTabStrip.prototype.CreateControlHierarchy= function (oc,Oc){ this.MaxLevel=Math.max(oc.DepthLevel,this.MaxLevel); if (oc.DepthLevel>0){ this.CreateLevelWrap(oc.DepthLevel).appendChild(Oc); }var N=RadTabStripNamespace.GetChildren(Oc,"\x6ci"); for (var i=0; i-1)continue; N[i].style.styleFloat="\x72ight"; N[i].style.cssFloat="r\x69\x67ht"; }var ic=this.DomElement.getElementsByTagName("\x75l"); for (var i=0; i0){var i=0; while (this.ScrollPosition<-(this.IsVertical?N[i].offsetTop:N[i].offsetLeft)){i++; } this.CurrentTab=i; }};RadControlsNamespace.Scroll.prototype.AttachScrollMethods= function (){if (this.PerTabScrolling){ this.Scroll=RadControlsNamespace.Scroll.StartPerTabScroll; this.Stop=RadControlsNamespace.Scroll.StopPerTabScroll; }else { this.Scroll=RadControlsNamespace.Scroll.StartSmoothScroll; this.Stop=RadControlsNamespace.Scroll.StopSmoothScroll; }} ; RadControlsNamespace.Scroll.prototype.EvaluateArrowStatus= function (){var n=!(this.ScrollPosition>this.MinScrollPosition); var M=!(this.ScrollPositionN.length){return; }var J=direction==-1?this.CurrentTab:k; this.CurrentTab=k; if (this.IsVertical){var H=N[J].offsetHeight; }else {var H=N[J].offsetWidth; } this.ScrollBy(H*direction); this.EvaluateArrowStatus(); } ; RadControlsNamespace.Scroll.prototype.ScrollNeeded= function (){return true; if (this.IsVertical){return this.Element.offsetHeight>this.Element.parentNode.offsetHeight; }return this.Element.offsetWidth>this.Element.parentNode.offsetWidth; };RadControlsNamespace.Scroll.StopSmoothScroll= function (direction){if (this.OnScrollStop){ this.OnScrollStop(); }clearInterval(this.L); } ; RadControlsNamespace.Scroll.StopPerTabScroll= function (direction){if (this.OnScrollStop){ this.OnScrollStop(); }} ;;