Advertisement
jozz

cadetes

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