Advertisement
jozz

ScriptLice

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