// JavaScript Document
document.WM = new Object();
document.WM.hirelist = new Object();
document.WM.hirelist.expandos = new Array();
document.WM.hirelist.heights = new Array();
document.WM.hirelist.names = new Array();

document.WM.activemenu = 0;

function WM_toggle(id) {
	if (document.all){
		if(document.all[id].style.display == 'none'){
			document.all[id].style.display = '';
		} else {
			document.all[id].style.display = 'none';
		}
	} else if (document.getElementById){
		if(document.getElementById(id).style.display == 'none'){
			document.getElementById(id).style.display = 'block';
		} else {
			document.getElementById(id).style.display = 'none';
		}
	} else if(document.layers) {
		if(parseInt(id + 1)){
			ditem = id + 1;
		} else {
			ditem = document.WM.hirelist.names[id];
		}
		if(document.WM.hirelist.expandos[ditem].clip.bottom == 0) {
			document.WM.hirelist.expandos[ditem].clip.bottom = document.WM.hirelist.heights[ditem];
		} else {
			document.WM.hirelist.expandos[ditem].clip.bottom = 0;
		}
		WM_align();
	}
}


// alternate version that closes all other menus when you open a menu
function WM_toggleB(id) {
	WM_initialize_toolbar();
	if (id != document.WM.activemenu) {
		WM_toggle(id);
		document.WM.activemenu = id;
	} else {
		document.WM.activemenu = 0;
	}
}


function WM_align() {
	var i,j,stupid_netscape_array_infinate_loop_error;
	stupid_netscape_array_infinate_loop_error = document.WM.hirelist.expandos.length;
	for(i=0; i<stupid_netscape_array_infinate_loop_error; i++) {
		j = i + 1;
		if(document.WM.hirelist.expandos[j]){
			if(document.layers) {
				document.WM.hirelist.expandos[j].top = document.WM.hirelist.expandos[i].top + document.WM.hirelist.expandos[i].clip.bottom;
			}
		}
	}
}

function WM_initialize_toolbar(){
	if(document.layers) {
		for(i=0; i<document.layers['container'].document.layers.length; i++){
			document.WM.hirelist.expandos[i] = document.layers['container'].document.layers[i];
			document.WM.hirelist.names[document.layers['container'].document.layers[i].name] = i;
			document.WM.hirelist.heights[i] = document.WM.hirelist.expandos[i].clip.bottom;
		}
		for (p=0;p<document.WM.hirelist.expandos.length;p=p+2){
			WM_toggle(p);
		}
		document.layers['container'].visibility = 'visible';
	} else if (document.all){
		for(i = 0; i < document.all('container').all.length; i++){
			document.all('container').all[i].style.position = 'relative';
			if(document.all('container').all[i].className == 'subNavBlock'){
				document.all('container').all[i].style.display = 'none';
			}
		}
		document.all('container').style.visibility = 'visible';
	} else if (document.getElementsByTagName && document.getElementById){
		var contained = document.getElementById('container').getElementsByTagName('div');
		for(i = 0; i < contained.length; i++){
			contained[i].style.position = 'relative';
			if(contained[i].getAttribute('class') == 'subNavBlock'){
				contained[i].style.display = 'none';
			}
		}
		document.getElementById('container').style.visibility = 'visible';
	}
}

var toggled;
var blah;


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



document.write('<style type="text/css">.containernav { visibility: hidden; }</style>');

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}