var pageWidth; // width of the available page
var pageHeight; // height of the avialable page
var pageLeft; // left hand side of page
var pageBottom; // bottom of the page
var menuWidth=250; // width to exclude from the left hand side
var titleHeight=100; // height to exclude from the top of the page
var displayWidth=0; // available width which to display elements
var displayHeight=0; // available height which to display elements

var isOrderLayerDisplayed=false; // flag stating state of the order layers
var isLinksLayerDisplayed=false; // flag stating state of the link layers

var IE4 = (document.all) ? 1 : 0; // is it IE 4 or compatible
var NS4 = (document.layers) ? 1 : 0; // is it Netscape 4 or compatible
var navName = navigator.appName; // name of the browser

// needed for the selection of style sheets
var css_def='def'; // default for links (large window)
var css_menu='menu'; // default for links in the menus
var css_maplink='maplink'; // default for links in the map
var css_info='info'; // default for the info boxes
var css_meet='meet'; // default for the meet the artist box
var css_order='order'; // default for the order boxes
var css_title='title'; // default for the page titles
var css_feature='feature'; // default for the paragraph size
var css_instr='instr'; // default for the instruction layer
var css_clickinstr='clickinstr'; // default for click instructions
var css_display='display'; // default for the display layer
var css_webrings='webrings'; // default for the webrings layer

function redirectBrowser() // redirect browser to old site
{
	location.replace('old_site/upgrade.html'); // load old site into older browsers
}

function checkbrowser() // check if browser will run
{
	if(document.layers) return true; // if netscape 4 or earlier tries to view the page
	if(!document.getElementById) return true; // browser does not support dhtml

	// get the version number
	var navVersion = navigator.appVersion.substring(0,navigator.appVersion.lastIndexOf('('));
	
	// if browser is netscape and less then version 5, do not allow the page to load
	if((navigator.appName == 'Netscape') && (navVersion < 5)) return true
	else return false;
}	

function childElement(){ // returns the reference to the child layer
	return GetObject(this.child);
}

function childElementStyle(){ // returns the style reference for the child layer
	return GetStyleObject(this.child);
}

function chgBkground(id,color) // change the background color of a layer (cross browser)
{
	if(!document.layers) id.backgroundColor=color; // not ns4 browser
	else id.bgColor=color; // ns4
}


function hiResBack(id) // change the background color of the resources table
{
	id.backgroundColor='green'; // set the background of the resources choice to red
}

function unhighlight(id) // make the background transparent
{
	id.backgroundColor='transparent'; // make the background color to transparent
}


