/** * mm_menu 20MAR2002 Version 6.0 * Andy Finnell, March 2002 * Copyright (c) 2000-2002 Macromedia, Inc. * * based on menu.js * by gary smith, July 1997 * Copyright (c) 1997-1999 Netscape Communications Corp. * * Netscape grants you a royalty free license to use or modify this * software provided that this copyright notice appears on all copies. * This software is provided "AS IS," without a warranty of any kind. */ //popup scroll down list function popup6(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1024,height=768,left = 0,top = 0');"); } //popup scroll down list //popup function openpopup(popurl){ var winpops=window.open(popurl,"","width=,height=,toolbar,location,directories,status,scrollbars,menubar,resizable") } //popup //popup function openpopup2(popurl){ var winpops=window.open(popurl,"","width=516,height=480") } //popup //menu kiri function mmLoadMenus() { if (window.linkcarta) return; if (window.linkfoto) return; //menu carta window.linkcarta = new Menu("root",130,17,"Verdana, Arial, Helvetica, sans-serif",10,"#fdbdd2","#ffffff","#a82851","#a82851","left","middle",3,0,1000,-5,7,true,true,true,0,false,false); linkcarta.addMenuItem("JKT","location='JKT.htm'"); linkcarta.addMenuItem("MT","location='MT.htm'"); linkcarta.addMenuItem("Staf","location='STAF.htm'"); linkcarta.fontWeight="bold"; linkcarta.hideOnMouseOut=true; linkcarta.menuBorder=0; linkcarta.menuLiteBgColor='#ffffff'; linkcarta.menuBorderBgColor='#c0617f'; linkcarta.bgColor='#c0617f'; //menu carta //menu foto window.linkfoto = new Menu("root",60,17,"Verdana, Arial, Helvetica, sans-serif",10,"#fdbdd2","#ffffff","#a82851","#a82851","left","middle",3,0,1000,-5,7,true,true,true,0,false,false); linkfoto.addMenuItem("2008","location='index.php?nama=aktiviti tahun 2008&cont=pic&year=x2008'"); linkfoto.addMenuItem("2009","location='index.php?nama=aktiviti tahun 2009&cont=pic&year=x2009'"); linkfoto.addMenuItem("2010","location='index.php?nama=aktiviti tahun 2010&cont=pic&year=x2010'"); linkfoto.addMenuItem("2011","location='index.php?nama=aktiviti tahun 2011&cont=pic&year=x2011'"); linkfoto.fontWeight="bold"; linkfoto.hideOnMouseOut=true; linkfoto.menuBorder=0; linkfoto.menuLiteBgColor='#ffffff'; linkfoto.menuBorderBgColor='#c0617f'; linkfoto.bgColor='#c0617f'; //menu foto linkcarta.writeMenus(); linkfoto.writeMenus(); } // mmLoadMenus() //menu kiri function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah) { this.version = "020320 [Menu; mm_menu.js]"; this.type = "Menu"; this.menuWidth = mw; this.menuItemHeight = mh; this.fontSize = fs; this.fontWeight = "plain"; this.fontFamily = fnt; this.fontColor = fclr; this.fontColorHilite = fhclr; this.bgColor = "#555555"; this.menuBorder = 1; this.menuBgOpaque=opq; this.menuItemBorder = 1; this.menuItemIndent = idt; this.menuItemBgColor = bg; this.menuItemVAlign = valgn; this.menuItemHAlign = halgn; this.menuItemPadding = pad; this.menuItemSpacing = space; this.menuLiteBgColor = "#ffffff"; this.menuBorderBgColor = "#777777"; this.menuHiliteBgColor = bgh; this.menuContainerBgColor = "#cccccc"; this.childMenuIcon = "arrows.gif"; this.submenuXOffset = sx; this.submenuYOffset = sy; this.submenuRelativeToItem = srel; this.vertical = vert; this.items = new Array(); this.actions = new Array(); this.childMenus = new Array(); this.hideOnMouseOut = true; this.hideTimeout = to; this.addMenuItem = addMenuItem; this.writeMenus = writeMenus; this.MM_showMenu = MM_showMenu; this.onMenuItemOver = onMenuItemOver; this.onMenuItemAction = onMenuItemAction; this.hideMenu = hideMenu; this.hideChildMenu = hideChildMenu; if (!window.menus) window.menus = new Array(); this.label = " " + label; window.menus[this.label] = this; window.menus[window.menus.length] = this; if (!window.activeMenus) window.activeMenus = new Array(); } function addMenuItem(label, action) { this.items[this.items.length] = label; this.actions[this.actions.length] = action; } function FIND(item) { if( window.mmIsOpera ) return(document.getElementById(item)); if (document.all) return(document.all[item]); if (document.getElementById) return(document.getElementById(item)); return(false); } function writeMenus(container) { if (window.triedToWriteMenus) return; var agt = navigator.userAgent.toLowerCase(); window.mmIsOpera = agt.indexOf("opera") != -1; if (!container && document.layers) { window.delayWriteMenus = this.writeMenus; var timer = setTimeout('delayWriteMenus()', 500); container = new Layer(100); clearTimeout(timer); } else if (document.all || document.hasChildNodes || window.mmIsOpera) { document.writeln(''); container = FIND("menuContainer"); } window.mmHideMenuTimer = null; if (!container) return; window.triedToWriteMenus = true; container.isContainer = true; container.menus = new Array(); for (var i=0; i