// Orange nav v1.0 // written by Stephen Brown // AKQA // 10th Novemeber 2000 // this nav includes the following functions: // create_menus // show_menu // hide_menu // show_sub // hide_sub // hide_all // menuOver // menuOut // ns_hidehilights // set_timeout // clear_timer // write_nav // the following functions will show / hide Flash Animations // when the navigation menu opens: // show_flash // hide_flash // start_layer (top, left, width) // end_layer // startFlash (top, left, flashfile, flashwidth, flashheight, giffile, gifwidth, gifheight) // endFlash (thislayer) // Cookie information for the e-sales shopping basket // GetCookie // insertBasket // netscape / IE 3 and less detect // nsie3_det // NEW Functions for Global Body TAGS // These two functions are left blank, to stop errors should you not wish to // create one on your document, the reason for these is that you can add // functions and script to the ONLOAD and ONUNLOAD properties of the BODY // without actually amending the body TAG itself. /* function ora_doc_onload() {} function ora_doc_onunload() {} // These are the main functions that can be amended when ONLOAD and ONUNLOAD // are to be changed for global site function ora_body_onload() { ora_doc_onload(); // DO NOT REMOVE } function ora_body_onunload() { ora_doc_onunload(); // DO NOT REMOVE } // setting up new Arrays for Orange dHTML menu function create_menus() { if(buttonsAdded == false) { addSizeButtons(); buttonsAdded = true; } args = create_menus.arguments; var ID = args[0]; var direction; var javaStart; var javaEnd; if(document.layers) { // Netscape Navigator/Communicator Menu for(i=0; i\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('
\n'); if(dSubMenu[ID][i][0] && direction == "left") { document.write('\n'); } else { document.write('\n'); } document.write('\n'); document.write('
\n'); var thisHREF = dMenu[ID].links[i]; var thisTarget = ""; if(thisHREF.indexOf("javascript:") != -1) { if(thisHREF.indexOf("window.open") != -1) { thisHREF = thisHREF.substring(24, thisHREF.indexOf("')")); thisTarget = ' TARGET="_blank"'; } } document.write('\n'); document.write(dMenu[ID][i]); document.write('\n'); document.write('
\n'); if(dSubMenu[ID][i][0] && direction == "right") { document.write('\n'); } else { document.write('\n'); } document.write('
\n'); document.write('\n'); // Over Navigation Menu Item document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('
\n'); if(dSubMenu[ID][i][0] && direction == "left") { document.write('\n'); } else { document.write('\n'); } document.write('\n'); document.write('
\n'); document.write('\n'); document.write(dMenu[ID][i]); document.write('\n'); document.write('
\n'); if(dSubMenu[ID][i][0] && direction == "right") { document.write('\n'); } else { document.write('\n'); } document.write('
\n'); document.write('
\n'); if(dSubMenu[ID][i].length) { var top=dMenu[ID].top; for(j=0; j\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('
\n'); document.write('\n'); document.write('\n'); document.write('
\n'); var thisSubHREF = dSubMenu[ID][i].links[j]; var thisTarget = ""; if(thisSubHREF.indexOf("javascript:") != -1) { if(thisSubHREF.indexOf("window.open") != -1) { thisSubHREF = thisSubHREF.substring(24, thisSubHREF.indexOf("')")); thisTarget = ' TARGET="_blank"'; } } document.write('\n'); document.write(dSubMenu[ID][i][j]); document.write('\n'); document.write('
\n'); document.write('\n'); document.write('
\n'); document.write('\n'); // Over Navigation Menu Item document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('
\n'); document.write('\n'); document.write('\n'); document.write('
\n'); document.write('\n'); document.write(dSubMenu[ID][i][j]); document.write('\n'); document.write('
\n'); document.write('\n'); document.write('
\n'); document.write('
\n'); top+=20; } } dMenu[ID].top+=20; } } else if(document.all) { // Internet Explorer Menu for(i=0; i