// Common Client Java Script - site wide

////////////////////////////////////////////////////////////
// Functions to handel highlite on buttons
////////////////////////////////////////////////////////////
function goLite(id){
	elem = document.getElementById(id);
	elem.className = 'btn btnOn';
}

function goDim(id){
	elem = document.getElementById(id);
	elem.className = 'btn';	
}

////////////////////////////////////////////////////////////
// Generic Window Opener
////////////////////////////////////////////////////////////
function MM_openBrWindow(theURL, winName, width, height, center) {
  xposition = 0;
  yposition = 0;

  if ((parseInt(navigator.appVersion) >= 4 ) && (center)) {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height) / 2;
  }
  features = "width=" + width + ","
    + "height=" + height + ","
    + "location=0,"
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=1,"
    + "status=0,"
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

  window.open(theURL, winName, features);
}
////////////////////////////////////////////////////////////
// 
////////////////////////////////////////////////////////////

