Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------------------------------------------------------
- //- Created by the Agama Web Menus - generator ver 2.21
- //- Copyright MP Software (c)2008
- //- Can I use this script? See http://www.agama-menu.com
- //-----------------------------------------------------------------------
- //Global Misc Object
- var Licencia01MiscFunc = {
- 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,
- //sniff the browser type
- 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;
- },
- //safe get object in nn4
- 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;
- },
- //get true element height
- 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;
- }
- },
- //get true element width
- 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;
- }
- },
- //get true element left position
- 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;
- }
- },
- //get true element top position
- 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;
- }
- }
- };
- Licencia01MiscFunc.InitVars();
- //--------------------------------------------------------
- //class menuGrouphandler
- //--------------------------------------------------------
- var Licencia01MenuGroupHandler = {
- //---private vars
- MenuTimeout : 500,
- ObjectsCount : 0,//counter of submenus
- ObjectsArray : Array(), //all submenus storage
- idCounter : 0, //submenus internal unique counter
- idPrefix : "menu_group_",//submenus name prefix
- TimerCloseAllGroupID : 0, //timer id for clean all submenus
- TimerAnimateID : 0, //timer id animation
- TmpGroupToShow : '', //temp storage of just animated submenu
- LC : '2507082254',//license code
- SubmenusDisAppearMode:0,//submenus disappear mode
- GetId:function() { //return self id
- return this.idPrefix + this.idCounter++;
- },
- FindGroup:function(id){ //return the submenu by the id
- for (i=1; i<= this.ObjectsCount; i++){
- if (this.ObjectsArray[i].id==id) {
- return(this.ObjectsArray[i]);
- }
- }
- },
- DoOnMouseOver:function(id){//submenu mouse over event
- window.clearTimeout(this.TimerCloseAllGroupID);
- //repair visual state of items when mouse over the same item but another item sumbenu is shown
- 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){ //submenu mouse out event
- window.clearTimeout(this.TimerCloseAllGroupID);
- this.TimerCloseAllGroupID = window.setTimeout("Licencia01MenuGroupHandler.CloseAllGroup()", Licencia01MenuGroupHandler.MenuTimeout);
- },
- DoOnMouseMove:function(id){return},
- DoOnMouseDown:function(id){return},
- DoOnMouseUp:function(id){return},
- FlipDropDown:function(id){ //flip the submenu dropdown state
- gr=this.FindGroup(id.substring(8));
- if (gr){
- gr.FlipDropDown();
- }
- },
- CloseGroup:function(id){//close submenu
- gr=this.FindGroup(id);
- if (gr!=null){
- gr.CloseGroupRecurse();
- }
- },
- CloseAllGroup:function(){//close all submenus
- 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(){ //appear submenu
- 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(){//appear submenu with using animation - multiple called by timer
- 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) && (!Licencia01MiscFunc.ie)){//non IE browsers does not support filter animation
- gr.AnimationType=100;
- }
- switch (gr.AnimationType){
- // browser independency animation -->
- case 0:{//simple show - all browser compatible
- obj.style.visibility='visible';
- objt.style.visibility='visible';
- //show orphans elements
- for (this.i=1; this.i<= gr.Count; this.i++){
- gr.Items[this.i].ShowOrphans();
- }
- //call custom JS code
- if (gr.OnGroupShowJS!=''){
- eval(gr.OnGroupShowJS);
- }
- return;
- }//end case 0
- case 100:{//fade in - all browser compatible
- if (gr.AnimationControlValue==20){
- //show orphans elements once on start of animation
- 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 );
- //calculate next time
- gr.AnimationControlValue=gr.AnimationControlValue+(gr.AnimationStep);
- this.TimerAnimateID = window.setTimeout("Licencia01MenuGroupHandler.DoAnimation()",gr.AnimationTimeout * (gr.AnimationTo/(gr.Opacity/2)));
- return;
- }
- //call custom JS code
- if (gr.OnGroupShowJS!=''){
- eval(gr.OnGroupShowJS);
- }
- return;
- }//end case 100
- }//end switch
- //IE5+ animations
- //show orphans elements
- 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();//gr.AnimationType;
- obj.style.visibility='visible'; //allways show
- objt.style.visibility='visible';
- obj.filters.revealTrans.play();
- }
- else
- { obj.style.visibility='visible';}
- //call custom JS code
- if (gr.OnGroupShowJS!=''){
- eval(gr.OnGroupShowJS);
- }
- }
- }
- }
- }; //end class Licencia01MenuGroupHandler
- //------------------------------------------------------------
- //class menuItemhandler
- //------------------------------------------------------------
- var Licencia01MenuItemHandler = {
- ObjectsCount : 0,//items counter
- ObjectsArray : Array(), //array of all items
- idCounter : 0,
- idPrefix : "menu_item_",
- GetId : function() { //return self id
- return this.idPrefix + this.idCounter++;
- },
- FindItem : function(id) {//find item by id in array
- for (i=1; i<= this.ObjectsCount; i++){
- if (this.ObjectsArray[i].id==id) {
- return(this.ObjectsArray[i]);
- }
- }
- },
- FindItemByGroup: function(GroupID){//find item which is parent of specified submenu
- for (i=1; i<= this.ObjectsCount; i++){
- if (this.ObjectsArray[i].Group.id==GroupID) {
- return(this.ObjectsArray[i]);
- }
- }
- },
- DoOnMouseOver : function(id){//item on mouse over event
- mi=this.FindItem(id);
- mi.SetItemState(1);
- //reset state of each items
- for (i=1; i<= mi.OwnerGroup.Count; i++){
- if (mi.OwnerGroup.Items[i]!=mi){
- mi.OwnerGroup.Items[i].SetItemState(0);
- }
- }
- //close all groups recursively - only if focused menu item have submenu
- if (mi.Group != null || Licencia01MenuGroupHandler.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')){
- Licencia01MenuGroupHandler.CloseGroup(obj.id);
- }
- }
- }
- }
- if (mi.Group != null){
- //finish prev animation
- Licencia01MenuGroupHandler.ShowWithTargetOpacity();
- //Show new group
- mi.Group.ShowGroup();//show new submenu
- }
- },
- DoOnMouseMove: function(id) {},
- DoOnMouseOut : function (id) {},
- DoOnMouseDown: function(id){
- mi=this.FindItem(id);
- mi.SetItemState(2);//activate click state
- },
- DoOnMouseUp: function(id){
- mi=this.FindItem(id);
- mi.SetItemState(1);//back to over state
- },
- Navigate: function(id){ //navigation
- mi=this.FindItem(id);
- eval(mi.OnClickJS);//user custom JS command when item is clicked
- if (mi.URL>''){
- if (mi.URLTarget==''){self.location.href= mi.URL} else //self frame
- 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
- {//new window
- window.open(mi.URL,mi.URLTarget);
- }
- }
- }
- }
- }; //end class menuhandler
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // class Licencia01MenuGroupAncestor
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // Licencia01MenuGroupAncestor - Constructor
- //--------------------------------------------------------------------------------------
- function Licencia01MenuGroupAncestor () {
- 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; //TODO
- this.ShadowColor='#999999';//TODO
- this.ShadowTransparency=50;//TODO
- 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; //animation speed
- this.AnimationType=100; //animation type: 0=no animation, 100=fade (browser indenpedent), 1..99 IE animation type
- this.ShowDropDownControl=false;
- this.InitDropdownState=1;
- this.DropdownImageExpand='';
- this.DropdownImageCollapse='';
- }
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // Class MenuGroup
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // MenuGroup will inherite from Licencia01MenuGroupAncestor;
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.prototype = new Licencia01MenuGroupAncestor;
- //--------------------------------------------------------------------------------------
- // MenuGroup - constructor
- //--------------------------------------------------------------------------------------
- function Licencia01MenuGroup(ShiftX,ShiftY,Lay) {
- this.Layout= Lay || 'V'; //V=vertical, H=horizontal
- this.x=ShiftX || 0;
- this.y=ShiftY || 0;
- //------------------------------------------
- //internal vars, Do not touch this values! -->
- //------------------------------------------
- this.Tmp1=0;//temp var
- this.AnimationStep=4; //animation increment (granularity) - subjective determined
- this.AnimationFrom=0; //start of animation - typically 1
- this.AnimationTo=100; //end of animation - typically 100 but fade animation will stop with opacity value
- this.AnimationControlValue=20;//animation temp value, do not touch it!
- this.TmpMainDivStyle='';//retezec stylu Divu
- this.TargetPosX=this.x; // menu x position
- this.TargetPosY=this.y; //menu y position
- this.DefaultTop=0;
- this.DefaultLeft=0;
- this.Count=0;
- this.IsMainGroup=0;
- this.Items = [];
- this.id = Licencia01MenuGroupHandler.GetId();
- this.RefererItem = null;
- this.Preload_DropdownImageExpand=new Image();
- this.Preload_DropdownImageCollapse=new Image();
- Licencia01MenuGroupHandler.ObjectsCount=Licencia01MenuGroupHandler.ObjectsCount+1;
- Licencia01MenuGroupHandler.ObjectsArray[Licencia01MenuGroupHandler.ObjectsCount]=this;
- }
- //--------------------------------------------------------------------------------------
- // Copy values from another menu group
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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;
- };
- //--------------------------------------------------------------------------------------
- // Method PreloadImages
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.prototype.PreloadImages= function PreloadImages() {
- this.Preload_DropdownImageExpand.src=this.DropdownImageExpand;
- this.Preload_DropdownImageCollapse.src=this.DropdownImageCollapse;
- };
- //--------------------------------------------------------------------------------------
- // Method AddItem
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.prototype.AddItem= function AddItem(Item) {
- this.Count++;
- this.Items[this.Count]=Item;
- Item.OwnerGroup=this;
- };
- //--------------------------------------------------------------------------------------
- // Method ExpandDropDown
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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);
- }
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // Method ExpandDropDown
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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;
- }
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // Method CollapseDropDown
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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==''))
- { //Hide body
- bodydiv.style.display='none';
- bodydiv.style.visibility='hidden';
- if(dropimg){
- dropimg.src=this.Preload_DropdownImageExpand.src;
- }
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // Method FlipDropDown
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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==''))
- { //Hide body
- bodydiv.style.display='none';
- bodydiv.style.visibility='hidden';
- if(dropimg){
- dropimg.src=this.Preload_DropdownImageExpand.src;
- }
- }
- else
- { //Show
- bodydiv.style.display='block';
- bodydiv.style.visibility='visible';
- if(dropimg){
- dropimg.src=this.Preload_DropdownImageCollapse.src;
- }
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // Method ToStr
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.prototype.ToStr= function ToStr(){
- //preload images
- this.PreloadImages();
- //calculate group subelements Width and Height
- //we must calculate the width of group in dependence of menu items width when the menu has horizontal layout
- 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" && Licencia01MiscFunc.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;
- }
- //concate main DIV styles string --->
- SetPosition=true;
- if (this.Embedding=='default'){this.Embedding='absolute'; SetPosition=false}
- if (this.IsMainGroup==0){this.Embedding='absolute'}
- //positioning -->
- 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+'; '; //visibility
- this.TmpMainDivStyle=this.TmpMainDivStyle+'width: '+MainDivWidth+'px; ';//width
- this.TmpMainDivStyle=this.TmpMainDivStyle+'border-width: '+this.BorderWidth+'px; border-style: '+this.Border+'; border-color: '+this.BorderColor+'; '; //border
- this.TmpMainDivStyle=this.TmpMainDivStyle+'background-color: '+this.BgColor+'; ';//bck color
- this.TmpMainDivStyle=this.TmpMainDivStyle+'background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; '; //bck image
- if (this.Opacity<100){this.TmpMainDivStyle=this.TmpMainDivStyle+'filter:alpha(opacity='+this.Opacity+'); -moz-opacity:'+this.Opacity+'; opacity:'+(this.Opacity/100)+'; '}; //final opacity
- //concate header styles string
- 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+'; ';
- //concate subheader styles string
- this.TmpSubHedStyle='position: relative; left: '+this.HeaderTextOffsetX+'px; top: '+this.HeaderTextOffsetY+'px; '; //pozicovani textu subheader
- this.TmpSubHedStyle=this.TmpSubHedStyle+'font-family: '+this.FontFamily+' ; font-style: '+this.FontStyle+'; font-size: '+this.FontSize+'px; font-weight: '+this.FontWeight+'; '; //parametry fontu
- this.TmpSubHedStyle=this.TmpSubHedStyle+'color: '+this.FontColor+' ; text-decoration: '+this.FontDecoration+'; ';//parametry fontu
- //concate cover of table
- 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; ';//padding
- //concate table atributes string
- this.TableAttr='width="'+TableWidth+'" cellpadding="0" cellspacing="0" border="0"';
- //build string of dropdown images
- if(this.ShowDropDownControl)
- {
- this.TmpDropDown='<img onclick="Licencia01MenuGroupHandler.FlipDropDown(this.id);" id="dropimg_'+this.id+'" hspace="5" src="';
- if (this.InitDropdownState==1){
- this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageCollapse.src;//image for collapse state
- } else{
- this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageExpand.src;//image for expanded
- this.TmpTableCover=this.TmpTableCover+' visibility: hidden; display: none; ';
- }
- this.TmpDropDown=this.TmpDropDown+'" >';
- }
- else {
- this.TmpDropDown=(this.HeaderText)?' ':'';
- }
- //concate main DIV of menu group
- TmpStr='<DIV style="'+this.TmpMainDivStyle+'" id="'+this.id+'" onmousedown="Licencia01MenuGroupHandler.DoOnMouseDown(this.id)" onmouseup="Licencia01MenuGroupHandler.DoOnMouseUp(this.id)" onmouseover="Licencia01MenuGroupHandler.DoOnMouseOver(this.id)" onmouseout="Licencia01MenuGroupHandler.DoOnMouseOut()">';
- //build header icon
- 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+'">'; //ikona headeru, lezi mimo header!
- };
- //concate header string
- 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>'; //header+subheader+dropdown images
- //concate item table div cover
- TmpStr=TmpStr+'<div id="'+this.id+'_itemtablecover" style="'+this.TmpTableCover+'">';
- //concate item table
- if (this.Layout=='H') {
- TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table"><TR>';
- //TmpEndStr='<TD>x</TD></TR valign="top"></TABLE>';
- TmpEndStr='</TR valign="top"></TABLE>';
- }
- else
- {
- TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table">';
- TmpEndStr='</TABLE>';
- }
- //each menu item return self code with using method ToStr()
- for (i=1; i<= this.Count; i++){
- this.Items[i].LastItem=false;
- if (i==this.Count){
- this.Items[i].LastItem=true;//mark if is last item in group, if is it, the menu separator will not applyed
- }
- TmpStr=TmpStr+this.Items[i].ToStr(this.Layout);
- }
- //table finish string
- TmpStr=TmpStr+TmpEndStr;
- //cover finish string
- TmpStr=TmpStr+'</div>';
- //end of menu group
- TmpStr=TmpStr+'</DIV>';
- //get each submenus code by recurse with using method ToStr()
- 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();//print my submenu
- }
- }
- //call custom JS code - OnGroupShowJS
- if ((this.OnGroupShowJS!='') && (this.Visibility) && (this.IsMainGroup)){
- eval(this.OnGroupShowJS);
- }
- //return final code
- return(TmpStr);
- };
- //--------------------------------------------------------------------------------------
- // programming interface - Hide whole menu. Must be called as method of Main Menu
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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();
- }
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // programming interface - Unhide whole menu. Must be called as method of Main Menu
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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();
- }
- }
- }
- };
- //--------------------------------------------------------------------------------------
- //CloseGroupRecurse
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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();
- }
- }
- };
- //--------------------------------------------------------------------------------------
- //ShowGroupRecurse
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.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();
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // HideGroup
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.prototype.HideGroup= function HideGroup(){
- //clear animation timeout
- window.clearTimeout(Licencia01MenuGroupHandler.TimerAnimateID);
- this.AnimationControlValue=20;
- obj=document.getElementById(this.id);
- objt=document.getElementById(this.id+'_table');
- if (obj!=null)
- {
- //hide orphans element
- for (this.i=1; this.i<= this.Count; this.i++){
- this.Items[this.i].HideOrphans();
- }
- if (obj.style.visibility!='hidden')
- {
- //hide table
- objt.style.visibility='hidden';
- //hide group
- obj.style.visibility='hidden';
- //call user custom JS code - OnGroupHideJS
- if (this.OnGroupHideJS!=''){
- eval(this.OnGroupHideJS);
- }
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // ShowGroup
- //--------------------------------------------------------------------------------------
- Licencia01MenuGroup.prototype.ShowGroup= function ShowGroup(){
- obj=document.getElementById(this.id);
- if (obj!=null){
- //calculate X and Y position before appear with using real DOM metrics in dependence MenuGroupAlign value
- switch (this.MenuGroupAlign){
- case 0: {//auto arrange
- if (this.RefererItem.OwnerGroup.Layout=='V'){ //vertical owner group menu
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
- Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
- this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
- this.y; //vertical correction shift
- }
- else
- { //horizontal owner group menu
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
- Licencia01MiscFunc.getElementHeight(this.RefererItem.id) + //owner item height
- this.y ; //vertical correction shift
- }
- break;
- }
- case 1: {//Right-side Up
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
- Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
- this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
- Licencia01MiscFunc.getElementHeight(this.id) + //self height
- this.y ; //vertical correction shift
- break;
- }
- case 2: {//Right-side Center
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
- Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
- this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
- (Licencia01MiscFunc.getElementHeight(this.id) / 2) + //self half height
- this.y ; //vertical correction shift
- break;
- }
- case 3: {//Right-side Down
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
- Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
- this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
- this.y; //vertical correction shift
- break;
- }
- case 4: {//Left-side Up
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
- Licencia01MiscFunc.getElementWidth(this.id) - //self group width
- this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
- Licencia01MiscFunc.getElementHeight(this.id) + //self height
- this.y ; //vertical correction shift
- break;
- }
- case 5: {//Left-side Center
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
- Licencia01MiscFunc.getElementWidth(this.id) - //self group width
- this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
- (Licencia01MiscFunc.getElementHeight(this.id) / 2) + //self half height
- this.y ; //vertical correction shift
- break;
- }
- case 6: {//Left-side Down
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
- Licencia01MiscFunc.getElementWidth(this.id) - //self group width
- this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
- this.y; //vertical correction shift
- break;
- }
- case 7: {//Bottom Left
- this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.OwnerGroup.id) + //owner item position
- this.x; //horizontal correction shift
- this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
- Licencia01MiscFunc.getElementHeight(this.RefererItem.id) + //owner item height
- this.y ; //vertical correction shift
- break;
- }
- }
- //set calculated position
- obj.style.left = this.TargetPosX+'px';
- obj.style.top = this.TargetPosY+'px';
- if (obj.style.visibility=='hidden'){
- //clear previous timer
- window.clearTimeout(Licencia01MenuGroupHandler.TimerAnimateID);
- //initial animation value
- this.AnimationControlValue=20;
- //store the menugroup to will show
- Licencia01MenuGroupHandler.TmpGroupToShow=obj.id;
- //reset menu items to base state
- for (this.i=1; this.i<= this.Count; this.i++){
- if (this.Items[this.i].LastItemState==1){
- this.Items[this.i].SetItemState(0);
- }
- }
- //start animation
- Licencia01MenuGroupHandler.TimerAnimateID = window.setTimeout("Licencia01MenuGroupHandler.DoAnimation()",0);
- }
- }
- };
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // Class Licencia01MenuItemAncestor - Constructor
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // Licencia01MenuItemAncestor - Constructor
- //--------------------------------------------------------------------------------------
- function Licencia01MenuItemAncestor()
- {
- 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';
- };
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // Class MenuItem
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------
- // MenuItem will inherite from Licencia01MenuItemAncestor
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.prototype = new Licencia01MenuItemAncestor;
- //--------------------------------------------------------------------------------------
- // MenuItem - Constructor
- //--------------------------------------------------------------------------------------
- function Licencia01MenuItem(Text) {
- this.Text=Text;
- //------------------------------------------
- //internal vars. Do not set these values! -->
- //------------------------------------------
- this.id = Licencia01MenuItemHandler.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;
- Licencia01MenuItemHandler.ObjectsCount=Licencia01MenuItemHandler.ObjectsCount+1;
- Licencia01MenuItemHandler.ObjectsArray[Licencia01MenuItemHandler.ObjectsCount]=this;
- };
- //--------------------------------------------------------------------------------------
- // Copy values from another item
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.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;
- };
- //--------------------------------------------------------------------------------------
- // Hide orphans images - non IE hack for Mozila, Netscape and other.
- // Owner TD element is hidden but images stay visible :-(
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.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';
- }
- };
- //--------------------------------------------------------------------------------------
- // Show orphans images - non IE hack for Mozila, Netscape and other.
- // Owner TD element is hidden but images stay visible :-(
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.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';
- }
- }
- };
- //--------------------------------------------------------------------------------------
- // PreloadImages
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.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;
- };
- //--------------------------------------------------------------------------------------
- // ToStr
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.prototype.ToStr= function ToStr(Layout) {
- var TmpStr=''; //target self source code - source code of single menu item of menu group table
- var TmpTDAttr='';//main TD element attributes
- var ItemCore='';//core of item - this variable owner the single item table
- var TmpTDCSS=''; //css styles of main TD
- var TmpCoreCentreTDStyle='';//styles of centre TD of single item table
- this.Cursor=((this.URL)&&(this.Cursor=='auto'))?'pointer':this.Cursor;
- //preload images
- this.PreloadImages();
- //--> set main TD attribute values
- if (Layout=='H') {
- TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" width="'+this.Width+'" valign="top" ' ; //the Width attribute will set for horizontal menu only
- }
- else
- {
- TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" valign="top" ' ;
- }
- //--> set main TD css styles
- TmpTDCSS=' ';
- //--> set Item core table css styles
- 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+'" ';
- //-->set style of centre TD of core
- 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; "';
- //prepare icon source code -->
- 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;">'; //left icon
- } 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;">'; //right icon
- } else {TmpRightIconSource='';}
- //prepare left and right background image source code
- 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+'">';
- }
- //build source code item core -->
- ItemCore='<table '+TmpCoreTableCSS+' id="'+this.id+'_core_table" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">';//start core table
- ItemCore=ItemCore+'<tr>';//start core TR
- ItemCore=ItemCore+'<td width="0" valign="middle">'+TmpLeftIconSource+'</td><td width="0" align="right" valign="'+this.LeftPartBgImgPos+'" >'+TmpLeftBgSource+'</td>'; //Left background image + Icon
- ItemCore=ItemCore+'<td id="'+this.id+'_core_table_td" '+TmpCoreCentreTDStyle+' width="100%" align="'+this.TextAlign+'">' + this.Text + '</td>'; // centre TD of core - text (main content) + background image
- ItemCore=ItemCore+'<td width="0" align="left" valign="'+this.RightPartBgImgPos+'">'+TmpRightBgSource+'</td><td width="0" valign="middle">'+TmpRightIconSource+'</td>'; //Right backround image + Icon
- ItemCore=ItemCore+'</tr>';//end core TR
- ItemCore=ItemCore+'</table>';//end core table
- //build the target item source code -->
- if (Layout=='H') { //HORIZONTAL MENU KIND
- TmpStr='<TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="Licencia01MenuItemHandler.DoOnMouseOver(this.id)" onmouseout="Licencia01MenuItemHandler.DoOnMouseOut(this.id)" onmousemove="Licencia01MenuItemHandler.DoOnMouseMove(this.id)" onmousedown="Licencia01MenuItemHandler.DoOnMouseDown(this.id)" onmouseup="Licencia01MenuItemHandler.DoOnMouseUp(this.id)" onclick="Licencia01MenuItemHandler.Navigate(this.id)">';
- TmpStr=TmpStr+ItemCore;
- TmpStr=TmpStr+'</TD>';
- // vertical separator and items distance
- 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
- { //VERTICAL MENU KIND
- TmpStr='<TR valign="top"><TD '+TmpTDAttr+' '+TmpTDCSS+' id="'+this.id+'" onmouseover="Licencia01MenuItemHandler.DoOnMouseOver(this.id)" onmouseout="Licencia01MenuItemHandler.DoOnMouseOut(this.id)" onmousemove="Licencia01MenuItemHandler.DoOnMouseMove(this.id)" onmousedown="Licencia01MenuItemHandler.DoOnMouseDown(this.id)" onmouseup="Licencia01MenuItemHandler.DoOnMouseUp(this.id)" onclick="Licencia01MenuItemHandler.Navigate(this.id)">';
- TmpStr=TmpStr+ItemCore;
- TmpStr=TmpStr+'</TD></TR>';
- // horizontal separator and items distance
- 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);//return self source code
- };
- //--------------------------------------------------------------------------------------
- // This method connect the submenu to the parent menu item
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.prototype.AddGroup= function AddGroup(SubGroup){
- this.Group=SubGroup;
- SubGroup.RefererItem=this;
- };
- //--------------------------------------------------------------------------------------
- // Redraw item in dependence of state
- // This method do change state of item
- // state 0 = base
- // state 1 = mouse over
- // state 2 = mouse click
- //--------------------------------------------------------------------------------------
- Licencia01MenuItem.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:{//base state --------------------------------------------------
- if (objCoreTableTD){
- objCoreTableTD.innerHTML = this.Text;
- }
- if (objCoreTable){//core table style
- //base background styles
- objCoreTable.style.backgroundColor=this.BgColor;
- objCoreTable.bgColor=this.BgColor;
- //border styles
- 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){//td table style
- //text and font styles
- 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;
- //text padding styles
- objCoreTableTD.style.paddingLeft=this.PaddingLeft;
- objCoreTableTD.style.paddingRight=this.PaddingRight;
- objCoreTableTD.style.paddingTop=this.PaddingTop;
- objCoreTableTD.style.paddingBottom=this.PaddingBottom;
- //center bg image
- 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){//left bg image
- if (this.LeftPartBgImage>''){
- objLeftBgImg.src=this.Preload_BgImageLeft.src;
- objLeftBgImg.style.visibility='visible';
- objLeftBgImg.style.display='block';
- }
- else
- {
- objLeftBgImg.style.visibility='hidden';
- }
- }
- if (objRightBgImg){//right bg image
- if (this.RightPartBgImage>''){
- objRightBgImg.src=this.Preload_BgImageRight.src;
- objRightBgImg.style.visibility='visible';
- objRightBgImg.style.display='block';
- }
- else
- {
- objRightBgImg.style.visibility='hidden';
- }
- }
- if (objRightIcon){ //right icon - element found
- 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){ //left icon - element found
- 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);//user JS command when item is leaved
- break;
- }
- case 1:{//OVER STATE -----------------------------------------
- if ((objCoreTableTD)&&(this.Text_o>'')&&(objCoreTableTD.innerHTML!=this.Text_o)){
- //objCoreTableTD.firstChild.nodeValue=this.Text_o;
- objCoreTableTD.innerHTML=this.Text_o;
- }
- if (objCoreTable != null) //core table style - element found
- {
- //base background styles
- if (this.BgColor_o){
- objCoreTable.style.backgroundColor=this.BgColor_o;
- objCoreTable.bgColor=this.BgColor_o;
- }
- //border styles
- 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){//td table style
- //text and font styles
- 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;}
- //text padding styles
- 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;}
- //center bg image
- 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){//left bg image
- if (this.LeftPartBgImage_o>''){
- objLeftBgImg.src=this.Preload_BgImageLeft_o.src;
- objLeftBgImg.style.visibility='visible';
- objLeftBgImg.style.display='block';
- }
- else
- {
- //do nothing
- }
- }
- if (objRightBgImg){//right bg image
- if (this.RightPartBgImage_o>''){
- objRightBgImg.src=this.Preload_BgImageRight_o.src;
- objRightBgImg.style.visibility='visible';
- objRightBgImg.style.display='block';
- }
- else
- {
- //do nothing
- }
- }
- if (objRightIcon){ //right icon - element found
- 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){ //left icon - element found
- 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);//user custom JS command when mouse goes over the menu item
- break;
- }
- case 2:{//click state
- if ((objCoreTableTD)&&(this.Text_c>'')&&(objCoreTableTD.innerHTML!=this.Text_c)){
- //objCoreTableTD.firstChild.nodeValue=this.Text_c;
- objCoreTableTD.innerHTML=this.Text_c;
- }
- if (objCoreTable != null) //core table style - element found
- {
- //base background styles
- if (this.BgColor_c){
- objCoreTable.style.backgroundColor=this.BgColor_c;
- objCoreTable.style.bgColor=this.BgColor_c;
- }
- //border styles
- 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){//td table style
- //text and font styles
- 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;}
- //center bg image
- 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){//left bg image
- if (this.LeftPartBgImage_c>''){
- objLeftBgImg.src=this.Preload_BgImageLeft_c.src;
- objLeftBgImg.style.visibility='visible';
- objLeftBgImg.style.display='block';
- }
- else
- {
- //do nothing
- }
- }
- if (objRightBgImg){//right bg image
- if (this.RightPartBgImage_c>''){
- objRightBgImg.src=this.Preload_BgImageRight_c.src;
- objRightBgImg.style.visibility='visible';
- objRightBgImg.style.display='block';
- }
- else
- {
- //do nothing
- }
- }
- if (objRightIcon){ //right icon - element found
- 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){ //left icon - element found
- 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;
- } //end switch
- };
- //Create main menu items style object. All main menu items inherite style from this object
- var Licencia01_MainGroupItemsGeneralStyle = new Licencia01MenuItem();
- Licencia01_MainGroupItemsGeneralStyle.Text_o='';
- Licencia01_MainGroupItemsGeneralStyle.Text_c='';
- Licencia01_MainGroupItemsGeneralStyle.TextAlign='left';
- Licencia01_MainGroupItemsGeneralStyle.URL='';
- Licencia01_MainGroupItemsGeneralStyle.URLTarget='';
- Licencia01_MainGroupItemsGeneralStyle.Hint='';
- Licencia01_MainGroupItemsGeneralStyle.OnLeaveJS='';
- Licencia01_MainGroupItemsGeneralStyle.OnOverJS='';
- Licencia01_MainGroupItemsGeneralStyle.OnClickJS='';
- Licencia01_MainGroupItemsGeneralStyle.Height=25;
- Licencia01_MainGroupItemsGeneralStyle.Width=200;
- Licencia01_MainGroupItemsGeneralStyle.Cursor='default';
- Licencia01_MainGroupItemsGeneralStyle.PaddingLeft=25;
- Licencia01_MainGroupItemsGeneralStyle.PaddingLeft_o=25;
- Licencia01_MainGroupItemsGeneralStyle.PaddingTop=5;
- Licencia01_MainGroupItemsGeneralStyle.PaddingTop_o=null;
- Licencia01_MainGroupItemsGeneralStyle.PaddingRight=5;
- Licencia01_MainGroupItemsGeneralStyle.PaddingRight_o=null;
- Licencia01_MainGroupItemsGeneralStyle.PaddingBottom=5;
- Licencia01_MainGroupItemsGeneralStyle.PaddingBottom_o=null;
- Licencia01_MainGroupItemsGeneralStyle.BgColor='';
- Licencia01_MainGroupItemsGeneralStyle.BgColor_o='';
- Licencia01_MainGroupItemsGeneralStyle.BgColor_c='';
- Licencia01_MainGroupItemsGeneralStyle.BgImage='http://img1.imagilive.com/0613/blank1x1.gif';
- Licencia01_MainGroupItemsGeneralStyle.BgImage_o='https://lh4.googleusercontent.com/-nMiVkGHjz2s/UbPgdcJ33hI/AAAAAAAAAyA/WoMWZg98I0w/s23/orange-button-center.gif';
- Licencia01_MainGroupItemsGeneralStyle.BgImage_c='';
- Licencia01_MainGroupItemsGeneralStyle.BgImgRep='repeat-x';
- Licencia01_MainGroupItemsGeneralStyle.BgImgRep_o='';
- Licencia01_MainGroupItemsGeneralStyle.BgImgRep_c='';
- Licencia01_MainGroupItemsGeneralStyle.BgImgPos='left center';
- Licencia01_MainGroupItemsGeneralStyle.BgImgPos_o='';
- Licencia01_MainGroupItemsGeneralStyle.BgImgPos_c='';
- Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
- Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImage_o='https://lh3.googleusercontent.com/-xwngSsk45W4/UbPgdUCac_I/AAAAAAAAAxw/TFk5m3fpvh8/s23/orange-button-left.gif';
- Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImage_c='';
- Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImgPos='middle';
- Licencia01_MainGroupItemsGeneralStyle.RightPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
- Licencia01_MainGroupItemsGeneralStyle.RightPartBgImage_o='https://lh4.googleusercontent.com/-KOl0Xa2QlgU/UbPgd8thkbI/AAAAAAAAAyM/XqORi1DuHL0/s23/orange-button-right.gif';
- Licencia01_MainGroupItemsGeneralStyle.RightPartBgImage_c='';
- Licencia01_MainGroupItemsGeneralStyle.RightPartBgImgPos='middle';
- Licencia01_MainGroupItemsGeneralStyle.FontColor='#391A4D';
- Licencia01_MainGroupItemsGeneralStyle.FontColor_o='#FFFFFF';
- Licencia01_MainGroupItemsGeneralStyle.FontColor_c='';
- Licencia01_MainGroupItemsGeneralStyle.FontFamily='Tahoma';
- Licencia01_MainGroupItemsGeneralStyle.FontFamily_o='';
- Licencia01_MainGroupItemsGeneralStyle.FontFamily_c='';
- Licencia01_MainGroupItemsGeneralStyle.FontSize=11;
- Licencia01_MainGroupItemsGeneralStyle.FontSize_o=null;
- Licencia01_MainGroupItemsGeneralStyle.FontSize_c=null;
- Licencia01_MainGroupItemsGeneralStyle.FontDecoration='none';
- Licencia01_MainGroupItemsGeneralStyle.FontDecoration_o='none';
- Licencia01_MainGroupItemsGeneralStyle.FontDecoration_c='';
- Licencia01_MainGroupItemsGeneralStyle.FontWeight='normal';
- Licencia01_MainGroupItemsGeneralStyle.FontWeight_o='bold';
- Licencia01_MainGroupItemsGeneralStyle.FontWeight_c='';
- Licencia01_MainGroupItemsGeneralStyle.FontStyle='normal';
- Licencia01_MainGroupItemsGeneralStyle.FontStyle_o='';
- Licencia01_MainGroupItemsGeneralStyle.FontStyle_c='';
- Licencia01_MainGroupItemsGeneralStyle.BorderWidth=1;
- Licencia01_MainGroupItemsGeneralStyle.BorderWidth_o=null;
- Licencia01_MainGroupItemsGeneralStyle.BorderWidth_c=null;
- Licencia01_MainGroupItemsGeneralStyle.BorderColor='#000000';
- Licencia01_MainGroupItemsGeneralStyle.BorderColor_o='';
- Licencia01_MainGroupItemsGeneralStyle.BorderColor_c='';
- Licencia01_MainGroupItemsGeneralStyle.Border='none';
- Licencia01_MainGroupItemsGeneralStyle.Border_o='';
- Licencia01_MainGroupItemsGeneralStyle.Border_c='';
- Licencia01_MainGroupItemsGeneralStyle.BorderLeft=true;
- Licencia01_MainGroupItemsGeneralStyle.BorderRight=true;
- Licencia01_MainGroupItemsGeneralStyle.BorderTop=true;
- Licencia01_MainGroupItemsGeneralStyle.BorderBottom=true;
- Licencia01_MainGroupItemsGeneralStyle.SeparatorColor='#0080C0';
- Licencia01_MainGroupItemsGeneralStyle.SeparatorSize=1;
- Licencia01_MainGroupItemsGeneralStyle.LeftIcon='https://lh4.googleusercontent.com/-8Wx2ynF-ntA/UbPgdcAnxkI/AAAAAAAAAx0/IrEqxkwo6wI/s17/misamples_orange.gif';
- Licencia01_MainGroupItemsGeneralStyle.LeftIcon_o='';
- Licencia01_MainGroupItemsGeneralStyle.LeftIcon_c='';
- Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetX=0;
- Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetX_o=null;
- Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetX_c=null;
- Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetY=-6;
- Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetY_o=null;
- Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetY_c=null;
- Licencia01_MainGroupItemsGeneralStyle.LeftIconIsIndicator=false;
- Licencia01_MainGroupItemsGeneralStyle.RightIcon='https://lh3.googleusercontent.com/-gs2_8zK7oMk/UbPgc8HQymI/AAAAAAAAAxc/MOpjX2ZhGRI/s12/arrow11.gif';
- Licencia01_MainGroupItemsGeneralStyle.RightIcon_o='https://lh3.googleusercontent.com/-5qu7SQWP8rU/UbPgc90k0KI/AAAAAAAAAxg/mf_FHD5Afx4/s8/arrow34.gif';
- Licencia01_MainGroupItemsGeneralStyle.RightIcon_c='';
- Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetX=-10;
- Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetX_o=-6;
- Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetX_c=null;
- Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetY=-5;
- Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetY_o=-3;
- Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetY_c=null;
- Licencia01_MainGroupItemsGeneralStyle.RightIconIsIndicator=true;
- //Create submenu items style object. All menu items of submenus inherite style from this object
- var Licencia01_GroupItemsGeneralStyle = new Licencia01MenuItem();
- Licencia01_GroupItemsGeneralStyle.Text_o='';
- Licencia01_GroupItemsGeneralStyle.Text_c='';
- Licencia01_GroupItemsGeneralStyle.TextAlign='left';
- Licencia01_GroupItemsGeneralStyle.URL='';
- Licencia01_GroupItemsGeneralStyle.URLTarget='';
- Licencia01_GroupItemsGeneralStyle.Hint='';
- Licencia01_GroupItemsGeneralStyle.OnLeaveJS='';
- Licencia01_GroupItemsGeneralStyle.OnOverJS='';
- Licencia01_GroupItemsGeneralStyle.OnClickJS='';
- Licencia01_GroupItemsGeneralStyle.Height=25;
- Licencia01_GroupItemsGeneralStyle.Width=220;
- Licencia01_GroupItemsGeneralStyle.Cursor='default';
- Licencia01_GroupItemsGeneralStyle.PaddingLeft=25;
- Licencia01_GroupItemsGeneralStyle.PaddingLeft_o=25;
- Licencia01_GroupItemsGeneralStyle.PaddingTop=5;
- Licencia01_GroupItemsGeneralStyle.PaddingTop_o=null;
- Licencia01_GroupItemsGeneralStyle.PaddingRight=5;
- Licencia01_GroupItemsGeneralStyle.PaddingRight_o=null;
- Licencia01_GroupItemsGeneralStyle.PaddingBottom=5;
- Licencia01_GroupItemsGeneralStyle.PaddingBottom_o=null;
- Licencia01_GroupItemsGeneralStyle.BgColor='';
- Licencia01_GroupItemsGeneralStyle.BgColor_o='';
- Licencia01_GroupItemsGeneralStyle.BgColor_c='';
- Licencia01_GroupItemsGeneralStyle.BgImage='http://img1.imagilive.com/0613/blank1x1.gif';
- Licencia01_GroupItemsGeneralStyle.BgImage_o='https://lh4.googleusercontent.com/-nMiVkGHjz2s/UbPgdcJ33hI/AAAAAAAAAyA/WoMWZg98I0w/s23/orange-button-center.gif';
- Licencia01_GroupItemsGeneralStyle.BgImage_c='';
- Licencia01_GroupItemsGeneralStyle.BgImgRep='repeat-x';
- Licencia01_GroupItemsGeneralStyle.BgImgRep_o='';
- Licencia01_GroupItemsGeneralStyle.BgImgRep_c='';
- Licencia01_GroupItemsGeneralStyle.BgImgPos='left center';
- Licencia01_GroupItemsGeneralStyle.BgImgPos_o='';
- Licencia01_GroupItemsGeneralStyle.BgImgPos_c='';
- Licencia01_GroupItemsGeneralStyle.LeftPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
- Licencia01_GroupItemsGeneralStyle.LeftPartBgImage_o='https://lh3.googleusercontent.com/-xwngSsk45W4/UbPgdUCac_I/AAAAAAAAAxw/TFk5m3fpvh8/s23/orange-button-left.gif';
- Licencia01_GroupItemsGeneralStyle.LeftPartBgImage_c='';
- Licencia01_GroupItemsGeneralStyle.LeftPartBgImgPos='middle';
- Licencia01_GroupItemsGeneralStyle.RightPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
- Licencia01_GroupItemsGeneralStyle.RightPartBgImage_o='https://lh4.googleusercontent.com/-KOl0Xa2QlgU/UbPgd8thkbI/AAAAAAAAAyM/XqORi1DuHL0/s23/orange-button-right.gif';
- Licencia01_GroupItemsGeneralStyle.RightPartBgImage_c='';
- Licencia01_GroupItemsGeneralStyle.RightPartBgImgPos='middle';
- Licencia01_GroupItemsGeneralStyle.FontColor='#391A4D';
- Licencia01_GroupItemsGeneralStyle.FontColor_o='#FFFFFF';
- Licencia01_GroupItemsGeneralStyle.FontColor_c='';
- Licencia01_GroupItemsGeneralStyle.FontFamily='Tahoma';
- Licencia01_GroupItemsGeneralStyle.FontFamily_o='';
- Licencia01_GroupItemsGeneralStyle.FontFamily_c='';
- Licencia01_GroupItemsGeneralStyle.FontSize=11;
- Licencia01_GroupItemsGeneralStyle.FontSize_o=null;
- Licencia01_GroupItemsGeneralStyle.FontSize_c=null;
- Licencia01_GroupItemsGeneralStyle.FontDecoration='none';
- Licencia01_GroupItemsGeneralStyle.FontDecoration_o='none';
- Licencia01_GroupItemsGeneralStyle.FontDecoration_c='';
- Licencia01_GroupItemsGeneralStyle.FontWeight='normal';
- Licencia01_GroupItemsGeneralStyle.FontWeight_o='bold';
- Licencia01_GroupItemsGeneralStyle.FontWeight_c='';
- Licencia01_GroupItemsGeneralStyle.FontStyle='normal';
- Licencia01_GroupItemsGeneralStyle.FontStyle_o='';
- Licencia01_GroupItemsGeneralStyle.FontStyle_c='';
- Licencia01_GroupItemsGeneralStyle.BorderWidth=1;
- Licencia01_GroupItemsGeneralStyle.BorderWidth_o=null;
- Licencia01_GroupItemsGeneralStyle.BorderWidth_c=null;
- Licencia01_GroupItemsGeneralStyle.BorderColor='#000000';
- Licencia01_GroupItemsGeneralStyle.BorderColor_o='';
- Licencia01_GroupItemsGeneralStyle.BorderColor_c='';
- Licencia01_GroupItemsGeneralStyle.Border='none';
- Licencia01_GroupItemsGeneralStyle.Border_o='';
- Licencia01_GroupItemsGeneralStyle.Border_c='';
- Licencia01_GroupItemsGeneralStyle.BorderLeft=true;
- Licencia01_GroupItemsGeneralStyle.BorderRight=true;
- Licencia01_GroupItemsGeneralStyle.BorderTop=true;
- Licencia01_GroupItemsGeneralStyle.BorderBottom=true;
- Licencia01_GroupItemsGeneralStyle.SeparatorColor='#0080C0';
- Licencia01_GroupItemsGeneralStyle.SeparatorSize=1;
- Licencia01_GroupItemsGeneralStyle.LeftIcon='https://lh4.googleusercontent.com/-8Wx2ynF-ntA/UbPgdcAnxkI/AAAAAAAAAx0/IrEqxkwo6wI/s17/misamples_orange.gif';
- Licencia01_GroupItemsGeneralStyle.LeftIcon_o='';
- Licencia01_GroupItemsGeneralStyle.LeftIcon_c='';
- Licencia01_GroupItemsGeneralStyle.LeftIconOffsetX=0;
- Licencia01_GroupItemsGeneralStyle.LeftIconOffsetX_o=null;
- Licencia01_GroupItemsGeneralStyle.LeftIconOffsetX_c=null;
- Licencia01_GroupItemsGeneralStyle.LeftIconOffsetY=-6;
- Licencia01_GroupItemsGeneralStyle.LeftIconOffsetY_o=null;
- Licencia01_GroupItemsGeneralStyle.LeftIconOffsetY_c=null;
- Licencia01_GroupItemsGeneralStyle.LeftIconIsIndicator=false;
- Licencia01_GroupItemsGeneralStyle.RightIcon='https://lh3.googleusercontent.com/-gs2_8zK7oMk/UbPgc8HQymI/AAAAAAAAAxc/MOpjX2ZhGRI/s12/arrow11.gif';
- Licencia01_GroupItemsGeneralStyle.RightIcon_o='https://lh3.googleusercontent.com/-5qu7SQWP8rU/UbPgc90k0KI/AAAAAAAAAxg/mf_FHD5Afx4/s8/arrow34.gif';
- Licencia01_GroupItemsGeneralStyle.RightIcon_c='';
- Licencia01_GroupItemsGeneralStyle.RightIconOffsetX=-10;
- Licencia01_GroupItemsGeneralStyle.RightIconOffsetX_o=-6;
- Licencia01_GroupItemsGeneralStyle.RightIconOffsetX_c=null;
- Licencia01_GroupItemsGeneralStyle.RightIconOffsetY=-5;
- Licencia01_GroupItemsGeneralStyle.RightIconOffsetY_o=-3;
- Licencia01_GroupItemsGeneralStyle.RightIconOffsetY_c=null;
- Licencia01_GroupItemsGeneralStyle.RightIconIsIndicator=true;
- //Create submenus style object - All submenus inherite style from this object
- var Licencia01_GroupStyle = new Licencia01MenuGroup();
- Licencia01_GroupStyle.Width=180;
- Licencia01_GroupStyle.MenuGroupAlign=0;
- Licencia01_GroupStyle.Opacity=100;
- Licencia01_GroupStyle.ShowDropDownControl=false;
- Licencia01_GroupStyle.InitDropdownState=1;
- Licencia01_GroupStyle.ItemsPadding_L=3;
- Licencia01_GroupStyle.ItemsPadding_R=3;
- Licencia01_GroupStyle.ItemsPadding_T=10;
- Licencia01_GroupStyle.ItemsPadding_B=5;
- Licencia01_GroupStyle.ItemsSpacing=3;
- Licencia01_GroupStyle.BgColor='#FFFFFF';
- Licencia01_GroupStyle.BgImage='https://lh5.googleusercontent.com/-dTY74u8LVHs/UbPgd7tCihI/AAAAAAAAAyE/9N9CjpOwBPw/s496/twice-color-blue.gif';
- Licencia01_GroupStyle.BgImgPos='top left';
- Licencia01_GroupStyle.BgImgRep='repeat';
- Licencia01_GroupStyle.Border='solid';
- Licencia01_GroupStyle.BorderWidth=3;
- Licencia01_GroupStyle.BorderColor='#0080C0';
- Licencia01_GroupStyle.HeaderText='Header';
- Licencia01_GroupStyle.HeaderTextAlign='center';
- Licencia01_GroupStyle.HeaderTextOffsetX=0;
- Licencia01_GroupStyle.HeaderTextOffsetY=4;
- Licencia01_GroupStyle.HeaderHeight=20;
- Licencia01_GroupStyle.HeaderBgColor='';
- Licencia01_GroupStyle.HeaderIconOffsetX=3;
- Licencia01_GroupStyle.HeaderIconOffsetY=3;
- Licencia01_GroupStyle.HeaderBgImgRep='repeat-x';
- Licencia01_GroupStyle.HeaderBgImgPos='top left';
- Licencia01_GroupStyle.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
- Licencia01_GroupStyle.FontColor='#400080';
- Licencia01_GroupStyle.FontSize=11;
- Licencia01_GroupStyle.FontDecoration='none';
- Licencia01_GroupStyle.FontWeight='bolder';
- Licencia01_GroupStyle.FontStyle='normal';
- Licencia01_GroupStyle.DropdownImageExpand='';
- Licencia01_GroupStyle.DropdownImageCollapse='';
- Licencia01_GroupStyle.OnGroupShowJS='';
- Licencia01_GroupStyle.OnGroupHideJS='';
- Licencia01_GroupStyle.AnimationType=0;
- Licencia01_GroupStyle.AnimationTimeout=8;
- //Create main menu
- var Licencia01_mg_ID1 = new Licencia01MenuGroup(0,0,'V');
- Licencia01_mg_ID1.id='Licencia01_mg_ID1';
- Licencia01_mg_ID1.IsMainGroup=1;
- Licencia01_mg_ID1.BgColor='#FFFFFF';
- Licencia01_mg_ID1.Width=225;
- Licencia01_mg_ID1.Opacity=100;
- Licencia01_mg_ID1.ShowDropDownControl=false;
- Licencia01_mg_ID1.InitDropdownState=1;
- Licencia01_mg_ID1.ItemsPadding_L=3;
- Licencia01_mg_ID1.ItemsPadding_R=3;
- Licencia01_mg_ID1.ItemsPadding_T=7;
- Licencia01_mg_ID1.ItemsPadding_B=5;
- Licencia01_mg_ID1.ItemsSpacing=3;
- Licencia01_mg_ID1.Embedding='relative';
- Licencia01_mg_ID1.z=1000;
- Licencia01_mg_ID1.BgImage='https://lh5.googleusercontent.com/-dTY74u8LVHs/UbPgd7tCihI/AAAAAAAAAyE/9N9CjpOwBPw/s496/twice-color-blue.gif';
- Licencia01_mg_ID1.BgImgPos='top right';
- Licencia01_mg_ID1.BgImgRep='repeat';
- Licencia01_mg_ID1.Border='solid';
- Licencia01_mg_ID1.BorderWidth=3;
- Licencia01_mg_ID1.BorderColor='#0080C0';
- Licencia01_mg_ID1.HeaderText='Categorias';
- Licencia01_mg_ID1.HeaderTextAlign='center';
- Licencia01_mg_ID1.HeaderTextOffsetX=0;
- Licencia01_mg_ID1.HeaderTextOffsetY=4;
- Licencia01_mg_ID1.HeaderHeight=20;
- Licencia01_mg_ID1.HeaderBgColor='';
- Licencia01_mg_ID1.HeaderIconOffsetX=3;
- Licencia01_mg_ID1.HeaderIconOffsetY=3;
- Licencia01_mg_ID1.HeaderBgImgRep='repeat-x';
- Licencia01_mg_ID1.HeaderBgImgPos='top left';
- Licencia01_mg_ID1.DropdownImageExpand='';
- Licencia01_mg_ID1.DropdownImageCollapse='';
- Licencia01_mg_ID1.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
- Licencia01_mg_ID1.FontColor='#000080';
- Licencia01_mg_ID1.FontSize=11;
- Licencia01_mg_ID1.FontDecoration='none';
- Licencia01_mg_ID1.FontWeight='bolder';
- Licencia01_mg_ID1.FontStyle='normal';
- //Create new menu item
- var Licencia01_i_ID5 = new Licencia01MenuItem('Utilidades PC');
- Licencia01_i_ID5.id='Licencia01_i_ID5';
- Licencia01_i_ID5.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID5.Text_o=' Utilidades PC';
- Licencia01_i_ID5.Text_c='';
- Licencia01_i_ID5.URL='http://licenciaantivirus.blogspot.com/search/label/Utilidades%20PC';
- Licencia01_i_ID5.URLTarget='_blank';
- Licencia01_i_ID5.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID5);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID17 = new Licencia01MenuItem('Gestión de lectura');
- Licencia01_i_ID17.id='Licencia01_i_ID17';
- Licencia01_i_ID17.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID17.Text_o='';
- Licencia01_i_ID17.Text_c='';
- Licencia01_i_ID17.URL='http://licenciaantivirus.blogspot.com/search/label/Gesti%C3%B3n%20de%20lectura';
- Licencia01_i_ID17.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID17);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID21 = new Licencia01MenuItem('Edicion de Fotos');
- Licencia01_i_ID21.id='Licencia01_i_ID21';
- Licencia01_i_ID21.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID21.Text_o='';
- Licencia01_i_ID21.Text_c='';
- Licencia01_i_ID21.URL='http://licenciaantivirus.blogspot.com/search/label/Edicion%20de%20Fotos';
- Licencia01_i_ID21.URLTarget='_blank';
- Licencia01_i_ID21.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID21);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID22 = new Licencia01MenuItem('Grabar/quemar discos');
- Licencia01_i_ID22.id='Licencia01_i_ID22';
- Licencia01_i_ID22.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID22.Text_o='';
- Licencia01_i_ID22.Text_c='';
- Licencia01_i_ID22.URL='http://licenciaantivirus.blogspot.com/search/label/Grabar%20o%20quemar%20discos';
- Licencia01_i_ID22.URLTarget='_blank';
- Licencia01_i_ID22.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID22);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID23 = new Licencia01MenuItem('Juegos Ps2');
- Licencia01_i_ID23.id='Licencia01_i_ID23';
- Licencia01_i_ID23.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID23.Text_o='';
- Licencia01_i_ID23.Text_c='';
- Licencia01_i_ID23.URL='http://licenciaantivirus.blogspot.com/search/label/Juegos%20ps2';
- Licencia01_i_ID23.URLTarget='_blank';
- Licencia01_i_ID23.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID23);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID24 = new Licencia01MenuItem('Reproductor Multimedia');
- Licencia01_i_ID24.id='Licencia01_i_ID24';
- Licencia01_i_ID24.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID24.Text_o='';
- Licencia01_i_ID24.Text_c='';
- Licencia01_i_ID24.URL='http://licenciaantivirus.blogspot.com/search/label/Reproductor%20Multimedia';
- Licencia01_i_ID24.URLTarget='_blank';
- Licencia01_i_ID24.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID24);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID25 = new Licencia01MenuItem('Antivirus');
- Licencia01_i_ID25.id='Licencia01_i_ID25';
- Licencia01_i_ID25.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID25.Text_o='';
- Licencia01_i_ID25.Text_c='';
- Licencia01_i_ID25.URL='http://licenciaantivirus.blogspot.com/search/label/Antivirus';
- Licencia01_i_ID25.URLTarget='_blank';
- Licencia01_i_ID25.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID25);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID26 = new Licencia01MenuItem('Juegos PC');
- Licencia01_i_ID26.id='Licencia01_i_ID26';
- Licencia01_i_ID26.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID26.Text_o='';
- Licencia01_i_ID26.Text_c='';
- Licencia01_i_ID26.URL='http://licenciaantivirus.blogspot.com/search/label/JUEGOS%20PC';
- Licencia01_i_ID26.URLTarget='_blank';
- Licencia01_i_ID26.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID26);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID27 = new Licencia01MenuItem('Nintendo DS');
- Licencia01_i_ID27.id='Licencia01_i_ID27';
- Licencia01_i_ID27.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID27.Text_o='';
- Licencia01_i_ID27.Text_c='';
- Licencia01_i_ID27.URL='http://licenciaantivirus.blogspot.com/search/label/NDS';
- Licencia01_i_ID27.URLTarget='_blank';
- Licencia01_i_ID27.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID27);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID28 = new Licencia01MenuItem('Compresor Archivos');
- Licencia01_i_ID28.id='Licencia01_i_ID28';
- Licencia01_i_ID28.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID28.Text_o='';
- Licencia01_i_ID28.Text_c='';
- Licencia01_i_ID28.URL='http://licenciaantivirus.blogspot.com/search/label/Compresor%20Archivos';
- Licencia01_i_ID28.URLTarget='_blank';
- Licencia01_i_ID28.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID28);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID29 = new Licencia01MenuItem('Programación ');
- Licencia01_i_ID29.id='Licencia01_i_ID29';
- Licencia01_i_ID29.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID29.Text_o='';
- Licencia01_i_ID29.Text_c='';
- Licencia01_i_ID29.URL='http://licenciaantivirus.blogspot.com/search/label/Programaci%C3%B3n';
- Licencia01_i_ID29.URLTarget='_blank';
- Licencia01_i_ID29.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID29);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID30 = new Licencia01MenuItem('Edición Audio');
- Licencia01_i_ID30.id='Licencia01_i_ID30';
- Licencia01_i_ID30.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID30.Text_o='';
- Licencia01_i_ID30.Text_c='';
- Licencia01_i_ID30.URL='http://licenciaantivirus.blogspot.com/search/label/Audio';
- Licencia01_i_ID30.URLTarget='_blank';
- Licencia01_i_ID30.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID30);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID31 = new Licencia01MenuItem('Analizar Sistema');
- Licencia01_i_ID31.id='Licencia01_i_ID31';
- Licencia01_i_ID31.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID31.Text_o='';
- Licencia01_i_ID31.Text_c='';
- Licencia01_i_ID31.URL='http://licenciaantivirus.blogspot.com/search/label/Analizador%20del%20sistema';
- Licencia01_i_ID31.URLTarget='_blank';
- Licencia01_i_ID31.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID31);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID32 = new Licencia01MenuItem('Anime');
- Licencia01_i_ID32.id='Licencia01_i_ID32';
- Licencia01_i_ID32.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID32.Text_o='';
- Licencia01_i_ID32.Text_c='';
- Licencia01_i_ID32.URL='http://licenciaantivirus.blogspot.com/search/label/Anime';
- Licencia01_i_ID32.URLTarget='_blank';
- Licencia01_i_ID32.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID32);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID33 = new Licencia01MenuItem('Peliculas');
- Licencia01_i_ID33.id='Licencia01_i_ID33';
- Licencia01_i_ID33.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID33.Text_o='';
- Licencia01_i_ID33.Text_c='';
- Licencia01_i_ID33.URL='http://licenciaantivirus.blogspot.com/search/label/Peliculas';
- Licencia01_i_ID33.URLTarget='_blank';
- Licencia01_i_ID33.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID33);//Add menu item to the menu group
- //Create new menu item
- var Licencia01_i_ID36 = new Licencia01MenuItem('Sistemas Operativos');
- Licencia01_i_ID36.id='Licencia01_i_ID36';
- Licencia01_i_ID36.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
- Licencia01_i_ID36.Text_o='';
- Licencia01_i_ID36.Text_c='';
- Licencia01_i_ID36.URL='http://licenciaantivirus.blogspot.com/search/label/Sistemas%20operarivos';
- Licencia01_i_ID36.URLTarget='_blank';
- Licencia01_i_ID36.Hint='';
- Licencia01_mg_ID1.AddItem(Licencia01_i_ID36);//Add menu item to the menu group
- Licencia01_mg_ID1.Visibility='visible';
- document.write('<div style="position:absolute; z-index:1000;" align="left">');
- document.write(Licencia01_mg_ID1.ToStr()); //Print the menu to the document
- document.write('</div>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement