
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/*
	-------------------------------------------------------------------------------------------------	
                                 Random Image/Link JavaScript(tm) by Jim Matvichuk	
                         This code may be used freely as long as this copyright notice	
                         remains with the code.
                   				Copyright¨ 1997, Jim Matvichuk
          			Jim_Matvichuk@compuserve.com
          			All rights reserved
                           	Last Revision: August 19, 1997		         
         -------------------------------------------------------------------------------------------------*/

// Global vars----
G_total_sa = 0;					// total random elements
G_day = new Date();				// date for seed
G_seed = G_day.getTime();			// G_seed for random number

//---CHANGE THESE ARRAY ELEMENTS TO YOUR LINK/IMAGE
//---ADD/SUBTRACT AS MANY AS YOU NEED
// Just replace your URL and image tags between the single quotes:  ae_('   your stuff here   ');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic01.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic02.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic03.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic04.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic05.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic06.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic07.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
ae_('<img style="border: #cccccc solid 1px; padding: 2px;" src="photos/homepic08.jpg" border="0" alt="Psychophysiology" width="150" height="118"></A>');
//------------------------------------------------------------------------------------
// Function to Create image/link Object Array
//------------------------------------------------------------------------------------
function ae_ (description) {
	G_total_sa++;
	sa [G_total_sa] = description;
}
//-------------------------------------------------------------------------------------
// function to create a random number from 1 to total number
// of array elements
//-------------------------------------------------------------------------------------
function rand() {
RN = parseInt(((G_seed - (parseInt(G_seed/1000,10) * 1000))/10)/100*G_total_sa + 1,10);
	return RN;
}

///////////////////////////////////////////////////////////////////
// CREATE THE image/link OBJECT ARRAY
function sa () {}

//---------------- done with setup-----------------------//


