<!--

window.defaultStatus = "SAN JOAQUIN PROTECTION AGENCY  <<<  209.727.4110  >>>";

function rollOver(obj,newColor) {
	// === THIS FUNCTION CHANGES A CELL COLOR WHEN ITS CLASS IS HILITEROW
	if (obj.className == "hiliteRow") {
		obj.style.backgroundColor=newColor;
		obj.style.cursor="hand";
	}
}

function rollOut(obj,newColor) {
	// === THIS FUNCTION CHANGES A CELL COLOR WHEN ITS CLASS IS HILITEROW
	if (obj.className == "hiliteRow") {
		obj.style.backgroundColor=newColor;
		obj.style.cursor="auto";
	}
}

function goSameWin(url) {
	// === THIS FUNCTION CHANGES THE URL OF THE PAGE
	document.location=url;
}

function goNewWin(url) {
	// === THIS FUNCTION OPENS A PAGE IN A NEW WINDOW
	window.open(url);
}

function gopopup(url) {
	// === THIS FUNCTION IS USED TO OPEN A POPUP WINDOW
	tmpURL = url;
	
	newLeft = 270;
	newTop = 250;
	width = 510;
    height = 560;
	
	window.open(tmpURL,'thumbWin','menubars=no,statusbar=no,history=no,toolbar=no,scrollbars=yes,left=' + newLeft + ',top=' + newTop + ',width=' + width + ',height=' + height);
}


function openThumb(url,title,width,height){
	// === THIS FUNCTION IS USED TO OPEN A WINDOW, AND CENTER IT, WHEN A USER CLICKS ON A THUMBNAIL
	tmpURL = "view_thumb.cfm?path=" + url + "&title=" + title + "&width=" + width + "&height=" + height;
	
	// determine available screen width and height
	screenX = screen.width;
	screenY = screen.height;
	
	newLeft = (screenX - width) / 2;
	newTop = (screenY - height) / 2;
	
	window.open(tmpURL,'thumbWin','menubars=no,statusbar=no,history=no,toolbar=no,left=' + newLeft + ',top=' + newTop + ',width=' + width + ',height=' + height);
}

function addtofav(linkUrl,linkTitle){
	// === THIS FUNCTION ADDS THE CURRENT PAGE AND TITLE TO THE FAVORITES
   if (!document.all) {
      alert('Please hit CTRL-D to bookmark this page');
   }
   else external.AddFavorite(linkUrl,linkTitle);
   return false;
}

//-->
