browser=true;

if (browser){
var object=new Array();

object['btn1']= new objectdata(15,15,"buttons/bretover.jpg","buttons/bretnorm.jpg","... The Institute supports local business in their expansion plans, and encourages business to remain in Olds.");
object['btn2']= new objectdata(15,15,"buttons/techover.jpg","buttons/technorm.jpg","... Olds will be one of the first communities in Alberta to offer fibre to the premises for residents and businesses.");
object['btn3']= new objectdata(15,15,"buttons/commover.jpg","buttons/commnorm.jpg","... We are engaged in initiatives that enhance the social and economic development of the community of Olds.");
object['btn4']= new objectdata(15,15,"buttons/biaover.jpg","buttons/bianorm.jpg","... A vibrant economy requires a strategic focus on investment attraction in order to diversify the export sector.");
}

function objectdata(hsize,vsize,replaceimg,restoreimg,mess) {
  if(browser) {
    this.mess=mess;
    this.simg=new Image(hsize,vsize);
    this.simg.src=replaceimg;
    this.rimg=new Image(hsize,vsize);
    this.rimg.src=restoreimg;
  }
}

function ABtn(name) {
  if(browser) {
    window.status=object[name].mess;
    document[name].src=object[name].simg.src;
  }
}

function NBtn(name) {
  if(browser) {
    window.status="";
    document[name].src=object[name].rimg.src;
  }
}

function GetDay(intDay) {
  var DayArray = new Array("Sun", "Mon", "Tues", "Wed", "Thur", "Fri", "Sat");
  return DayArray[intDay];
}

function GetMonth(intMonth) {
  var MonthArray = new Array("Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec");
  return MonthArray[intMonth];
}

function getDateStrWithDOW() {
  var today = new Date();
  var year = today.getYear();
  if(year<1000) year+=1900;
  var todayStr = GetDay(today.getDay()) + ", ";
  todayStr += GetMonth(today.getMonth()) + " " + today.getDate();
  todayStr += ", " + year;
  return todayStr;
}

function getCurTime() {
  var curDateTime = new Date();
  var curHour = curDateTime.getHours();
  var curMin = curDateTime.getMinutes();
  var curSec = curDateTime.getSeconds();
  var curAMPM = " AM";
  var curTime = "";
  if (curHour >= 12) {
    curHour -= "12";
    curAMPM = " PM";
  }
  if (curHour == 0) {curHour = "12";}
  curTime = curHour + ":" + ((curMin < 10) ? "0" : "") + curMin + ":" + ((curSec < 10) ? "0" : "") + curSec + curAMPM;
  return curTime;
}
