<!--
var pic_width=764;   /* change to match the height of all your images */
var pic_height=263;   /* change to match the width of all your images */
var border_size=0;   /* change to the border size you want on the images */
var alignment=0;     /* 0=left,1=center,2=right */
var imageNum=7;   /* this is the number of the different images you will be using */

/* define image urls */

pic1= new Image(pic_width,pic_height);
pic1.src="/images/press_kits/njhsrsc/header.jpg";
pic2= new Image(pic_width,pic_height); 
pic2.src="/images/press_kits/njhsrsc/header1.jpg";
pic3= new Image(pic_width,pic_height);
pic3.src="/images/press_kits/njhsrsc/header2.jpg";
pic4= new Image(pic_width,pic_height);
pic4.src="/images/press_kits/njhsrsc/header3.jpg";
pic5= new Image(pic_width,pic_height);
pic5.src="/images/press_kits/njhsrsc/header4.jpg";
pic6= new Image(pic_width,pic_height);
pic6.src="/images/press_kits/njhsrsc/header5.jpg";
pic7= new Image(pic_width,pic_height);
pic7.src="/images/press_kits/njhsrsc/header6.jpg";
//pic8= new Image(pic_width,pic_height);
//pic8.src="/images/inside/8.jpg";   

/* no need to edit past this point (unless you want to add more image slots) */

if (alignment==0)
 {
  cent_it="";
  cent_it2="";
 }else if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else if (alignment==2)
 {
  cent_it="<div align=\"right\">";
  cent_it2="<\/div>";
 }
 
function get_random(imageNum)
{
    var ranNum= Math.round(Math.random()*(imageNum-1));
    ranNum+=1;
    return ranNum;
}

function get_Image()
{
  var choose_one= get_random(imageNum);  
  choose_one--;

  var pics= new Array(imageNum) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src; 
   pics[5]=pic6.src; 
   pics[6]=pic7.src; 
   //pics[7]=pic8.src; 
   
   if (document.all) {
  		document.write("<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>");
	}else if ( ! document.layers && ! document.all ){
	 	document.write("<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>")
	}else if (document.getElementById && !document.all) {
  		document.getElementById("headerImage").innerHTML = "<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>";
	}
	else {
  		document.write("<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>");
	}

}
-->