
defaultStatus = "";

var codeholder // *** does this do anything any more??
var indload = 'false' // *** does this do anything any more??
var splashcall = 'bura.htm' // *** does this do anything any more??

   	ns=(navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
	ns6=(ns && document.getElementById) ? 1 : 0;
	
	if (ns6) ns=0;
	
	ie = (document.all) ? 1:0
	ie5=false;
    
    	if (ie) {
    		if (navigator.userAgent.indexOf('MSIE 5')>0) {
    			ie5 = true;
    		}
    	}

// ********************************************************************************************
// *** The function below setcover() displays the right pointing arrow ************************
// *** on the menu and covers the item so that it no longer shows as a link *******************
// *** and changes the header picutre and bottom return link picture if necessary *************
// *** all this information is contained in parameters sent from the individual main page. ****
// ********************************************************************************************

 function setcover(a,b,c,d)
{

// *** check menu, top and base are loaded before running setcover function in full

	if (parent.toploadandinit == 'false') {
	e = a
	f = b
	g = c
	h = d
	window.setTimeout("setcover(e,f,g,h);",100)
	return;
	}
	if (parent.menuloadandinit == 'false') {
	e = a
	f = b
	g = c
	h = d
	window.setTimeout("setcover(e,f,g,h);",100)
	return;
	}
	if (parent.baseloadandinit == 'false') {
	e = a
	f = b
	g = c
	h = d
	window.setTimeout("setcover(e,f,g,h);",100)
	return;
	}
// alert("swtich about to be called")
	switch (b) {

	case "ltabout":
	b = 1; break;
	case "ltmembership":
	b = 3; break;
	case "ltevents":
	b = 5; break;
	case "ltawards":
	b = 7; break;
	case "ltpublications":
	b = 9; break;
	case "ltpress":
	b = 11; break;
	case "ltcredits":
	b = 13; break;
	case "ltcontact":
	b = 15; break;
	case "ltsdf":
	b = 17; break;
	case "ltburanet":
	b = 19; break;
	case "lttraining":
	b = 21; break;
	case "ltvacancy":
	b = 25; break;
	case "ltseaside":
	b = 23; break;
	default:
	break;
	}

// alert("if ie or ns6 then...set light menu text")
	if (ie || ns6) {	

// ** ie ** set correct menu item in light text if not already ****

	 	if  (parent.frames.frameindex.lb[b].visibility == 'visible')
	 	{}
	 	else
	 	{
//		alert("value of b is "+b)
 		var k=1
			while (k<26) {
//			alert("k is less than 24 actually "+k)
			parent.frames.frameindex.lb[k].visibility = 'hidden';
//			alert("lb[k] set to hidden")
			k=k+2;
			}
//		alert("all set to invisible initially then...")
		parent.frames.frameindex.lb[b].visibility = 'visible'
		}

// ** ie ** set bottom graphics visibility and link data
// alert("set bottom graphic")
	if (a=="") { 
		
	parent.frames.mainbottom.base[2].visibility = 'hidden';
	parent.frames.mainbottom.base[3].visibility = 'hidden';
	}
	else {

		if (a=="../events/diary/emailsarah.gif") {
	 	parent.frames.mainbottom.document.links[0].href = d;
	   	parent.frames.mainbottom.document.images[2].src = a;
//   		parent.frames.mainbottom.base[2].visibility = 'visible';
   		parent.frames.mainbottom.base[3].visibility = 'visible'; 
		}
		else
		{
	 	parent.frames.mainbottom.document.links[0].href = d;
	   	parent.frames.mainbottom.document.images[2].src = a;
   		parent.frames.mainbottom.base[2].visibility = 'visible';
   		parent.frames.mainbottom.base[3].visibility = 'visible'; 
		}
	}
//alert("set header graphic")		
// ** ie ** change the header graphic (if necessary)

 	if (parent.frames.maintop.top1.document.images[0].src == c)
 	{ alert("in ie top graphic recognised as being same");}  // *** doesn't work!!!
 	else
 	{ parent.frames.maintop.top1.document.images[0].src = c ;
	}

	}
	else if (ns)	{	

// *** if Netscape navigator version 5 or less detected ***
// *** nn *** set correct menu item in light text if not already ***

	 	if  (parent.frames.frameindex.lb[b].visibility == 'show')
	 	{}
	 	else
	 	{
 		var k =1
			while (k<26) {
			parent.frames.frameindex.lb[k].visibility = 'hide';
			k=k+2;
			}
		parent.frames.frameindex.lb[b].visibility = 'show'
		}

 		if (a=="") { 
 		parent.frames.mainbottom.document.layers[1].visibility = 'hide';
 		parent.frames.mainbottom.document.layers[2].visibility = 'hide'; 
		}
 		else
 		{

// **** when code called from bura.js from netscape, code assumes that it is in JS file not calling 	
// **** so, use code to change reference from relative to absolute by removing the first 2 dots

// ** nn ** set bottom graphics link data *********

   		y1 = d.lastIndexOf("../")
   		destination = d.slice(y1+2)
   		parent.frames.mainbottom.document.layers[2].document.links[0].href = destination;

// ** nn ** set bottom graphics graphic file ***********

  		y2 = a.lastIndexOf("../")
   		newpic2 = a.slice(y2+2)
  		parent.frames.mainbottom.document.layers[2].document.images.uponelevel.src = newpic2;

// ** nn ** set header graphics graphic file

	 	y3 = c.lastIndexOf("../")
  		newpic3 = c.slice(y3+2)
		parent.frames.maintop.document.layers[0].document.images[0].src = newpic3 ; 

// ** nn ** set bottom graphics visibility

   		parent.frames.mainbottom.base[2].visibility = 'show';
		parent.frames.mainbottom.base[3].visibility = 'show';
		}

	}  // ***** browser switch end
}  // ***** function end


// ************************************************************

	function show(obj) {
		if (ns) obj.visibility = "show"
		else if (ie || ns6) obj.visibility = "visible"
	}

// ************************************************************

	function hide(obj) {
		if (ns) obj.visibility = "hide"
		else if (ie || ns6) obj.visibility = "hidden"
	}

// ************************************************************


	function latestlink(a) {
		top.document.location = "content.htm?"+a;
		// top.frames.main.document.location.replace(a);
	}

// ************************************************************





