URL = window.location.href;

if (URL != "http://www.hskautoparts.com/") {

var pagename_array = URL.split("/");

var barefile_array = pagename_array[3].split(".");
var result = barefile_array[0];


if	(result == "acura" || result == "audi" || result == "bmw" || result == "buick" || result == "cadillac" || result == "chevy" || result == "chrysler" || result == "dodge" || result == "ford" || result == "gmc" || result == "honda" || result == "hyundai" || result == "hummer" || result == "jeep" || result == "kia" || result == "lexus" || result == "mazda" || result == "mitsubishi" || result == "mercedes" || result == "nissan" || result == "oldsmobile" || result == "pontiac" || result == "porsche" || result == "saab" || result == "seat-heaters" || result == "saturn" || result == "subaru" || result == "suzuki" || result == "toyota" || result == "volvo" || result == "vw")
	result = "interiors";

} // end if

var loaded = 0;
var baseURL = "http://www.hskautoparts.com/"; // base url, with trailing slash

function PreLoad()
{

if (document.images != null)
{

clickme1 = new Image();
clickme1.src = "/images/menus/ftr-interiors.gif";
clickme2 = new Image();
clickme2.src = "/images/menus/ftr-interiors-over.gif";
clickme3 = new Image();
clickme3.src = "/images/menus/ftr-about.gif";
clickme4 = new Image();
clickme4.src = "/images/menus/ftr-about-over.gif";
clickme5 = new Image();
clickme5.src = "/images/menus/ftr-contact.gif";
clickme6 = new Image();
clickme6.src = "/images/menus/ftr-contact-over.gif";
clickme7 = new Image();
clickme7.src = "/images/menus/ftr-home.gif";
clickme8 = new Image();
clickme8.src = "/images/menus/ftr-home-over.gif";
clickme9 = new Image();
clickme9.src = "/images/menus/ftr-links.gif";
clickme10 = new Image();
clickme10.src = "/images/menus/ftr-links-over.gif";

}
	loaded = 1;
}

function hiLite(imgDocID,imgObjName) {
if (document.images !=null)
 {
  if (loaded)
   document.images[imgDocID].src = eval(imgObjName + ".src")
  }
}

function popup(winName,URL,height,width,scroll) {

 if(URL.substring(0,7) != "http://") //if url isn't full use baseURL.
 {
  var URL = baseURL + URL;
 }

 if(!window.NewWindow || NewWindow.closed || NewWindow == null) 
 {
  var popup = window.open(URL,winName,"height=" + height + ",width=" + width + ",screenX=28,screenY=25,status=yes,scrollbars=" + scroll + ",toolbar=no,directories=no,menubar=no,location=no");
  NewWindow = popup;
 }else{

 if (NewWindow.name != winName) 
 {
//  NewWindow.close();
  var popup = window.open(URL,winName,"height=" + height + ",width=" + width + ",screenX=28,screenY=25,status=yes,scrollbars=" + scroll + ",toolbar=no,directories=no,menubar=no,location=no");
  NewWindow = popup;
 }else{
  NewWindow.location.href = URL;
  NewWindow.focus();
 }

}
}