//****************************************************************************** // Apycom DHTML-menu v2.80 // www.dhtml-menu.com // E-mail: dhtml@apycom.com //------------------------------------------------------------------------------ // New: // 1: Crossframe support! // @ apy_initFrame(framesetID, mainFrameN, subFrameN, orientation); - into top menu page; // framesetID - id of frameset; // mainFrameN - main frame number (top menu frame) >=0; // subFrameN - sub frame number (frame with submenus) >=0; // orientation - 0/1 - horizontal/vertical. // 2: apy_changeItem (n,m,i, newText,newTarget,newTip, newImgOver,newImgOut) // - n - menu, m - submenu, i - item. All >= 0. // 3: hidding objects for floatable menu, if it intersects them // 4: hidding objects for movable menu, if it intersects them // 5: submenus positioning in Mozilla/Netscape fixed // 6: corrected toggle mode for non-crossframe mode // 7: toggle mode for crossframe // 8: crossframe for OP5 & OP6 // 9: works with tag // -------- v2.15 --------------- // 10: personal item width in itemStyles: "itemWidth=value". // 11: partially fixed submenu positioning with crossframe mode (need fix in MZ, NS) // 12: fixed onLoad event // 13: increase loading speed of big menus up to 40% in IE!!! // 14: fixed bug with tag in OP5 // 15: begining of popup mode: var popupMode=1; // 16: top menu shadow: var shadowTop=0/1; (default is 1) // -------- v2.16 --------------- // 17: fixed some problems with object intersection in NS (flash, applet, etc.) // 18: popup mode. // Initialization: // onContextMenu="return apy_popup([menuN>=0], [hidePause>0], event)" // ------------------------------------------------------------------ // Note: Popup mode doesn't support Opera, because Opera doesn't support // ~~~~ onContextmenu event and can't determine mouse button, // even if onMouseDown event occured. // -------- v2.50 --------------- // 19: CSS support! // var cssStyle=0/1; // off/on css mode // var cssClass="className"; // css class name (e.g.: .myClass {...} => var cssClass="myClass";) // var menuStyles = [ ["CSS=className"] ]; // individual css class for submenu // var itemStyles = [ // individual css class for item // ["CSS=classNameNormal,classNameOver"] // ]; // -------- v2.60 --------------- // 20: fixed bug with seperator sizes in NS4 // 21: added 15 new transition effects: // var transition=[0..39]; // var transOptions="param1=value1,param2=value2"; - for more details go to www.msdn.com // -------- v2.62 --------------- // 22: fixed positioning in MAC IE // -------- v2.63 --------------- // 23: fixed last item clipping bug when menu build in . // Problem in document.write() of top menu insted of document.body.insertAdjacentHTML() in tag. // -------- v2.64 --------------- // 24: disabled hidding () // -------- v2.70 --------------- // 25: code optimization // 26: corrections for NS4 // 27: corrections in popup mode // 28: corrections for OP5 // 29: corretions for positioning in crossframe mode // -------- v2.71 --------------- // 30: fixed in crossframe moe // 31: corrections for positioning in crossframe mode // 32: fixed bug with tag in Mozilla // (Mozilla doesn't make differences between BackCompat & CSS1Compat). // -------- v2.72 --------------- // 33: Absolute/relative paths for a crossframe mode. // Syntax: // var pathPrefix = "..."; - path prefix for item links and images. // 34: Submenus' dX, dY offset: // var topDX = 0; // var topDY = 0; // var DX = -5; // var DY = 0; // 35: Saving submenu navigation path (items highlight during menu navigation): // var saveNavigationPath = 0/1; // -------- v2.73 --------------- // 36: fix for crossframe mode with multiple menus // -------- v2.74 --------------- // 37: var orientation = 0/1; (vertical/horizontal). Default is 0; // 38: columnPerSubmenu = 1; columns count per submenu. Default is 1. Works if orientation=1 only. // Included into individual menu styles: ["columnPerSubmenu=3"] // 39: corrections for Mozilla/Firefox in apy_getClientSize(); // -------- v2.75 --------------- // 40: correction for IE<5.5 (submenus don't appear for filter in apy_showMenu()) // 41: MAC fix! (IE and Safari). Add new params for MAC IE: // macIEoffX, macIEoffY - global menu offset relatively to page. // macIEtopDX, macIEtopDY, macIEDX, macIEDY - submenus offset. // -------- v2.80 --------------- // 42: new apy_popup() syntax: // apy_popup(menuN, hidePause, event, x, y); // x,y - coords where menu will appear. If empty - gets coords from event. // 43: new param: var bottomUp=1; - submenus appear on the top of horizontal menu (Win taskbar like mode). // 44: fix pathPrefix problem: pathPrefix isn't added if url has http://, https://, ftp:// // 45: show submenus by click: var showByClick=1; // 46: "itemPadding" and "itemSpacing" for each submenu in var menuStyles. // 47: problems with . Solution: add charset=iso-8859-1 into