<!--

if (document.images) {
  var btn_home_on = new Image(131,30);
  btn_home_on.src = "http://www.stephaniewilliams.com/images/sw_nav_home_on.gif";
  var btn_home_off = new Image(131,30);
  btn_home_off.src = "http://www.stephaniewilliams.com/images/sw_nav_home.gif";
  
  var btn_about_on = new Image(131,30);
  btn_about_on.src = "http://www.stephaniewilliams.com/images/sw_nav_about_on.gif";
  var btn_about_off = new Image(131,30);
  btn_about_off.src = "http://www.stephaniewilliams.com/images/sw_nav_about.gif";
  
  var btn_writings_on = new Image(131,30);
  btn_writings_on.src = "http://www.stephaniewilliams.com/images/sw_nav_writings_on.gif";
  var btn_writings_off = new Image(131,30);
  btn_writings_off.src = "http://www.stephaniewilliams.com/images/sw_nav_writings.gif";
  
  var btn_book_on = new Image(131,30);
  btn_book_on.src = "http://www.stephaniewilliams.com/images/sw_nav_book_on.gif";
  var btn_book_off = new Image(131,30);
  btn_book_off.src = "http://www.stephaniewilliams.com/images/sw_nav_book.gif";
  
  var btn_updates_on = new Image(131,30);
  btn_updates_on.src = "http://www.stephaniewilliams.com/images/sw_nav_updates_on.gif";
  var btn_updates_off = new Image(131,30);
  btn_updates_off.src = "http://www.stephaniewilliams.com/images/sw_nav_updates.gif";
  
  var btn_contact_on = new Image(131,30);
  btn_contact_on.src = "http://www.stephaniewilliams.com/images/sw_nav_contact_on.gif";
  var btn_contact_off = new Image(131,30);
  btn_contact_off.src = "http://www.stephaniewilliams.com/images/sw_nav_contact.gif";

}

function act(imgName) {
  if (document.images) 
    document.images[imgName].src = eval(imgName + "on.src");
}

function inact(imgName) {
  if (document.images)
    document.images[imgName].src = eval(imgName + "off.src");
}

Menu = {timer : null, current : null};
Menu.getStyle = function(name){
	if(document.getElementById) return document.getElementById(name).style;
	else if(document.all) return document.all[name].style;
	else if(document.layers) return document.layers[name];
}
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);
	this.getStyle(name).visibility = "visible";
	this.current = name;
}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",200);
}
Menu.doHide = function(){
	if(this.current){
		this.getStyle(this.current).visibility = "hidden";
		this.current = null;
	}
}

bwr = navigator.appName;
ver = parseInt(navigator.appVersion);
NS4 = (bwr == "Netscape" && ver >= 4);
IE4 = (bwr == "Microsoft Internet Explorer" && ver >= 4);
v4 = (NS4 || IE4);

var maxheight = screen.availHeight-30;
var maxwidth = screen.availWidth-10;
var maxheight2 = screen.availHeight*.7;
var maxwidth2 = screen.availWidth*.7;
var newWin = null;
window.name = 'main';

function popWin(pageToLoad,winName,width,height) {

	xposition = (screen.availWidth - width) / 2;
	yposition = ((screen.availHeight - height) / 2) - 10;
	if ((parseInt(navigator.appVersion) >= 4 )) {
		xposition = (screen.availWidth - width) / 2;
		yposition = ((screen.availHeight - height) / 2) - 10;
    }
    args = "width=" + width + ","
    + "height=" + height + ","
    + "location=0,"
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=0,"
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only
	
	if (newWin != null && !newWin.closed) {
		newWin.close();
		newWin = null;
	}
    newWin = window.open(pageToLoad,winName,args);
    newWin.focus();
	
	if (NS4) {
		//return window.history.current();
	}
	else {
		//return window.history.current;
	}
	return;
}
// -->
