<!-- 

// openPopup
// added 8-6-02
// used to create a popup
function openPopup(theURL,winName,features) {
	window.open(theURL,winName,features);
}

// externalLink
// added 8-9-02
// used to open an external link
function externalLink(theURL) {
	var windowparams = "width=800,height=525,top=0,left=0,scrollbars,toolbar";
	openPopup(theURL,'',windowparams);
}

// internalPop
// added 10-11-02
// used to open a popup for internal pages
function internalPop(url) {
	var windowparams = "width=550,height=509,top=50,left=50";
	openPopup(url,'',windowparams);
}

// setCookie
// added 12-3-02
// used to track viewing of the flash movie
function setCookie() {
var rightNow = new Date();
var oneMonthFromNow = rightNow.getTime() + (31 * 24 * 60 *60 * 1000);
document.cookie = "seen=yes; expires=" + oneMonthFromNow.toGMTString() + "; domain=www.fassforward.com";
}

// imagePreloader
// added 8-8-02
// used to preload images for the Netscape/Mozilla problem
function imagePreloader() {
  var d = document;
  if (d.images) {
	if (!d.p) {
	  d.p = new Array();
	}
    var i, j = d.p.length, a = imagePreloader.arguments;
	for (i=0; i < a.length; i++) {
	  if (a[i].indexOf("#")!=0) {
		d.p[j] = new Image;
		d.p[j++].src=a[i];
	  }
	}
  }
}

// reloadPage
// added 8-6-02
// half-assed attempt to include Netscape 4.x. Why do I bother?
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {
	if ((appName=="Netscape") && (parseInt(appVersion)==4)) {
	  document.pgW=innerWidth;
	  document.pgH=innerHeight;
	  onresize=reloadPage;
	}
  } else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

// findObj
// added 8-6-02
// used to find what I need for a lot of things
function findObj(n,d) { //v4.0
  var p,i,x;
  if(!d) d = document;
  if((p=n.indexOf("?")) > 0 && parent.frames.length) {
	d = parent.frames[n.substring(p+1)].document;
	n = n.substring(0,p);
  }
  if(!(x=d[n]) && d.all)
	x = d.all[n];
  for(i=0; !x && i < d.forms.length; i++)
	x = d.forms[i][n];
  for(i=0; !x && d.layers && i < d.layers.length; i++)
    x = findObj(n,d.layers[i].document);
  if(!x && d.getElementById)
	x = d.getElementById(n);
  return x;
}

// showMe
// added 8-6-02
// part of showHide
function showMe(what) {
  what = findObj(what);
  what.style.display='inline';
}

// hideMe
// added 8-6-02
// part of showHide
function hideMe(what) {
  what = findObj(what);
  what.style.display='none';
}

// showHide
// added 8-6-02
// used to show/hide layers/spans
function showHide(show,hide){
  var showArray = show.split(",")
  var s = showArray.length
  for(i = 0; i < s; i++) {
  	var imShowing = showArray[i];
	showMe(imShowing);
  }
  var hideArray = hide.split(",")
  var h = hideArray.length
  for(i = 0; i < h; i++) {
  	var imHiding = hideArray[i];
	hideMe(imHiding);
  }
}
//  -->