// JavaScript Document
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->

<!-- Begin
function monthPage() {
today = new Date();
m = new Array(
"jan.html","feb.html",
"mar.html","apr.html","may.html",
"jun.html","jul.html","aug.html",
"sep.html","oct.html",
"nov.html","dec.html"
);
window.location = m[today.getMonth()];
}
//  End -->
<!-- Begin
function menuPage() {
today = new Date();
n = new Array(
"janmenus.html","febmenus.html",
"marmenus.html","aprmenus.html","maymenus.html",
"junmenus.html","julmenus.html","augmenus.html",
"sepmenus.html","octmenus.html",
"novmenus.html","decmenus.html"
);
window.location = n[today.getMonth()];
}
//  End -->
<!--
function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('frame').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('frame').height=
      the_height;
}
//-->
<!--
function showhide(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
if (obj.style.display == "none"){ 
obj.style.display = ""; 
} else { 
obj.style.display = "none"; 
} 
} 
} 
// -->
// date range ---------------------------------------------
function dates(year,month,date)
{
var year;
var month; 
var date;
var ending = (date + 1*7);
var now = new Date(); 
var endmonth = 0;
var enddate = 0;
var endyear = 0;
var end;

var start = new Date(year, month, date); 
if (month == 0 || month == 2 || month == 4 || month == 6 || month == 7 || month == 9 || month == 11 && ending > 31) 
	{
	endmonth = (month + 1*1);
	enddate = (ending - 1*31);
	if (endmonth == 12) {endmonth = 0; endyear = (year + 1*1);}
	end = new Date(endyear, endmonth, enddate);
	}
else if (ending > 30 && month == 3 || month == 5 || month == 8 || month == 10 ) 
	{
	endmonth = (month + 1*1);
	enddate = (ending - 1*30);
	end = new Date(year, endmonth, enddate);
	}
else if (month == 1 && ending > 28) 
	{
	endmonth = (month + 1*1);
	enddate = (ending - 1*28);
	end = new Date(year, endmonth, enddate);
	}
else {end = new Date(year, month, ending);}
if (now >= start && now <= end)
{return(true);} else {return(false);}
} 
function menus()
{
var chg = document.getElementById('menu');
if (dates(2005,10,14)) {chg.src="menus/111405.html";} 
else if (dates(2005,10,21)) {chg.src="menus/112105.html";} 
else if (dates(2005,10,28)) {chg.src="menus/112805.html";} 
else if (dates(2005,11,05)) {chg.src="menus/120505.html";}
else if (dates(2005,11,12)) {chg.src="menus/121205.html";}

else {chg.src="menus/updating.html"}

return false;
}
