// *****************************************************************************
// ** SETTINGS **
// *****************************************************************************
// 'linka' use this if part of the URL is the same in ALL the links
// In this example all the files are in a subfolder called 'pages'
linka='';
// the filename of the page the menu appears in eg 'menu.html'
thisPage='category.php';
// Do you want to use images for the category bullets?
// If so then specify the path to your images folder from the menu page
imgPath='http://www.antronix.net/images/links/';
// do you want to use images for the category bullets?
lev1img='no'; // insert yes or no
// give image names and dimensions
lev1OpName='open.gif'; // open image name
lev1OpHeight='10'; // image height
lev1OpWidth='10'; // image width
lev1ClosName='closed.gif'; // closed image name
lev1ClosHeight='10'; // image height
lev1ClosWidth='10'; // image width
// do you want to use images for the sub-category bullets?
lev2img='yes'; // insert yes or no
// give image names and dimensions
lev2Name='treeImg.gif'; // image name
lev2Height='18'; // image height
lev2Width='22'; // image width
// do you want to use a text character for the sub-category bullets?
lev2Char='no'; // insert yes or no
// set bullet character for level 2 bullets
bullet = ' ';
// base target - the frame that the links are targetting
base = '_self';
// *****************************************************************************
// ** END OF SETTINGS **
// *****************************************************************************
/*
* This function parses comma separated name=value
* argument pairs from the query string of the URL.
* It stores the name=value pairs in
* properties of an object and then returns that object
*
* Jim K - From Orielly JSB pp 244
*/
function getArgs() {
var args = new Object();
// Get Query String
var query = location.search.substring(1);
// Split query at the ampersand
var pairs = query.split("&");
// Begin loop through the querystring
for(var i = 0; i < pairs.length; i++) {
// Look for "name=value"
var pos = pairs[i].indexOf('=');
// if not found, skip to next
if (pos == -1) continue;
// Extract the name
var argname = pairs[i].substring(0,pos);
// Extract the value
var value = pairs[i].substring(pos+1);
// Store as a property
args[argname] = unescape(value);
}
return args; // Return the Object
}
arg = getArgs();
page = arg['page'];
// do not alter this bit
function subMenu(name,linkb) {
this.name = name;
this.linkb = linkb;
}
document.write('');
// *****************************************************************************
// ** BUILD MENU DATA **
// *****************************************************************************
// *****************************************************************************
// ** Products Section Menu **
// *****************************************************************************
// Multitaps
if (page=='multitaps') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Milenium Multitaps','category.php?page=multitaps&i=1');
thisMenu[1] = new subMenu('Retrofit Taps','category.php?page=retrofit&i=14');
thisMenu[2] = new subMenu('Multimedia Multitaps','category.php?page=multitaps&i=2');
}
// Internet
if (page=='linepassives') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Milenium Line Passives','category.php?page=linepassives&i=3');
thisMenu[1] = new subMenu('Multimedia Line Passives','category.php?page=linepassives&i=4');
}
// Amplifiers
if (page=='amplifiers') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Residential Amplifiers','category.php?page=amplifiers&i=5');
thisMenu[1] = new subMenu('Distribution Amplifiers','category.php?page=amplifiers&i=6');
}
// Drop Passives
if (page=='droppassives') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Digital Drop Splitters','category.php?page=droppassives&i=7');
thisMenu[1] = new subMenu('Digital Directional Couplers','category.php?page=droppassives&i=8');
thisMenu[2] = new subMenu('Digital Multitaps','category.php?page=droppassives&i=9');
}
// Fiber Optics
if (page=='fiber') {
thisMenu = new Array();
}
/**/
// Attenuators & Connectors
if (page=='attenuators') {
thisMenu = new Array();
thisMenu[0] = new subMenu('In-Line Attenuators','category.php?page=attenuators&i=10');
thisMenu[1] = new subMenu('F81-splice','category.php?page=attenuators&i=11');
thisMenu[2] = new subMenu('Ground Block','category.php?page=attenuators&i=12');
}
// Addressable Tap System Overview
if (page=='addressable') {
thisMenu = new Array();
thisMenu[0] = new subMenu('AGT3000 Series','agt.php?page=addressable');
thisMenu[1] = new subMenu('TMS/RMS System','tmsrms.php?page=addressable');
thisMenu[2] = new subMenu('ACU/Downloads','acu.php?page=addressable');
}
// *****************************************************************************
// ** Functions **
// *****************************************************************************
// opens menu section - do not alter
function openMenu(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('');
if (lev1img=='yes') {
document.write('
');
}
document.write('');
document.write(cat + '
');
document.write('');
document.write('');
}
// closes menu section - do not alter
function closeMenu(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('');
document.write('');
if (lev1img=='yes') {
document.write('
');
}
document.write(cat + '
');
}