

window.defaultStatus=" The River Deveron District Salmon Fishery Board";

function statusMsg(msg) {
	window.status=(msg);
}

//Script for rollovers
// preload images:
                     if (document.images) {
		    home1 = new Image(50,25); home1.src = "images/homebut2.gif";
                     home2 = new Image(50,25); home2.src = "images/homebut.gif";
                     rivers1 = new Image(60,25); rivers1.src = "images/riversbut2.gif";
                     rivers2 = new Image(60,25); rivers2.src = "images/riversbut.gif";
		     where1 = new Image(91,25); where1.src = "images/wherebut2.gif";
                     where2 = new Image(91,25); where2.src = "images/wherebut.gif";		
		     accom1 = new Image(100,25); accom1.src = "images/accombut2.gif";
                     accom2 = new Image(100,25); accom2.src = "images/accombut.gif";
		     contact1 = new Image(95,25); contact1.src = "images/contact2but2.gif";
                     contact2 = new Image(95,25); contact2.src = "images/contact2but.gif";
		     board1 = new Image(79,25); board1.src = "images/boardbut2.gif";
                     board2 = new Image(79,25); board2.src = "images/boardbut.gif";
		     }

function swapImg(imgName,imgObjName) {
                     if (document.images) {
                       document.images[imgName].src = eval(imgObjName + ".src");
 }}

function openWindow(htmlfile) {
	newWindow=window.open(htmlfile,'newWin', 'width=450,height=400,left=0,top=0,scrollbars=yes')
	newWindow.focus()
}	

// Script to insert today's date
today=new Date();
// Build an array initializer
function isnArray() {
 for (var i=0;i<isnArray.arguments.length;i++) {
  this[i+1] = isnArray.arguments[i];
  }
 }
// And months and day arrays
var isnMonths=new
isnArray("January","February","March","April","May","June","July","August","September","October","November","December");
var isnDays= new isnArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
isnDays[0]="Sunday";

// fixes a Netscape 2 and 3 bug
function getFullYear(d) { // d is a date object
 yr = d.getYear();
 if (yr < 1000)
  yr+=1900;
 return yr;
}


