Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var MNSMiscFunc = {
- ie : true,
- ns2 : false,
- ns3 : false,
- ns4 : false,
- ns4up : false,
- ns5 : false,
- ns5up : false,
- moz7 : false,
- ie3 : false,
- ie4 : false,
- ie5 : false,
- ie55: false,
- ie6 : false,
- op3 : false,
- op4 : false,
- op5 : false,
- op6 : false,
- op6up: false,
- Tmpinit:false,
- InitVars : function () {
- this.Tmpinit=true;
- var agt = navigator.userAgent.toLowerCase();
- var major = parseInt(navigator.appVersion);
- var minor = parseFloat(navigator.appVersion);
- var navI = navigator.appVersion.substring(22,25);
- var nav = ((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1));
- this.ns2 = (nav&&(major==2))?true:false;
- this.ns3 = (nav&&(major==3))?true:false;
- this.ns4 = (nav&&(major==4))?true:false;
- this.ns4up = (nav&&(major>=4))?true:false;
- this.ns5 = (nav&&(major==5))?true:false;
- this.ns5up = (nav&&(major>=5))?true:false;
- this.moz7 = (nav&&(agt.indexOf('netscape6')==-1))?true:false;
- var ie = (agt.indexOf("msie")!=-1)?true:false;
- this.ie=ie;
- this.ie3 = (ie&&(major<4))?true:false;
- this.ie4 = (ie&&(agt.indexOf("msie 4")!=-1))?true:false;
- this.ie5 = (ie&&navI=='5.0')?true:false;
- this.ie55 = (ie&&navI=='5.5')?true:false;
- this.ie6 = (ie&&navI=='6.0')?true:false;
- var op3 = (agt.indexOf("opera")!=-1)?true:false;
- this.op3=op3;
- var op4 = (op3&&(agt.indexOf("opera 4")!=-1))?true:false;
- this.op4=op4;
- var op5 = ((op3&&((agt.indexOf("opera 5.11")!=-1)||(agt.indexOf("opera 5.02")!=-1)||(agt.indexOf("opera 5.01")!=-1)))||(op3&&(major>4)))?true:false;
- this.op5=op5;
- var op6 = (op5&&(agt.indexOf("opera 6.0")!=-1))?true:false;
- this.op6=op6;
- var op6up = (op6&&(major>6))?true:false;
- this.op6up=op6up;
- return;
- },
- getObjNN4 : function (obj,name)
- {
- if (!this.init){this.InitVars()}
- var x = obj.layers;
- var foundLayer;
- for (var i=0;i<x.length;i++)
- {
- if (x[i].id == name)
- foundLayer = x[i];
- else if (x[i].layers.length)
- var tmp = this.getObjNN4(x[i],name);
- if (tmp) foundLayer = tmp;
- }
- return foundLayer;
- },
- getElementHeight : function (Elem) {
- if (!this.init){this.InitVars()}
- if (this.ns4) {
- var elem = this.getObjNN4(document, Elem);
- return elem.clip.height;
- } else {
- if(document.getElementById) {
- var elem = document.getElementById(Elem);
- } else if (document.all){
- var elem = document.all[Elem];
- }
- xPos = elem.offsetHeight;
- return xPos;
- }
- },
- getElementWidth : function(Elem) {
- if (!this.init){this.InitVars()}
- if (this.ns4) {
- var elem = this.getObjNN4(document, Elem);
- return elem.clip.width;
- } else {
- if(document.getElementById) {
- var elem = document.getElementById(Elem);
- } else if (document.all){
- var elem = document.all[Elem];
- }
- xPos = elem.offsetWidth;
- return xPos;
- }
- },
- getElementLeft : function (Elem) {
- if (!this.init){this.InitVars()}
- if (this.ns4) {
- var elem = this.getObjNN4(document, Elem);
- return elem.pageX;
- } else {
- var elem;
- if(document.getElementById) {
- var elem = document.getElementById(Elem);
- } else if (document.all){
- var elem = document.all[Elem];
- }
- xPos = elem.offsetLeft;
- tempEl = elem.offsetParent;
- while (tempEl != null) {
- xPos += tempEl.offsetLeft;
- if ((tempEl.style.position=='absolute') || (tempEl.style.position=='relative')){break}
- tempEl = tempEl.offsetParent;
- }
- return xPos;
- }
- },
- getElementTop : function (Elem) {
- if (!this.init){this.InitVars()}
- if (this.ns4) {
- var elem = this.getObjNN4(document, Elem);
- return elem.pageY;
- } else {
- if(document.getElementById) {
- var elem = document.getElementById(Elem);
- } else if (document.all) {
- var elem = document.all[Elem];
- }
- yPos = elem.offsetTop;
- tempEl = elem.offsetParent;
- while (tempEl != null){
- yPos += tempEl.offsetTop;
- if ((tempEl.style.position=='absolute') || (tempEl.style.position=='relative')){break}
- tempEl = tempEl.offsetParent;
- }
- return yPos;
- }
- }
- };
- MNSMiscFunc.InitVars();
- var MNSMenuGroupHandler = {
- MenuTimeout : 500,
- ObjectsCount : 0,
- ObjectsArray : Array(),
- idCounter : 0,
- idPrefix : "menu_group_",
- TimerCloseAllGroupID : 0,
- TimerAnimateID : 0,
- TmpGroupToShow : '',
- LC : '2708072187',
- SubmenusDisAppearMode:0,
- GetId:function() {
- return this.idPrefix + this.idCounter++;
- },
- FindGroup:function(id){
- for (i=1; i<= this.ObjectsCount; i++){
- if (this.ObjectsArray[i].id==id) {
- return(this.ObjectsArray[i]);
- }
- }
- },
- DoOnMouseOver:function(id){
- window.clearTimeout(this.TimerCloseAllGroupID);
- gr=this.FindGroup(id);
- if (gr){
- if (gr.RefererItem){
- if (gr.RefererItem.OwnerGroup){
- for (i=1; i<= gr.RefererItem.OwnerGroup.Count; i++){
- if (gr.RefererItem.OwnerGroup.Items[i]==gr.RefererItem)
- {
- gr.RefererItem.OwnerGroup.Items[i].SetItemState(1);
- }
- else
- {
- gr.RefererItem.OwnerGroup.Items[i].SetItemState(0);
- }
- }
- }
- }
- }
- },
- DoOnMouseOut:function(id){
- window.clearTimeout(this.TimerCloseAllGroupID);
- this.TimerCloseAllGroupID = window.setTimeout("MNSMenuGroupHandler.CloseAllGroup()", MNSMenuGroupHandler.MenuTimeout);
- },
- DoOnMouseMove:function(id){return},
- DoOnMouseDown:function(id){return},
- DoOnMouseUp:function(id){return},
- FlipDropDown:function(id){
- gr=this.FindGroup(id.substring(8));
- if (gr){
- gr.FlipDropDown();
- }
- },
- CloseGroup:function(id){
- gr=this.FindGroup(id);
- if (gr!=null){
- gr.CloseGroupRecurse();
- }
- },
- CloseAllGroup:function(){
- this.TmpGroupToShow=null;
- window.clearTimeout(this.TimerAnimateID);
- for (i=1; i<= this.ObjectsCount; i++){
- if (this.ObjectsArray[i]){
- if (this.ObjectsArray[i].IsMainGroup ==0){
- this.ObjectsArray[i].HideGroup();
- this.ObjectsArray[i].AnimationControlValue = this.ObjectsArray[i].AnimationTo;
- }
- else
- {
- for (n=1; n<= this.ObjectsArray[i].Count; n++){
- this.ObjectsArray[i].Items[n].SetItemState(0);
- }
- }
- }
- }
- },
- ShowWithTargetOpacity:function(){
- if (this.TmpGroupToShow != null){
- gr=this.FindGroup(this.TmpGroupToShow);
- if (gr){
- if (gr.AnimationType==100){
- gr.AnimationControlValue= gr.AnimationTo;
- obj=document.getElementById(gr.id);
- obj.style.MozOpacity = gr.Opacity/100 ;
- obj.style.filter = 'alpha(opacity=' + gr.Opacity + ')';
- obj.style.opacity=gr.Opacity/100;
- }
- }
- }
- },
- DoAnimation:function(){
- if (this.TmpGroupToShow != null){
- gr=this.FindGroup(this.TmpGroupToShow);
- if (gr){
- obj=document.getElementById(gr.id);
- objt=document.getElementById(gr.id+'_table');
- if ((gr.AnimationType>0) && (!MNSMiscFunc.ie)){
- gr.AnimationType=100;
- }
- switch (gr.AnimationType){
- case 0:{
- obj.style.visibility='visible';
- objt.style.visibility='visible';
- for (this.i=1; this.i<= gr.Count; this.i++){
- gr.Items[this.i].ShowOrphans();
- }
- if (gr.OnGroupShowJS!=''){
- eval(gr.OnGroupShowJS);
- }
- return;
- }
- case 100:{
- if (gr.AnimationControlValue==20){
- for (this.i=1; this.i<= gr.Count; this.i++){
- gr.Items[this.i].ShowOrphans();
- }
- }
- if ((gr.AnimationControlValue <= gr.AnimationTo) && (gr.AnimationControlValue<=gr.Opacity)){
- obj.style.visibility='visible';
- objt.style.visibility='visible';
- obj.style.MozOpacity = (gr.AnimationControlValue / gr.AnimationTo );
- obj.style.filter = 'alpha(opacity=' + gr.AnimationControlValue + ')';
- obj.style.opacity=(gr.AnimationControlValue / gr.AnimationTo );
- gr.AnimationControlValue=gr.AnimationControlValue+(gr.AnimationStep);
- this.TimerAnimateID = window.setTimeout("MNSMenuGroupHandler.DoAnimation()",gr.AnimationTimeout * (gr.AnimationTo/(gr.Opacity/2)));
- return;
- }
- if (gr.OnGroupShowJS!=''){
- eval(gr.OnGroupShowJS);
- }
- return;
- }
- }
- for (this.i=1; this.i<= gr.Count; this.i++){
- gr.Items[this.i].ShowOrphans();
- }
- if (obj.filters) {
- dur=(gr.AnimationTimeout * (gr.AnimationTo / gr.AnimationStep)) / 1500;
- obj.style.filter='revealTrans(duration='+dur+', transition='+gr.AnimationType+')';
- obj.filters.revealTrans.apply();
- obj.style.visibility='visible';
- objt.style.visibility='visible';
- obj.filters.revealTrans.play();
- }
- else
- { obj.style.visibility='visible';}
- if (gr.OnGroupShowJS!=''){
- eval(gr.OnGroupShowJS);
- }
- }
- }
- }
- };
- var MNSMenuItemHandler = {
- ObjectsCount : 0,
- ObjectsArray : Array(),
- idCounter : 0,
- idPrefix : "menu_item_",
- GetId : function() {
- return this.idPrefix + this.idCounter++;
- },
- FindItem : function(id) {
- for (i=1; i<= this.ObjectsCount; i++){
- if (this.ObjectsArray[i].id==id) {
- return(this.ObjectsArray[i]);
- }
- }
- },
- FindItemByGroup: function(GroupID){
- for (i=1; i<= this.ObjectsCount; i++){
- if (this.ObjectsArray[i].Group.id==GroupID) {
- return(this.ObjectsArray[i]);
- }
- }
- },
- DoOnMouseOver : function(id){
- mi=this.FindItem(id);
- mi.SetItemState(1);
- for (i=1; i<= mi.OwnerGroup.Count; i++){
- if (mi.OwnerGroup.Items[i]!=mi){
- mi.OwnerGroup.Items[i].SetItemState(0);
- }
- }
- if (mi.Group != null || MNSMenuGroupHandler.SubmenusDisAppearMode==0){
- for (i=1; i<= mi.OwnerGroup.Count; i++){
- if ((mi.OwnerGroup.Items[i]!=mi) && (mi.OwnerGroup.Items[i].Group!=null)){
- obj=document.getElementById(mi.OwnerGroup.Items[i].Group.id);
- if ((obj != null) && (obj.style.visibility=='visible')){
- MNSMenuGroupHandler.CloseGroup(obj.id);
- }
- }
- }
- }
- if (mi.Group != null){
- MNSMenuGroupHandler.ShowWithTargetOpacity();
- mi.Group.ShowGroup();
- }
- },
- DoOnMouseMove: function(id) {},
- DoOnMouseOut : function (id) {},
- DoOnMouseDown: function(id){
- mi=this.FindItem(id);
- mi.SetItemState(2);
- },
- DoOnMouseUp: function(id){
- mi=this.FindItem(id);
- mi.SetItemState(1);
- },
- Navigate: function(id){
- mi=this.FindItem(id);
- eval(mi.OnClickJS);
- if (mi.URL>''){
- if (mi.URLTarget==''){self.location.href= mi.URL} else
- if (mi.URLTarget=='_top'){top.location.href = mi.URL;} else
- if (mi.URLTarget=='_parent'){parent.location.href= mi.URL;}else
- if (mi.URLTarget=='_self'){self.location.href= mi.URL} else
- {
- if (top.frames[mi.URLTarget]){top.frames[mi.URLTarget].location.href= mi.URL} else
- if (self.frames[mi.URLTarget]){self.frames[mi.URLTarget].location.href= mi.URL} else
- {
- window.open(mi.URL,mi.URLTarget);
- }
- }
- }
- }
- };
- function MNSMenuGroupAncestor () {
- this.Width = 300;
- this.Height= 1;
- this.Opacity=100;
- this.Embedding='absolute';
- this.Drifting=0;
- this.OnGroupShowJS='';
- this.OnGroupHideJS='';
- this.BgColor= '#FFFFFF';
- this.BgImage='';
- this.BgImgPos='center';
- this.BgImgRep='no-repeat';
- this.Border='solid';
- this.BorderWidth='1';
- this.BorderColor='#000000';
- this.ShadowWidth=0;
- this.ShadowColor='#999999';
- this.ShadowTransparency=50;
- this.ItemsSpacing=0;
- this.ItemsPadding_L=2;
- this.ItemsPadding_R=2;
- this.ItemsPadding_T=2;
- this.ItemsPadding_B=2;
- this.HeaderText='';
- this.HeaderTextAlign='center';
- this.HeaderTextOffsetX=0;
- this.HeaderTextOffsetY=0;
- this.HeaderHeight=0;
- this.HeaderBgColor='#125500';
- this.HeaderIcon='';
- this.HeaderIconOffsetX=10;
- this.HeaderIconOffsetY=0;
- this.HeaderBgImage='';
- this.HeaderBgImgPos='';
- this.HeaderBgImgRep='';
- this.FontFamily='';
- this.FontColor='';
- this.FontSize='';
- this.FontDecoration='';
- this.FontWeight='';
- this.FontStyle='';
- this.MenuGroupAlign=0;
- this.z=1000;
- this.Visibility='hidden';
- this.AnimationTimeout=20;
- this.AnimationType=100;
- this.ShowDropDownControl=false;
- this.InitDropdownState=1;
- this.DropdownImageExpand='';
- this.DropdownImageCollapse='';
- }
- MNSMenuGroup.prototype = new MNSMenuGroupAncestor;
- function MNSMenuGroup(ShiftX,ShiftY,Lay) {
- this.Layout= Lay || 'V';
- this.x=ShiftX || 0;
- this.y=ShiftY || 0;
- this.Tmp1=0;
- this.AnimationStep=4;
- this.AnimationFrom=0;
- this.AnimationTo=100;
- this.AnimationControlValue=20;
- this.TmpMainDivStyle='';
- this.TargetPosX=this.x;
- this.TargetPosY=this.y;
- this.DefaultTop=0;
- this.DefaultLeft=0;
- this.Count=0;
- this.IsMainGroup=0;
- this.Items = [];
- this.id = MNSMenuGroupHandler.GetId();
- this.RefererItem = null;
- this.Preload_DropdownImageExpand=new Image();
- this.Preload_DropdownImageCollapse=new Image();
- MNSMenuGroupHandler.ObjectsCount=MNSMenuGroupHandler.ObjectsCount+1;
- MNSMenuGroupHandler.ObjectsArray[MNSMenuGroupHandler.ObjectsCount]=this;
- }
- MNSMenuGroup.prototype.Assign=function Assign(s)
- {
- this.Width= s.Width;
- this.Height= s.Height;
- this.Opacity= s.Opacity;
- this.Embedding= s.Embedding;
- this.Drifting= s.Drifting;
- this.OnGroupShowJS= s.OnGroupShowJS;
- this.OnGroupHideJS= s.OnGroupHideJS;
- this.BgColor= s.BgColor;
- this.BgImage= s.BgImage;
- this.BgImgPos= s.BgImgPos;
- this.BgImgRep= s.BgImgRep;
- this.Border= s.Border;
- this.BorderWidth= s.BorderWidth;
- this.BorderColor= s.BorderColor;
- this.ShadowWidth= s.ShadowWidth;
- this.ShadowColor= s.ShadowColor;
- this.ShadowTransparency=s.ShadowTransparency;
- this.ItemsSpacing= s.ItemsSpacing;
- this.ItemsPadding_L= s.ItemsPadding_L;
- this.ItemsPadding_R= s.ItemsPadding_R;
- this.ItemsPadding_T= s.ItemsPadding_T;
- this.ItemsPadding_B= s.ItemsPadding_B;
- this.HeaderText= s.HeaderText;
- this.HeaderTextAlign= s.HeaderTextAlign;
- this.HeaderTextOffsetX= s.HeaderTextOffsetX;
- this.HeaderTextOffsetY= s.HeaderTextOffsetY;
- this.HeaderHeight= s.HeaderHeight;
- this.HeaderBgColor= s.HeaderBgColor;
- this.HeaderIcon= s.HeaderIcon;
- this.HeaderIconOffsetX= s.HeaderIconOffsetX;
- this.HeaderIconOffsetY= s.HeaderIconOffsetY;
- this.HeaderBgImage= s.HeaderBgImage;
- this.HeaderBgImgPos= s.HeaderBgImgPos;
- this.HeaderBgImgRep= s.HeaderBgImgRep;
- this.FontFamily= s.FontFamily;
- this.FontColor= s.FontColor;
- this.FontSize= s.FontSize;
- this.FontDecoration= s.FontDecoration;
- this.FontWeight= s.FontWeight;
- this.FontStyle= s.FontStyle;
- this.MenuGroupAlign= s.MenuGroupAlign;
- this.z= s.z;
- this.Visibility= s.Visibility;
- this.AnimationTimeout= s.AnimationTimeout;
- this.AnimationType= s.AnimationType;
- this.ShowDropDownControl=s.ShowDropDownControl;
- this.InitDropdownState=s.InitDropdownState;
- this.DropdownImageExpand=s.DropdownImageExpand;
- this.DropdownImageCollapse=s.DropdownImageCollapse;
- this.MenuAlign=s.MenuAlign;
- };
- MNSMenuGroup.prototype.PreloadImages= function PreloadImages() {
- this.Preload_DropdownImageExpand.src=this.DropdownImageExpand;
- this.Preload_DropdownImageCollapse.src=this.DropdownImageCollapse;
- };
- MNSMenuGroup.prototype.AddItem= function AddItem(Item) {
- this.Count++;
- this.Items[this.Count]=Item;
- Item.OwnerGroup=this;
- };
- MNSMenuGroup.prototype.Preset= function Preset(ItemIndex,State) {
- if ((ItemIndex >=1) && (ItemIndex <= this.Count)){
- for (i=1; i<= this.Count; i++){
- if (i==ItemIndex){
- this.Items[i].IsPreset=true;
- this.Items[i].PresetState=State;
- this.Items[i].SetItemState(State);
- }
- else
- {
- this.Items[i].IsPreset=false;
- this.Items[i].SetItemState(0);
- }
- }
- }
- };
- MNSMenuGroup.prototype.ExpandDropDown= function ExpandDropDown() {
- dropimg=document.getElementById('dropimg_'+this.id);
- bodydiv=document.getElementById(this.id+'_itemtablecover');
- if(bodydiv)
- {
- if ((bodydiv.style.visibility!='visible')&&(bodydiv.style.visibility!=''))
- {
- bodydiv.style.display='block';
- bodydiv.style.visibility='visible';
- if(dropimg){
- dropimg.src=this.Preload_DropdownImageCollapse.src;
- }
- }
- }
- };
- MNSMenuGroup.prototype.CollapseDropDown= function CollapseDropDown() {
- dropimg=document.getElementById('dropimg_'+this.id);
- bodydiv=document.getElementById(this.id+'_itemtablecover');
- if(bodydiv)
- {
- if ((bodydiv.style.visibility=='visible')||(bodydiv.style.visibility==''))
- {
- bodydiv.style.display='none';
- bodydiv.style.visibility='hidden';
- if(dropimg){
- dropimg.src=this.Preload_DropdownImageExpand.src;
- }
- }
- }
- };
- MNSMenuGroup.prototype.FlipDropDown= function FlipDropDown() {
- dropimg=document.getElementById('dropimg_'+this.id);
- bodydiv=document.getElementById(this.id+'_itemtablecover');
- if(bodydiv)
- {
- if ((bodydiv.style.visibility=='visible')||(bodydiv.style.visibility==''))
- {
- bodydiv.style.display='none';
- bodydiv.style.visibility='hidden';
- if(dropimg){
- dropimg.src=this.Preload_DropdownImageExpand.src;
- }
- }
- else
- {
- bodydiv.style.display='block';
- bodydiv.style.visibility='visible';
- if(dropimg){
- dropimg.src=this.Preload_DropdownImageCollapse.src;
- }
- }
- }
- };
- MNSMenuGroup.prototype.ToStr= function ToStr(){
- this.PreloadImages();
- if (this.Layout=='H')
- {
- maxwidth=0;
- widthsum=0;
- for (i=1; i<= this.Count; i++){
- if (this.Items[i].Width>maxwidth){
- maxwidth=this.Items[i].Width;
- }
- widthsum=widthsum+this.Items[i].Width;
- }
- this.Width=widthsum;
- }
- if (document.compatMode && document.compatMode == "BackCompat" && MNSMiscFunc.ie){
- MainDivWidth=this.Width-this.ItemsPadding_L-this.ItemsPadding_R;
- HeaderWidth=this.Width;
- TableWidth=MainDivWidth;
- }
- else
- {
- MainDivWidth=this.Width;
- HeaderWidth=MainDivWidth;
- TableWidth=this.Width-this.ItemsPadding_L-this.ItemsPadding_R;
- }
- SetPosition=true;
- if (this.Embedding=='default'){this.Embedding='absolute'; SetPosition=false}
- if (this.IsMainGroup==0){this.Embedding='absolute'}
- if (SetPosition){
- this.TmpMainDivStyle='position: '+this.Embedding+'; left: '+this.TargetPosX+'px; top: '+this.TargetPosY+'px; ';
- }
- else
- {
- this.TmpMainDivStyle='position: '+this.Embedding+'; ';
- }
- this.TmpMainDivStyle=this.TmpMainDivStyle+'z-index: '+this.z+'; visibility: '+this.Visibility+'; ';
- this.TmpMainDivStyle=this.TmpMainDivStyle+'width: '+MainDivWidth+'px; ';
- this.TmpMainDivStyle=this.TmpMainDivStyle+'border-width: '+this.BorderWidth+'px; border-style: '+this.Border+'; border-color: '+this.BorderColor+'; ';
- this.TmpMainDivStyle=this.TmpMainDivStyle+'background-color: '+this.BgColor+'; ';
- this.TmpMainDivStyle=this.TmpMainDivStyle+'background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; ';
- if (this.Opacity<100){this.TmpMainDivStyle=this.TmpMainDivStyle+'filter:alpha(opacity='+this.Opacity+'); -moz-opacity:'+this.Opacity+'; opacity:'+(this.Opacity/100)+'; '};
- this.TmpHedStyle=' padding:0px; margin:0px; height: '+this.HeaderHeight+'px; ';
- this.TmpHedStyle=this.TmpHedStyle+'width: '+HeaderWidth+'px; ';
- this.TmpHedStyle=this.TmpHedStyle+'background-color: '+this.HeaderBgColor+'; ';
- this.TmpHedStyle=this.TmpHedStyle+'background-image: url('+this.HeaderBgImage+'); background-position: '+this.HeaderBgImgPos+'; background-repeat: '+this.HeaderBgImgRep+'; ';
- this.TmpSubHedStyle='position: relative; left: '+this.HeaderTextOffsetX+'px; top: '+this.HeaderTextOffsetY+'px; ';
- this.TmpSubHedStyle=this.TmpSubHedStyle+'font-family: '+this.FontFamily+' ; font-style: '+this.FontStyle+'; font-size: '+this.FontSize+'px; font-weight: '+this.FontWeight+'; ';
- this.TmpSubHedStyle=this.TmpSubHedStyle+'color: '+this.FontColor+' ; text-decoration: '+this.FontDecoration+'; ';
- this.TmpTableCover= 'padding-top: '+this.ItemsPadding_T+'px; padding-left: '+this.ItemsPadding_L+'px; padding-right: '+this.ItemsPadding_R+'px; padding-bottom: '+this.ItemsPadding_B+'px; ';
- this.TableAttr='width="'+TableWidth+'" cellpadding="0" cellspacing="0" border="0"';
- if(this.ShowDropDownControl)
- {
- this.TmpDropDown='<img onclick="MNSMenuGroupHandler.FlipDropDown(this.id);" id="dropimg_'+this.id+'" hspace="5" src="';
- if (this.InitDropdownState==1){
- this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageCollapse.src;
- } else{
- this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageExpand.src;
- this.TmpTableCover=this.TmpTableCover+' visibility: hidden; display: none; ';
- }
- this.TmpDropDown=this.TmpDropDown+'" >';
- }
- else {
- this.TmpDropDown=(this.HeaderText)?' ':'';
- }
- TmpStr='<DIV style="'+this.TmpMainDivStyle+'" id="'+this.id+'" onmousedown="MNSMenuGroupHandler.DoOnMouseDown(this.id)" onmouseup="MNSMenuGroupHandler.DoOnMouseUp(this.id)" onmouseover="MNSMenuGroupHandler.DoOnMouseOver(this.id)" onmouseout="MNSMenuGroupHandler.DoOnMouseOut()">';
- if (this.HeaderIcon){
- TmpStr=TmpStr+'<img align="left" style="position: absolute; left:'+this.HeaderIconOffsetX+'px; top: '+this.HeaderIconOffsetY+'px; z-index: 1;" src="'+this.HeaderIcon+'">';
- };
- TmpStr=TmpStr+'<div style="' + this.TmpHedStyle + '"><div><table border="0" align="center" height="100%" cellpadding="0" cellspacing="0"><tr><td valign="middle" align="'+this.HeaderTextAlign+'" width="99%"><span style="'+this.TmpSubHedStyle+'">' +this.HeaderText+'</span></td><td width="1%" valign="middle">'+this.TmpDropDown+'</td></tr></table></div></div>';
- TmpStr=TmpStr+'<div id="'+this.id+'_itemtablecover" style="'+this.TmpTableCover+'">';
- if (this.Layout=='H') {
- TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table"><TR>';
- TmpEndStr='</TR valign="top"></TABLE>';
- }
- else
- {
- TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table">';
- TmpEndStr='</TABLE>';
- }
- for (i=1; i<= this.Count; i++){
- this.Items[i].LastItem=false;
- if (i==this.Count){
- this.Items[i].LastItem=true;
- }
- TmpStr=TmpStr+this.Items[i].ToStr(this.Layout);
- }
- TmpStr=TmpStr+TmpEndStr;
- TmpStr=TmpStr+'</div>';
- TmpStr=TmpStr+'</DIV>';
- for (this.i=1; this.i<= this.Count; this.i++){
- if (this.Items[this.i].Group != null){
- TmpStr=TmpStr+this.Items[this.i].Group.ToStr();
- }
- }
- if ((this.OnGroupShowJS!='') && (this.Visibility) && (this.IsMainGroup)){
- eval(this.OnGroupShowJS);
- }
- return(TmpStr);
- };
- MNSMenuGroup.prototype.HideMainMenu=function HideMainMenu(){
- if (this.IsMainGroup==1){
- obj=document.getElementById(this.id);
- if (obj){
- obj.style.visibility='hidden';
- for (i=1; i<= this.Count; i++){
- this.Items[i].HideOrphans();
- }
- }
- }
- };
- MNSMenuGroup.prototype.ShowMainMenu=function ShowMainMenu(){
- if (this.IsMainGroup==1){
- obj=document.getElementById(this.id);
- if (obj){
- obj.style.visibility='visible';
- for (i=1; i<= this.Count; i++){
- this.Items[i].ShowOrphans();
- }
- }
- }
- };
- MNSMenuGroup.prototype.CloseGroupRecurse=function CloseGroupRecurse(){
- this.HideGroup();
- for (this.i=1; this.i<= this.Count; this.i++){
- if (this.Items[this.i].Group != null){
- this.Items[this.i].Group.CloseGroupRecurse();
- }
- }
- };
- MNSMenuGroup.prototype.ShowGroupRecurse= function ShowGroupRecurse(){
- obj=document.getElementById(this.id);
- if (obj){
- obj.style.visibility='visible';
- }
- if (this.IsMainGroup==0){
- this.ShowGroup();
- }
- for (this.i=1; this.i<= this.Count; this.i++){
- if (this.Items[this.i].Group != null){
- this.Items[this.i].Group.ShowGroupRecurse();
- }
- }
- };
- MNSMenuGroup.prototype.HideGroup= function HideGroup(){
- window.clearTimeout(MNSMenuGroupHandler.TimerAnimateID);
- this.AnimationControlValue=20;
- obj=document.getElementById(this.id);
- objt=document.getElementById(this.id+'_table');
- if (obj!=null)
- {
- for (this.i=1; this.i<= this.Count; this.i++){
- this.Items[this.i].HideOrphans();
- }
- if (obj.style.visibility!='hidden')
- {
- objt.style.visibility='hidden';
- obj.style.visibility='hidden';
- if (this.OnGroupHideJS!=''){
- eval(this.OnGroupHideJS);
- }
- }
- }
- };
- MNSMenuGroup.prototype.ShowGroup= function ShowGroup(){
- obj=document.getElementById(this.id);
- if (obj!=null){
- switch (this.MenuGroupAlign){
- case 0: {
- if (this.RefererItem.OwnerGroup.Layout=='V'){
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) +
- MNSMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -
- this.RefererItem.OwnerGroup.ItemsPadding_L+
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) +
- this.y;
- }
- else
- {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) +
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) +
- MNSMiscFunc.getElementHeight(this.RefererItem.id) +
- this.y ;
- }
- break;
- }
- case 1: {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) +
- MNSMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -
- this.RefererItem.OwnerGroup.ItemsPadding_L+
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) -
- MNSMiscFunc.getElementHeight(this.id) +
- this.y ;
- break;
- }
- case 2: {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) +
- MNSMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -
- this.RefererItem.OwnerGroup.ItemsPadding_L+
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) -
- (MNSMiscFunc.getElementHeight(this.id) / 2) +
- this.y ;
- break;
- }
- case 3: {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) +
- MNSMiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) -
- this.RefererItem.OwnerGroup.ItemsPadding_L+
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) +
- this.y;
- break;
- }
- case 4: {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) -
- MNSMiscFunc.getElementWidth(this.id) -
- this.RefererItem.OwnerGroup.ItemsPadding_L -
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) -
- MNSMiscFunc.getElementHeight(this.id) +
- this.y ;
- break;
- }
- case 5: {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) -
- MNSMiscFunc.getElementWidth(this.id) -
- this.RefererItem.OwnerGroup.ItemsPadding_L -
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) -
- (MNSMiscFunc.getElementHeight(this.id) / 2) +
- this.y ;
- break;
- }
- case 6: {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.id) -
- MNSMiscFunc.getElementWidth(this.id) -
- this.RefererItem.OwnerGroup.ItemsPadding_L -
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) +
- this.y;
- break;
- }
- case 7: {
- this.TargetPosX = MNSMiscFunc.getElementLeft(this.RefererItem.OwnerGroup.id) +
- this.x;
- this.TargetPosY = MNSMiscFunc.getElementTop(this.RefererItem.id) +
- MNSMiscFunc.getElementHeight(this.RefererItem.id) +
- this.y ;
- break;
- }
- }
- obj.style.left = this.TargetPosX+'px';
- obj.style.top = this.TargetPosY+'px';
- if (obj.style.visibility=='hidden'){
- window.clearTimeout(MNSMenuGroupHandler.TimerAnimateID);
- this.AnimationControlValue=20;
- MNSMenuGroupHandler.TmpGroupToShow=obj.id;
- for (this.i=1; this.i<= this.Count; this.i++){
- if (this.Items[this.i].LastItemState==1){
- this.Items[this.i].SetItemState(0);
- }
- }
- MNSMenuGroupHandler.TimerAnimateID = window.setTimeout("MNSMenuGroupHandler.DoAnimation()",0);
- }
- }
- };
- function MNSMenuItemAncestor()
- {
- this.Text_o='';
- this.Text_c='';
- this.URL='';
- this.URLTarget='';
- this.Hint='';
- this.OnLeaveJS='';
- this.OnOverJS='';
- this.OnClickJS='';
- this.TextAlign='center';
- this.TextVAlign='middle';
- this.Cursor='default';
- this.PaddingLeft=0;
- this.PaddingLeft_o=0;
- this.PaddingTop=0;
- this.PaddingTop_o=0;
- this.PaddingRight=0;
- this.PaddingRight_o=0;
- this.PaddingBottom=0;
- this.PaddingBottom_o=0;
- this.FontColor='';
- this.FontColor_o='';
- this.FontColor_c='';
- this.FontFamily='';
- this.FontFamily_o='';
- this.FontFamily_c='';
- this.FontSize=10;
- this.FontSize_o='';
- this.FontSize_c='';
- this.FontDecoration='';
- this.FontDecoration_o='';
- this.FontDecoration_c='';
- this.FontWeight='';
- this.FontWeight_o='';
- this.FontWeight_c='';
- this.FontStyle='';
- this.FontStyle_o='';
- this.FontStyle_c='';
- this.LeftIcon='';
- this.LeftIcon_o='';
- this.LeftIcon_c='';
- this.LeftIconOffsetX=0;
- this.LeftIconOffsetX_o=0;
- this.LeftIconOffsetX_c=0;
- this.LeftIconOffsetY=0;
- this.LeftIconOffsetY_o=0;
- this.LeftIconOffsetY_c=0;
- this.LeftIconIsIndicator=false;
- this.RightIcon='';
- this.RightIcon_o='';
- this.RightIcon_c='';
- this.RightIconOffsetX=0;
- this.RightIconOffsetX_o=0;
- this.RightIconOffsetX_c=0;
- this.RightIconOffsetY=0;
- this.RightIconOffsetY_o=0;
- this.RightIconOffsetY_c=0;
- this.RightIconIsIndicator=true;
- this.BgColor='';
- this.BgColor_o='#44AA22';
- this.BgColor_c='';
- this.BgImage='';
- this.BgImage_o='';
- this.BgImage_c='';
- this.BgImgPos='';
- this.BgImgPos_o='';
- this.BgImgPos_c='';
- this.BgImgRep='';
- this.BgImgRep_o='';
- this.BgImgRep_c='';
- this.LeftPartBgImgPos='';
- this.LeftPartBgImage='';
- this.LeftPartBgImage_o='';
- this.LeftPartBgImage_c='';
- this.RightPartBgImgPos='';
- this.RightPartBgImage='';
- this.RightPartBgImage_o='';
- this.RightPartBgImage_c='';
- this.Border='solid';
- this.Border_o='solid';
- this.Border_c='solid';
- this.BorderWidth='1';
- this.BorderWidth_o='1';
- this.BorderWidth_c='1';
- this.BorderColor='#0';
- this.BorderColor_o='#0';
- this.BorderColor_c='#0';
- this.BorderLeft=true;
- this.BorderRight=true;
- this.BorderTop=true;
- this.BorderBottom=true;
- this.Height=10;
- this.Width=100;
- this.SeparatorSize=0;
- this.SeparatorColor='Gray';
- };
- MNSMenuItem.prototype = new MNSMenuItemAncestor;
- function MNSMenuItem(Text) {
- this.Text=Text;
- this.id = MNSMenuItemHandler.GetId();
- this.Group = null;
- this.OwnerGroup=null;
- this.Preload_BgImage=new Image();
- this.Preload_BgImage_o=new Image();
- this.Preload_BgImage_c=new Image();
- this.Preload_BgImageLeft=new Image();
- this.Preload_BgImageLeft_o=new Image();
- this.Preload_BgImageLeft_c=new Image();
- this.Preload_BgImageRight=new Image();
- this.Preload_BgImageRight_o=new Image();
- this.Preload_BgImageRight_c=new Image();
- this.Preload_LeftIcon=new Image();
- this.Preload_LeftIcon_o=new Image();
- this.Preload_LeftIcon_c=new Image();
- this.Preload_RightIcon=new Image();
- this.Preload_RightIcon_o=new Image();
- this.Preload_RightIcon_c=new Image();
- this.LastItemState=-1;
- this.IsPreset=false;
- this.PresetState=2;
- MNSMenuItemHandler.ObjectsCount=MNSMenuItemHandler.ObjectsCount+1;
- MNSMenuItemHandler.ObjectsArray[MNSMenuItemHandler.ObjectsCount]=this;
- };
- MNSMenuItem.prototype.Assign=function Assign(s)
- {
- this.URL= s.URL;
- this.URLTarget= s.URLTarget;
- this.Hint= s.Hint;
- this.OnLeaveJS= s.OnLeaveJS;
- this.OnOverJS= s.OnOverJS;
- this.OnClickJS= s.OnClickJS;
- this.TextAlign= s.TextAlign;
- this.TextVAlign= s.TextVAlign;
- this.Cursor= s.Cursor;
- this.PaddingLeft= s.PaddingLeft;
- this.PaddingLeft_o= s.PaddingLeft_o;
- this.PaddingTop= s.PaddingTop;
- this.PaddingTop_o= s.PaddingTop_o;
- this.PaddingRight= s.PaddingRight;
- this.PaddingRight_o= s.PaddingRight_o;
- this.PaddingBottom= s.PaddingBottom;
- this.PaddingBottom_o= s.PaddingBottom_o;
- this.FontColor= s.FontColor;
- this.FontColor_o= s.FontColor_o;
- this.FontColor_c= s.FontColor_c;
- this.FontFamily= s.FontFamily;
- this.FontFamily_o= s.FontFamily_o;
- this.FontFamily_c= s.FontFamily_c;
- this.FontSize= s.FontSize;
- this.FontSize_o= s.FontSize_o;
- this.FontSize_c= s.FontSize_c;
- this.FontDecoration= s.FontDecoration;
- this.FontDecoration_o= s.FontDecoration_o;
- this.FontDecoration_c= s.FontDecoration_c;
- this.FontWeight= s.FontWeight;
- this.FontWeight_o= s.FontWeight_o;
- this.FontWeight_c= s.FontWeight_c;
- this.FontStyle= s.FontStyle;
- this.FontStyle_o= s.FontStyle_o;
- this.FontStyle_c= s.FontStyle_c;
- this.LeftIcon= s.LeftIcon;
- this.LeftIcon_o= s.LeftIcon_o;
- this.LeftIcon_c= s.LeftIcon_c;
- this.LeftIconOffsetX= s.LeftIconOffsetX;
- this.LeftIconOffsetX_o= s.LeftIconOffsetX_o;
- this.LeftIconOffsetX_c= s.LeftIconOffsetX_c;
- this.LeftIconOffsetY= s.LeftIconOffsetY;
- this.LeftIconOffsetY_o= s.LeftIconOffsetY_o;
- this.LeftIconOffsetY_c= s.LeftIconOffsetY_c;
- this.LeftIconIsIndicator= s.LeftIconIsIndicator;
- this.RightIcon= s.RightIcon;
- this.RightIcon_o= s.RightIcon_o;
- this.RightIcon_c= s.RightIcon_c;
- this.RightIconOffsetX= s.RightIconOffsetX;
- this.RightIconOffsetX_o= s.RightIconOffsetX_o;
- this.RightIconOffsetX_c= s.RightIconOffsetX_c;
- this.RightIconOffsetY= s.RightIconOffsetY;
- this.RightIconOffsetY_o= s.RightIconOffsetY_o;
- this.RightIconOffsetY_c= s.RightIconOffsetY_c;
- this.RightIconIsIndicator=s.RightIconIsIndicator;
- this.BgColor= s.BgColor;
- this.BgColor_o= s.BgColor_o;
- this.BgColor_c= s.BgColor_c;
- this.BgImage= s.BgImage;
- this.BgImage_o= s.BgImage_o;
- this.BgImage_c= s.BgImage_c;
- this.BgImgPos= s.BgImgPos;
- this.BgImgPos_o= s.BgImgPos_o;
- this.BgImgPos_c= s.BgImgPos_c;
- this.BgImgRep= s.BgImgRep;
- this.BgImgRep_o= s.BgImgRep_o;
- this.BgImgRep_c= s.BgImgRep_c;
- this.LeftPartBgImgPos= s.LeftPartBgImgPos;
- this.LeftPartBgImage= s.LeftPartBgImage;
- this.LeftPartBgImage_o= s.LeftPartBgImage_o;
- this.LeftPartBgImage_c= s.LeftPartBgImage_c;
- this.RightPartBgImgPos= s.RightPartBgImgPos;
- this.RightPartBgImage= s.RightPartBgImage;
- this.RightPartBgImage_o= s.RightPartBgImage_o;
- this.RightPartBgImage_c= s.RightPartBgImage_c;
- this.Border= s.Border;
- this.Border_o= s.Border_o;
- this.Border_c= s.Border_c;
- this.BorderWidth= s.BorderWidth;
- this.BorderWidth_o= s.BorderWidth_o;
- this.BorderWidth_c= s.BorderWidth_c;
- this.BorderColor= s.BorderColor;
- this.BorderColor_o= s.BorderColor_o;
- this.BorderColor_c= s.BorderColor_c;
- this.BorderLeft= s.BorderLeft;
- this.BorderRight= s.BorderRight;
- this.BorderTop= s.BorderTop;
- this.BorderBottom= s.BorderBottom;
- this.Height= s.Height;
- this.Width= s.Width;
- this.SeparatorSize= s.SeparatorSize;
- this.SeparatorColor= s.SeparatorColor;
- };
- MNSMenuItem.prototype.HideOrphans=function HideOrphans(){
- objRightIcon=document.getElementById(this.id+'_right_Icon_img');
- objLeftIcon=document.getElementById(this.id+'_left_Icon_img');
- if (objRightIcon){
- objRightIcon.style.visibility='hidden';
- objRightIcon.style.display='none';
- }
- if (objLeftIcon){
- objLeftIcon.style.visibility='hidden';
- objLeftIcon.style.display='none';
- }
- objRightIcon=document.getElementById(this.id+'_right_bg_img');
- objLeftIcon=document.getElementById(this.id+'_left_bg_img');
- if (objRightIcon){
- objRightIcon.style.visibility='hidden';
- objRightIcon.style.display='none';
- }
- if (objLeftIcon){
- objLeftIcon.style.visibility='hidden';
- objLeftIcon.style.display='none';
- }
- };
- MNSMenuItem.prototype.ShowOrphans=function ShowOrphans(){
- objRightIcon=document.getElementById(this.id+'_right_bg_img');
- objLeftIcon=document.getElementById(this.id+'_left_bg_img');
- if ((objRightIcon) && (this.RightPartBgImage>'')){
- objRightIcon.style.visibility='visible';
- objRightIcon.style.display='block';
- }
- if ((objLeftIcon) && (this.LeftPartBgImage>'')){
- objLeftIcon.style.visibility='visible';
- objLeftIcon.style.display='block';
- }
- objRightIcon=document.getElementById(this.id+'_right_Icon_img');
- objLeftIcon=document.getElementById(this.id+'_left_Icon_img');
- if ((objRightIcon) && (this.RightIcon > '')){
- if (((this.RightIconIsIndicator) && (this.Group)) || (!this.RightIconIsIndicator)){
- objRightIcon.style.visibility='visible';
- objRightIcon.style.display='block';
- }
- }
- if ((objLeftIcon) && (this.LeftIcon>'')){
- if (((this.LeftIconIsIndicator) && (this.Group)) || (!this.LeftIconIsIndicator)){
- objLeftIcon.style.visibility='visible';
- objLeftIcon.style.display='block';
- }
- }
- };
- MNSMenuItem.prototype.PreloadImages= function PreloadImages() {
- this.Preload_BgImage.src=this.BgImage;
- this.Preload_BgImage_o.src=this.BgImage_o;
- this.Preload_BgImage_c.src=this.BgImage_c;
- this.Preload_BgImageLeft.src=this.LeftPartBgImage;
- this.Preload_BgImageLeft_o.src=this.LeftPartBgImage_o;
- this.Preload_BgImageLeft_c.src=this.LeftPartBgImage_c;
- this.Preload_BgImageRight.src=this.RightPartBgImage;
- this.Preload_BgImageRight_o.src=this.RightPartBgImage_o;
- this.Preload_BgImageRight_c.src=this.RightPartBgImage_c;
- this.Preload_LeftIcon.src=this.LeftIcon;
- this.Preload_LeftIcon_o.src=this.LeftIcon_o;
- this.Preload_LeftIcon_c.src=this.LeftIcon_c;
- this.Preload_RightIcon.src=this.RightIcon;
- this.Preload_RightIcon_o.src=this.RightIcon_o;
- this.Preload_RightIcon_c.src=this.RightIcon_c;
- };
- MNSMenuItem.prototype.ToStr= function ToStr(Layout) {
- var TmpStr='';
- var TmpTDAttr='';
- var ItemCore='';
- var TmpTDCSS='';
- var TmpCoreCentreTDStyle='';
- this.Cursor=((this.URL)&&(this.Cursor=='auto'))?'pointer':this.Cursor;
- this.PreloadImages();
- if (Layout=='H') {
- TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" width="'+this.Width+'" valign="top" ' ;
- }
- else
- {
- TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" valign="top" ' ;
- }
- TmpTDCSS=' ';
- TmpCoreTableCSS=' style="background-color: '+this.BgColor+'; color:'+this.FontColor+'; ';
- TmpCoreTableCSS=TmpCoreTableCSS+' cursor : '+this.Cursor+'; ';
- if (this.BorderLeft){TmpCoreTableCSS=TmpCoreTableCSS+' border-left-width: '+this.BorderWidth+'px; border-left-style:'+this.Border+'; border-left-color:'+this.BorderColor+'; ';}
- if (this.BorderRight){TmpCoreTableCSS=TmpCoreTableCSS+' border-right-width: '+this.BorderWidth+'px; border-right-style:'+this.Border+'; border-right-color:'+this.BorderColor+'; ';}
- if (this.BorderTop){TmpCoreTableCSS=TmpCoreTableCSS+' border-top-width: '+this.BorderWidth+'px; border-top-style:'+this.Border+'; border-top-color:'+this.BorderColor+'; ';}
- if (this.BorderBottom){TmpCoreTableCSS=TmpCoreTableCSS+' border-bottom-width: '+this.BorderWidth+'px; border-bottom-style:'+this.Border+'; border-bottom-color:'+this.BorderColor+'; ';}
- TmpCoreTableCSS=TmpCoreTableCSS+'" ';
- if (this.BgImgPos=='stretch'){
- TmpCoreCentreTDStyle='style="';
- }
- else
- {
- TmpCoreCentreTDStyle='style="background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; ';
- }
- TmpCoreCentreTDStyle=TmpCoreCentreTDStyle+'text-decoration: '+this.FontDecoration+'; font-family: '+this.FontFamily+'; font-size: '+this.FontSize+'px; font-style: '+this.FontStyle+'; font-weight: '+this.FontWeight+'; ';
- TmpCoreCentreTDStyle=TmpCoreCentreTDStyle+'padding-left: '+this.PaddingLeft+'px; padding-top: '+this.PaddingTop+'px; padding-right: '+this.PaddingRight+'px; padding-bottom: '+this.PaddingBottom+'px; "';
- if (((this.RightIconIsIndicator) && (!this.Group)) || (!this.RightIcon)) {
- TmpRimgVis='visibility : hidden; ';
- } else {TmpRimgVis='';}
- if (((this.LeftIconIsIndicator) && (!this.Group)) || (!this.LeftIcon)){
- TmpLimgVis='visibility : hidden; ';
- } else {TmpLimgVis='';}
- if ((this.LeftIcon > '')||(this.LeftIcon_o > '')||(this.LeftIcon_c > '')) {
- TmpLeftIconSource='<img id="'+this.id+'_left_Icon_img" border="0" src="'+this.LeftIcon+'" style="'+TmpLimgVis+' vertical-align: middle; position: absolute; margin-left: '+this.LeftIconOffsetX+'px; margin-top: '+this.LeftIconOffsetY+'px;">';
- } else {TmpLeftIconSource='';}
- if ((this.RightIcon > '')||(this.RightIcon_o > '')||(this.RightIcon_c > '')){
- TmpRightIconSource='<img id="'+this.id+'_right_Icon_img" border="0" src="'+this.RightIcon+'" style="'+TmpRimgVis+' vertical-align: middle; position: absolute; margin-left: '+this.RightIconOffsetX+'px; margin-top: '+this.RightIconOffsetY+'px;">';
- } else {TmpRightIconSource='';}
- TmpLeftBgSource='';
- TmpRightBgSource='';
- LeftBgImgVis='';
- RightBgImgVis='';
- if ((this.LeftPartBgImage > '')||(this.LeftPartBgImage_o > '')||(this.LeftPartBgImage_c > ''))
- {
- if ((this.LeftPartBgImage >'')&&(this.OwnerGroup.IsMainGroup==1)) {LeftBgImgVis='visible';}else {LeftBgImgVis='hidden';};
- TmpLeftBgSource='<img style="visibility: '+LeftBgImgVis+'; display:block;" id="'+this.id+'_left_bg_img" border="0" align="'+this.LeftPartBgImgPos+'" vspace="0" hspace="0" src="'+this.LeftPartBgImage+'">';
- }
- if ((this.RightPartBgImage > '')||(this.RightPartBgImage_o > '')||(this.RightPartBgImage_c > ''))
- {
- if ((this.RightPartBgImage>'')&&(this.OwnerGroup.IsMainGroup==1)){RightBgImgVis='visible';} else {RightBgImgVis='hidden';};
- TmpRightBgSource='<img style="visibility: '+RightBgImgVis+'; display:block;" id="'+this.id+'_right_bg_img" border="0" align="'+this.RightPartBgImgPos+'" vspace="0" hspace="0" src="'+this.RightPartBgImage+'">';
- }
- ItemCore='<table '+TmpCoreTableCSS+' id="'+this.id+'_core_table" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">';
- ItemCore=ItemCore+'<tr>';
- ItemCore=ItemCore+'<td width="0" valign="middle">'+TmpLeftIconSource+'</td><td width="0" align="right" valign="'+this.LeftPartBgImgPos+'" >'+TmpLeftBgSource+'</td>';
- ItemCore=ItemCore+'<td id="'+this.id+'_core_table_td" '+TmpCoreCentreTDStyle+' width="100%" align="'+this.TextAlign+'">' + this.Text + '</td>';
- ItemCore=ItemCore+'<td width="0" align="left" valign="'+this.RightPartBgImgPos+'">'+TmpRightBgSource+'</td><td width="0" valign="middle">'+TmpRightIconSource+'</td>';
- ItemCore=ItemCore+'</tr>';
- ItemCore=ItemCore+'</table>';
- if (Layout=='H') {
- TmpStr='<TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="MNSMenuItemHandler.DoOnMouseOver(this.id)" onmouseout="MNSMenuItemHandler.DoOnMouseOut(this.id)" onmousemove="MNSMenuItemHandler.DoOnMouseMove(this.id)" onmousedown="MNSMenuItemHandler.DoOnMouseDown(this.id)" onmouseup="MNSMenuItemHandler.DoOnMouseUp(this.id)" onclick="MNSMenuItemHandler.Navigate(this.id)">';
- TmpStr=TmpStr+ItemCore;
- TmpStr=TmpStr+'</TD>';
- if (this.LastItem==false){
- if (this.SeparatorSize > 0){
- TmpStr=TmpStr+'<TD width="'+(this.OwnerGroup.ItemsSpacing /2) +'"></TD>';
- TmpStr=TmpStr+'<TD bgcolor="'+this.SeparatorColor+'" width="'+this.SeparatorSize+'"></TD>';
- TmpStr=TmpStr+'<TD width="'+(this.OwnerGroup.ItemsSpacing/2)+'"></TD>';
- }
- else
- {
- if (this.OwnerGroup.ItemsSpacing>0){
- TmpStr=TmpStr+'<TD width="'+this.OwnerGroup.ItemsSpacing+'"></TD>';
- }
- }
- }
- }
- else
- {
- TmpStr='<TR valign="top"><TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="MNSMenuItemHandler.DoOnMouseOver(this.id)" onmouseout="MNSMenuItemHandler.DoOnMouseOut(this.id)" onmousemove="MNSMenuItemHandler.DoOnMouseMove(this.id)" onmousedown="MNSMenuItemHandler.DoOnMouseDown(this.id)" onmouseup="MNSMenuItemHandler.DoOnMouseUp(this.id)" onclick="MNSMenuItemHandler.Navigate(this.id)">';
- TmpStr=TmpStr+ItemCore;
- TmpStr=TmpStr+'</TD></TR>';
- if (this.LastItem==false){
- TmpHRAttr='';
- if (this.SeparatorSize > 0){
- TmpHRAttr='<div style="margin-top: 0px; margin-bottom: 0px; color: '+this.SeparatorColor+'; background-color: '+this.SeparatorColor+'; border-width: 0px; height: '+this.SeparatorSize+'px;"><hr noshade style="display: none;"></div>';
- }
- TmpStr=TmpStr+'<TR valign="middle"><TD height="'+this.OwnerGroup.ItemsSpacing+'">'+TmpHRAttr+'</TD></TR>';
- }
- }
- return(TmpStr);
- };
- MNSMenuItem.prototype.AddGroup= function AddGroup(SubGroup){
- this.Group=SubGroup;
- SubGroup.RefererItem=this;
- };
- MNSMenuItem.prototype.SetItemState= function SetItemState(State){
- if (this.LastItemState==State)
- {
- return;
- }
- else
- {
- this.LastItemState=State;
- }
- if (this.IsPreset){
- State=this.PresetState;
- }
- objCoreTable=document.getElementById(this.id+'_core_table');
- objCoreTableTD=document.getElementById(this.id+'_core_table_td');
- objLeftBgImg=document.getElementById(this.id+'_left_bg_img');
- objRightBgImg=document.getElementById(this.id+'_right_bg_img');
- objLeftIcon=document.getElementById(this.id+'_left_Icon_img');
- objRightIcon=document.getElementById(this.id+'_right_Icon_img');
- switch (State){
- case 0:{
- if (objCoreTableTD){
- objCoreTableTD.innerHTML = this.Text;
- }
- if (objCoreTable){
- objCoreTable.style.backgroundColor=this.BgColor;
- objCoreTable.bgColor=this.BgColor;
- if (this.BorderLeft){
- objCoreTable.style.borderLeftWidth=this.BorderWidth;
- } else {objCoreTable.style.borderLeftWidth=0;}
- if (this.BorderRight){
- objCoreTable.style.borderRightWidth=this.BorderWidth;
- } else {objCoreTable.style.borderRightWidth=0;}
- if (this.BorderTop){
- objCoreTable.style.borderTopWidth=this.BorderWidth;
- } else {objCoreTable.style.borderTopWidth=0;}
- if (this.BorderBottom){
- objCoreTable.style.borderBottomWidth=this.BorderWidth;
- } else {objCoreTable.style.borderBottomWidth=0;}
- objCoreTable.style.borderStyle=this.Border;
- objCoreTable.style.borderColor=this.BorderColor;
- }
- if (objCoreTableTD){
- objCoreTableTD.style.color=this.FontColor;
- objCoreTableTD.style.fontFamily=this.FontFamily;
- objCoreTableTD.style.fontSize=this.FontSize;
- objCoreTableTD.style.textDecoration=this.FontDecoration;
- objCoreTableTD.style.fontWeight=this.FontWeight;
- objCoreTableTD.style.fontStyle=this.FontStyle;
- objCoreTableTD.style.paddingLeft=this.PaddingLeft;
- objCoreTableTD.style.paddingRight=this.PaddingRight;
- objCoreTableTD.style.paddingTop=this.PaddingTop;
- objCoreTableTD.style.paddingBottom=this.PaddingBottom;
- if (this.BgImage>''){
- objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage.src+')';
- objCoreTableTD.style.backgroundPosition=this.BgImgPos;
- objCoreTableTD.style.backgroundRepeat=this.BgImgRep;
- }
- else
- {
- objCoreTableTD.style.backgroundImage='none';
- }
- }
- if (objLeftBgImg){
- if (this.LeftPartBgImage>''){
- objLeftBgImg.src=this.Preload_BgImageLeft.src;
- objLeftBgImg.style.visibility='visible';
- objLeftBgImg.style.display='block';
- }
- else
- {
- objLeftBgImg.style.visibility='hidden';
- }
- }
- if (objRightBgImg){
- if (this.RightPartBgImage>''){
- objRightBgImg.src=this.Preload_BgImageRight.src;
- objRightBgImg.style.visibility='visible';
- objRightBgImg.style.display='block';
- }
- else
- {
- objRightBgImg.style.visibility='hidden';
- }
- }
- if (objRightIcon){
- if (this.RightIcon>''){
- objRightIcon.src=this.Preload_RightIcon.src;
- if ((this.RightIconIsIndicator) && (!this.Group)){
- objRightIcon.style.visibility='hidden';
- }
- else
- {
- objRightIcon.style.visibility='visible';
- objRightIcon.style.display='block';
- }
- }
- else {objRightIcon.style.visibility='hidden';
- }
- objRightIcon.style.marginLeft=this.RightIconOffsetX;
- objRightIcon.style.marginTop=this.RightIconOffsetY;
- }
- if (objLeftIcon){
- if (this.LeftIcon > ''){
- objLeftIcon.src=this.Preload_LeftIcon.src;
- if ((this.LeftIconIsIndicator) && (!this.Group)){
- }
- else
- {
- objLeftIcon.style.visibility='visible';
- objLeftIcon.style.display='block';
- }
- } else {objLeftIcon.style.visibility='hidden';
- }
- objLeftIcon.style.marginLeft=this.LeftIconOffsetX;
- objLeftIcon.style.marginTop=this.LeftIconOffsetY;
- }
- eval(this.OnLeaveJS);
- break;
- }
- case 1:{
- if ((objCoreTableTD)&&(this.Text_o>'')&&(objCoreTableTD.innerHTML!=this.Text_o)){
- objCoreTableTD.innerHTML=this.Text_o;
- }
- if (objCoreTable != null)
- {
- if (this.BgColor_o){
- objCoreTable.style.backgroundColor=this.BgColor_o;
- objCoreTable.bgColor=this.BgColor_o;
- }
- if (this.BorderWidth_o!=null){
- if (this.BorderLeft){
- objCoreTable.style.borderLeftWidth=this.BorderWidth_o;
- if (this.Border_o>'') {objCoreTable.style.borderLeftStyle=this.Border_o;}
- }
- if (this.BorderRight){
- objCoreTable.style.borderRightWidth=this.BorderWidth_o;
- if (this.Border_o>'') {objCoreTable.style.borderRightStyle=this.Border_o;}
- }
- if (this.BorderTop){
- objCoreTable.style.borderTopWidth=this.BorderWidth_o;
- if (this.Border_o>'') {objCoreTable.style.borderTopStyle=this.Border_o;}
- }
- if (this.BorderBottom){
- objCoreTable.style.borderBottomWidth=this.BorderWidth_o;
- if (this.Border_o>'') {objCoreTable.style.borderBottomStyle=this.Border_o;}
- }
- }
- if (this.BorderColor_o>''){objCoreTable.style.borderColor=this.BorderColor_o};
- }
- if (objCoreTableTD){
- if (this.FontColor_o){objCoreTableTD.style.color=this.FontColor_o;}
- if (this.FontFamily_o){objCoreTableTD.style.fontFamily=this.FontFamily_o;}
- if (this.FontSize_o){objCoreTableTD.style.fontSize=this.FontSize_o;}
- if (this.FontDecoration_o){objCoreTableTD.style.textDecoration=this.FontDecoration_o;}
- if (this.FontWeight_o){objCoreTableTD.style.fontWeight=this.FontWeight_o;}
- if (this.FontStyle_o){objCoreTableTD.style.fontStyle=this.FontStyle_o;}
- if (this.PaddingLeft_o!=null){objCoreTableTD.style.paddingLeft=this.PaddingLeft_o};
- if (this.PaddingRight_o!=null){objCoreTableTD.style.paddingRight=this.PaddingRight_o;}
- if (this.PaddingTop_o!=null){objCoreTableTD.style.paddingTop=this.PaddingTop_o;}
- if (this.PaddingBottom_o!=null){objCoreTableTD.style.paddingBottom=this.PaddingBottom_o;}
- if (this.BgImage_o>''){
- objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage_o.src+')';
- objCoreTableTD.style.backgroundPosition=this.BgImgPos_o||this.BgImgPos;
- objCoreTableTD.style.backgroundRepeat=this.BgImgRep_o||this.BgImgRep;
- }
- }
- if (objLeftBgImg){
- if (this.LeftPartBgImage_o>''){
- objLeftBgImg.src=this.Preload_BgImageLeft_o.src;
- objLeftBgImg.style.visibility='visible';
- objLeftBgImg.style.display='block';
- }
- else
- {
- }
- }
- if (objRightBgImg){
- if (this.RightPartBgImage_o>''){
- objRightBgImg.src=this.Preload_BgImageRight_o.src;
- objRightBgImg.style.visibility='visible';
- objRightBgImg.style.display='block';
- }
- else
- {
- }
- }
- if (objRightIcon){
- if (this.RightIcon_o > ''){
- objRightIcon.src=this.Preload_RightIcon_o.src;
- if ((this.RightIconIsIndicator) && (!this.Group)){
- objRightIcon.style.visibility='hidden';
- }
- else
- {
- objRightIcon.style.visibility='visible';
- objRightIcon.style.display='block';
- }
- }
- if (this.RightIconOffsetX_o){objRightIcon.style.marginLeft=this.RightIconOffsetX_o};
- if (this.RightIconOffsetY_o){objRightIcon.style.marginTop=this.RightIconOffsetY_o};
- }
- if (objLeftIcon){
- if (this.LeftIcon_o > ''){
- objLeftIcon.src=this.Preload_LeftIcon_o.src;
- if ((this.LeftIconIsIndicator) && (!this.Group)){
- objLeftIcon.style.visibility='hidden';
- }
- else
- {
- objLeftIcon.style.visibility='visible';
- objLeftIcon.style.display='block';
- }
- }
- if (this.LeftIconOffsetX_o){objLeftIcon.style.marginLeft=this.LeftIconOffsetX_o;}
- if (this.LeftIconOffsetY_o){objLeftIcon.style.marginTop=this.LeftIconOffsetY_o};
- }
- eval(this.OnOverJS);
- break;
- }
- case 2:{
- if ((objCoreTableTD)&&(this.Text_c>'')&&(objCoreTableTD.innerHTML!=this.Text_c)){
- objCoreTableTD.innerHTML=this.Text_c;
- }
- if (objCoreTable != null)
- {
- if (this.BgColor_c){
- objCoreTable.style.backgroundColor=this.BgColor_c;
- objCoreTable.style.bgColor=this.BgColor_c;
- }
- if (this.BorderWidth_c!=null)
- {
- if (this.BorderLeft){
- objCoreTable.style.borderLeftWidth=this.BorderWidth_c;
- if (this.Border_c>'') {objCoreTable.style.borderLeftStyle=this.Border_c;}
- }
- if (this.BorderRight){
- objCoreTable.style.borderRightWidth=this.BorderWidth_c;
- if (this.Border_c>'') {objCoreTable.style.borderRightStyle=this.Border_c;}
- }
- if (this.BorderTop){
- objCoreTable.style.borderTopWidth=this.BorderWidth_c;
- if (this.Border_c>'') {objCoreTable.style.borderTopStyle=this.Border_c;}
- }
- if (this.BorderBottom){
- objCoreTable.style.borderBottomWidth=this.BorderWidth_c;
- if (this.Border_c>'') {objCoreTable.style.borderBottomStyle=this.Border_c;}
- }
- }
- if (this.BorderColor_c>''){objCoreTable.style.borderColor=this.BorderColor_c};
- }
- }
- if (objCoreTableTD){
- if (this.FontColor_c){objCoreTableTD.style.color=this.FontColor_c;}
- if (this.FontFamily_c){objCoreTableTD.style.fontFamily=this.FontFamily_c;}
- if (this.FontSize_c){objCoreTableTD.style.fontSize=this.FontSize_c;}
- if (this.FontDecoration_c){objCoreTableTD.style.textDecoration=this.FontDecoration_c;}
- if (this.FontWeight_c){objCoreTableTD.style.fontWeight=this.FontWeight_c;}
- if (this.FontStyle_c){objCoreTableTD.style.fontStyle=this.FontStyle_c;}
- if (this.BgImage_c>''){
- objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage_c.src+')';
- objCoreTableTD.style.backgroundPosition=this.BgImgPos_c||this.BgImgPos;
- objCoreTableTD.style.backgroundRepeat=this.BgImgRep_c||this.BgImgRep;
- }
- }
- if (objLeftBgImg){
- if (this.LeftPartBgImage_c>''){
- objLeftBgImg.src=this.Preload_BgImageLeft_c.src;
- objLeftBgImg.style.visibility='visible';
- objLeftBgImg.style.display='block';
- }
- else
- {
- }
- }
- if (objRightBgImg){
- if (this.RightPartBgImage_c>''){
- objRightBgImg.src=this.Preload_BgImageRight_c.src;
- objRightBgImg.style.visibility='visible';
- objRightBgImg.style.display='block';
- }
- else
- {
- }
- }
- if (objRightIcon){
- if (this.RightIcon_c > ''){
- objRightIcon.src=this.Preload_RightIcon_c.src;
- if ((this.RightIconIsIndicator) && (!this.Group)){
- objRightIcon.style.visibility='hidden';
- }
- else
- {
- objRightIcon.style.visibility='visible';
- objRightIcon.style.display='block';
- }
- }
- if (this.RightIconOffsetX_c){objRightIcon.style.marginLeft=this.RightIconOffsetX_c};
- if (this.RightIconOffsetY_c){objRightIcon.style.marginTop=this.RightIconOffsetY_c};
- }
- if (objLeftIcon){
- if (this.LeftIcon_c > ''){
- objLeftIcon.src=this.Preload_LeftIcon_c.src;
- if ((this.LeftIconIsIndicator) && (!this.Group)){
- objLeftIcon.style.visibility='hidden';
- }
- else
- {
- objLeftIcon.style.visibility='visible';
- objLeftIcon.style.display='block';
- }
- }
- if (this.LeftIconOffsetX_c){objLeftIcon.style.marginLeft=this.LeftIconOffsetX_c;}
- if (this.LeftIconOffsetY_c){objLeftIcon.style.marginTop=this.LeftIconOffsetY_c};
- }
- break;
- }
- };
- var MNS_MainGroupItemsGeneralStyle = new MNSMenuItem();
- MNS_MainGroupItemsGeneralStyle.Text_o='';
- MNS_MainGroupItemsGeneralStyle.Text_c='';
- MNS_MainGroupItemsGeneralStyle.TextAlign='left';
- MNS_MainGroupItemsGeneralStyle.URL='';
- MNS_MainGroupItemsGeneralStyle.URLTarget='';
- MNS_MainGroupItemsGeneralStyle.Hint='';
- MNS_MainGroupItemsGeneralStyle.OnLeaveJS='';
- MNS_MainGroupItemsGeneralStyle.OnOverJS='';
- MNS_MainGroupItemsGeneralStyle.OnClickJS='';
- MNS_MainGroupItemsGeneralStyle.Height=22;
- MNS_MainGroupItemsGeneralStyle.Width=150;
- MNS_MainGroupItemsGeneralStyle.Cursor='default';
- MNS_MainGroupItemsGeneralStyle.PaddingLeft=0;
- MNS_MainGroupItemsGeneralStyle.PaddingLeft_o=null;
- MNS_MainGroupItemsGeneralStyle.PaddingTop=5;
- MNS_MainGroupItemsGeneralStyle.PaddingTop_o=null;
- MNS_MainGroupItemsGeneralStyle.PaddingRight=0;
- MNS_MainGroupItemsGeneralStyle.PaddingRight_o=null;
- MNS_MainGroupItemsGeneralStyle.PaddingBottom=5;
- MNS_MainGroupItemsGeneralStyle.PaddingBottom_o=null;
- MNS_MainGroupItemsGeneralStyle.BgColor='';
- MNS_MainGroupItemsGeneralStyle.BgColor_o='';
- MNS_MainGroupItemsGeneralStyle.BgColor_c='';
- MNS_MainGroupItemsGeneralStyle.BgImage='http://img1.imagilive.com/0114/center-button-blue2.gif';
- MNS_MainGroupItemsGeneralStyle.BgImage_o='http://img1.imagilive.com/0114/center-button-blue-o.gif';
- MNS_MainGroupItemsGeneralStyle.BgImage_c='';
- MNS_MainGroupItemsGeneralStyle.BgImgRep='repeat-x';
- MNS_MainGroupItemsGeneralStyle.BgImgRep_o='';
- MNS_MainGroupItemsGeneralStyle.BgImgRep_c='';
- MNS_MainGroupItemsGeneralStyle.BgImgPos='top left';
- MNS_MainGroupItemsGeneralStyle.BgImgPos_o='';
- MNS_MainGroupItemsGeneralStyle.BgImgPos_c='';
- MNS_MainGroupItemsGeneralStyle.LeftPartBgImage='http://img1.imagilive.com/0114/left-button-blue2.gif';
- MNS_MainGroupItemsGeneralStyle.LeftPartBgImage_o='http://img1.imagilive.com/0114/left-button-blue-o.gif';
- MNS_MainGroupItemsGeneralStyle.LeftPartBgImage_c='';
- MNS_MainGroupItemsGeneralStyle.LeftPartBgImgPos='top';
- MNS_MainGroupItemsGeneralStyle.RightPartBgImage='http://img1.imagilive.com/0114/right-button-blue2.gif';
- MNS_MainGroupItemsGeneralStyle.RightPartBgImage_o='http://img1.imagilive.com/0114/right-button-blue-o.gif';
- MNS_MainGroupItemsGeneralStyle.RightPartBgImage_c='';
- MNS_MainGroupItemsGeneralStyle.RightPartBgImgPos='top';
- MNS_MainGroupItemsGeneralStyle.FontColor='#FFFFFF';
- MNS_MainGroupItemsGeneralStyle.FontColor_o='#004080';
- MNS_MainGroupItemsGeneralStyle.FontColor_c='';
- MNS_MainGroupItemsGeneralStyle.FontFamily='Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif';
- MNS_MainGroupItemsGeneralStyle.FontFamily_o='';
- MNS_MainGroupItemsGeneralStyle.FontFamily_c='';
- MNS_MainGroupItemsGeneralStyle.FontSize=11;
- MNS_MainGroupItemsGeneralStyle.FontSize_o=null;
- MNS_MainGroupItemsGeneralStyle.FontSize_c=null;
- MNS_MainGroupItemsGeneralStyle.FontDecoration='none';
- MNS_MainGroupItemsGeneralStyle.FontDecoration_o='';
- MNS_MainGroupItemsGeneralStyle.FontDecoration_c='';
- MNS_MainGroupItemsGeneralStyle.FontWeight='bold';
- MNS_MainGroupItemsGeneralStyle.FontWeight_o='';
- MNS_MainGroupItemsGeneralStyle.FontWeight_c='';
- MNS_MainGroupItemsGeneralStyle.FontStyle='normal';
- MNS_MainGroupItemsGeneralStyle.FontStyle_o='';
- MNS_MainGroupItemsGeneralStyle.FontStyle_c='';
- MNS_MainGroupItemsGeneralStyle.BorderWidth=0;
- MNS_MainGroupItemsGeneralStyle.BorderWidth_o=null;
- MNS_MainGroupItemsGeneralStyle.BorderWidth_c=null;
- MNS_MainGroupItemsGeneralStyle.BorderColor='';
- MNS_MainGroupItemsGeneralStyle.BorderColor_o='';
- MNS_MainGroupItemsGeneralStyle.BorderColor_c='';
- MNS_MainGroupItemsGeneralStyle.Border='solid';
- MNS_MainGroupItemsGeneralStyle.Border_o='';
- MNS_MainGroupItemsGeneralStyle.Border_c='';
- MNS_MainGroupItemsGeneralStyle.BorderLeft=true;
- MNS_MainGroupItemsGeneralStyle.BorderRight=true;
- MNS_MainGroupItemsGeneralStyle.BorderTop=true;
- MNS_MainGroupItemsGeneralStyle.BorderBottom=true;
- MNS_MainGroupItemsGeneralStyle.SeparatorColor='#C3D3E6';
- MNS_MainGroupItemsGeneralStyle.SeparatorSize=0;
- MNS_MainGroupItemsGeneralStyle.LeftIcon='http://img1.imagilive.com/0114/square-blue-small.gif';
- MNS_MainGroupItemsGeneralStyle.LeftIcon_o='http://img1.imagilive.com/0114/square-green-small.gif';
- MNS_MainGroupItemsGeneralStyle.LeftIcon_c='http://img1.imagilive.com/0114/zigzag-blue.gif';
- MNS_MainGroupItemsGeneralStyle.LeftIconOffsetX=2;
- MNS_MainGroupItemsGeneralStyle.LeftIconOffsetX_o=null;
- MNS_MainGroupItemsGeneralStyle.LeftIconOffsetX_c=null;
- MNS_MainGroupItemsGeneralStyle.LeftIconOffsetY=-4;
- MNS_MainGroupItemsGeneralStyle.LeftIconOffsetY_o=null;
- MNS_MainGroupItemsGeneralStyle.LeftIconOffsetY_c=-6;
- MNS_MainGroupItemsGeneralStyle.LeftIconIsIndicator=false;
- MNS_MainGroupItemsGeneralStyle.RightIcon='http://img1.imagilive.com/0114/arr_black_down.gif';
- MNS_MainGroupItemsGeneralStyle.RightIcon_o='';
- MNS_MainGroupItemsGeneralStyle.RightIcon_c='';
- MNS_MainGroupItemsGeneralStyle.RightIconOffsetX=-11;
- MNS_MainGroupItemsGeneralStyle.RightIconOffsetX_o=null;
- MNS_MainGroupItemsGeneralStyle.RightIconOffsetX_c=null;
- MNS_MainGroupItemsGeneralStyle.RightIconOffsetY=-2;
- MNS_MainGroupItemsGeneralStyle.RightIconOffsetY_o=null;
- MNS_MainGroupItemsGeneralStyle.RightIconOffsetY_c=null;
- MNS_MainGroupItemsGeneralStyle.RightIconIsIndicator=true;
- var MNS_GroupItemsGeneralStyle = new MNSMenuItem();
- MNS_GroupItemsGeneralStyle.Text_o='';
- MNS_GroupItemsGeneralStyle.Text_c='';
- MNS_GroupItemsGeneralStyle.TextAlign='left';
- MNS_GroupItemsGeneralStyle.URL='';
- MNS_GroupItemsGeneralStyle.URLTarget='';
- MNS_GroupItemsGeneralStyle.Hint='';
- MNS_GroupItemsGeneralStyle.OnLeaveJS='';
- MNS_GroupItemsGeneralStyle.OnOverJS='';
- MNS_GroupItemsGeneralStyle.OnClickJS='';
- MNS_GroupItemsGeneralStyle.Height=22;
- MNS_GroupItemsGeneralStyle.Width=100;
- MNS_GroupItemsGeneralStyle.Cursor='default';
- MNS_GroupItemsGeneralStyle.PaddingLeft=10;
- MNS_GroupItemsGeneralStyle.PaddingLeft_o=null;
- MNS_GroupItemsGeneralStyle.PaddingTop=5;
- MNS_GroupItemsGeneralStyle.PaddingTop_o=null;
- MNS_GroupItemsGeneralStyle.PaddingRight=5;
- MNS_GroupItemsGeneralStyle.PaddingRight_o=null;
- MNS_GroupItemsGeneralStyle.PaddingBottom=5;
- MNS_GroupItemsGeneralStyle.PaddingBottom_o=null;
- MNS_GroupItemsGeneralStyle.BgColor='';
- MNS_GroupItemsGeneralStyle.BgColor_o='#85E9F3';
- MNS_GroupItemsGeneralStyle.BgColor_c='';
- MNS_GroupItemsGeneralStyle.BgImage='';
- MNS_GroupItemsGeneralStyle.BgImage_o='http://img1.imagilive.com/0114/light-blue-panel.gif';
- MNS_GroupItemsGeneralStyle.BgImage_c='';
- MNS_GroupItemsGeneralStyle.BgImgRep='repeat-x';
- MNS_GroupItemsGeneralStyle.BgImgRep_o='';
- MNS_GroupItemsGeneralStyle.BgImgRep_c='';
- MNS_GroupItemsGeneralStyle.BgImgPos='top left';
- MNS_GroupItemsGeneralStyle.BgImgPos_o='';
- MNS_GroupItemsGeneralStyle.BgImgPos_c='';
- MNS_GroupItemsGeneralStyle.LeftPartBgImage='';
- MNS_GroupItemsGeneralStyle.LeftPartBgImage_o='';
- MNS_GroupItemsGeneralStyle.LeftPartBgImage_c='';
- MNS_GroupItemsGeneralStyle.LeftPartBgImgPos='top';
- MNS_GroupItemsGeneralStyle.RightPartBgImage='';
- MNS_GroupItemsGeneralStyle.RightPartBgImage_o='';
- MNS_GroupItemsGeneralStyle.RightPartBgImage_c='';
- MNS_GroupItemsGeneralStyle.RightPartBgImgPos='top';
- MNS_GroupItemsGeneralStyle.FontColor='#004080';
- MNS_GroupItemsGeneralStyle.FontColor_o='#004080';
- MNS_GroupItemsGeneralStyle.FontColor_c='';
- MNS_GroupItemsGeneralStyle.FontFamily='Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif';
- MNS_GroupItemsGeneralStyle.FontFamily_o='';
- MNS_GroupItemsGeneralStyle.FontFamily_c='';
- MNS_GroupItemsGeneralStyle.FontSize=11;
- MNS_GroupItemsGeneralStyle.FontSize_o=null;
- MNS_GroupItemsGeneralStyle.FontSize_c=null;
- MNS_GroupItemsGeneralStyle.FontDecoration='none';
- MNS_GroupItemsGeneralStyle.FontDecoration_o='';
- MNS_GroupItemsGeneralStyle.FontDecoration_c='';
- MNS_GroupItemsGeneralStyle.FontWeight='normal';
- MNS_GroupItemsGeneralStyle.FontWeight_o='';
- MNS_GroupItemsGeneralStyle.FontWeight_c='';
- MNS_GroupItemsGeneralStyle.FontStyle='normal';
- MNS_GroupItemsGeneralStyle.FontStyle_o='';
- MNS_GroupItemsGeneralStyle.FontStyle_c='';
- MNS_GroupItemsGeneralStyle.BorderWidth=0;
- MNS_GroupItemsGeneralStyle.BorderWidth_o=null;
- MNS_GroupItemsGeneralStyle.BorderWidth_c=null;
- MNS_GroupItemsGeneralStyle.BorderColor='';
- MNS_GroupItemsGeneralStyle.BorderColor_o='';
- MNS_GroupItemsGeneralStyle.BorderColor_c='';
- MNS_GroupItemsGeneralStyle.Border='solid';
- MNS_GroupItemsGeneralStyle.Border_o='';
- MNS_GroupItemsGeneralStyle.Border_c='';
- MNS_GroupItemsGeneralStyle.BorderLeft=true;
- MNS_GroupItemsGeneralStyle.BorderRight=true;
- MNS_GroupItemsGeneralStyle.BorderTop=true;
- MNS_GroupItemsGeneralStyle.BorderBottom=true;
- MNS_GroupItemsGeneralStyle.SeparatorColor='#C3D3E6';
- MNS_GroupItemsGeneralStyle.SeparatorSize=0;
- MNS_GroupItemsGeneralStyle.LeftIcon='';
- MNS_GroupItemsGeneralStyle.LeftIcon_o='';
- MNS_GroupItemsGeneralStyle.LeftIcon_c='MNS_images/zigzag-blue.gif';
- MNS_GroupItemsGeneralStyle.LeftIconOffsetX=2;
- MNS_GroupItemsGeneralStyle.LeftIconOffsetX_o=null;
- MNS_GroupItemsGeneralStyle.LeftIconOffsetX_c=null;
- MNS_GroupItemsGeneralStyle.LeftIconOffsetY=-5;
- MNS_GroupItemsGeneralStyle.LeftIconOffsetY_o=null;
- MNS_GroupItemsGeneralStyle.LeftIconOffsetY_c=-6;
- MNS_GroupItemsGeneralStyle.LeftIconIsIndicator=false;
- MNS_GroupItemsGeneralStyle.RightIcon='http://img1.imagilive.com/0114/arr_navy_right.gif';
- MNS_GroupItemsGeneralStyle.RightIcon_o='http://img1.imagilive.com/0114/arr_fire_right.gif';
- MNS_GroupItemsGeneralStyle.RightIcon_c='';
- MNS_GroupItemsGeneralStyle.RightIconOffsetX=-8;
- MNS_GroupItemsGeneralStyle.RightIconOffsetX_o=null;
- MNS_GroupItemsGeneralStyle.RightIconOffsetX_c=null;
- MNS_GroupItemsGeneralStyle.RightIconOffsetY=-3;
- MNS_GroupItemsGeneralStyle.RightIconOffsetY_o=null;
- MNS_GroupItemsGeneralStyle.RightIconOffsetY_c=null;
- MNS_GroupItemsGeneralStyle.RightIconIsIndicator=true;
- var MNS_GroupStyle = new MNSMenuGroup();
- MNS_GroupStyle.Width=180;
- MNS_GroupStyle.MenuGroupAlign=0;
- MNS_GroupStyle.Opacity=100;
- MNS_GroupStyle.ShowDropDownControl=false;
- MNS_GroupStyle.InitDropdownState=1;
- MNS_GroupStyle.ItemsPadding_L=0;
- MNS_GroupStyle.ItemsPadding_R=0;
- MNS_GroupStyle.ItemsPadding_T=5;
- MNS_GroupStyle.ItemsPadding_B=5;
- MNS_GroupStyle.ItemsSpacing=5;
- MNS_GroupStyle.BgColor='#DFEEFD';
- MNS_GroupStyle.BgImgPos='top left';
- MNS_GroupStyle.BgImgRep='repeat';
- MNS_GroupStyle.Border='solid';
- MNS_GroupStyle.BorderWidth=1;
- MNS_GroupStyle.BorderColor='#9FCCF0';
- MNS_GroupStyle.HeaderText='';
- MNS_GroupStyle.HeaderTextAlign='center';
- MNS_GroupStyle.HeaderTextOffsetX=0;
- MNS_GroupStyle.HeaderTextOffsetY=4;
- MNS_GroupStyle.HeaderHeight=0;
- MNS_GroupStyle.HeaderBgColor='';
- MNS_GroupStyle.HeaderIconOffsetX=3;
- MNS_GroupStyle.HeaderIconOffsetY=3;
- MNS_GroupStyle.HeaderBgImgRep='repeat-x';
- MNS_GroupStyle.HeaderBgImgPos='top left';
- MNS_GroupStyle.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
- MNS_GroupStyle.FontColor='#004080';
- MNS_GroupStyle.FontSize=11;
- MNS_GroupStyle.FontDecoration='none';
- MNS_GroupStyle.FontWeight='bolder';
- MNS_GroupStyle.FontStyle='normal';
- MNS_GroupStyle.DropdownImageExpand='';
- MNS_GroupStyle.DropdownImageCollapse='';
- MNS_GroupStyle.OnGroupShowJS='';
- MNS_GroupStyle.OnGroupHideJS='';
- MNS_GroupStyle.AnimationType=0;
- MNS_GroupStyle.AnimationTimeout=8;
- var MNS_mg_ID1 = new MNSMenuGroup(0,0,'H');
- MNS_mg_ID1.id='MNS_mg_ID1';
- MNS_mg_ID1.IsMainGroup=1;
- MNS_mg_ID1.BgColor='#C0C0C0';
- MNS_mg_ID1.Width=180;
- MNS_mg_ID1.Opacity=100;
- MNS_mg_ID1.ShowDropDownControl=false;
- MNS_mg_ID1.InitDropdownState=1;
- MNS_mg_ID1.ItemsPadding_L=0;
- MNS_mg_ID1.ItemsPadding_R=0;
- MNS_mg_ID1.ItemsPadding_T=0;
- MNS_mg_ID1.ItemsPadding_B=0;
- MNS_mg_ID1.ItemsSpacing=0;
- MNS_mg_ID1.Embedding='relative';
- MNS_mg_ID1.z=1000;
- MNS_mg_ID1.BgImgPos='top left';
- MNS_mg_ID1.BgImgRep='repeat-y';
- MNS_mg_ID1.Border='solid';
- MNS_mg_ID1.BorderWidth=1;
- MNS_mg_ID1.BorderColor='#9F9F9F';
- MNS_mg_ID1.HeaderText='';
- MNS_mg_ID1.HeaderTextAlign='center';
- MNS_mg_ID1.HeaderTextOffsetX=0;
- MNS_mg_ID1.HeaderTextOffsetY=4;
- MNS_mg_ID1.HeaderHeight=0;
- MNS_mg_ID1.HeaderBgColor='';
- MNS_mg_ID1.HeaderIconOffsetX=3;
- MNS_mg_ID1.HeaderIconOffsetY=3;
- MNS_mg_ID1.HeaderBgImgRep='repeat-x';
- MNS_mg_ID1.HeaderBgImgPos='top left';
- MNS_mg_ID1.DropdownImageExpand='';
- MNS_mg_ID1.DropdownImageCollapse='';
- MNS_mg_ID1.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
- MNS_mg_ID1.FontColor='#004080';
- MNS_mg_ID1.FontSize=11;
- MNS_mg_ID1.FontDecoration='none';
- MNS_mg_ID1.FontWeight='bolder';
- MNS_mg_ID1.FontStyle='normal';
- var MNS_i_ID5 = new MNSMenuItem('<div align="center">Capitulo 343 Naruto Shippuden </div>');
- MNS_i_ID5.id='MNS_i_ID5';
- MNS_i_ID5.Assign(MNS_MainGroupItemsGeneralStyle);
- MNS_i_ID5.Text_o='';
- MNS_i_ID5.Text_c='';
- MNS_i_ID5.URL='';
- MNS_i_ID5.Hint='';
- MNS_i_ID5.Width=300;
- var MNS_g_ID18 = new MNSMenuGroup(-2,2,'V');
- MNS_g_ID18.id='MNS_g_ID18';
- MNS_g_ID18.Assign(MNS_GroupStyle);
- MNS_i_ID5.AddGroup(MNS_g_ID18);
- var MNS_i_ID17 = new MNSMenuItem('Ver Online');
- MNS_i_ID17.id='MNS_i_ID17';
- MNS_i_ID17.Assign(MNS_GroupItemsGeneralStyle);
- MNS_i_ID17.Text_o='';
- MNS_i_ID17.Text_c='';
- MNS_i_ID17.URL='http://6e3c5dd1.miniurls.co';
- MNS_i_ID17.URLTarget='_blank';
- MNS_i_ID17.Hint='';
- MNS_g_ID18.AddItem(MNS_i_ID17);
- var MNS_i_ID19 = new MNSMenuItem('Descargar HQ');
- MNS_i_ID19.id='MNS_i_ID19';
- MNS_i_ID19.Assign(MNS_GroupItemsGeneralStyle);
- MNS_i_ID19.Text_o='';
- MNS_i_ID19.Text_c='';
- MNS_i_ID19.URL='http://bf1a8ea0.yyv.co';
- MNS_i_ID19.URLTarget='_blank';
- MNS_i_ID19.Hint='';
- MNS_g_ID18.AddItem(MNS_i_ID19);
- var MNS_i_ID22 = new MNSMenuItem('Descargar HD');
- MNS_i_ID22.id='MNS_i_ID22';
- MNS_i_ID22.Assign(MNS_GroupItemsGeneralStyle);
- MNS_i_ID22.Text_o='';
- MNS_i_ID22.Text_c='';
- MNS_i_ID22.URL='http://bc4a3cab.urlbeat.net';
- MNS_i_ID22.URLTarget='_blank';
- MNS_i_ID22.Hint='';
- MNS_g_ID18.AddItem(MNS_i_ID22);
- MNS_mg_ID1.AddItem(MNS_i_ID5);
- MNS_mg_ID1.Visibility='visible';
- document.write('<div style="position:absolute; z-index:1000;" align="left">');
- document.write(MNS_mg_ID1.ToStr());
- document.write('</div>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement