var rollFlag = 0
var browserName= navigator.appName
var browserVersion = navigator.appVersion
current_overID = "";
last_overID = "";

window.onerror=stopError;
 
function stopError() {
	return true;
	}

function version() {
        if (browserName.charAt(0)=="N") {
                if (browserVersion.charAt(0) > "2") {
                        // Netscape 3.0 or above.
                        rollFlag=1              
                } else {
                        // Netscape 2.0 or below.
                        rollFlag=0
                }
        } else if (browserName.charAt(0)=="M") {
                if (browserVersion.charAt(0) > "3") {
                        // IE 4.0 or above
                        rollFlag=1
                } else {
                        // IE 3.0 or below
                        rollFlag=0
                }     
        } else {
                // Some other browser
                rollFlag=0        
        }
        return rollFlag
}

function toc_item (img_name) {
        if (version()==0) return;
        img_prefix ="Graphics/AB8/NV/W/" + img_name;
        this.toc_img_off = new Image ();
        this.toc_img_off.src = img_prefix + "-off.gif";
        this.toc_img_on = new Image ();
        this.toc_img_on.src = img_prefix + "-on.gif";
}

function new_toc_item (img_name) {
        toc_item [img_name] = new toc_item (img_name);
}

function toc_mouseover (itemID) {
        if (version()==0) return;
        current_overID = itemID;
        if (current_overID != last_overID) {
                document [current_overID].src = toc_item [current_overID].toc_img_on.src;
                if (last_overID != "") {
                        document[last_overID].src = toc_item [last_overID].toc_img_off.src;
                }
                last_overID = current_overID;
        }
}

function toc_mouseout () {
        if (version()==0) return;
        if (current_overID != "") {
                document[current_overID].src = toc_item [current_overID].toc_img_off.src;
        }
        current_overID = "";
        last_overID = "";
}

function remove_Frame () {
        if (version()==0) return;
	parent.location=parent.frames[1].location.href;
}

function remove_lFrame () {
        if (version()==0) return;
	parent.location=parent.frames[0].location.href;
}

function foc(loc){
	loc.select()
	loc.focus()
}

function Gifmit(){
	document.Kee.submit();
}

function go(drop_down){
	(drop_down.options[drop_down.selectedIndex].value != "null") ?
		location.href=drop_down.options[drop_down.selectedIndex].value : drop_down.selectedIndex = 0;
	drop_down.selectedIndex = 0;
}

new_toc_item ("btn_home");
new_toc_item ("btn_about");
new_toc_item ("btn_site_index");
new_toc_item ("btn_catalog");
new_toc_item ("btn_schedule");
new_toc_item ("btn_directory");
new_toc_item ("btn_web4");
new_toc_item ("btn_faq");
new_toc_item ("btn_maps");
new_toc_item ("btn_noframe");
