﻿// JScript File


function openWindow(loc) 
{
	window.open(loc, "Popup", "status=no,copyhistory=no,menubar=no,dependent=yes,directories=no,location=no,toolbar=no,titlebar=no,scrollbars=yes,width=500,height=400");
}					

function PrintIt(loc)
{
var newWin;
newWin = window.open(loc, "_blank", "width=650, height=800,status=yes,toolbar=no,menubar=yes,location=no,scrollbars =yes",true);

newWin.document.close();
}
function window_onload() {

SetDefaultSB();

return true;
}

function SetDefaultSB()
{
window.defaultStatus="Sullivan Tire and Auto Service -- CarCare Network";
return true;
} 

var layerRef = '';
var styleRef = '';

var layertohide='';

if (navigator.appName == "Netscape") {
	layerRef = 'document.layers';
}else{
	layerRef = 'document.all';
	styleRef = '.style';
}		

function showLayer(layerName) {

	hide();
	if (navigator.appName != "Netscape") {
		eval(layerRef + '["' + layerName + '"]' + styleRef + '.visibility="visible"');
	}
	return true;
}		

function hide() {
	if (layertohide != '') {
		if (navigator.appName != "Netscape") {
			eval(layerRef + '["' + layertohide + '"]' + styleRef + '.visibility="hidden"');
		}
	}
	layertohide = '';
	return true;
}

function hideMenu(layerName) {
	layertohide = layerName;
	setTimeout("hide();", 1000);
}	

function hideLayer(layerName) {
	if (navigator.appName != "Netscape") {
		eval(layerRef + '["' + layerName + '"]' + styleRef + '.visibility="hidden"');
	}
}

