// JavaScript Document

// General purpose Javascript for the entire Just4Kids site


function openWindow(page,width,height){

	// open the popup window
    var popupURL = page;
    var winName = "window" + width + height;
    var popup = window.open(popupURL,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+width+',height='+height);

    // set the opener if it's not already set.  it's set automatically
    // in netscape 3.0+ and ie 3.0+.
    if( navigator.appName.substring(0,8) == "Netscape" )    {
    	popup.location = popupURL;
	}

}

var HOME_ON = new Image();
HOME_ON.src = "images/home_info_ro.jpg";
var HOME_OFF = new Image(); 
HOME_OFF.src = "images/home_info_blank.jpg";

function showHomeInfo() {
	document.images['home_info'].src = HOME_ON.src;
	return true;
}

function hideHomeInfo() {
	document.images['home_info'].src = HOME_OFF.src;
	return true;
}


