<!--
// *****************************************************************************
// *****************************************************************************

// *****************************************************************************
// **                                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='menu.html';

// 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='images/';

// do you want to use images for the category bullets?
check='yes';					// insert yes or no

// give image names and dimensions
lev1OpName='asset_bullet_4dot_over.gif';			// open image name
lev1OpHeight='7';				// image height
lev1OpWidth='6';				// image width

lev1ClosName='asset_bullet_4dot.gif';		// closed image name
lev1ClosHeight='12';			// image height
lev1ClosWidth='12';				// 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='asset_bullet_4dot_green.gif';			// image name
lev2Height='12';				// image height
lev2Width='12';					// 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 = '&#155; ';

// base target - the frame that the links are targetting
base = 'main';

// *****************************************************************************
// **                             END OF SETTINGS                             **
// *****************************************************************************

// pulls 'page' variable out of URL
	var x = 0
	page = location.search.substr(1).split("?")
	for (x=0;x<=page.length;x++) {
		eval(page)
		}
page = escape(page);
page = page.slice(7);

// do not alter this bit
function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
document.write('<BASE target="' + base + '">');

// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

// index
if (page=='index') {
thisMenu = new Array();
check='yes';
section='home';
}

// company
if (page=='company') {
thisMenu = new Array();
check='no';
}
// services
if (page=='services') {
thisMenu = new Array();
check='no';
}
// projects
if (page=='projects') {
thisMenu = new Array();
check='no';
}
// contact
if (page=='contact') {
thisMenu = new Array();
check='no';
}


// opens menu section
function openMenu(cat,section) {
this.cat = cat;
this.section = section;
document.write('<tr><td><table border="0" align="left" cellpadding="0" cellspacing="0"><tr><td valign="top" class="navigationStyle"> <div align="left">');
document.write('<a href = "' + cat + '.php?page='+cat+'" class="navigationActive">')
document.write(section)
document.write('</a></div></td>');
document.write('</tr></table></td></tr>');
for (x=0;x<thisMenu.length;x++){

if (check=='no') {
document.write('<tr><td><table height="10" border="0" align="left" cellpadding="0" cellspacing="0"><tr><td width="6" valign="top" class="navigationActive"><img src="images/asset_spacer.gif" alt="spacer" width="6" height="2"><br>»</td><td valign="top" class="navigationStyleSub"><a href="' + linka + thisMenu[x].linkb + '?page='+cat+'" class="navigationSub">' + thisMenu[x].name + '</a></div></td></tr></table></td></tr>');
}
// if (lev1img=='no') {
// document.write('<tr><td width="150" background="images/nav_bar_bg_sub.jpg"><table width="150" border="0" align="right" cellpadding="0" cellspacing="0"><tr><td valign="top" height="1"><img src="../images/asset-spacer.gif" width="150" height="1"></td><td width="15" valign="top" height="1"><img src="../images/asset-spacer.gif" width="15" height="1"></td><td width="5" height="1"><img src="../images/asset-spacer.gif" width="5" height="1"></td></tr></table></td></tr>');
}
}


// closes menu section
function closeMenu(cat,pass,section) {
this.cat = cat;
this.pass = pass;
this.section = section;
document.write('<tr><td><table border="0" align="left" cellpadding="0" cellspacing="0"><tr><td valign="top" class="navigationStyle"> <div align="left">');
document.write('<a href = "' + cat + '.php?page='+pass+'"   class="navigation">' + section + '</a></div></td></tr></table></td></tr>');
}

   function PopupPic(sPicURL) { 
     window.open( "popup.htm?"+sPicURL, "",  
     "resizable=1,HEIGHT=200,WIDTH=200"); 
   } 

//-->