//this is for onMouseOver and onMouseOut events.


{

mathactsoutrea01 = new Image;
mathactsoutrea01.src = "images/outreach_off.gif";
mathactsoutrea02 = new Image;
mathactsoutrea02.src = "images/outreach_on.gif";

mathactsabt01 = new Image;
mathactsabt01.src = "images/about_us_off.gif";
mathactsabt02 = new Image;
mathactsabt02.src = "images/about_us_on.gif";

mathactscontact01 = new Image;
mathactscontact01.src = "images/contacts_off.gif";
mathactscontact02 = new Image;
mathactscontact02.src = "images/contacts_on.gif";

mathactspart101 = new Image;
mathactspart101.src = "images/partners_off.gif";
mathactspart102 = new Image;
mathactspart102.src = "images/partners_on.gif";

mathactslinks101 = new Image;
mathactslinks101.src = "images/math_science_off.gif";
mathactslinks102 = new Image;
mathactslinks102.src = "images/math_science_on.gif";

mathactsresources101 = new Image;
mathactsresources101.src = "images/resources_off.gif";
mathactsresources102 = new Image;
mathactsresources102.src = "images/resources_on.gif";

mathactsresearch101 = new Image;
mathactsresearch101.src = "images/research_off.gif";
mathactsresearch102 = new Image;
mathactsresearch102.src = "images/research_on.gif";

/******************sub pages*****************************/
mathactsout01 = new Image;
mathactsout01.src = "images/outreach2_off.gif";
mathactsout02 = new Image;
mathactsout02.src = "images/outreach2_on.gif";

mathactsabout01 = new Image;
mathactsabout01.src = "images/about_us2_off.gif";
mathactsabout02 = new Image;
mathactsabout02.src = "images/about_us2_on.gif";

mathactscont01 = new Image;
mathactscont01.src = "images/contacts2_off.gif";
mathactscont02 = new Image;
mathactscont02.src = "images/contacts2_on.gif";

mathactspart01 = new Image;
mathactspart01.src = "images/partners2_off.gif";
mathactspart02 = new Image;
mathactspart02.src = "images/partners2_on.gif";

mathactslinks01 = new Image;
mathactslinks01.src = "images/math_science2_off.gif";
mathactslinks02 = new Image;
mathactslinks02.src = "images/math_science2_on.gif";

mathactsresources01 = new Image;
mathactsresources01.src = "images/resources2_off.gif";
mathactsresources02 = new Image;
mathactsresources02.src = "images/resources2_on.gif";

mathactsresearch01 = new Image;
mathactsresearch01.src = "images/research2_off.gif";
mathactsresearch02 = new Image;
mathactsresearch02.src = "images/research2_on.gif";


}


function ChangePict()
{

if (document.refreshPict == null) return;

else

 pictnum = 4;				 //this is the max # of pictures that will change
 randnum = Math.random();
 num = randnum * pictnum;
 round = Math.floor(num);
 
 if (round == pictnum) {round = round - 1;}
 
 document.refreshPict.src = "images/pict0" + round + ".gif";
}
