function doHideBox(index)
{
	
   	boxes = new Array(6);
	boxes[0] = document.getElementById("tableAbout");
	boxes[1] = document.getElementById("tableGovernment");
	boxes[2] = document.getElementById("tableTourism");
	boxes[3] = document.getElementById("tableMedia");
	boxes[4] = document.getElementById("tableLinks");
	boxes[5] = document.getElementById("tableContact");

	try{
		for(i=0;i<6;i++){
			boxes[i].style.display = "none";
		}
	} catch(e){}
	
	
	boxes[index].style.display = "";
	
}

function ResetAll(){
	document.btnAbout.src = "art/btn_about02.jpg";
	document.btnGov.src = "art/btn_gov02.jpg";
	document.btnTourism.src = "art/btn_tourism02.jpg";
	document.btnMedia.src = "art/btn_media02.jpg";
	document.btnLinks.src = "art/btn_links02.jpg";
	document.btnContact.src = "art/btn_contact02.jpg";
	
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  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.lesngth;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//opens a new 520x400 window given the path
function openWin(path) {
	myWin= open(path,"Display","width=520,height=400,status=no,toolbar=no,menubar=no,top=230,left=240");
	myWin.document.write("<title> Welcome to Roxas City - The Seafood Capital of the Philippines &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </title>");
}
function openWin2(path) {
	myWin= open(path);
	myWin.document.write("<title> Welcome to Roxas City - The Seafood Capital of the Philippines  </title>");
}

function DateDisplay() {
var MonthsOfYear=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
now= new Date();
// date
date= now.getDate();
month= now.getMonth();
year= now.getYear();
dateStr= "" + MonthsOfYear[month];
dateStr+= ((date < 10) ? ". 0" : ". ") + date;

dateStr+= ", " + year;
document.write(dateStr);

}

function MonthDisplay() {
var Months_=["January","February","March","April","May","June","July","August","September","October","November","December"];
now= new Date();
// month year
date= now.getDate();
month= now.getMonth();
year= now.getYear();
dateStr= "" + Months_[month];
dateStr+= " " + year;
document.write(dateStr);

}


