//*********************************************
// Tree Menu Copyright Simon Rycroft
// For more scripts go to:
// http://www.d-zineworx.co.uk
//*********************************************
// opens menu section - do not alter
// main menu - access clients absolutely at aimtec (10-14)
function openMenu(cat) {
this.cat = cat;
// specifies absolute address for library links
if (page == 'clients' || page == 'weddings') { linka = '../'; 
} else { 
linka = '../html/';}
// end absolute address
document.write('<a class="level1" href = "' + thisPage + '?page=null" target="_self" onmouseover="window.status=\'' + cat + '\'; return true;" onmouseout="window.status=\'\' ">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1OpName +'" width="' + lev1OpWidth + '" height="' + lev1OpHeight + '"border="0">');}
document.write(cat + '</a><br>');
for (x=0;x<thisMenu.length;x++){
if (lev2img=='yes') {
document.write('<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');}
if (lev2Char=='yes') {
document.write(bullet);}
document.write('<a class = "level2" href="' + linka + thisMenu[x].linkb + '" onmouseover="window.status=\'' + thisMenu[x].name + '\'; return true;" onmouseout="window.status=\'\' ">' + thisMenu[x].name + '</a><br>');}}
// closes menu section - do not alter
function closeMenu(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('<a class = "level1" href = "' + thisPage + '?page='+pass+'" target="_self" onmouseover="window.status=\'' + cat + '\'; return true;" onmouseout="window.status=\'\' ">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');}
document.write(cat + '</a><br>');}
// write page header
function writeHeader(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('<a class = "level1" href = "' + thisPage + '?page='+pass+'" target="_self" onmouseover="window.status=\'' + cat + '\'; return true;" onmouseout="window.status=\'\' ">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');}
document.write(cat + '</a><br> ');}

linka='../html/';
thisPage='menu.html';
imgPath='../images/icons/';
lev1img='yes';					// insert yes or no
lev1OpName='true.gif';			// open image name
lev1OpHeight='12';				// image height
lev1OpWidth='12';				// image width
lev1ClosName='false.gif';		// closed image name
lev1ClosHeight='12';			// image height
lev1ClosWidth='12';				// image width
lev2img='no';					// insert yes or no
lev2Name='bullet.gif';			// image name
lev2Height='10';				// image height
lev2Width='16';					// image width
lev2Char='yes';					// insert yes or no
bullet = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#155; ';
base = 'content';
// edit client names here - turn on only those clients shown in menu (113-122)
var clienta = 'DugongBeachResort';
var clientb = 'DecadesExhibition';
var clientc = 'HeliCowboys';
var clientd = 'BuffaloExibition';
var cliente = 'VRDRoadTrains';
var clientf = 'BarungaFestival';
var clientg = 'SkyScansPrints';
var clienth = 'Hochtief';
var clienti = 'Springvale';
var clientj = 'Chefs';
var clientk = 'CamelRace';
var clientl = 'Wilcraft';
var clientp = 'Private clients';
// end edit client names
// pulls 'page' variable out of URL - do not alter	the following
	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);
function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
if (page == 'weddings') { 
document.write('<BASE target="_top">');
} else { 
document.write('<BASE target="' + base + '">');}
// Home Menu
if (page=='home') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Entry Page','../index1.html');
thisMenu[1] = new subMenu('Site Map','sitemap.html');
}
// About Menu
if (page=='about') {
thisMenu = new Array();
thisMenu[0] = new subMenu('About','aboutus1.html');
thisMenu[1] = new subMenu('Policy','policy.html');
thisMenu[2] = new subMenu('Family Album','family.html');
thisMenu[3] = new subMenu('Feedback','feedback.html');
}
// Library Menu
if (page=='library') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Enter Library','lib-entry.html');
}
// Published Work Menu
if (page=='published') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Published Work','published.html');
thisMenu[1] = new subMenu('Corporate Work','corporate1.html');
thisMenu[2] = new subMenu('Features Album','features1.html');
thisMenu[3] = new subMenu('Editorial Work','editorial1.html');
thisMenu[4] = new subMenu('Book','book.html');
}
// Gallery Menu
if (page=='gallery') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Enter Gallery','gal-entry.html');
}
// Clients Proofs Menu (active array items must be numbered 0, 1, 2, 3 &c)
if (page=='clients') {
thisMenu = new Array();
thisMenu[0] = new subMenu(clienta,'clienta/index.htm');
thisMenu[1] = new subMenu(clientb,'clientb/index.htm');
thisMenu[2] = new subMenu(clientc,'clientc/index.htm');
thisMenu[3] = new subMenu(clientd,'clientd/index.htm');
thisMenu[4] = new subMenu(cliente,'cliente/index.htm');
thisMenu[5] = new subMenu(clientf,'clientf/index.htm');
thisMenu[6] = new subMenu(clientg,'clientg/index.htm');
thisMenu[7] = new subMenu(clienth,'clienth/index.htm');
thisMenu[8] = new subMenu(clienti,'clienti/index.htm');
thisMenu[9] = new subMenu(clientj,'clientj/index.htm');
thisMenu[10] = new subMenu(clientk,'clientk/index.htm');
thisMenu[11] = new subMenu(clientl,'clientl/index.htm');
thisMenu[12] = new subMenu(clientp,'private/clientp.html');
}
// Skyscans Weddings Menu (active array items must be numbered 0, 1, 2, 3 &c)
if (page=='weddings') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Weddings','weddings/index.htm');
}


