// Written by skrause on December 6, 2000
// Consolidates all of our Javascript functions into an external file.
// This file is cache-able, so the user only downloads the scripts once
// each session, rather than every time they load a page.

// Changes the current category and proceeds to another page
function changeCat(cat,page) {
	// First a set the category cookie
	document.cookie='cat='+cat+';path=/';
}

function openWin(URL) {
  //check if the browser understands the screen object-if so set the position
  // of the popup window to appear at the left top
  // else you can move it around with leftPos= screen.width-225 (set -??? to whatever you want)
  if (screen) {
    leftPos=0;
  };
  myWin = window.open(URL,'','width=780,height=600,left='+leftPos+',resizable=yes,menubar=no,location=no,toolbar=no,status=no,scrollbars=yes');
}

function boxHover(section,newStyleName,newCursorName) {
	section.className=newStyleName;
	section.style.cursor=newCursorName;
}

function swpImg(imgName,imgSrc) {
	imgName.src=imgSrc;
}

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no, menubar=no, location=no ,scrollbars=no, resizable=no, width=780, height=580");
}
