
var bName = navigator.appName
var bVer = parseInt(navigator.appVersion)
var n = false
var ie = false

if(bName == "Netscape" && bVer >= 3) {
	n = true; }
else if(bName == "Microsoft Internet Explorer" && bVer >= 4) {
	ie = true;}


function objshow(hidedef,showobj) 
 {
  if (n) {
 	parent.title.document.layers[hidedef].visibility = "hide"; 
	parent.title.document.layers[showobj].visibility = "show";}	
  if (ie) {
  	parent.title.document.all[hidedef].style.visibility = "hidden"; 
	parent.title.document.all[showobj].style.visibility = "visible";}
 }
        
function chkshow(showobj) {
	var defPg = parent.body.document.title
	switch (defPg) {
		case "Home" :
			objshow('home',showobj);
			break;
		case "Schedule" :
			objshow('sch',showobj);
			break;
		case "Bio" :
			objshow('bio',showobj);
			break;
		case "Music" :
			objshow('music',showobj);
			break;
		case "Guestbook" :
			objshow('gbook',showobj);
			break;
		case "Contact" :
			objshow('contact',showobj);
			break;
		case "Links" :
			objshow('links',showobj);
			break;
		default :
			objshow('gbook',showobj);
	}
}

function chgdef(deftitle,hideobj) {
	if (n) {
	  	parent.title.document.layers[hideobj].visibility = "hide";
	  	parent.title.document.layers[deftitle].visibility = "show";}
	if (ie) {
	  	parent.title.document.all[hideobj].style.visibility = "hidden";
	  	parent.title.document.all[deftitle].style.visibility = "visible";}
}

function chkdef(hideobj) {
	var defPg = parent.body.document.title
	switch (defPg) {
		case "Home" :
			chgdef('home',hideobj);
			break;
		case "Schedule" :
			chgdef('sch',hideobj);
			break;
		case "Bio" :
			chgdef('bio',hideobj);
			break;
		case "Music" :
			chgdef('music',hideobj);
			break;
		case "Guestbook" :
			chgdef('gbook',hideobj);
			break;
		case "Contact" :
			chgdef('contact',hideobj);
			break;
		case "Links" :
			chgdef('links',hideobj);
			break;
		default :
			chgdef('gbook',hideobj);
	}
}
