defaultStatus = "Bienvenue sur la page officielle de l'Association des Optométristes du Québec!"
hexColor = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];

function mOver(form, button) {
  for (i = 0; i < 13; i++) {
    setTimeout('document.' + form.name + '.' + button.name + '.style.background = "#'+hexColor[12-i]+'1'+hexColor[12-i]+'CA5";', i * 45);
  }
}


function mOut(form, button) {
  for (i = 0; i < 10; i++) {
    setTimeout('document.' + form.name + '.' + button.name + '.style.background = "#'+hexColor[i]+'1'+hexColor[i]+'CA5";', i * 45);
  }
}


function MM_openBrWindow(theURL, winName, features) { //v2.0

	window.open(theURL, winName, features);
}


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=no,menubars=yes'

	win = window.open(mypage, myname, winprops)

	if (parseInt(navigator.appVersion) >= 4)
	win.window.focus(); 
}

function popup(posX, posY, width, height, url, title) {

	var winparam="toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width=" + width + ",height=" + height + ",top=" + posY + ",left=" + posX;

	if (!window.popupWin || window.popupWin.closed)
	{
			popupWin = window.open(url,title,winparam);
	}
	else
	{
			popupWin.focus();
			popupWin.location = url;
	}
}
