Advertisement
jozz

NewCaterr

Jun 8th, 2013
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 98.88 KB | None | 0 0
  1. //-----------------------------------------------------------------------
  2. //- Created by the Agama Web Menus - generator ver 2.21
  3. //- Copyright MP Software (c)2008
  4. //- Can I use this script? See http://www.agama-menu.com
  5. //-----------------------------------------------------------------------
  6.  
  7. //Global Misc Object
  8. var Licencia01MiscFunc = {
  9. ie : true,
  10. ns2 : false,
  11. ns3 : false,
  12. ns4 : false,
  13. ns4up : false,
  14. ns5 : false,
  15. ns5up : false,
  16. moz7 : false,
  17. ie3 : false,
  18. ie4 : false,
  19. ie5 : false,
  20. ie55: false,
  21. ie6 : false,
  22. op3 : false,
  23. op4 : false,
  24. op5 : false,
  25. op6 : false,
  26. op6up: false,
  27. Tmpinit:false,
  28.  
  29. //sniff the browser type
  30. InitVars : function () {
  31. this.Tmpinit=true;
  32. var agt = navigator.userAgent.toLowerCase();
  33. var major = parseInt(navigator.appVersion);
  34. var minor = parseFloat(navigator.appVersion);
  35. var navI = navigator.appVersion.substring(22,25);
  36. var nav = ((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1));
  37. this.ns2 = (nav&&(major==2))?true:false;
  38. this.ns3 = (nav&&(major==3))?true:false;
  39. this.ns4 = (nav&&(major==4))?true:false;
  40. this.ns4up = (nav&&(major>=4))?true:false;
  41. this.ns5 = (nav&&(major==5))?true:false;
  42. this.ns5up = (nav&&(major>=5))?true:false;
  43. this.moz7 = (nav&&(agt.indexOf('netscape6')==-1))?true:false;
  44. var ie = (agt.indexOf("msie")!=-1)?true:false;
  45. this.ie=ie;
  46. this.ie3 = (ie&&(major<4))?true:false;
  47. this.ie4 = (ie&&(agt.indexOf("msie 4")!=-1))?true:false;
  48. this.ie5 = (ie&&navI=='5.0')?true:false;
  49. this.ie55 = (ie&&navI=='5.5')?true:false;
  50. this.ie6 = (ie&&navI=='6.0')?true:false;
  51. var op3 = (agt.indexOf("opera")!=-1)?true:false;
  52. this.op3=op3;
  53. var op4 = (op3&&(agt.indexOf("opera 4")!=-1))?true:false;
  54. this.op4=op4;
  55. 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;
  56. this.op5=op5;
  57. var op6 = (op5&&(agt.indexOf("opera 6.0")!=-1))?true:false;
  58. this.op6=op6;
  59. var op6up = (op6&&(major>6))?true:false;
  60. this.op6up=op6up;
  61. return;
  62. },
  63.  
  64. //safe get object in nn4
  65. getObjNN4 : function (obj,name)
  66. {
  67. if (!this.init){this.InitVars()}
  68. var x = obj.layers;
  69. var foundLayer;
  70. for (var i=0;i<x.length;i++)
  71. {
  72. if (x[i].id == name)
  73. foundLayer = x[i];
  74. else if (x[i].layers.length)
  75. var tmp = this.getObjNN4(x[i],name);
  76. if (tmp) foundLayer = tmp;
  77. }
  78. return foundLayer;
  79. },
  80.  
  81. //get true element height
  82. getElementHeight : function (Elem) {
  83. if (!this.init){this.InitVars()}
  84. if (this.ns4) {
  85. var elem = this.getObjNN4(document, Elem);
  86. return elem.clip.height;
  87. } else {
  88. if(document.getElementById) {
  89. var elem = document.getElementById(Elem);
  90. } else if (document.all){
  91. var elem = document.all[Elem];
  92. }
  93. xPos = elem.offsetHeight;
  94. return xPos;
  95. }
  96. },
  97.  
  98. //get true element width
  99. getElementWidth : function(Elem) {
  100. if (!this.init){this.InitVars()}
  101. if (this.ns4) {
  102. var elem = this.getObjNN4(document, Elem);
  103. return elem.clip.width;
  104. } else {
  105. if(document.getElementById) {
  106. var elem = document.getElementById(Elem);
  107. } else if (document.all){
  108. var elem = document.all[Elem];
  109. }
  110. xPos = elem.offsetWidth;
  111. return xPos;
  112. }
  113. },
  114.  
  115. //get true element left position
  116. getElementLeft : function (Elem) {
  117. if (!this.init){this.InitVars()}
  118. if (this.ns4) {
  119. var elem = this.getObjNN4(document, Elem);
  120. return elem.pageX;
  121. } else {
  122. var elem;
  123. if(document.getElementById) {
  124. var elem = document.getElementById(Elem);
  125. } else if (document.all){
  126. var elem = document.all[Elem];
  127. }
  128. xPos = elem.offsetLeft;
  129. tempEl = elem.offsetParent;
  130. while (tempEl != null) {
  131. xPos += tempEl.offsetLeft;
  132. if ((tempEl.style.position=='absolute') || (tempEl.style.position=='relative')){break}
  133. tempEl = tempEl.offsetParent;
  134. }
  135. return xPos;
  136. }
  137. },
  138.  
  139.  
  140. //get true element top position
  141. getElementTop : function (Elem) {
  142. if (!this.init){this.InitVars()}
  143. if (this.ns4) {
  144. var elem = this.getObjNN4(document, Elem);
  145. return elem.pageY;
  146. } else {
  147. if(document.getElementById) {
  148. var elem = document.getElementById(Elem);
  149. } else if (document.all) {
  150. var elem = document.all[Elem];
  151. }
  152. yPos = elem.offsetTop;
  153. tempEl = elem.offsetParent;
  154. while (tempEl != null){
  155. yPos += tempEl.offsetTop;
  156. if ((tempEl.style.position=='absolute') || (tempEl.style.position=='relative')){break}
  157. tempEl = tempEl.offsetParent;
  158. }
  159. return yPos;
  160. }
  161. }
  162. };
  163.  
  164. Licencia01MiscFunc.InitVars();
  165.  
  166. //--------------------------------------------------------
  167. //class menuGrouphandler
  168. //--------------------------------------------------------
  169. var Licencia01MenuGroupHandler = {
  170. //---private vars
  171. MenuTimeout : 500,
  172. ObjectsCount : 0,//counter of submenus
  173. ObjectsArray : Array(), //all submenus storage
  174. idCounter : 0, //submenus internal unique counter
  175. idPrefix : "menu_group_",//submenus name prefix
  176. TimerCloseAllGroupID : 0, //timer id for clean all submenus
  177. TimerAnimateID : 0, //timer id animation
  178. TmpGroupToShow : '', //temp storage of just animated submenu
  179. LC : '2507082254',//license code
  180. SubmenusDisAppearMode:0,//submenus disappear mode
  181.  
  182.  
  183.  
  184. GetId:function() { //return self id
  185. return this.idPrefix + this.idCounter++;
  186. },
  187.  
  188. FindGroup:function(id){ //return the submenu by the id
  189. for (i=1; i<= this.ObjectsCount; i++){
  190. if (this.ObjectsArray[i].id==id) {
  191. return(this.ObjectsArray[i]);
  192. }
  193. }
  194. },
  195.  
  196. DoOnMouseOver:function(id){//submenu mouse over event
  197. window.clearTimeout(this.TimerCloseAllGroupID);
  198. //repair visual state of items when mouse over the same item but another item sumbenu is shown
  199. gr=this.FindGroup(id);
  200. if (gr){
  201. if (gr.RefererItem){
  202. if (gr.RefererItem.OwnerGroup){
  203. for (i=1; i<= gr.RefererItem.OwnerGroup.Count; i++){
  204. if (gr.RefererItem.OwnerGroup.Items[i]==gr.RefererItem)
  205. {
  206. gr.RefererItem.OwnerGroup.Items[i].SetItemState(1);
  207. }
  208. else
  209. {
  210. gr.RefererItem.OwnerGroup.Items[i].SetItemState(0);
  211. }
  212. }
  213. }
  214. }
  215. }
  216. },
  217.  
  218. DoOnMouseOut:function(id){ //submenu mouse out event
  219. window.clearTimeout(this.TimerCloseAllGroupID);
  220.  
  221. this.TimerCloseAllGroupID = window.setTimeout("Licencia01MenuGroupHandler.CloseAllGroup()", Licencia01MenuGroupHandler.MenuTimeout);
  222.  
  223. },
  224.  
  225. DoOnMouseMove:function(id){return},
  226. DoOnMouseDown:function(id){return},
  227. DoOnMouseUp:function(id){return},
  228.  
  229. FlipDropDown:function(id){ //flip the submenu dropdown state
  230. gr=this.FindGroup(id.substring(8));
  231. if (gr){
  232. gr.FlipDropDown();
  233. }
  234. },
  235.  
  236. CloseGroup:function(id){//close submenu
  237.  
  238. gr=this.FindGroup(id);
  239. if (gr!=null){
  240. gr.CloseGroupRecurse();
  241. }
  242.  
  243. },
  244.  
  245. CloseAllGroup:function(){//close all submenus
  246. this.TmpGroupToShow=null;
  247. window.clearTimeout(this.TimerAnimateID);
  248. for (i=1; i<= this.ObjectsCount; i++){
  249. if (this.ObjectsArray[i]){
  250. if (this.ObjectsArray[i].IsMainGroup ==0){
  251. this.ObjectsArray[i].HideGroup();
  252. this.ObjectsArray[i].AnimationControlValue = this.ObjectsArray[i].AnimationTo; //????
  253. }
  254. else
  255. {
  256. for (n=1; n<= this.ObjectsArray[i].Count; n++){
  257. this.ObjectsArray[i].Items[n].SetItemState(0);
  258. }
  259. }
  260. }
  261. }
  262. },
  263.  
  264.  
  265.  
  266. ShowWithTargetOpacity:function(){ //appear submenu
  267. if (this.TmpGroupToShow != null){
  268. gr=this.FindGroup(this.TmpGroupToShow);
  269. if (gr){
  270. if (gr.AnimationType==100){
  271. gr.AnimationControlValue= gr.AnimationTo;
  272. obj=document.getElementById(gr.id);
  273. obj.style.MozOpacity = gr.Opacity/100 ;
  274. obj.style.filter = 'alpha(opacity=' + gr.Opacity + ')';
  275. obj.style.opacity=gr.Opacity/100;
  276. }
  277. }
  278. }
  279. },
  280.  
  281. DoAnimation:function(){//appear submenu with using animation - multiple called by timer
  282. if (this.TmpGroupToShow != null){
  283. gr=this.FindGroup(this.TmpGroupToShow);
  284. if (gr){
  285. obj=document.getElementById(gr.id);
  286. objt=document.getElementById(gr.id+'_table');
  287.  
  288. if ((gr.AnimationType>0) && (!Licencia01MiscFunc.ie)){//non IE browsers does not support filter animation
  289. gr.AnimationType=100;
  290. }
  291.  
  292. switch (gr.AnimationType){
  293. // browser independency animation -->
  294. case 0:{//simple show - all browser compatible
  295. obj.style.visibility='visible';
  296. objt.style.visibility='visible';
  297.  
  298. //show orphans elements
  299. for (this.i=1; this.i<= gr.Count; this.i++){
  300. gr.Items[this.i].ShowOrphans();
  301. }
  302.  
  303. //call custom JS code
  304. if (gr.OnGroupShowJS!=''){
  305. eval(gr.OnGroupShowJS);
  306. }
  307.  
  308. return;
  309. }//end case 0
  310.  
  311. case 100:{//fade in - all browser compatible
  312.  
  313. if (gr.AnimationControlValue==20){
  314. //show orphans elements once on start of animation
  315. for (this.i=1; this.i<= gr.Count; this.i++){
  316. gr.Items[this.i].ShowOrphans();
  317. }
  318. }
  319.  
  320. if ((gr.AnimationControlValue <= gr.AnimationTo) && (gr.AnimationControlValue<=gr.Opacity)){
  321. obj.style.visibility='visible';
  322. objt.style.visibility='visible';
  323. obj.style.MozOpacity = (gr.AnimationControlValue / gr.AnimationTo );
  324. obj.style.filter = 'alpha(opacity=' + gr.AnimationControlValue + ')';
  325. obj.style.opacity=(gr.AnimationControlValue / gr.AnimationTo );
  326.  
  327. //calculate next time
  328. gr.AnimationControlValue=gr.AnimationControlValue+(gr.AnimationStep);
  329. this.TimerAnimateID = window.setTimeout("Licencia01MenuGroupHandler.DoAnimation()",gr.AnimationTimeout * (gr.AnimationTo/(gr.Opacity/2)));
  330. return;
  331. }
  332.  
  333. //call custom JS code
  334. if (gr.OnGroupShowJS!=''){
  335. eval(gr.OnGroupShowJS);
  336. }
  337.  
  338. return;
  339. }//end case 100
  340. }//end switch
  341.  
  342. //IE5+ animations
  343.  
  344. //show orphans elements
  345. for (this.i=1; this.i<= gr.Count; this.i++){
  346. gr.Items[this.i].ShowOrphans();
  347. }
  348.  
  349. if (obj.filters) {
  350. dur=(gr.AnimationTimeout * (gr.AnimationTo / gr.AnimationStep)) / 1500;
  351. obj.style.filter='revealTrans(duration='+dur+', transition='+gr.AnimationType+')';
  352. obj.filters.revealTrans.apply();//gr.AnimationType;
  353. obj.style.visibility='visible'; //allways show
  354. objt.style.visibility='visible';
  355. obj.filters.revealTrans.play();
  356. }
  357. else
  358. { obj.style.visibility='visible';}
  359.  
  360. //call custom JS code
  361. if (gr.OnGroupShowJS!=''){
  362. eval(gr.OnGroupShowJS);
  363. }
  364. }
  365. }
  366. }
  367.  
  368. }; //end class Licencia01MenuGroupHandler
  369.  
  370.  
  371.  
  372. //------------------------------------------------------------
  373. //class menuItemhandler
  374. //------------------------------------------------------------
  375. var Licencia01MenuItemHandler = {
  376. ObjectsCount : 0,//items counter
  377. ObjectsArray : Array(), //array of all items
  378. idCounter : 0,
  379. idPrefix : "menu_item_",
  380.  
  381. GetId : function() { //return self id
  382. return this.idPrefix + this.idCounter++;
  383. },
  384.  
  385. FindItem : function(id) {//find item by id in array
  386. for (i=1; i<= this.ObjectsCount; i++){
  387. if (this.ObjectsArray[i].id==id) {
  388. return(this.ObjectsArray[i]);
  389. }
  390. }
  391. },
  392.  
  393. FindItemByGroup: function(GroupID){//find item which is parent of specified submenu
  394. for (i=1; i<= this.ObjectsCount; i++){
  395. if (this.ObjectsArray[i].Group.id==GroupID) {
  396. return(this.ObjectsArray[i]);
  397. }
  398. }
  399. },
  400.  
  401. DoOnMouseOver : function(id){//item on mouse over event
  402. mi=this.FindItem(id);
  403. mi.SetItemState(1);
  404.  
  405. //reset state of each items
  406. for (i=1; i<= mi.OwnerGroup.Count; i++){
  407. if (mi.OwnerGroup.Items[i]!=mi){
  408. mi.OwnerGroup.Items[i].SetItemState(0);
  409. }
  410. }
  411.  
  412. //close all groups recursively - only if focused menu item have submenu
  413. if (mi.Group != null || Licencia01MenuGroupHandler.SubmenusDisAppearMode==0){
  414. for (i=1; i<= mi.OwnerGroup.Count; i++){
  415. if ((mi.OwnerGroup.Items[i]!=mi) && (mi.OwnerGroup.Items[i].Group!=null)){
  416. obj=document.getElementById(mi.OwnerGroup.Items[i].Group.id);
  417. if ((obj != null) && (obj.style.visibility=='visible')){
  418. Licencia01MenuGroupHandler.CloseGroup(obj.id);
  419. }
  420. }
  421. }
  422. }
  423.  
  424. if (mi.Group != null){
  425. //finish prev animation
  426. Licencia01MenuGroupHandler.ShowWithTargetOpacity();
  427. //Show new group
  428.  
  429. mi.Group.ShowGroup();//show new submenu
  430.  
  431. }
  432. },
  433.  
  434. DoOnMouseMove: function(id) {},
  435. DoOnMouseOut : function (id) {},
  436. DoOnMouseDown: function(id){
  437. mi=this.FindItem(id);
  438. mi.SetItemState(2);//activate click state
  439. },
  440.  
  441. DoOnMouseUp: function(id){
  442. mi=this.FindItem(id);
  443. mi.SetItemState(1);//back to over state
  444. },
  445.  
  446. Navigate: function(id){ //navigation
  447.  
  448. mi=this.FindItem(id);
  449. eval(mi.OnClickJS);//user custom JS command when item is clicked
  450. if (mi.URL>''){
  451. if (mi.URLTarget==''){self.location.href= mi.URL} else //self frame
  452. if (mi.URLTarget=='_top'){top.location.href = mi.URL;} else
  453. if (mi.URLTarget=='_parent'){parent.location.href= mi.URL;}else
  454. if (mi.URLTarget=='_self'){self.location.href= mi.URL} else
  455. {
  456. if (top.frames[mi.URLTarget]){top.frames[mi.URLTarget].location.href= mi.URL} else
  457. if (self.frames[mi.URLTarget]){self.frames[mi.URLTarget].location.href= mi.URL} else
  458. {//new window
  459. window.open(mi.URL,mi.URLTarget);
  460. }
  461. }
  462. }
  463. }
  464.  
  465.  
  466. }; //end class menuhandler
  467.  
  468.  
  469.  
  470.  
  471. //--------------------------------------------------------------------------------------
  472. //--------------------------------------------------------------------------------------
  473. // class Licencia01MenuGroupAncestor
  474. //--------------------------------------------------------------------------------------
  475. //--------------------------------------------------------------------------------------
  476.  
  477. //--------------------------------------------------------------------------------------
  478. // Licencia01MenuGroupAncestor - Constructor
  479. //--------------------------------------------------------------------------------------
  480. function Licencia01MenuGroupAncestor () {
  481. this.Width = 300;
  482. this.Height= 1;
  483. this.Opacity=100;
  484. this.Embedding='absolute';
  485. this.Drifting=0;
  486. this.OnGroupShowJS='';
  487. this.OnGroupHideJS='';
  488. this.BgColor= '#FFFFFF';
  489. this.BgImage='';
  490. this.BgImgPos='center';
  491. this.BgImgRep='no-repeat';
  492. this.Border='solid';
  493. this.BorderWidth='1';
  494. this.BorderColor='#000000';
  495. this.ShadowWidth=0; //TODO
  496. this.ShadowColor='#999999';//TODO
  497. this.ShadowTransparency=50;//TODO
  498. this.ItemsSpacing=0;
  499. this.ItemsPadding_L=2;
  500. this.ItemsPadding_R=2;
  501. this.ItemsPadding_T=2;
  502. this.ItemsPadding_B=2;
  503. this.HeaderText='';
  504. this.HeaderTextAlign='center';
  505. this.HeaderTextOffsetX=0;
  506. this.HeaderTextOffsetY=0;
  507. this.HeaderHeight=0;
  508. this.HeaderBgColor='#125500';
  509. this.HeaderIcon='';
  510. this.HeaderIconOffsetX=10;
  511. this.HeaderIconOffsetY=0;
  512. this.HeaderBgImage='';
  513. this.HeaderBgImgPos='';
  514. this.HeaderBgImgRep='';
  515. this.FontFamily='';
  516. this.FontColor='';
  517. this.FontSize='';
  518. this.FontDecoration='';
  519. this.FontWeight='';
  520. this.FontStyle='';
  521. this.MenuGroupAlign=0;
  522. this.z=1000;
  523. this.Visibility='hidden';
  524. this.AnimationTimeout=20; //animation speed
  525. this.AnimationType=100; //animation type: 0=no animation, 100=fade (browser indenpedent), 1..99 IE animation type
  526. this.ShowDropDownControl=false;
  527. this.InitDropdownState=1;
  528. this.DropdownImageExpand='';
  529. this.DropdownImageCollapse='';
  530. }
  531.  
  532.  
  533. //--------------------------------------------------------------------------------------
  534. //--------------------------------------------------------------------------------------
  535. // Class MenuGroup
  536. //--------------------------------------------------------------------------------------
  537. //--------------------------------------------------------------------------------------
  538.  
  539. //--------------------------------------------------------------------------------------
  540. // MenuGroup will inherite from Licencia01MenuGroupAncestor;
  541. //--------------------------------------------------------------------------------------
  542. Licencia01MenuGroup.prototype = new Licencia01MenuGroupAncestor;
  543.  
  544. //--------------------------------------------------------------------------------------
  545. // MenuGroup - constructor
  546. //--------------------------------------------------------------------------------------
  547. function Licencia01MenuGroup(ShiftX,ShiftY,Lay) {
  548. this.Layout= Lay || 'V'; //V=vertical, H=horizontal
  549. this.x=ShiftX || 0;
  550. this.y=ShiftY || 0;
  551. //------------------------------------------
  552. //internal vars, Do not touch this values! -->
  553. //------------------------------------------
  554. this.Tmp1=0;//temp var
  555. this.AnimationStep=4; //animation increment (granularity) - subjective determined
  556. this.AnimationFrom=0; //start of animation - typically 1
  557. this.AnimationTo=100; //end of animation - typically 100 but fade animation will stop with opacity value
  558. this.AnimationControlValue=20;//animation temp value, do not touch it!
  559. this.TmpMainDivStyle='';//retezec stylu Divu
  560. this.TargetPosX=this.x; // menu x position
  561. this.TargetPosY=this.y; //menu y position
  562. this.DefaultTop=0;
  563. this.DefaultLeft=0;
  564. this.Count=0;
  565. this.IsMainGroup=0;
  566. this.Items = [];
  567. this.id = Licencia01MenuGroupHandler.GetId();
  568. this.RefererItem = null;
  569. this.Preload_DropdownImageExpand=new Image();
  570. this.Preload_DropdownImageCollapse=new Image();
  571. Licencia01MenuGroupHandler.ObjectsCount=Licencia01MenuGroupHandler.ObjectsCount+1;
  572. Licencia01MenuGroupHandler.ObjectsArray[Licencia01MenuGroupHandler.ObjectsCount]=this;
  573. }
  574.  
  575. //--------------------------------------------------------------------------------------
  576. // Copy values from another menu group
  577. //--------------------------------------------------------------------------------------
  578. Licencia01MenuGroup.prototype.Assign=function Assign(s)
  579. {
  580. this.Width= s.Width;
  581. this.Height= s.Height;
  582. this.Opacity= s.Opacity;
  583. this.Embedding= s.Embedding;
  584. this.Drifting= s.Drifting;
  585. this.OnGroupShowJS= s.OnGroupShowJS;
  586. this.OnGroupHideJS= s.OnGroupHideJS;
  587. this.BgColor= s.BgColor;
  588. this.BgImage= s.BgImage;
  589. this.BgImgPos= s.BgImgPos;
  590. this.BgImgRep= s.BgImgRep;
  591. this.Border= s.Border;
  592. this.BorderWidth= s.BorderWidth;
  593. this.BorderColor= s.BorderColor;
  594. this.ShadowWidth= s.ShadowWidth;
  595. this.ShadowColor= s.ShadowColor;
  596. this.ShadowTransparency=s.ShadowTransparency;
  597. this.ItemsSpacing= s.ItemsSpacing;
  598. this.ItemsPadding_L= s.ItemsPadding_L;
  599. this.ItemsPadding_R= s.ItemsPadding_R;
  600. this.ItemsPadding_T= s.ItemsPadding_T;
  601. this.ItemsPadding_B= s.ItemsPadding_B;
  602. this.HeaderText= s.HeaderText;
  603. this.HeaderTextAlign= s.HeaderTextAlign;
  604. this.HeaderTextOffsetX= s.HeaderTextOffsetX;
  605. this.HeaderTextOffsetY= s.HeaderTextOffsetY;
  606. this.HeaderHeight= s.HeaderHeight;
  607. this.HeaderBgColor= s.HeaderBgColor;
  608. this.HeaderIcon= s.HeaderIcon;
  609. this.HeaderIconOffsetX= s.HeaderIconOffsetX;
  610. this.HeaderIconOffsetY= s.HeaderIconOffsetY;
  611. this.HeaderBgImage= s.HeaderBgImage;
  612. this.HeaderBgImgPos= s.HeaderBgImgPos;
  613. this.HeaderBgImgRep= s.HeaderBgImgRep;
  614. this.FontFamily= s.FontFamily;
  615. this.FontColor= s.FontColor;
  616. this.FontSize= s.FontSize;
  617. this.FontDecoration= s.FontDecoration;
  618. this.FontWeight= s.FontWeight;
  619. this.FontStyle= s.FontStyle;
  620. this.MenuGroupAlign= s.MenuGroupAlign;
  621. this.z= s.z;
  622. this.Visibility= s.Visibility;
  623. this.AnimationTimeout= s.AnimationTimeout;
  624. this.AnimationType= s.AnimationType;
  625. this.ShowDropDownControl=s.ShowDropDownControl;
  626. this.InitDropdownState=s.InitDropdownState;
  627. this.DropdownImageExpand=s.DropdownImageExpand;
  628. this.DropdownImageCollapse=s.DropdownImageCollapse;
  629. this.MenuAlign=s.MenuAlign;
  630. };
  631.  
  632. //--------------------------------------------------------------------------------------
  633. // Method PreloadImages
  634. //--------------------------------------------------------------------------------------
  635. Licencia01MenuGroup.prototype.PreloadImages= function PreloadImages() {
  636. this.Preload_DropdownImageExpand.src=this.DropdownImageExpand;
  637. this.Preload_DropdownImageCollapse.src=this.DropdownImageCollapse;
  638. };
  639.  
  640. //--------------------------------------------------------------------------------------
  641. // Method AddItem
  642. //--------------------------------------------------------------------------------------
  643. Licencia01MenuGroup.prototype.AddItem= function AddItem(Item) {
  644. this.Count++;
  645. this.Items[this.Count]=Item;
  646. Item.OwnerGroup=this;
  647. };
  648.  
  649.  
  650. //--------------------------------------------------------------------------------------
  651. // Method ExpandDropDown
  652. //--------------------------------------------------------------------------------------
  653. Licencia01MenuGroup.prototype.Preset= function Preset(ItemIndex,State) {
  654. if ((ItemIndex >=1) && (ItemIndex <= this.Count)){
  655. for (i=1; i<= this.Count; i++){
  656. if (i==ItemIndex){
  657. this.Items[i].IsPreset=true;
  658. this.Items[i].PresetState=State;
  659. this.Items[i].SetItemState(State);
  660. }
  661. else
  662. {
  663. this.Items[i].IsPreset=false;
  664. this.Items[i].SetItemState(0);
  665. }
  666. }
  667. }
  668. };
  669.  
  670.  
  671. //--------------------------------------------------------------------------------------
  672. // Method ExpandDropDown
  673. //--------------------------------------------------------------------------------------
  674. Licencia01MenuGroup.prototype.ExpandDropDown= function ExpandDropDown() {
  675. dropimg=document.getElementById('dropimg_'+this.id);
  676. bodydiv=document.getElementById(this.id+'_itemtablecover');
  677. if(bodydiv)
  678. {
  679. if ((bodydiv.style.visibility!='visible')&&(bodydiv.style.visibility!=''))
  680. {
  681. bodydiv.style.display='block';
  682. bodydiv.style.visibility='visible';
  683. if(dropimg){
  684. dropimg.src=this.Preload_DropdownImageCollapse.src;
  685. }
  686. }
  687. }
  688. };
  689.  
  690.  
  691. //--------------------------------------------------------------------------------------
  692. // Method CollapseDropDown
  693. //--------------------------------------------------------------------------------------
  694. Licencia01MenuGroup.prototype.CollapseDropDown= function CollapseDropDown() {
  695. dropimg=document.getElementById('dropimg_'+this.id);
  696. bodydiv=document.getElementById(this.id+'_itemtablecover');
  697. if(bodydiv)
  698. {
  699. if ((bodydiv.style.visibility=='visible')||(bodydiv.style.visibility==''))
  700. { //Hide body
  701. bodydiv.style.display='none';
  702. bodydiv.style.visibility='hidden';
  703. if(dropimg){
  704. dropimg.src=this.Preload_DropdownImageExpand.src;
  705. }
  706. }
  707. }
  708. };
  709.  
  710.  
  711. //--------------------------------------------------------------------------------------
  712. // Method FlipDropDown
  713. //--------------------------------------------------------------------------------------
  714. Licencia01MenuGroup.prototype.FlipDropDown= function FlipDropDown() {
  715. dropimg=document.getElementById('dropimg_'+this.id);
  716. bodydiv=document.getElementById(this.id+'_itemtablecover');
  717. if(bodydiv)
  718. {
  719. if ((bodydiv.style.visibility=='visible')||(bodydiv.style.visibility==''))
  720. { //Hide body
  721. bodydiv.style.display='none';
  722. bodydiv.style.visibility='hidden';
  723. if(dropimg){
  724. dropimg.src=this.Preload_DropdownImageExpand.src;
  725. }
  726. }
  727. else
  728. { //Show
  729. bodydiv.style.display='block';
  730. bodydiv.style.visibility='visible';
  731. if(dropimg){
  732. dropimg.src=this.Preload_DropdownImageCollapse.src;
  733. }
  734. }
  735. }
  736. };
  737.  
  738.  
  739.  
  740. //--------------------------------------------------------------------------------------
  741. // Method ToStr
  742. //--------------------------------------------------------------------------------------
  743. Licencia01MenuGroup.prototype.ToStr= function ToStr(){
  744. //preload images
  745. this.PreloadImages();
  746.  
  747. //calculate group subelements Width and Height
  748. //we must calculate the width of group in dependence of menu items width when the menu has horizontal layout
  749. if (this.Layout=='H')
  750. {
  751. maxwidth=0;
  752. widthsum=0;
  753.  
  754. for (i=1; i<= this.Count; i++){
  755. if (this.Items[i].Width>maxwidth){
  756. maxwidth=this.Items[i].Width;
  757. }
  758. widthsum=widthsum+this.Items[i].Width;
  759. }
  760. this.Width=widthsum;
  761. }
  762.  
  763. if (document.compatMode && document.compatMode == "BackCompat" && Licencia01MiscFunc.ie){
  764. MainDivWidth=this.Width-this.ItemsPadding_L-this.ItemsPadding_R;
  765. HeaderWidth=this.Width;
  766. TableWidth=MainDivWidth;
  767. }
  768. else
  769. {
  770. MainDivWidth=this.Width;
  771. HeaderWidth=MainDivWidth;
  772. TableWidth=this.Width-this.ItemsPadding_L-this.ItemsPadding_R;
  773. }
  774.  
  775. //concate main DIV styles string --->
  776. SetPosition=true;
  777. if (this.Embedding=='default'){this.Embedding='absolute'; SetPosition=false}
  778. if (this.IsMainGroup==0){this.Embedding='absolute'}
  779.  
  780. //positioning -->
  781. if (SetPosition){
  782. this.TmpMainDivStyle='position: '+this.Embedding+'; left: '+this.TargetPosX+'px; top: '+this.TargetPosY+'px; ';
  783. }
  784. else
  785. {
  786. this.TmpMainDivStyle='position: '+this.Embedding+'; ';
  787. }
  788.  
  789. this.TmpMainDivStyle=this.TmpMainDivStyle+'z-index: '+this.z+'; visibility: '+this.Visibility+'; '; //visibility
  790. this.TmpMainDivStyle=this.TmpMainDivStyle+'width: '+MainDivWidth+'px; ';//width
  791. this.TmpMainDivStyle=this.TmpMainDivStyle+'border-width: '+this.BorderWidth+'px; border-style: '+this.Border+'; border-color: '+this.BorderColor+'; '; //border
  792. this.TmpMainDivStyle=this.TmpMainDivStyle+'background-color: '+this.BgColor+'; ';//bck color
  793. this.TmpMainDivStyle=this.TmpMainDivStyle+'background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; '; //bck image
  794. if (this.Opacity<100){this.TmpMainDivStyle=this.TmpMainDivStyle+'filter:alpha(opacity='+this.Opacity+'); -moz-opacity:'+this.Opacity+'; opacity:'+(this.Opacity/100)+'; '}; //final opacity
  795.  
  796. //concate header styles string
  797. this.TmpHedStyle=' padding:0px; margin:0px; height: '+this.HeaderHeight+'px; ';
  798. this.TmpHedStyle=this.TmpHedStyle+'width: '+HeaderWidth+'px; ';
  799. this.TmpHedStyle=this.TmpHedStyle+'background-color: '+this.HeaderBgColor+'; ';
  800. this.TmpHedStyle=this.TmpHedStyle+'background-image: url('+this.HeaderBgImage+'); background-position: '+this.HeaderBgImgPos+'; background-repeat: '+this.HeaderBgImgRep+'; ';
  801.  
  802. //concate subheader styles string
  803. this.TmpSubHedStyle='position: relative; left: '+this.HeaderTextOffsetX+'px; top: '+this.HeaderTextOffsetY+'px; '; //pozicovani textu subheader
  804. this.TmpSubHedStyle=this.TmpSubHedStyle+'font-family: '+this.FontFamily+' ; font-style: '+this.FontStyle+'; font-size: '+this.FontSize+'px; font-weight: '+this.FontWeight+'; '; //parametry fontu
  805. this.TmpSubHedStyle=this.TmpSubHedStyle+'color: '+this.FontColor+' ; text-decoration: '+this.FontDecoration+'; ';//parametry fontu
  806.  
  807. //concate cover of table
  808. 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
  809.  
  810. //concate table atributes string
  811. this.TableAttr='width="'+TableWidth+'" cellpadding="0" cellspacing="0" border="0"';
  812.  
  813. //build string of dropdown images
  814. if(this.ShowDropDownControl)
  815. {
  816. this.TmpDropDown='<img onclick="Licencia01MenuGroupHandler.FlipDropDown(this.id);" id="dropimg_'+this.id+'" hspace="5" src="';
  817. if (this.InitDropdownState==1){
  818. this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageCollapse.src;//image for collapse state
  819. } else{
  820. this.TmpDropDown=this.TmpDropDown+this.Preload_DropdownImageExpand.src;//image for expanded
  821. this.TmpTableCover=this.TmpTableCover+' visibility: hidden; display: none; ';
  822. }
  823. this.TmpDropDown=this.TmpDropDown+'" >';
  824. }
  825. else {
  826. this.TmpDropDown=(this.HeaderText)?'&nbsp;':'';
  827. }
  828.  
  829. //concate main DIV of menu group
  830. 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()">';
  831.  
  832. //build header icon
  833. if (this.HeaderIcon){
  834. 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!
  835. };
  836.  
  837. //concate header string
  838. 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
  839.  
  840. //concate item table div cover
  841. TmpStr=TmpStr+'<div id="'+this.id+'_itemtablecover" style="'+this.TmpTableCover+'">';
  842.  
  843. //concate item table
  844. if (this.Layout=='H') {
  845. TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table"><TR>';
  846. //TmpEndStr='<TD>x</TD></TR valign="top"></TABLE>';
  847. TmpEndStr='</TR valign="top"></TABLE>';
  848. }
  849. else
  850. {
  851. TmpStr=TmpStr+'<TABLE '+this.TableAttr+' id="'+this.id+'_table">';
  852. TmpEndStr='</TABLE>';
  853. }
  854.  
  855.  
  856. //each menu item return self code with using method ToStr()
  857. for (i=1; i<= this.Count; i++){
  858. this.Items[i].LastItem=false;
  859. if (i==this.Count){
  860. this.Items[i].LastItem=true;//mark if is last item in group, if is it, the menu separator will not applyed
  861. }
  862. TmpStr=TmpStr+this.Items[i].ToStr(this.Layout);
  863. }
  864.  
  865. //table finish string
  866. TmpStr=TmpStr+TmpEndStr;
  867.  
  868. //cover finish string
  869. TmpStr=TmpStr+'</div>';
  870.  
  871. //end of menu group
  872. TmpStr=TmpStr+'</DIV>';
  873.  
  874. //get each submenus code by recurse with using method ToStr()
  875. for (this.i=1; this.i<= this.Count; this.i++){
  876. if (this.Items[this.i].Group != null){
  877. TmpStr=TmpStr+this.Items[this.i].Group.ToStr();//print my submenu
  878. }
  879. }
  880.  
  881. //call custom JS code - OnGroupShowJS
  882. if ((this.OnGroupShowJS!='') && (this.Visibility) && (this.IsMainGroup)){
  883. eval(this.OnGroupShowJS);
  884. }
  885.  
  886. //return final code
  887. return(TmpStr);
  888. };
  889.  
  890.  
  891. //--------------------------------------------------------------------------------------
  892. // programming interface - Hide whole menu. Must be called as method of Main Menu
  893. //--------------------------------------------------------------------------------------
  894. Licencia01MenuGroup.prototype.HideMainMenu=function HideMainMenu(){
  895. if (this.IsMainGroup==1){
  896. obj=document.getElementById(this.id);
  897. if (obj){
  898. obj.style.visibility='hidden';
  899. for (i=1; i<= this.Count; i++){
  900. this.Items[i].HideOrphans();
  901. }
  902. }
  903. }
  904. };
  905.  
  906. //--------------------------------------------------------------------------------------
  907. // programming interface - Unhide whole menu. Must be called as method of Main Menu
  908. //--------------------------------------------------------------------------------------
  909. Licencia01MenuGroup.prototype.ShowMainMenu=function ShowMainMenu(){
  910. if (this.IsMainGroup==1){
  911. obj=document.getElementById(this.id);
  912. if (obj){
  913. obj.style.visibility='visible';
  914. for (i=1; i<= this.Count; i++){
  915. this.Items[i].ShowOrphans();
  916. }
  917. }
  918. }
  919. };
  920.  
  921. //--------------------------------------------------------------------------------------
  922. //CloseGroupRecurse
  923. //--------------------------------------------------------------------------------------
  924. Licencia01MenuGroup.prototype.CloseGroupRecurse=function CloseGroupRecurse(){
  925. this.HideGroup();
  926. for (this.i=1; this.i<= this.Count; this.i++){
  927. if (this.Items[this.i].Group != null){
  928. this.Items[this.i].Group.CloseGroupRecurse();
  929. }
  930. }
  931. };
  932.  
  933. //--------------------------------------------------------------------------------------
  934. //ShowGroupRecurse
  935. //--------------------------------------------------------------------------------------
  936. Licencia01MenuGroup.prototype.ShowGroupRecurse= function ShowGroupRecurse(){
  937. obj=document.getElementById(this.id);
  938. if (obj){
  939. obj.style.visibility='visible';
  940. }
  941.  
  942. if (this.IsMainGroup==0){
  943. this.ShowGroup();
  944. }
  945.  
  946. for (this.i=1; this.i<= this.Count; this.i++){
  947. if (this.Items[this.i].Group != null){
  948. this.Items[this.i].Group.ShowGroupRecurse();
  949. }
  950. }
  951. };
  952.  
  953.  
  954. //--------------------------------------------------------------------------------------
  955. // HideGroup
  956. //--------------------------------------------------------------------------------------
  957. Licencia01MenuGroup.prototype.HideGroup= function HideGroup(){
  958. //clear animation timeout
  959. window.clearTimeout(Licencia01MenuGroupHandler.TimerAnimateID);
  960. this.AnimationControlValue=20;
  961. obj=document.getElementById(this.id);
  962. objt=document.getElementById(this.id+'_table');
  963.  
  964. if (obj!=null)
  965. {
  966. //hide orphans element
  967. for (this.i=1; this.i<= this.Count; this.i++){
  968. this.Items[this.i].HideOrphans();
  969. }
  970.  
  971. if (obj.style.visibility!='hidden')
  972. {
  973. //hide table
  974. objt.style.visibility='hidden';
  975.  
  976. //hide group
  977. obj.style.visibility='hidden';
  978.  
  979. //call user custom JS code - OnGroupHideJS
  980. if (this.OnGroupHideJS!=''){
  981. eval(this.OnGroupHideJS);
  982. }
  983. }
  984. }
  985.  
  986.  
  987.  
  988.  
  989. };
  990.  
  991.  
  992.  
  993. //--------------------------------------------------------------------------------------
  994. // ShowGroup
  995. //--------------------------------------------------------------------------------------
  996. Licencia01MenuGroup.prototype.ShowGroup= function ShowGroup(){
  997. obj=document.getElementById(this.id);
  998. if (obj!=null){
  999.  
  1000. //calculate X and Y position before appear with using real DOM metrics in dependence MenuGroupAlign value
  1001. switch (this.MenuGroupAlign){
  1002. case 0: {//auto arrange
  1003.  
  1004. if (this.RefererItem.OwnerGroup.Layout=='V'){ //vertical owner group menu
  1005. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
  1006. Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
  1007. this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
  1008. this.x; //horizontal correction shift
  1009. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
  1010. this.y; //vertical correction shift
  1011.  
  1012. }
  1013. else
  1014. { //horizontal owner group menu
  1015. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
  1016. this.x; //horizontal correction shift
  1017.  
  1018. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
  1019. Licencia01MiscFunc.getElementHeight(this.RefererItem.id) + //owner item height
  1020. this.y ; //vertical correction shift
  1021. }
  1022.  
  1023. break;
  1024. }
  1025.  
  1026. case 1: {//Right-side Up
  1027. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
  1028. Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
  1029. this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
  1030. this.x; //horizontal correction shift
  1031. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
  1032. Licencia01MiscFunc.getElementHeight(this.id) + //self height
  1033. this.y ; //vertical correction shift
  1034. break;
  1035. }
  1036.  
  1037. case 2: {//Right-side Center
  1038. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
  1039. Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
  1040. this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
  1041. this.x; //horizontal correction shift
  1042. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
  1043. (Licencia01MiscFunc.getElementHeight(this.id) / 2) + //self half height
  1044. this.y ; //vertical correction shift
  1045. break;
  1046. }
  1047.  
  1048. case 3: {//Right-side Down
  1049. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) + //owner item position
  1050. Licencia01MiscFunc.getElementWidth(this.RefererItem.OwnerGroup.id) - //owner group width
  1051. this.RefererItem.OwnerGroup.ItemsPadding_L+//owner padding left
  1052. this.x; //horizontal correction shift
  1053. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
  1054. this.y; //vertical correction shift
  1055. break;
  1056. }
  1057.  
  1058. case 4: {//Left-side Up
  1059. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
  1060. Licencia01MiscFunc.getElementWidth(this.id) - //self group width
  1061. this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
  1062. this.x; //horizontal correction shift
  1063. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
  1064. Licencia01MiscFunc.getElementHeight(this.id) + //self height
  1065. this.y ; //vertical correction shift
  1066. break;
  1067. }
  1068.  
  1069. case 5: {//Left-side Center
  1070. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
  1071. Licencia01MiscFunc.getElementWidth(this.id) - //self group width
  1072. this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
  1073. this.x; //horizontal correction shift
  1074. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) - //owner item position
  1075. (Licencia01MiscFunc.getElementHeight(this.id) / 2) + //self half height
  1076. this.y ; //vertical correction shift
  1077. break;
  1078. }
  1079.  
  1080. case 6: {//Left-side Down
  1081. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.id) - //owner item position
  1082. Licencia01MiscFunc.getElementWidth(this.id) - //self group width
  1083. this.RefererItem.OwnerGroup.ItemsPadding_L -//owner padding left
  1084. this.x; //horizontal correction shift
  1085. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
  1086. this.y; //vertical correction shift
  1087. break;
  1088. }
  1089.  
  1090. case 7: {//Bottom Left
  1091. this.TargetPosX = Licencia01MiscFunc.getElementLeft(this.RefererItem.OwnerGroup.id) + //owner item position
  1092. this.x; //horizontal correction shift
  1093. this.TargetPosY = Licencia01MiscFunc.getElementTop(this.RefererItem.id) + //owner item position
  1094. Licencia01MiscFunc.getElementHeight(this.RefererItem.id) + //owner item height
  1095. this.y ; //vertical correction shift
  1096.  
  1097. break;
  1098. }
  1099. }
  1100.  
  1101. //set calculated position
  1102. obj.style.left = this.TargetPosX+'px';
  1103. obj.style.top = this.TargetPosY+'px';
  1104.  
  1105.  
  1106.  
  1107. if (obj.style.visibility=='hidden'){
  1108. //clear previous timer
  1109. window.clearTimeout(Licencia01MenuGroupHandler.TimerAnimateID);
  1110. //initial animation value
  1111. this.AnimationControlValue=20;
  1112. //store the menugroup to will show
  1113. Licencia01MenuGroupHandler.TmpGroupToShow=obj.id;
  1114. //reset menu items to base state
  1115. for (this.i=1; this.i<= this.Count; this.i++){
  1116. if (this.Items[this.i].LastItemState==1){
  1117. this.Items[this.i].SetItemState(0);
  1118. }
  1119. }
  1120. //start animation
  1121. Licencia01MenuGroupHandler.TimerAnimateID = window.setTimeout("Licencia01MenuGroupHandler.DoAnimation()",0);
  1122. }
  1123. }
  1124. };
  1125.  
  1126.  
  1127.  
  1128. //--------------------------------------------------------------------------------------
  1129. //--------------------------------------------------------------------------------------
  1130. // Class Licencia01MenuItemAncestor - Constructor
  1131. //--------------------------------------------------------------------------------------
  1132. //--------------------------------------------------------------------------------------
  1133.  
  1134. //--------------------------------------------------------------------------------------
  1135. // Licencia01MenuItemAncestor - Constructor
  1136. //--------------------------------------------------------------------------------------
  1137. function Licencia01MenuItemAncestor()
  1138. {
  1139. this.Text_o='';
  1140. this.Text_c='';
  1141. this.URL='';
  1142. this.URLTarget='';
  1143. this.Hint='';
  1144. this.OnLeaveJS='';
  1145. this.OnOverJS='';
  1146. this.OnClickJS='';
  1147. this.TextAlign='center';
  1148. this.TextVAlign='middle';
  1149. this.Cursor='default';
  1150. this.PaddingLeft=0;
  1151. this.PaddingLeft_o=0;
  1152. this.PaddingTop=0;
  1153. this.PaddingTop_o=0;
  1154. this.PaddingRight=0;
  1155. this.PaddingRight_o=0;
  1156. this.PaddingBottom=0;
  1157. this.PaddingBottom_o=0;
  1158. this.FontColor='';
  1159. this.FontColor_o='';
  1160. this.FontColor_c='';
  1161. this.FontFamily='';
  1162. this.FontFamily_o='';
  1163. this.FontFamily_c='';
  1164. this.FontSize=10;
  1165. this.FontSize_o='';
  1166. this.FontSize_c='';
  1167. this.FontDecoration='';
  1168. this.FontDecoration_o='';
  1169. this.FontDecoration_c='';
  1170. this.FontWeight='';
  1171. this.FontWeight_o='';
  1172. this.FontWeight_c='';
  1173. this.FontStyle='';
  1174. this.FontStyle_o='';
  1175. this.FontStyle_c='';
  1176. this.LeftIcon='';
  1177. this.LeftIcon_o='';
  1178. this.LeftIcon_c='';
  1179. this.LeftIconOffsetX=0;
  1180. this.LeftIconOffsetX_o=0;
  1181. this.LeftIconOffsetX_c=0;
  1182. this.LeftIconOffsetY=0;
  1183. this.LeftIconOffsetY_o=0;
  1184. this.LeftIconOffsetY_c=0;
  1185. this.LeftIconIsIndicator=false;
  1186. this.RightIcon='';
  1187. this.RightIcon_o='';
  1188. this.RightIcon_c='';
  1189. this.RightIconOffsetX=0;
  1190. this.RightIconOffsetX_o=0;
  1191. this.RightIconOffsetX_c=0;
  1192. this.RightIconOffsetY=0;
  1193. this.RightIconOffsetY_o=0;
  1194. this.RightIconOffsetY_c=0;
  1195. this.RightIconIsIndicator=true;
  1196. this.BgColor='';
  1197. this.BgColor_o='#44AA22';
  1198. this.BgColor_c='';
  1199. this.BgImage='';
  1200. this.BgImage_o='';
  1201. this.BgImage_c='';
  1202. this.BgImgPos='';
  1203. this.BgImgPos_o='';
  1204. this.BgImgPos_c='';
  1205. this.BgImgRep='';
  1206. this.BgImgRep_o='';
  1207. this.BgImgRep_c='';
  1208. this.LeftPartBgImgPos='';
  1209. this.LeftPartBgImage='';
  1210. this.LeftPartBgImage_o='';
  1211. this.LeftPartBgImage_c='';
  1212. this.RightPartBgImgPos='';
  1213. this.RightPartBgImage='';
  1214. this.RightPartBgImage_o='';
  1215. this.RightPartBgImage_c='';
  1216. this.Border='solid';
  1217. this.Border_o='solid';
  1218. this.Border_c='solid';
  1219. this.BorderWidth='1';
  1220. this.BorderWidth_o='1';
  1221. this.BorderWidth_c='1';
  1222. this.BorderColor='#0';
  1223. this.BorderColor_o='#0';
  1224. this.BorderColor_c='#0';
  1225. this.BorderLeft=true;
  1226. this.BorderRight=true;
  1227. this.BorderTop=true;
  1228. this.BorderBottom=true;
  1229. this.Height=10;
  1230. this.Width=100;
  1231. this.SeparatorSize=0;
  1232. this.SeparatorColor='Gray';
  1233. };
  1234.  
  1235.  
  1236.  
  1237. //--------------------------------------------------------------------------------------
  1238. //--------------------------------------------------------------------------------------
  1239. // Class MenuItem
  1240. //--------------------------------------------------------------------------------------
  1241. //--------------------------------------------------------------------------------------
  1242.  
  1243.  
  1244. //--------------------------------------------------------------------------------------
  1245. // MenuItem will inherite from Licencia01MenuItemAncestor
  1246. //--------------------------------------------------------------------------------------
  1247. Licencia01MenuItem.prototype = new Licencia01MenuItemAncestor;
  1248.  
  1249. //--------------------------------------------------------------------------------------
  1250. // MenuItem - Constructor
  1251. //--------------------------------------------------------------------------------------
  1252. function Licencia01MenuItem(Text) {
  1253. this.Text=Text;
  1254. //------------------------------------------
  1255. //internal vars. Do not set these values! -->
  1256. //------------------------------------------
  1257. this.id = Licencia01MenuItemHandler.GetId();
  1258. this.Group = null;
  1259. this.OwnerGroup=null;
  1260. this.Preload_BgImage=new Image();
  1261. this.Preload_BgImage_o=new Image();
  1262. this.Preload_BgImage_c=new Image();
  1263. this.Preload_BgImageLeft=new Image();
  1264. this.Preload_BgImageLeft_o=new Image();
  1265. this.Preload_BgImageLeft_c=new Image();
  1266. this.Preload_BgImageRight=new Image();
  1267. this.Preload_BgImageRight_o=new Image();
  1268. this.Preload_BgImageRight_c=new Image();
  1269. this.Preload_LeftIcon=new Image();
  1270. this.Preload_LeftIcon_o=new Image();
  1271. this.Preload_LeftIcon_c=new Image();
  1272. this.Preload_RightIcon=new Image();
  1273. this.Preload_RightIcon_o=new Image();
  1274. this.Preload_RightIcon_c=new Image();
  1275. this.LastItemState=-1;
  1276. this.IsPreset=false;
  1277. this.PresetState=2;
  1278. Licencia01MenuItemHandler.ObjectsCount=Licencia01MenuItemHandler.ObjectsCount+1;
  1279. Licencia01MenuItemHandler.ObjectsArray[Licencia01MenuItemHandler.ObjectsCount]=this;
  1280.  
  1281. };
  1282.  
  1283.  
  1284.  
  1285. //--------------------------------------------------------------------------------------
  1286. // Copy values from another item
  1287. //--------------------------------------------------------------------------------------
  1288. Licencia01MenuItem.prototype.Assign=function Assign(s)
  1289. {
  1290. this.URL= s.URL;
  1291. this.URLTarget= s.URLTarget;
  1292. this.Hint= s.Hint;
  1293. this.OnLeaveJS= s.OnLeaveJS;
  1294. this.OnOverJS= s.OnOverJS;
  1295. this.OnClickJS= s.OnClickJS;
  1296. this.TextAlign= s.TextAlign;
  1297. this.TextVAlign= s.TextVAlign;
  1298. this.Cursor= s.Cursor;
  1299. this.PaddingLeft= s.PaddingLeft;
  1300. this.PaddingLeft_o= s.PaddingLeft_o;
  1301. this.PaddingTop= s.PaddingTop;
  1302. this.PaddingTop_o= s.PaddingTop_o;
  1303. this.PaddingRight= s.PaddingRight;
  1304. this.PaddingRight_o= s.PaddingRight_o;
  1305. this.PaddingBottom= s.PaddingBottom;
  1306. this.PaddingBottom_o= s.PaddingBottom_o;
  1307. this.FontColor= s.FontColor;
  1308. this.FontColor_o= s.FontColor_o;
  1309. this.FontColor_c= s.FontColor_c;
  1310. this.FontFamily= s.FontFamily;
  1311. this.FontFamily_o= s.FontFamily_o;
  1312. this.FontFamily_c= s.FontFamily_c;
  1313. this.FontSize= s.FontSize;
  1314. this.FontSize_o= s.FontSize_o;
  1315. this.FontSize_c= s.FontSize_c;
  1316. this.FontDecoration= s.FontDecoration;
  1317. this.FontDecoration_o= s.FontDecoration_o;
  1318. this.FontDecoration_c= s.FontDecoration_c;
  1319. this.FontWeight= s.FontWeight;
  1320. this.FontWeight_o= s.FontWeight_o;
  1321. this.FontWeight_c= s.FontWeight_c;
  1322. this.FontStyle= s.FontStyle;
  1323. this.FontStyle_o= s.FontStyle_o;
  1324. this.FontStyle_c= s.FontStyle_c;
  1325. this.LeftIcon= s.LeftIcon;
  1326. this.LeftIcon_o= s.LeftIcon_o;
  1327. this.LeftIcon_c= s.LeftIcon_c;
  1328. this.LeftIconOffsetX= s.LeftIconOffsetX;
  1329. this.LeftIconOffsetX_o= s.LeftIconOffsetX_o;
  1330. this.LeftIconOffsetX_c= s.LeftIconOffsetX_c;
  1331. this.LeftIconOffsetY= s.LeftIconOffsetY;
  1332. this.LeftIconOffsetY_o= s.LeftIconOffsetY_o;
  1333. this.LeftIconOffsetY_c= s.LeftIconOffsetY_c;
  1334. this.LeftIconIsIndicator= s.LeftIconIsIndicator;
  1335. this.RightIcon= s.RightIcon;
  1336. this.RightIcon_o= s.RightIcon_o;
  1337. this.RightIcon_c= s.RightIcon_c;
  1338. this.RightIconOffsetX= s.RightIconOffsetX;
  1339. this.RightIconOffsetX_o= s.RightIconOffsetX_o;
  1340. this.RightIconOffsetX_c= s.RightIconOffsetX_c;
  1341. this.RightIconOffsetY= s.RightIconOffsetY;
  1342. this.RightIconOffsetY_o= s.RightIconOffsetY_o;
  1343. this.RightIconOffsetY_c= s.RightIconOffsetY_c;
  1344. this.RightIconIsIndicator=s.RightIconIsIndicator;
  1345. this.BgColor= s.BgColor;
  1346. this.BgColor_o= s.BgColor_o;
  1347. this.BgColor_c= s.BgColor_c;
  1348. this.BgImage= s.BgImage;
  1349. this.BgImage_o= s.BgImage_o;
  1350. this.BgImage_c= s.BgImage_c;
  1351. this.BgImgPos= s.BgImgPos;
  1352. this.BgImgPos_o= s.BgImgPos_o;
  1353. this.BgImgPos_c= s.BgImgPos_c;
  1354. this.BgImgRep= s.BgImgRep;
  1355. this.BgImgRep_o= s.BgImgRep_o;
  1356. this.BgImgRep_c= s.BgImgRep_c;
  1357. this.LeftPartBgImgPos= s.LeftPartBgImgPos;
  1358. this.LeftPartBgImage= s.LeftPartBgImage;
  1359. this.LeftPartBgImage_o= s.LeftPartBgImage_o;
  1360. this.LeftPartBgImage_c= s.LeftPartBgImage_c;
  1361. this.RightPartBgImgPos= s.RightPartBgImgPos;
  1362. this.RightPartBgImage= s.RightPartBgImage;
  1363. this.RightPartBgImage_o= s.RightPartBgImage_o;
  1364. this.RightPartBgImage_c= s.RightPartBgImage_c;
  1365. this.Border= s.Border;
  1366. this.Border_o= s.Border_o;
  1367. this.Border_c= s.Border_c;
  1368. this.BorderWidth= s.BorderWidth;
  1369. this.BorderWidth_o= s.BorderWidth_o;
  1370. this.BorderWidth_c= s.BorderWidth_c;
  1371. this.BorderColor= s.BorderColor;
  1372. this.BorderColor_o= s.BorderColor_o;
  1373. this.BorderColor_c= s.BorderColor_c;
  1374. this.BorderLeft= s.BorderLeft;
  1375. this.BorderRight= s.BorderRight;
  1376. this.BorderTop= s.BorderTop;
  1377. this.BorderBottom= s.BorderBottom;
  1378. this.Height= s.Height;
  1379. this.Width= s.Width;
  1380. this.SeparatorSize= s.SeparatorSize;
  1381. this.SeparatorColor= s.SeparatorColor;
  1382. };
  1383.  
  1384.  
  1385.  
  1386. //--------------------------------------------------------------------------------------
  1387. // Hide orphans images - non IE hack for Mozila, Netscape and other.
  1388. // Owner TD element is hidden but images stay visible :-(
  1389. //--------------------------------------------------------------------------------------
  1390. Licencia01MenuItem.prototype.HideOrphans=function HideOrphans(){
  1391. objRightIcon=document.getElementById(this.id+'_right_Icon_img');
  1392. objLeftIcon=document.getElementById(this.id+'_left_Icon_img');
  1393. if (objRightIcon){
  1394. objRightIcon.style.visibility='hidden';
  1395. objRightIcon.style.display='none';
  1396. }
  1397. if (objLeftIcon){
  1398. objLeftIcon.style.visibility='hidden';
  1399. objLeftIcon.style.display='none';
  1400. }
  1401.  
  1402. objRightIcon=document.getElementById(this.id+'_right_bg_img');
  1403. objLeftIcon=document.getElementById(this.id+'_left_bg_img');
  1404. if (objRightIcon){
  1405. objRightIcon.style.visibility='hidden';
  1406. objRightIcon.style.display='none';
  1407. }
  1408. if (objLeftIcon){
  1409. objLeftIcon.style.visibility='hidden';
  1410. objLeftIcon.style.display='none';
  1411. }
  1412. };
  1413.  
  1414. //--------------------------------------------------------------------------------------
  1415. // Show orphans images - non IE hack for Mozila, Netscape and other.
  1416. // Owner TD element is hidden but images stay visible :-(
  1417. //--------------------------------------------------------------------------------------
  1418. Licencia01MenuItem.prototype.ShowOrphans=function ShowOrphans(){
  1419. objRightIcon=document.getElementById(this.id+'_right_bg_img');
  1420. objLeftIcon=document.getElementById(this.id+'_left_bg_img');
  1421.  
  1422. if ((objRightIcon) && (this.RightPartBgImage>'')){
  1423. objRightIcon.style.visibility='visible';
  1424. objRightIcon.style.display='block';
  1425. }
  1426. if ((objLeftIcon) && (this.LeftPartBgImage>'')){
  1427. objLeftIcon.style.visibility='visible';
  1428. objLeftIcon.style.display='block';
  1429. }
  1430.  
  1431. objRightIcon=document.getElementById(this.id+'_right_Icon_img');
  1432. objLeftIcon=document.getElementById(this.id+'_left_Icon_img');
  1433. if ((objRightIcon) && (this.RightIcon > '')){
  1434. if (((this.RightIconIsIndicator) && (this.Group)) || (!this.RightIconIsIndicator)){
  1435. objRightIcon.style.visibility='visible';
  1436. objRightIcon.style.display='block';
  1437. }
  1438. }
  1439. if ((objLeftIcon) && (this.LeftIcon>'')){
  1440. if (((this.LeftIconIsIndicator) && (this.Group)) || (!this.LeftIconIsIndicator)){
  1441. objLeftIcon.style.visibility='visible';
  1442. objLeftIcon.style.display='block';
  1443. }
  1444. }
  1445. };
  1446.  
  1447.  
  1448.  
  1449. //--------------------------------------------------------------------------------------
  1450. // PreloadImages
  1451. //--------------------------------------------------------------------------------------
  1452. Licencia01MenuItem.prototype.PreloadImages= function PreloadImages() {
  1453. this.Preload_BgImage.src=this.BgImage;
  1454. this.Preload_BgImage_o.src=this.BgImage_o;
  1455. this.Preload_BgImage_c.src=this.BgImage_c;
  1456. this.Preload_BgImageLeft.src=this.LeftPartBgImage;
  1457. this.Preload_BgImageLeft_o.src=this.LeftPartBgImage_o;
  1458. this.Preload_BgImageLeft_c.src=this.LeftPartBgImage_c;
  1459. this.Preload_BgImageRight.src=this.RightPartBgImage;
  1460. this.Preload_BgImageRight_o.src=this.RightPartBgImage_o;
  1461. this.Preload_BgImageRight_c.src=this.RightPartBgImage_c;
  1462. this.Preload_LeftIcon.src=this.LeftIcon;
  1463. this.Preload_LeftIcon_o.src=this.LeftIcon_o;
  1464. this.Preload_LeftIcon_c.src=this.LeftIcon_c;
  1465. this.Preload_RightIcon.src=this.RightIcon;
  1466. this.Preload_RightIcon_o.src=this.RightIcon_o;
  1467. this.Preload_RightIcon_c.src=this.RightIcon_c;
  1468. };
  1469.  
  1470.  
  1471.  
  1472. //--------------------------------------------------------------------------------------
  1473. // ToStr
  1474. //--------------------------------------------------------------------------------------
  1475. Licencia01MenuItem.prototype.ToStr= function ToStr(Layout) {
  1476. var TmpStr=''; //target self source code - source code of single menu item of menu group table
  1477. var TmpTDAttr='';//main TD element attributes
  1478. var ItemCore='';//core of item - this variable owner the single item table
  1479. var TmpTDCSS=''; //css styles of main TD
  1480. var TmpCoreCentreTDStyle='';//styles of centre TD of single item table
  1481. this.Cursor=((this.URL)&&(this.Cursor=='auto'))?'pointer':this.Cursor;
  1482.  
  1483. //preload images
  1484. this.PreloadImages();
  1485.  
  1486. //--> set main TD attribute values
  1487. if (Layout=='H') {
  1488. TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" width="'+this.Width+'" valign="top" ' ; //the Width attribute will set for horizontal menu only
  1489. }
  1490. else
  1491. {
  1492. TmpTDAttr=TmpTDAttr+' height=' +'"'+ this.Height + '" valign="top" ' ;
  1493. }
  1494.  
  1495. //--> set main TD css styles
  1496. TmpTDCSS=' ';
  1497.  
  1498. //--> set Item core table css styles
  1499. TmpCoreTableCSS=' style="background-color: '+this.BgColor+'; color:'+this.FontColor+'; ';
  1500. TmpCoreTableCSS=TmpCoreTableCSS+' cursor : '+this.Cursor+'; ';
  1501.  
  1502. if (this.BorderLeft){TmpCoreTableCSS=TmpCoreTableCSS+' border-left-width: '+this.BorderWidth+'px; border-left-style:'+this.Border+'; border-left-color:'+this.BorderColor+'; ';}
  1503. if (this.BorderRight){TmpCoreTableCSS=TmpCoreTableCSS+' border-right-width: '+this.BorderWidth+'px; border-right-style:'+this.Border+'; border-right-color:'+this.BorderColor+'; ';}
  1504. if (this.BorderTop){TmpCoreTableCSS=TmpCoreTableCSS+' border-top-width: '+this.BorderWidth+'px; border-top-style:'+this.Border+'; border-top-color:'+this.BorderColor+'; ';}
  1505. if (this.BorderBottom){TmpCoreTableCSS=TmpCoreTableCSS+' border-bottom-width: '+this.BorderWidth+'px; border-bottom-style:'+this.Border+'; border-bottom-color:'+this.BorderColor+'; ';}
  1506. TmpCoreTableCSS=TmpCoreTableCSS+'" ';
  1507.  
  1508. //-->set style of centre TD of core
  1509. if (this.BgImgPos=='stretch'){
  1510. TmpCoreCentreTDStyle='style="';
  1511. }
  1512. else
  1513. {
  1514. TmpCoreCentreTDStyle='style="background-image: url('+this.BgImage+'); background-position: '+this.BgImgPos+'; background-repeat: '+this.BgImgRep+'; ';
  1515. }
  1516. TmpCoreCentreTDStyle=TmpCoreCentreTDStyle+'text-decoration: '+this.FontDecoration+'; font-family: '+this.FontFamily+'; font-size: '+this.FontSize+'px; font-style: '+this.FontStyle+'; font-weight: '+this.FontWeight+'; ';
  1517. TmpCoreCentreTDStyle=TmpCoreCentreTDStyle+'padding-left: '+this.PaddingLeft+'px; padding-top: '+this.PaddingTop+'px; padding-right: '+this.PaddingRight+'px; padding-bottom: '+this.PaddingBottom+'px; "';
  1518.  
  1519.  
  1520. //prepare icon source code -->
  1521. if (((this.RightIconIsIndicator) && (!this.Group)) || (!this.RightIcon)) {
  1522. TmpRimgVis='visibility : hidden; ';
  1523. } else {TmpRimgVis='';}
  1524.  
  1525. if (((this.LeftIconIsIndicator) && (!this.Group)) || (!this.LeftIcon)){
  1526. TmpLimgVis='visibility : hidden; ';
  1527. } else {TmpLimgVis='';}
  1528.  
  1529. if ((this.LeftIcon > '')||(this.LeftIcon_o > '')||(this.LeftIcon_c > '')) {
  1530. 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
  1531. } else {TmpLeftIconSource='';}
  1532.  
  1533. if ((this.RightIcon > '')||(this.RightIcon_o > '')||(this.RightIcon_c > '')){
  1534. 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
  1535. } else {TmpRightIconSource='';}
  1536.  
  1537.  
  1538. //prepare left and right background image source code
  1539. TmpLeftBgSource='';
  1540. TmpRightBgSource='';
  1541. LeftBgImgVis='';
  1542. RightBgImgVis='';
  1543.  
  1544. if ((this.LeftPartBgImage > '')||(this.LeftPartBgImage_o > '')||(this.LeftPartBgImage_c > ''))
  1545. {
  1546. if ((this.LeftPartBgImage >'')&&(this.OwnerGroup.IsMainGroup==1)) {LeftBgImgVis='visible';}else {LeftBgImgVis='hidden';};
  1547. 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+'">';
  1548. }
  1549.  
  1550. if ((this.RightPartBgImage > '')||(this.RightPartBgImage_o > '')||(this.RightPartBgImage_c > ''))
  1551. {
  1552. if ((this.RightPartBgImage>'')&&(this.OwnerGroup.IsMainGroup==1)){RightBgImgVis='visible';} else {RightBgImgVis='hidden';};
  1553. 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+'">';
  1554. }
  1555.  
  1556.  
  1557. //build source code item core -->
  1558. ItemCore='<table '+TmpCoreTableCSS+' id="'+this.id+'_core_table" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">';//start core table
  1559. ItemCore=ItemCore+'<tr>';//start core TR
  1560. ItemCore=ItemCore+'<td width="0" valign="middle">'+TmpLeftIconSource+'</td><td width="0" align="right" valign="'+this.LeftPartBgImgPos+'" >'+TmpLeftBgSource+'</td>'; //Left background image + Icon
  1561. 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
  1562. ItemCore=ItemCore+'<td width="0" align="left" valign="'+this.RightPartBgImgPos+'">'+TmpRightBgSource+'</td><td width="0" valign="middle">'+TmpRightIconSource+'</td>'; //Right backround image + Icon
  1563. ItemCore=ItemCore+'</tr>';//end core TR
  1564. ItemCore=ItemCore+'</table>';//end core table
  1565.  
  1566.  
  1567. //build the target item source code -->
  1568. if (Layout=='H') { //HORIZONTAL MENU KIND
  1569. 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)">';
  1570. TmpStr=TmpStr+ItemCore;
  1571. TmpStr=TmpStr+'</TD>';
  1572.  
  1573. // vertical separator and items distance
  1574. if (this.LastItem==false){
  1575. if (this.SeparatorSize > 0){
  1576. TmpStr=TmpStr+'<TD width="'+(this.OwnerGroup.ItemsSpacing /2) +'"></TD>';
  1577. TmpStr=TmpStr+'<TD bgcolor="'+this.SeparatorColor+'" width="'+this.SeparatorSize+'"></TD>';
  1578. TmpStr=TmpStr+'<TD width="'+(this.OwnerGroup.ItemsSpacing/2)+'"></TD>';
  1579. }
  1580. else
  1581. {
  1582. if (this.OwnerGroup.ItemsSpacing>0){
  1583. TmpStr=TmpStr+'<TD width="'+this.OwnerGroup.ItemsSpacing+'"></TD>';
  1584. }
  1585. }
  1586. }
  1587. }
  1588. else
  1589. { //VERTICAL MENU KIND
  1590. 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)">';
  1591.  
  1592. TmpStr=TmpStr+ItemCore;
  1593. TmpStr=TmpStr+'</TD></TR>';
  1594. // horizontal separator and items distance
  1595. if (this.LastItem==false){
  1596. TmpHRAttr='';
  1597. if (this.SeparatorSize > 0){
  1598. 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>';
  1599. }
  1600. TmpStr=TmpStr+'<TR valign="middle"><TD height="'+this.OwnerGroup.ItemsSpacing+'">'+TmpHRAttr+'</TD></TR>';
  1601. }
  1602. }
  1603. return(TmpStr);//return self source code
  1604. };
  1605.  
  1606.  
  1607. //--------------------------------------------------------------------------------------
  1608. // This method connect the submenu to the parent menu item
  1609. //--------------------------------------------------------------------------------------
  1610. Licencia01MenuItem.prototype.AddGroup= function AddGroup(SubGroup){
  1611. this.Group=SubGroup;
  1612. SubGroup.RefererItem=this;
  1613. };
  1614.  
  1615.  
  1616. //--------------------------------------------------------------------------------------
  1617. // Redraw item in dependence of state
  1618. // This method do change state of item
  1619. // state 0 = base
  1620. // state 1 = mouse over
  1621. // state 2 = mouse click
  1622. //--------------------------------------------------------------------------------------
  1623. Licencia01MenuItem.prototype.SetItemState= function SetItemState(State){
  1624.  
  1625. if (this.LastItemState==State)
  1626. {
  1627. return;
  1628. }
  1629. else
  1630. {
  1631. this.LastItemState=State;
  1632. }
  1633.  
  1634. if (this.IsPreset){
  1635. State=this.PresetState;
  1636. }
  1637.  
  1638. objCoreTable=document.getElementById(this.id+'_core_table');
  1639. objCoreTableTD=document.getElementById(this.id+'_core_table_td');
  1640. objLeftBgImg=document.getElementById(this.id+'_left_bg_img');
  1641. objRightBgImg=document.getElementById(this.id+'_right_bg_img');
  1642. objLeftIcon=document.getElementById(this.id+'_left_Icon_img');
  1643. objRightIcon=document.getElementById(this.id+'_right_Icon_img');
  1644.  
  1645. switch (State){
  1646. case 0:{//base state --------------------------------------------------
  1647.  
  1648. if (objCoreTableTD){
  1649. objCoreTableTD.innerHTML = this.Text;
  1650. }
  1651.  
  1652. if (objCoreTable){//core table style
  1653. //base background styles
  1654. objCoreTable.style.backgroundColor=this.BgColor;
  1655. objCoreTable.bgColor=this.BgColor;
  1656.  
  1657. //border styles
  1658. if (this.BorderLeft){
  1659. objCoreTable.style.borderLeftWidth=this.BorderWidth;
  1660. } else {objCoreTable.style.borderLeftWidth=0;}
  1661.  
  1662. if (this.BorderRight){
  1663. objCoreTable.style.borderRightWidth=this.BorderWidth;
  1664. } else {objCoreTable.style.borderRightWidth=0;}
  1665.  
  1666. if (this.BorderTop){
  1667. objCoreTable.style.borderTopWidth=this.BorderWidth;
  1668. } else {objCoreTable.style.borderTopWidth=0;}
  1669.  
  1670. if (this.BorderBottom){
  1671. objCoreTable.style.borderBottomWidth=this.BorderWidth;
  1672. } else {objCoreTable.style.borderBottomWidth=0;}
  1673.  
  1674. objCoreTable.style.borderStyle=this.Border;
  1675. objCoreTable.style.borderColor=this.BorderColor;
  1676. }
  1677.  
  1678. if (objCoreTableTD){//td table style
  1679. //text and font styles
  1680. objCoreTableTD.style.color=this.FontColor;
  1681. objCoreTableTD.style.fontFamily=this.FontFamily;
  1682. objCoreTableTD.style.fontSize=this.FontSize;
  1683. objCoreTableTD.style.textDecoration=this.FontDecoration;
  1684. objCoreTableTD.style.fontWeight=this.FontWeight;
  1685. objCoreTableTD.style.fontStyle=this.FontStyle;
  1686. //text padding styles
  1687. objCoreTableTD.style.paddingLeft=this.PaddingLeft;
  1688. objCoreTableTD.style.paddingRight=this.PaddingRight;
  1689. objCoreTableTD.style.paddingTop=this.PaddingTop;
  1690. objCoreTableTD.style.paddingBottom=this.PaddingBottom;
  1691. //center bg image
  1692. if (this.BgImage>''){
  1693. objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage.src+')';
  1694. objCoreTableTD.style.backgroundPosition=this.BgImgPos;
  1695. objCoreTableTD.style.backgroundRepeat=this.BgImgRep;
  1696. }
  1697. else
  1698. {
  1699. objCoreTableTD.style.backgroundImage='none';
  1700. }
  1701.  
  1702. }
  1703.  
  1704.  
  1705. if (objLeftBgImg){//left bg image
  1706. if (this.LeftPartBgImage>''){
  1707. objLeftBgImg.src=this.Preload_BgImageLeft.src;
  1708. objLeftBgImg.style.visibility='visible';
  1709. objLeftBgImg.style.display='block';
  1710. }
  1711. else
  1712. {
  1713. objLeftBgImg.style.visibility='hidden';
  1714. }
  1715. }
  1716.  
  1717.  
  1718. if (objRightBgImg){//right bg image
  1719. if (this.RightPartBgImage>''){
  1720. objRightBgImg.src=this.Preload_BgImageRight.src;
  1721. objRightBgImg.style.visibility='visible';
  1722. objRightBgImg.style.display='block';
  1723. }
  1724. else
  1725. {
  1726. objRightBgImg.style.visibility='hidden';
  1727. }
  1728. }
  1729.  
  1730.  
  1731. if (objRightIcon){ //right icon - element found
  1732. if (this.RightIcon>''){
  1733. objRightIcon.src=this.Preload_RightIcon.src;
  1734. if ((this.RightIconIsIndicator) && (!this.Group)){
  1735. objRightIcon.style.visibility='hidden';
  1736. }
  1737. else
  1738. {
  1739. objRightIcon.style.visibility='visible';
  1740. objRightIcon.style.display='block';
  1741. }
  1742. }
  1743. else {objRightIcon.style.visibility='hidden';
  1744. }
  1745.  
  1746. objRightIcon.style.marginLeft=this.RightIconOffsetX;
  1747. objRightIcon.style.marginTop=this.RightIconOffsetY;
  1748. }
  1749.  
  1750.  
  1751. if (objLeftIcon){ //left icon - element found
  1752. if (this.LeftIcon > ''){
  1753. objLeftIcon.src=this.Preload_LeftIcon.src;
  1754. if ((this.LeftIconIsIndicator) && (!this.Group)){
  1755.  
  1756. }
  1757. else
  1758. {
  1759. objLeftIcon.style.visibility='visible';
  1760. objLeftIcon.style.display='block';
  1761. }
  1762. } else {objLeftIcon.style.visibility='hidden';
  1763. }
  1764.  
  1765. objLeftIcon.style.marginLeft=this.LeftIconOffsetX;
  1766. objLeftIcon.style.marginTop=this.LeftIconOffsetY;
  1767. }
  1768.  
  1769. eval(this.OnLeaveJS);//user JS command when item is leaved
  1770. break;
  1771. }
  1772.  
  1773.  
  1774.  
  1775.  
  1776. case 1:{//OVER STATE -----------------------------------------
  1777.  
  1778. if ((objCoreTableTD)&&(this.Text_o>'')&&(objCoreTableTD.innerHTML!=this.Text_o)){
  1779. //objCoreTableTD.firstChild.nodeValue=this.Text_o;
  1780. objCoreTableTD.innerHTML=this.Text_o;
  1781. }
  1782.  
  1783. if (objCoreTable != null) //core table style - element found
  1784. {
  1785. //base background styles
  1786. if (this.BgColor_o){
  1787. objCoreTable.style.backgroundColor=this.BgColor_o;
  1788. objCoreTable.bgColor=this.BgColor_o;
  1789. }
  1790.  
  1791. //border styles
  1792. if (this.BorderWidth_o!=null){
  1793. if (this.BorderLeft){
  1794. objCoreTable.style.borderLeftWidth=this.BorderWidth_o;
  1795. if (this.Border_o>'') {objCoreTable.style.borderLeftStyle=this.Border_o;}
  1796. }
  1797.  
  1798. if (this.BorderRight){
  1799. objCoreTable.style.borderRightWidth=this.BorderWidth_o;
  1800. if (this.Border_o>'') {objCoreTable.style.borderRightStyle=this.Border_o;}
  1801. }
  1802.  
  1803. if (this.BorderTop){
  1804. objCoreTable.style.borderTopWidth=this.BorderWidth_o;
  1805. if (this.Border_o>'') {objCoreTable.style.borderTopStyle=this.Border_o;}
  1806. }
  1807.  
  1808. if (this.BorderBottom){
  1809. objCoreTable.style.borderBottomWidth=this.BorderWidth_o;
  1810. if (this.Border_o>'') {objCoreTable.style.borderBottomStyle=this.Border_o;}
  1811. }
  1812. }
  1813.  
  1814. if (this.BorderColor_o>''){objCoreTable.style.borderColor=this.BorderColor_o};
  1815. }
  1816.  
  1817. if (objCoreTableTD){//td table style
  1818. //text and font styles
  1819. if (this.FontColor_o){objCoreTableTD.style.color=this.FontColor_o;}
  1820. if (this.FontFamily_o){objCoreTableTD.style.fontFamily=this.FontFamily_o;}
  1821. if (this.FontSize_o){objCoreTableTD.style.fontSize=this.FontSize_o;}
  1822. if (this.FontDecoration_o){objCoreTableTD.style.textDecoration=this.FontDecoration_o;}
  1823. if (this.FontWeight_o){objCoreTableTD.style.fontWeight=this.FontWeight_o;}
  1824. if (this.FontStyle_o){objCoreTableTD.style.fontStyle=this.FontStyle_o;}
  1825. //text padding styles
  1826. if (this.PaddingLeft_o!=null){objCoreTableTD.style.paddingLeft=this.PaddingLeft_o};
  1827. if (this.PaddingRight_o!=null){objCoreTableTD.style.paddingRight=this.PaddingRight_o;}
  1828. if (this.PaddingTop_o!=null){objCoreTableTD.style.paddingTop=this.PaddingTop_o;}
  1829. if (this.PaddingBottom_o!=null){objCoreTableTD.style.paddingBottom=this.PaddingBottom_o;}
  1830. //center bg image
  1831. if (this.BgImage_o>''){
  1832. objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage_o.src+')';
  1833. objCoreTableTD.style.backgroundPosition=this.BgImgPos_o||this.BgImgPos;
  1834. objCoreTableTD.style.backgroundRepeat=this.BgImgRep_o||this.BgImgRep;
  1835. }
  1836. }
  1837.  
  1838. if (objLeftBgImg){//left bg image
  1839. if (this.LeftPartBgImage_o>''){
  1840. objLeftBgImg.src=this.Preload_BgImageLeft_o.src;
  1841. objLeftBgImg.style.visibility='visible';
  1842. objLeftBgImg.style.display='block';
  1843. }
  1844. else
  1845. {
  1846. //do nothing
  1847. }
  1848. }
  1849.  
  1850.  
  1851. if (objRightBgImg){//right bg image
  1852. if (this.RightPartBgImage_o>''){
  1853. objRightBgImg.src=this.Preload_BgImageRight_o.src;
  1854. objRightBgImg.style.visibility='visible';
  1855. objRightBgImg.style.display='block';
  1856. }
  1857. else
  1858. {
  1859. //do nothing
  1860. }
  1861. }
  1862.  
  1863.  
  1864. if (objRightIcon){ //right icon - element found
  1865. if (this.RightIcon_o > ''){
  1866. objRightIcon.src=this.Preload_RightIcon_o.src;
  1867. if ((this.RightIconIsIndicator) && (!this.Group)){
  1868. objRightIcon.style.visibility='hidden';
  1869. }
  1870. else
  1871. {
  1872. objRightIcon.style.visibility='visible';
  1873. objRightIcon.style.display='block';
  1874. }
  1875. }
  1876. if (this.RightIconOffsetX_o){objRightIcon.style.marginLeft=this.RightIconOffsetX_o};
  1877. if (this.RightIconOffsetY_o){objRightIcon.style.marginTop=this.RightIconOffsetY_o};
  1878. }
  1879.  
  1880. if (objLeftIcon){ //left icon - element found
  1881. if (this.LeftIcon_o > ''){
  1882. objLeftIcon.src=this.Preload_LeftIcon_o.src;
  1883. if ((this.LeftIconIsIndicator) && (!this.Group)){
  1884. objLeftIcon.style.visibility='hidden';
  1885. }
  1886. else
  1887. {
  1888. objLeftIcon.style.visibility='visible';
  1889. objLeftIcon.style.display='block';
  1890. }
  1891. }
  1892. if (this.LeftIconOffsetX_o){objLeftIcon.style.marginLeft=this.LeftIconOffsetX_o;}
  1893. if (this.LeftIconOffsetY_o){objLeftIcon.style.marginTop=this.LeftIconOffsetY_o};
  1894. }
  1895.  
  1896. eval(this.OnOverJS);//user custom JS command when mouse goes over the menu item
  1897. break;
  1898. }
  1899.  
  1900.  
  1901.  
  1902. case 2:{//click state
  1903. if ((objCoreTableTD)&&(this.Text_c>'')&&(objCoreTableTD.innerHTML!=this.Text_c)){
  1904. //objCoreTableTD.firstChild.nodeValue=this.Text_c;
  1905. objCoreTableTD.innerHTML=this.Text_c;
  1906. }
  1907.  
  1908. if (objCoreTable != null) //core table style - element found
  1909. {
  1910. //base background styles
  1911. if (this.BgColor_c){
  1912. objCoreTable.style.backgroundColor=this.BgColor_c;
  1913. objCoreTable.style.bgColor=this.BgColor_c;
  1914. }
  1915.  
  1916. //border styles
  1917. if (this.BorderWidth_c!=null)
  1918. {
  1919. if (this.BorderLeft){
  1920. objCoreTable.style.borderLeftWidth=this.BorderWidth_c;
  1921. if (this.Border_c>'') {objCoreTable.style.borderLeftStyle=this.Border_c;}
  1922. }
  1923.  
  1924. if (this.BorderRight){
  1925. objCoreTable.style.borderRightWidth=this.BorderWidth_c;
  1926. if (this.Border_c>'') {objCoreTable.style.borderRightStyle=this.Border_c;}
  1927. }
  1928.  
  1929. if (this.BorderTop){
  1930. objCoreTable.style.borderTopWidth=this.BorderWidth_c;
  1931. if (this.Border_c>'') {objCoreTable.style.borderTopStyle=this.Border_c;}
  1932. }
  1933.  
  1934. if (this.BorderBottom){
  1935. objCoreTable.style.borderBottomWidth=this.BorderWidth_c;
  1936. if (this.Border_c>'') {objCoreTable.style.borderBottomStyle=this.Border_c;}
  1937. }
  1938. }
  1939.  
  1940. if (this.BorderColor_c>''){objCoreTable.style.borderColor=this.BorderColor_c};
  1941. }
  1942. }
  1943.  
  1944.  
  1945. if (objCoreTableTD){//td table style
  1946. //text and font styles
  1947. if (this.FontColor_c){objCoreTableTD.style.color=this.FontColor_c;}
  1948. if (this.FontFamily_c){objCoreTableTD.style.fontFamily=this.FontFamily_c;}
  1949. if (this.FontSize_c){objCoreTableTD.style.fontSize=this.FontSize_c;}
  1950. if (this.FontDecoration_c){objCoreTableTD.style.textDecoration=this.FontDecoration_c;}
  1951. if (this.FontWeight_c){objCoreTableTD.style.fontWeight=this.FontWeight_c;}
  1952. if (this.FontStyle_c){objCoreTableTD.style.fontStyle=this.FontStyle_c;}
  1953. //center bg image
  1954. if (this.BgImage_c>''){
  1955. objCoreTableTD.style.backgroundImage='url('+this.Preload_BgImage_c.src+')';
  1956. objCoreTableTD.style.backgroundPosition=this.BgImgPos_c||this.BgImgPos;
  1957. objCoreTableTD.style.backgroundRepeat=this.BgImgRep_c||this.BgImgRep;
  1958. }
  1959. }
  1960.  
  1961.  
  1962. if (objLeftBgImg){//left bg image
  1963. if (this.LeftPartBgImage_c>''){
  1964. objLeftBgImg.src=this.Preload_BgImageLeft_c.src;
  1965. objLeftBgImg.style.visibility='visible';
  1966. objLeftBgImg.style.display='block';
  1967. }
  1968. else
  1969. {
  1970. //do nothing
  1971. }
  1972. }
  1973.  
  1974.  
  1975. if (objRightBgImg){//right bg image
  1976. if (this.RightPartBgImage_c>''){
  1977. objRightBgImg.src=this.Preload_BgImageRight_c.src;
  1978. objRightBgImg.style.visibility='visible';
  1979. objRightBgImg.style.display='block';
  1980. }
  1981. else
  1982. {
  1983. //do nothing
  1984. }
  1985. }
  1986.  
  1987.  
  1988. if (objRightIcon){ //right icon - element found
  1989. if (this.RightIcon_c > ''){
  1990. objRightIcon.src=this.Preload_RightIcon_c.src;
  1991. if ((this.RightIconIsIndicator) && (!this.Group)){
  1992. objRightIcon.style.visibility='hidden';
  1993. }
  1994. else
  1995. {
  1996. objRightIcon.style.visibility='visible';
  1997. objRightIcon.style.display='block';
  1998. }
  1999. }
  2000. if (this.RightIconOffsetX_c){objRightIcon.style.marginLeft=this.RightIconOffsetX_c};
  2001. if (this.RightIconOffsetY_c){objRightIcon.style.marginTop=this.RightIconOffsetY_c};
  2002. }
  2003.  
  2004. if (objLeftIcon){ //left icon - element found
  2005. if (this.LeftIcon_c > ''){
  2006. objLeftIcon.src=this.Preload_LeftIcon_c.src;
  2007. if ((this.LeftIconIsIndicator) && (!this.Group)){
  2008. objLeftIcon.style.visibility='hidden';
  2009. }
  2010. else
  2011. {
  2012. objLeftIcon.style.visibility='visible';
  2013. objLeftIcon.style.display='block';
  2014. }
  2015. }
  2016. if (this.LeftIconOffsetX_c){objLeftIcon.style.marginLeft=this.LeftIconOffsetX_c;}
  2017. if (this.LeftIconOffsetY_c){objLeftIcon.style.marginTop=this.LeftIconOffsetY_c};
  2018. }
  2019. break;
  2020. } //end switch
  2021. };
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034. //Create main menu items style object. All main menu items inherite style from this object
  2035. var Licencia01_MainGroupItemsGeneralStyle = new Licencia01MenuItem();
  2036. Licencia01_MainGroupItemsGeneralStyle.Text_o='';
  2037. Licencia01_MainGroupItemsGeneralStyle.Text_c='';
  2038. Licencia01_MainGroupItemsGeneralStyle.TextAlign='left';
  2039. Licencia01_MainGroupItemsGeneralStyle.URL='';
  2040. Licencia01_MainGroupItemsGeneralStyle.URLTarget='';
  2041. Licencia01_MainGroupItemsGeneralStyle.Hint='';
  2042. Licencia01_MainGroupItemsGeneralStyle.OnLeaveJS='';
  2043. Licencia01_MainGroupItemsGeneralStyle.OnOverJS='';
  2044. Licencia01_MainGroupItemsGeneralStyle.OnClickJS='';
  2045. Licencia01_MainGroupItemsGeneralStyle.Height=25;
  2046. Licencia01_MainGroupItemsGeneralStyle.Width=200;
  2047. Licencia01_MainGroupItemsGeneralStyle.Cursor='default';
  2048. Licencia01_MainGroupItemsGeneralStyle.PaddingLeft=25;
  2049. Licencia01_MainGroupItemsGeneralStyle.PaddingLeft_o=25;
  2050. Licencia01_MainGroupItemsGeneralStyle.PaddingTop=5;
  2051. Licencia01_MainGroupItemsGeneralStyle.PaddingTop_o=null;
  2052. Licencia01_MainGroupItemsGeneralStyle.PaddingRight=5;
  2053. Licencia01_MainGroupItemsGeneralStyle.PaddingRight_o=null;
  2054. Licencia01_MainGroupItemsGeneralStyle.PaddingBottom=5;
  2055. Licencia01_MainGroupItemsGeneralStyle.PaddingBottom_o=null;
  2056. Licencia01_MainGroupItemsGeneralStyle.BgColor='';
  2057. Licencia01_MainGroupItemsGeneralStyle.BgColor_o='';
  2058. Licencia01_MainGroupItemsGeneralStyle.BgColor_c='';
  2059. Licencia01_MainGroupItemsGeneralStyle.BgImage='http://img1.imagilive.com/0613/blank1x1.gif';
  2060. Licencia01_MainGroupItemsGeneralStyle.BgImage_o='https://lh4.googleusercontent.com/-nMiVkGHjz2s/UbPgdcJ33hI/AAAAAAAAAyA/WoMWZg98I0w/s23/orange-button-center.gif';
  2061. Licencia01_MainGroupItemsGeneralStyle.BgImage_c='';
  2062. Licencia01_MainGroupItemsGeneralStyle.BgImgRep='repeat-x';
  2063. Licencia01_MainGroupItemsGeneralStyle.BgImgRep_o='';
  2064. Licencia01_MainGroupItemsGeneralStyle.BgImgRep_c='';
  2065. Licencia01_MainGroupItemsGeneralStyle.BgImgPos='left center';
  2066. Licencia01_MainGroupItemsGeneralStyle.BgImgPos_o='';
  2067. Licencia01_MainGroupItemsGeneralStyle.BgImgPos_c='';
  2068. Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
  2069. Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImage_o='https://lh3.googleusercontent.com/-xwngSsk45W4/UbPgdUCac_I/AAAAAAAAAxw/TFk5m3fpvh8/s23/orange-button-left.gif';
  2070. Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImage_c='';
  2071. Licencia01_MainGroupItemsGeneralStyle.LeftPartBgImgPos='middle';
  2072. Licencia01_MainGroupItemsGeneralStyle.RightPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
  2073. Licencia01_MainGroupItemsGeneralStyle.RightPartBgImage_o='https://lh4.googleusercontent.com/-KOl0Xa2QlgU/UbPgd8thkbI/AAAAAAAAAyM/XqORi1DuHL0/s23/orange-button-right.gif';
  2074. Licencia01_MainGroupItemsGeneralStyle.RightPartBgImage_c='';
  2075. Licencia01_MainGroupItemsGeneralStyle.RightPartBgImgPos='middle';
  2076. Licencia01_MainGroupItemsGeneralStyle.FontColor='#391A4D';
  2077. Licencia01_MainGroupItemsGeneralStyle.FontColor_o='#FFFFFF';
  2078. Licencia01_MainGroupItemsGeneralStyle.FontColor_c='';
  2079. Licencia01_MainGroupItemsGeneralStyle.FontFamily='Tahoma';
  2080. Licencia01_MainGroupItemsGeneralStyle.FontFamily_o='';
  2081. Licencia01_MainGroupItemsGeneralStyle.FontFamily_c='';
  2082. Licencia01_MainGroupItemsGeneralStyle.FontSize=11;
  2083. Licencia01_MainGroupItemsGeneralStyle.FontSize_o=null;
  2084. Licencia01_MainGroupItemsGeneralStyle.FontSize_c=null;
  2085. Licencia01_MainGroupItemsGeneralStyle.FontDecoration='none';
  2086. Licencia01_MainGroupItemsGeneralStyle.FontDecoration_o='none';
  2087. Licencia01_MainGroupItemsGeneralStyle.FontDecoration_c='';
  2088. Licencia01_MainGroupItemsGeneralStyle.FontWeight='normal';
  2089. Licencia01_MainGroupItemsGeneralStyle.FontWeight_o='bold';
  2090. Licencia01_MainGroupItemsGeneralStyle.FontWeight_c='';
  2091. Licencia01_MainGroupItemsGeneralStyle.FontStyle='normal';
  2092. Licencia01_MainGroupItemsGeneralStyle.FontStyle_o='';
  2093. Licencia01_MainGroupItemsGeneralStyle.FontStyle_c='';
  2094. Licencia01_MainGroupItemsGeneralStyle.BorderWidth=1;
  2095. Licencia01_MainGroupItemsGeneralStyle.BorderWidth_o=null;
  2096. Licencia01_MainGroupItemsGeneralStyle.BorderWidth_c=null;
  2097. Licencia01_MainGroupItemsGeneralStyle.BorderColor='#000000';
  2098. Licencia01_MainGroupItemsGeneralStyle.BorderColor_o='';
  2099. Licencia01_MainGroupItemsGeneralStyle.BorderColor_c='';
  2100. Licencia01_MainGroupItemsGeneralStyle.Border='none';
  2101. Licencia01_MainGroupItemsGeneralStyle.Border_o='';
  2102. Licencia01_MainGroupItemsGeneralStyle.Border_c='';
  2103. Licencia01_MainGroupItemsGeneralStyle.BorderLeft=true;
  2104. Licencia01_MainGroupItemsGeneralStyle.BorderRight=true;
  2105. Licencia01_MainGroupItemsGeneralStyle.BorderTop=true;
  2106. Licencia01_MainGroupItemsGeneralStyle.BorderBottom=true;
  2107. Licencia01_MainGroupItemsGeneralStyle.SeparatorColor='#0080C0';
  2108. Licencia01_MainGroupItemsGeneralStyle.SeparatorSize=1;
  2109. Licencia01_MainGroupItemsGeneralStyle.LeftIcon='https://lh4.googleusercontent.com/-8Wx2ynF-ntA/UbPgdcAnxkI/AAAAAAAAAx0/IrEqxkwo6wI/s17/misamples_orange.gif';
  2110. Licencia01_MainGroupItemsGeneralStyle.LeftIcon_o='';
  2111. Licencia01_MainGroupItemsGeneralStyle.LeftIcon_c='';
  2112. Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetX=0;
  2113. Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetX_o=null;
  2114. Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetX_c=null;
  2115. Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetY=-6;
  2116. Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetY_o=null;
  2117. Licencia01_MainGroupItemsGeneralStyle.LeftIconOffsetY_c=null;
  2118. Licencia01_MainGroupItemsGeneralStyle.LeftIconIsIndicator=false;
  2119. Licencia01_MainGroupItemsGeneralStyle.RightIcon='https://lh3.googleusercontent.com/-gs2_8zK7oMk/UbPgc8HQymI/AAAAAAAAAxc/MOpjX2ZhGRI/s12/arrow11.gif';
  2120. Licencia01_MainGroupItemsGeneralStyle.RightIcon_o='https://lh3.googleusercontent.com/-5qu7SQWP8rU/UbPgc90k0KI/AAAAAAAAAxg/mf_FHD5Afx4/s8/arrow34.gif';
  2121. Licencia01_MainGroupItemsGeneralStyle.RightIcon_c='';
  2122. Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetX=-10;
  2123. Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetX_o=-6;
  2124. Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetX_c=null;
  2125. Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetY=-5;
  2126. Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetY_o=-3;
  2127. Licencia01_MainGroupItemsGeneralStyle.RightIconOffsetY_c=null;
  2128. Licencia01_MainGroupItemsGeneralStyle.RightIconIsIndicator=true;
  2129.  
  2130. //Create submenu items style object. All menu items of submenus inherite style from this object
  2131. var Licencia01_GroupItemsGeneralStyle = new Licencia01MenuItem();
  2132. Licencia01_GroupItemsGeneralStyle.Text_o='';
  2133. Licencia01_GroupItemsGeneralStyle.Text_c='';
  2134. Licencia01_GroupItemsGeneralStyle.TextAlign='left';
  2135. Licencia01_GroupItemsGeneralStyle.URL='';
  2136. Licencia01_GroupItemsGeneralStyle.URLTarget='';
  2137. Licencia01_GroupItemsGeneralStyle.Hint='';
  2138. Licencia01_GroupItemsGeneralStyle.OnLeaveJS='';
  2139. Licencia01_GroupItemsGeneralStyle.OnOverJS='';
  2140. Licencia01_GroupItemsGeneralStyle.OnClickJS='';
  2141. Licencia01_GroupItemsGeneralStyle.Height=25;
  2142. Licencia01_GroupItemsGeneralStyle.Width=220;
  2143. Licencia01_GroupItemsGeneralStyle.Cursor='default';
  2144. Licencia01_GroupItemsGeneralStyle.PaddingLeft=25;
  2145. Licencia01_GroupItemsGeneralStyle.PaddingLeft_o=25;
  2146. Licencia01_GroupItemsGeneralStyle.PaddingTop=5;
  2147. Licencia01_GroupItemsGeneralStyle.PaddingTop_o=null;
  2148. Licencia01_GroupItemsGeneralStyle.PaddingRight=5;
  2149. Licencia01_GroupItemsGeneralStyle.PaddingRight_o=null;
  2150. Licencia01_GroupItemsGeneralStyle.PaddingBottom=5;
  2151. Licencia01_GroupItemsGeneralStyle.PaddingBottom_o=null;
  2152. Licencia01_GroupItemsGeneralStyle.BgColor='';
  2153. Licencia01_GroupItemsGeneralStyle.BgColor_o='';
  2154. Licencia01_GroupItemsGeneralStyle.BgColor_c='';
  2155. Licencia01_GroupItemsGeneralStyle.BgImage='http://img1.imagilive.com/0613/blank1x1.gif';
  2156. Licencia01_GroupItemsGeneralStyle.BgImage_o='https://lh4.googleusercontent.com/-nMiVkGHjz2s/UbPgdcJ33hI/AAAAAAAAAyA/WoMWZg98I0w/s23/orange-button-center.gif';
  2157. Licencia01_GroupItemsGeneralStyle.BgImage_c='';
  2158. Licencia01_GroupItemsGeneralStyle.BgImgRep='repeat-x';
  2159. Licencia01_GroupItemsGeneralStyle.BgImgRep_o='';
  2160. Licencia01_GroupItemsGeneralStyle.BgImgRep_c='';
  2161. Licencia01_GroupItemsGeneralStyle.BgImgPos='left center';
  2162. Licencia01_GroupItemsGeneralStyle.BgImgPos_o='';
  2163. Licencia01_GroupItemsGeneralStyle.BgImgPos_c='';
  2164. Licencia01_GroupItemsGeneralStyle.LeftPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
  2165. Licencia01_GroupItemsGeneralStyle.LeftPartBgImage_o='https://lh3.googleusercontent.com/-xwngSsk45W4/UbPgdUCac_I/AAAAAAAAAxw/TFk5m3fpvh8/s23/orange-button-left.gif';
  2166. Licencia01_GroupItemsGeneralStyle.LeftPartBgImage_c='';
  2167. Licencia01_GroupItemsGeneralStyle.LeftPartBgImgPos='middle';
  2168. Licencia01_GroupItemsGeneralStyle.RightPartBgImage='http://img1.imagilive.com/0613/blank1x1.gif';
  2169. Licencia01_GroupItemsGeneralStyle.RightPartBgImage_o='https://lh4.googleusercontent.com/-KOl0Xa2QlgU/UbPgd8thkbI/AAAAAAAAAyM/XqORi1DuHL0/s23/orange-button-right.gif';
  2170. Licencia01_GroupItemsGeneralStyle.RightPartBgImage_c='';
  2171. Licencia01_GroupItemsGeneralStyle.RightPartBgImgPos='middle';
  2172. Licencia01_GroupItemsGeneralStyle.FontColor='#391A4D';
  2173. Licencia01_GroupItemsGeneralStyle.FontColor_o='#FFFFFF';
  2174. Licencia01_GroupItemsGeneralStyle.FontColor_c='';
  2175. Licencia01_GroupItemsGeneralStyle.FontFamily='Tahoma';
  2176. Licencia01_GroupItemsGeneralStyle.FontFamily_o='';
  2177. Licencia01_GroupItemsGeneralStyle.FontFamily_c='';
  2178. Licencia01_GroupItemsGeneralStyle.FontSize=11;
  2179. Licencia01_GroupItemsGeneralStyle.FontSize_o=null;
  2180. Licencia01_GroupItemsGeneralStyle.FontSize_c=null;
  2181. Licencia01_GroupItemsGeneralStyle.FontDecoration='none';
  2182. Licencia01_GroupItemsGeneralStyle.FontDecoration_o='none';
  2183. Licencia01_GroupItemsGeneralStyle.FontDecoration_c='';
  2184. Licencia01_GroupItemsGeneralStyle.FontWeight='normal';
  2185. Licencia01_GroupItemsGeneralStyle.FontWeight_o='bold';
  2186. Licencia01_GroupItemsGeneralStyle.FontWeight_c='';
  2187. Licencia01_GroupItemsGeneralStyle.FontStyle='normal';
  2188. Licencia01_GroupItemsGeneralStyle.FontStyle_o='';
  2189. Licencia01_GroupItemsGeneralStyle.FontStyle_c='';
  2190. Licencia01_GroupItemsGeneralStyle.BorderWidth=1;
  2191. Licencia01_GroupItemsGeneralStyle.BorderWidth_o=null;
  2192. Licencia01_GroupItemsGeneralStyle.BorderWidth_c=null;
  2193. Licencia01_GroupItemsGeneralStyle.BorderColor='#000000';
  2194. Licencia01_GroupItemsGeneralStyle.BorderColor_o='';
  2195. Licencia01_GroupItemsGeneralStyle.BorderColor_c='';
  2196. Licencia01_GroupItemsGeneralStyle.Border='none';
  2197. Licencia01_GroupItemsGeneralStyle.Border_o='';
  2198. Licencia01_GroupItemsGeneralStyle.Border_c='';
  2199. Licencia01_GroupItemsGeneralStyle.BorderLeft=true;
  2200. Licencia01_GroupItemsGeneralStyle.BorderRight=true;
  2201. Licencia01_GroupItemsGeneralStyle.BorderTop=true;
  2202. Licencia01_GroupItemsGeneralStyle.BorderBottom=true;
  2203. Licencia01_GroupItemsGeneralStyle.SeparatorColor='#0080C0';
  2204. Licencia01_GroupItemsGeneralStyle.SeparatorSize=1;
  2205. Licencia01_GroupItemsGeneralStyle.LeftIcon='https://lh4.googleusercontent.com/-8Wx2ynF-ntA/UbPgdcAnxkI/AAAAAAAAAx0/IrEqxkwo6wI/s17/misamples_orange.gif';
  2206. Licencia01_GroupItemsGeneralStyle.LeftIcon_o='';
  2207. Licencia01_GroupItemsGeneralStyle.LeftIcon_c='';
  2208. Licencia01_GroupItemsGeneralStyle.LeftIconOffsetX=0;
  2209. Licencia01_GroupItemsGeneralStyle.LeftIconOffsetX_o=null;
  2210. Licencia01_GroupItemsGeneralStyle.LeftIconOffsetX_c=null;
  2211. Licencia01_GroupItemsGeneralStyle.LeftIconOffsetY=-6;
  2212. Licencia01_GroupItemsGeneralStyle.LeftIconOffsetY_o=null;
  2213. Licencia01_GroupItemsGeneralStyle.LeftIconOffsetY_c=null;
  2214. Licencia01_GroupItemsGeneralStyle.LeftIconIsIndicator=false;
  2215. Licencia01_GroupItemsGeneralStyle.RightIcon='https://lh3.googleusercontent.com/-gs2_8zK7oMk/UbPgc8HQymI/AAAAAAAAAxc/MOpjX2ZhGRI/s12/arrow11.gif';
  2216. Licencia01_GroupItemsGeneralStyle.RightIcon_o='https://lh3.googleusercontent.com/-5qu7SQWP8rU/UbPgc90k0KI/AAAAAAAAAxg/mf_FHD5Afx4/s8/arrow34.gif';
  2217. Licencia01_GroupItemsGeneralStyle.RightIcon_c='';
  2218. Licencia01_GroupItemsGeneralStyle.RightIconOffsetX=-10;
  2219. Licencia01_GroupItemsGeneralStyle.RightIconOffsetX_o=-6;
  2220. Licencia01_GroupItemsGeneralStyle.RightIconOffsetX_c=null;
  2221. Licencia01_GroupItemsGeneralStyle.RightIconOffsetY=-5;
  2222. Licencia01_GroupItemsGeneralStyle.RightIconOffsetY_o=-3;
  2223. Licencia01_GroupItemsGeneralStyle.RightIconOffsetY_c=null;
  2224. Licencia01_GroupItemsGeneralStyle.RightIconIsIndicator=true;
  2225.  
  2226. //Create submenus style object - All submenus inherite style from this object
  2227. var Licencia01_GroupStyle = new Licencia01MenuGroup();
  2228. Licencia01_GroupStyle.Width=180;
  2229. Licencia01_GroupStyle.MenuGroupAlign=0;
  2230. Licencia01_GroupStyle.Opacity=100;
  2231. Licencia01_GroupStyle.ShowDropDownControl=false;
  2232. Licencia01_GroupStyle.InitDropdownState=1;
  2233. Licencia01_GroupStyle.ItemsPadding_L=3;
  2234. Licencia01_GroupStyle.ItemsPadding_R=3;
  2235. Licencia01_GroupStyle.ItemsPadding_T=10;
  2236. Licencia01_GroupStyle.ItemsPadding_B=5;
  2237. Licencia01_GroupStyle.ItemsSpacing=3;
  2238. Licencia01_GroupStyle.BgColor='#FFFFFF';
  2239. Licencia01_GroupStyle.BgImage='https://lh5.googleusercontent.com/-dTY74u8LVHs/UbPgd7tCihI/AAAAAAAAAyE/9N9CjpOwBPw/s496/twice-color-blue.gif';
  2240. Licencia01_GroupStyle.BgImgPos='top left';
  2241. Licencia01_GroupStyle.BgImgRep='repeat';
  2242. Licencia01_GroupStyle.Border='solid';
  2243. Licencia01_GroupStyle.BorderWidth=3;
  2244. Licencia01_GroupStyle.BorderColor='#0080C0';
  2245. Licencia01_GroupStyle.HeaderText='Header';
  2246. Licencia01_GroupStyle.HeaderTextAlign='center';
  2247. Licencia01_GroupStyle.HeaderTextOffsetX=0;
  2248. Licencia01_GroupStyle.HeaderTextOffsetY=4;
  2249. Licencia01_GroupStyle.HeaderHeight=20;
  2250. Licencia01_GroupStyle.HeaderBgColor='';
  2251. Licencia01_GroupStyle.HeaderIconOffsetX=3;
  2252. Licencia01_GroupStyle.HeaderIconOffsetY=3;
  2253. Licencia01_GroupStyle.HeaderBgImgRep='repeat-x';
  2254. Licencia01_GroupStyle.HeaderBgImgPos='top left';
  2255. Licencia01_GroupStyle.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
  2256. Licencia01_GroupStyle.FontColor='#400080';
  2257. Licencia01_GroupStyle.FontSize=11;
  2258. Licencia01_GroupStyle.FontDecoration='none';
  2259. Licencia01_GroupStyle.FontWeight='bolder';
  2260. Licencia01_GroupStyle.FontStyle='normal';
  2261. Licencia01_GroupStyle.DropdownImageExpand='';
  2262. Licencia01_GroupStyle.DropdownImageCollapse='';
  2263. Licencia01_GroupStyle.OnGroupShowJS='';
  2264. Licencia01_GroupStyle.OnGroupHideJS='';
  2265. Licencia01_GroupStyle.AnimationType=0;
  2266. Licencia01_GroupStyle.AnimationTimeout=8;
  2267.  
  2268. //Create main menu
  2269. var Licencia01_mg_ID1 = new Licencia01MenuGroup(0,0,'V');
  2270. Licencia01_mg_ID1.id='Licencia01_mg_ID1';
  2271. Licencia01_mg_ID1.IsMainGroup=1;
  2272. Licencia01_mg_ID1.BgColor='#FFFFFF';
  2273. Licencia01_mg_ID1.Width=225;
  2274. Licencia01_mg_ID1.Opacity=100;
  2275. Licencia01_mg_ID1.ShowDropDownControl=false;
  2276. Licencia01_mg_ID1.InitDropdownState=1;
  2277. Licencia01_mg_ID1.ItemsPadding_L=3;
  2278. Licencia01_mg_ID1.ItemsPadding_R=3;
  2279. Licencia01_mg_ID1.ItemsPadding_T=7;
  2280. Licencia01_mg_ID1.ItemsPadding_B=5;
  2281. Licencia01_mg_ID1.ItemsSpacing=3;
  2282. Licencia01_mg_ID1.Embedding='relative';
  2283. Licencia01_mg_ID1.z=1000;
  2284. Licencia01_mg_ID1.BgImage='https://lh5.googleusercontent.com/-dTY74u8LVHs/UbPgd7tCihI/AAAAAAAAAyE/9N9CjpOwBPw/s496/twice-color-blue.gif';
  2285. Licencia01_mg_ID1.BgImgPos='top right';
  2286. Licencia01_mg_ID1.BgImgRep='repeat';
  2287. Licencia01_mg_ID1.Border='solid';
  2288. Licencia01_mg_ID1.BorderWidth=3;
  2289. Licencia01_mg_ID1.BorderColor='#0080C0';
  2290. Licencia01_mg_ID1.HeaderText='Categorias';
  2291. Licencia01_mg_ID1.HeaderTextAlign='center';
  2292. Licencia01_mg_ID1.HeaderTextOffsetX=0;
  2293. Licencia01_mg_ID1.HeaderTextOffsetY=4;
  2294. Licencia01_mg_ID1.HeaderHeight=20;
  2295. Licencia01_mg_ID1.HeaderBgColor='';
  2296. Licencia01_mg_ID1.HeaderIconOffsetX=3;
  2297. Licencia01_mg_ID1.HeaderIconOffsetY=3;
  2298. Licencia01_mg_ID1.HeaderBgImgRep='repeat-x';
  2299. Licencia01_mg_ID1.HeaderBgImgPos='top left';
  2300. Licencia01_mg_ID1.DropdownImageExpand='';
  2301. Licencia01_mg_ID1.DropdownImageCollapse='';
  2302. Licencia01_mg_ID1.FontFamily='Verdana, Geneva, Arial, Helvetica, sans-serif';
  2303. Licencia01_mg_ID1.FontColor='#000080';
  2304. Licencia01_mg_ID1.FontSize=11;
  2305. Licencia01_mg_ID1.FontDecoration='none';
  2306. Licencia01_mg_ID1.FontWeight='bolder';
  2307. Licencia01_mg_ID1.FontStyle='normal';
  2308.  
  2309. //Create new menu item
  2310. var Licencia01_i_ID5 = new Licencia01MenuItem('Utilidades PC');
  2311. Licencia01_i_ID5.id='Licencia01_i_ID5';
  2312. Licencia01_i_ID5.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2313. Licencia01_i_ID5.Text_o=' Utilidades PC';
  2314. Licencia01_i_ID5.Text_c='';
  2315. Licencia01_i_ID5.URL='http://licenciaantivirus.blogspot.com/search/label/Utilidades%20PC';
  2316. Licencia01_i_ID5.URLTarget='_blank';
  2317. Licencia01_i_ID5.Hint='';
  2318. Licencia01_mg_ID1.AddItem(Licencia01_i_ID5);//Add menu item to the menu group
  2319.  
  2320. //Create new menu item
  2321. var Licencia01_i_ID17 = new Licencia01MenuItem('Gesti&#243;n de lectura');
  2322. Licencia01_i_ID17.id='Licencia01_i_ID17';
  2323. Licencia01_i_ID17.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2324. Licencia01_i_ID17.Text_o='';
  2325. Licencia01_i_ID17.Text_c='';
  2326. Licencia01_i_ID17.URL='http://licenciaantivirus.blogspot.com/search/label/Gesti%C3%B3n%20de%20lectura';
  2327. Licencia01_i_ID17.Hint='';
  2328. Licencia01_mg_ID1.AddItem(Licencia01_i_ID17);//Add menu item to the menu group
  2329.  
  2330. //Create new menu item
  2331. var Licencia01_i_ID21 = new Licencia01MenuItem('Edicion de Fotos');
  2332. Licencia01_i_ID21.id='Licencia01_i_ID21';
  2333. Licencia01_i_ID21.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2334. Licencia01_i_ID21.Text_o='';
  2335. Licencia01_i_ID21.Text_c='';
  2336. Licencia01_i_ID21.URL='http://licenciaantivirus.blogspot.com/search/label/Edicion%20de%20Fotos';
  2337. Licencia01_i_ID21.URLTarget='_blank';
  2338. Licencia01_i_ID21.Hint='';
  2339. Licencia01_mg_ID1.AddItem(Licencia01_i_ID21);//Add menu item to the menu group
  2340.  
  2341. //Create new menu item
  2342. var Licencia01_i_ID22 = new Licencia01MenuItem('Grabar/quemar discos');
  2343. Licencia01_i_ID22.id='Licencia01_i_ID22';
  2344. Licencia01_i_ID22.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2345. Licencia01_i_ID22.Text_o='';
  2346. Licencia01_i_ID22.Text_c='';
  2347. Licencia01_i_ID22.URL='http://licenciaantivirus.blogspot.com/search/label/Grabar%20o%20quemar%20discos';
  2348. Licencia01_i_ID22.URLTarget='_blank';
  2349. Licencia01_i_ID22.Hint='';
  2350. Licencia01_mg_ID1.AddItem(Licencia01_i_ID22);//Add menu item to the menu group
  2351.  
  2352. //Create new menu item
  2353. var Licencia01_i_ID23 = new Licencia01MenuItem('Juegos Ps2');
  2354. Licencia01_i_ID23.id='Licencia01_i_ID23';
  2355. Licencia01_i_ID23.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2356. Licencia01_i_ID23.Text_o='';
  2357. Licencia01_i_ID23.Text_c='';
  2358. Licencia01_i_ID23.URL='http://licenciaantivirus.blogspot.com/search/label/Juegos%20ps2';
  2359. Licencia01_i_ID23.URLTarget='_blank';
  2360. Licencia01_i_ID23.Hint='';
  2361. Licencia01_mg_ID1.AddItem(Licencia01_i_ID23);//Add menu item to the menu group
  2362.  
  2363. //Create new menu item
  2364. var Licencia01_i_ID24 = new Licencia01MenuItem('Reproductor Multimedia');
  2365. Licencia01_i_ID24.id='Licencia01_i_ID24';
  2366. Licencia01_i_ID24.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2367. Licencia01_i_ID24.Text_o='';
  2368. Licencia01_i_ID24.Text_c='';
  2369. Licencia01_i_ID24.URL='http://licenciaantivirus.blogspot.com/search/label/Reproductor%20Multimedia';
  2370. Licencia01_i_ID24.URLTarget='_blank';
  2371. Licencia01_i_ID24.Hint='';
  2372. Licencia01_mg_ID1.AddItem(Licencia01_i_ID24);//Add menu item to the menu group
  2373.  
  2374. //Create new menu item
  2375. var Licencia01_i_ID25 = new Licencia01MenuItem('Antivirus');
  2376. Licencia01_i_ID25.id='Licencia01_i_ID25';
  2377. Licencia01_i_ID25.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2378. Licencia01_i_ID25.Text_o='';
  2379. Licencia01_i_ID25.Text_c='';
  2380. Licencia01_i_ID25.URL='http://licenciaantivirus.blogspot.com/search/label/Antivirus';
  2381. Licencia01_i_ID25.URLTarget='_blank';
  2382. Licencia01_i_ID25.Hint='';
  2383. Licencia01_mg_ID1.AddItem(Licencia01_i_ID25);//Add menu item to the menu group
  2384.  
  2385. //Create new menu item
  2386. var Licencia01_i_ID26 = new Licencia01MenuItem('Juegos PC');
  2387. Licencia01_i_ID26.id='Licencia01_i_ID26';
  2388. Licencia01_i_ID26.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2389. Licencia01_i_ID26.Text_o='';
  2390. Licencia01_i_ID26.Text_c='';
  2391. Licencia01_i_ID26.URL='http://licenciaantivirus.blogspot.com/search/label/JUEGOS%20PC';
  2392. Licencia01_i_ID26.URLTarget='_blank';
  2393. Licencia01_i_ID26.Hint='';
  2394. Licencia01_mg_ID1.AddItem(Licencia01_i_ID26);//Add menu item to the menu group
  2395.  
  2396. //Create new menu item
  2397. var Licencia01_i_ID27 = new Licencia01MenuItem('Nintendo DS');
  2398. Licencia01_i_ID27.id='Licencia01_i_ID27';
  2399. Licencia01_i_ID27.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2400. Licencia01_i_ID27.Text_o='';
  2401. Licencia01_i_ID27.Text_c='';
  2402. Licencia01_i_ID27.URL='http://licenciaantivirus.blogspot.com/search/label/NDS';
  2403. Licencia01_i_ID27.URLTarget='_blank';
  2404. Licencia01_i_ID27.Hint='';
  2405. Licencia01_mg_ID1.AddItem(Licencia01_i_ID27);//Add menu item to the menu group
  2406.  
  2407. //Create new menu item
  2408. var Licencia01_i_ID28 = new Licencia01MenuItem('Compresor Archivos');
  2409. Licencia01_i_ID28.id='Licencia01_i_ID28';
  2410. Licencia01_i_ID28.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2411. Licencia01_i_ID28.Text_o='';
  2412. Licencia01_i_ID28.Text_c='';
  2413. Licencia01_i_ID28.URL='http://licenciaantivirus.blogspot.com/search/label/Compresor%20Archivos';
  2414. Licencia01_i_ID28.URLTarget='_blank';
  2415. Licencia01_i_ID28.Hint='';
  2416. Licencia01_mg_ID1.AddItem(Licencia01_i_ID28);//Add menu item to the menu group
  2417.  
  2418. //Create new menu item
  2419. var Licencia01_i_ID29 = new Licencia01MenuItem('Programaci&#243;n ');
  2420. Licencia01_i_ID29.id='Licencia01_i_ID29';
  2421. Licencia01_i_ID29.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2422. Licencia01_i_ID29.Text_o='';
  2423. Licencia01_i_ID29.Text_c='';
  2424. Licencia01_i_ID29.URL='http://licenciaantivirus.blogspot.com/search/label/Programaci%C3%B3n';
  2425. Licencia01_i_ID29.URLTarget='_blank';
  2426. Licencia01_i_ID29.Hint='';
  2427. Licencia01_mg_ID1.AddItem(Licencia01_i_ID29);//Add menu item to the menu group
  2428.  
  2429. //Create new menu item
  2430. var Licencia01_i_ID30 = new Licencia01MenuItem('Edici&#243;n Audio');
  2431. Licencia01_i_ID30.id='Licencia01_i_ID30';
  2432. Licencia01_i_ID30.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2433. Licencia01_i_ID30.Text_o='';
  2434. Licencia01_i_ID30.Text_c='';
  2435. Licencia01_i_ID30.URL='http://licenciaantivirus.blogspot.com/search/label/Audio';
  2436. Licencia01_i_ID30.URLTarget='_blank';
  2437. Licencia01_i_ID30.Hint='';
  2438. Licencia01_mg_ID1.AddItem(Licencia01_i_ID30);//Add menu item to the menu group
  2439.  
  2440. //Create new menu item
  2441. var Licencia01_i_ID31 = new Licencia01MenuItem('Analizar Sistema');
  2442. Licencia01_i_ID31.id='Licencia01_i_ID31';
  2443. Licencia01_i_ID31.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2444. Licencia01_i_ID31.Text_o='';
  2445. Licencia01_i_ID31.Text_c='';
  2446. Licencia01_i_ID31.URL='http://licenciaantivirus.blogspot.com/search/label/Analizador%20del%20sistema';
  2447. Licencia01_i_ID31.URLTarget='_blank';
  2448. Licencia01_i_ID31.Hint='';
  2449. Licencia01_mg_ID1.AddItem(Licencia01_i_ID31);//Add menu item to the menu group
  2450.  
  2451. //Create new menu item
  2452. var Licencia01_i_ID32 = new Licencia01MenuItem('Anime');
  2453. Licencia01_i_ID32.id='Licencia01_i_ID32';
  2454. Licencia01_i_ID32.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2455. Licencia01_i_ID32.Text_o='';
  2456. Licencia01_i_ID32.Text_c='';
  2457. Licencia01_i_ID32.URL='http://licenciaantivirus.blogspot.com/search/label/Anime';
  2458. Licencia01_i_ID32.URLTarget='_blank';
  2459. Licencia01_i_ID32.Hint='';
  2460. Licencia01_mg_ID1.AddItem(Licencia01_i_ID32);//Add menu item to the menu group
  2461.  
  2462. //Create new menu item
  2463. var Licencia01_i_ID33 = new Licencia01MenuItem('Peliculas');
  2464. Licencia01_i_ID33.id='Licencia01_i_ID33';
  2465. Licencia01_i_ID33.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2466. Licencia01_i_ID33.Text_o='';
  2467. Licencia01_i_ID33.Text_c='';
  2468. Licencia01_i_ID33.URL='http://licenciaantivirus.blogspot.com/search/label/Peliculas';
  2469. Licencia01_i_ID33.URLTarget='_blank';
  2470. Licencia01_i_ID33.Hint='';
  2471. Licencia01_mg_ID1.AddItem(Licencia01_i_ID33);//Add menu item to the menu group
  2472.  
  2473. //Create new menu item
  2474. var Licencia01_i_ID36 = new Licencia01MenuItem('Sistemas Operativos');
  2475. Licencia01_i_ID36.id='Licencia01_i_ID36';
  2476. Licencia01_i_ID36.Assign(Licencia01_MainGroupItemsGeneralStyle); //Assign styles from the general style object
  2477. Licencia01_i_ID36.Text_o='';
  2478. Licencia01_i_ID36.Text_c='';
  2479. Licencia01_i_ID36.URL='http://licenciaantivirus.blogspot.com/search/label/Sistemas%20operarivos';
  2480. Licencia01_i_ID36.URLTarget='_blank';
  2481. Licencia01_i_ID36.Hint='';
  2482. Licencia01_mg_ID1.AddItem(Licencia01_i_ID36);//Add menu item to the menu group
  2483.  
  2484.  
  2485. Licencia01_mg_ID1.Visibility='visible';
  2486. document.write('<div style="position:absolute; z-index:1000;" align="left">');
  2487. document.write(Licencia01_mg_ID1.ToStr()); //Print the menu to the document
  2488. document.write('</div>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement