// banner image randomizer
// note - if number of images changes, the multiplier must be incremented to match the total number of images to rotate

// staging
//var docRoot = '/cmmc/'
// live
var docRoot = '/'

var whichImage = Math.round(Math.random()*(5));

if (whichImage == 0) {
	whichImage = 5;
}

function showImage(){
document.write('<img src="../'+docRoot+'images/banner_'+whichImage+'.jpg" usemap="#Map2" border=0>');
}

function popUp(theURL,winName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = ((screen.width-myWidth)/2);
    var myTop = ((screen.height-myHeight)/2);
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}