PK 6@/n\$1 $1 images/00000000.js// NavBar with popup menus function wp_navbar_menu_activestack() { this.depth = []; this.element = []; } //Entry point function wp_navbar_menu(menubarid, navtree, options, styleOptions) { var me = this; //Internal vars: me.m_timeout = null; me.m_active = null; //default options me.options = { "m_bNoScript":false, "m_bStaticScript":false, "m_optAlignment":0, "m_optGap":1, "m_optPopupSeparation":1, "m_optTimeOut":500, "m_optShowBelow":1, "m_optShowRight":1, "m_optFirstPopupPosition":0, "m_sCssClass":'' }; if( options ) { me.options = WpNavBar.mergeOptions( me.options, options ); if(options.m_opTimeOut) //Fix { options.m_optTimeOut = options.m_opTimeOut; } } me.styleOptions = { 'm_bSlidingDoors' : false, 'top' : { 'm_sSpacerText' : '' } }; if( styleOptions ) { me.styleOptions = WpNavBar.mergeOptions( me.styleOptions, styleOptions ); } me.write = function(s) { if( this.options.m_bNoScript || this.options.m_bStaticScript ) { external.NavNoScriptWrite(s); } else { document.write(s); } }; me.Create = function(menubarid, navtree) { if( !navtree || !navtree.childArray ) { //NavTree could not be loaded return; } //Don't create submenus or rollover events in NOSCRIPT output //Also, we don't support m_bStaticScript so just do same as NOSCRIPT output var bAddScript = !this.options.m_bNoScript && !this.options.m_bStaticScript; //We write our own DIV element this.write( '
' ); if( bAddScript ) { //Create the child menus (outside the div) for( var index = 0; index < navtree.childArray.length; index++ ) { var navbaritem = navtree.childArray[index]; var menuid = menubarid + '_P' + index.toString(); this.create_navbar_child_menus_recursive( menubarid, menuid, navbaritem ); } } if( this.options.m_bNoScript || this.options.m_bStaticScript ) { external.NavNoScriptComplete(); } }; me.create_navbar_child_menus_recursive = function( menubarid, menuid, parenttree ) { var bHasChildren = ( parenttree.childArray ) && ( parenttree.childArray.length > 0 ); if( !bHasChildren ) { return; } this.BeginMenu( menubarid, menuid ); //Loop through each child in the tree (each of which will be a menu item) for( var index = 0; index < parenttree.childArray.length; index++) { var menuitem = parenttree.childArray[index]; var menuitemid = menuid + '_I' + index.toString(); var menuitemhaschildren = ( menuitem.childArray ) && ( menuitem.childArray.length > 0 ); var childmenuid = menuitemhaschildren ? ( menuid + '_P' + index.toString() ) : null; var sTarget = ( menuitem.sTarget ) ? menuitem.sTarget : '_self'; var bIsCurrentPage = ( menuitem.bIsCurrentPage === true ); if( menuitem.bSeparator ) { var separatorid = menuitemid + '_separator'; this.AddLink( menubarid, separatorid, '', '', null, null, true, false ); } this.AddLink(menubarid, menuitemid, menuitem.sTitle.replace(/ /g," "), menuitem.sUrl, childmenuid, sTarget, false, bIsCurrentPage); } this.EndMenu(); //Write out all the child menus of this menu for( var index = 0; index < parenttree.childArray.length; index++) { var menuitem = parenttree.childArray[index]; var childmenuid = menuid + '_P' + index.toString(); this.create_navbar_child_menus_recursive( menubarid, childmenuid, menuitem ); } }; me.InitElement = function(id_name) { var e = document.getElementById(id_name); e.p_root = this; }; me.BeginMenu = function(menubarid, id_name) { this.m_active = id_name; this.write('