// Date write functions 



// Note that the JavaScript getYear method



// will return values 0 through 99 for years 1900 through 1999, but



// it will return 100 or higher for years above 2000 - or other such wackiness.



// Thus getFullYear is used. 



      











today = new Date();



day = today.getDate();



monthint = today.getMonth();



end = "th";







if (day==1 || day==21 || day==31) end="st";







if (day==2 || day==22) end="nd";







if (day==3 || day==23) end="rd";







day+=end;



y = today.getFullYear();



y += (y < 100) ? 1900 : 0;



allmonths = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");



datestring = allmonths[monthint]+" "+day+", "+y;











//var imageArray = new makeArray('images/scsiwyg_study_1.jpg', 'images/scsiwyg_study_2.jpg', 'images/scsiwyg_study_3.jpg', 'images/scsiwyg_study_4.jpg', 'images/scsiwyg_study_5.jpg', 'images/scsiwyg_study_6.jpg', 'images/scsiwyg_study_7.jpg', 'images/scsiwyg_study_8.jpg' , 'images/scsiwyg_study_9.jpg', 'images/scsiwyg_study_0.jpg');

var imageArray = new makeArray('images/study3/study3_1.jpg', 'images/study3/study3_2.jpg', 'images/study3/study3_3.jpg', 'images/study3/study3_4.jpg', 'images/study3/study3_5.jpg', 'images/study3/study3_6.jpg', 'images/study3/study3_7.jpg', 'images/study3/study3_8.jpg', 'images/study3/study3_9.jpg' , 'images/study3/study3_10.jpg', 'images/study3/study3_11.jpg', 'images/study3/study3_12.jpg', 'images/study3/study3_13.jpg', 'images/study3/study3_14.jpg', 'images/study3/study3_15.jpg', 'images/study3/study3_16.jpg', 'images/study3/study3_17.jpg');






function makeArray(){



this.length = makeArray.arguments.length



for (var i = 0; i < this.length; i++)



this[i + 1] = makeArray.arguments[i]



}







function randNum (num) {



var now = new Date();



var rand = Math.round(num * Math.cos(now.getTime()));



if (rand < 0) rand = - rand; if (rand == 0) rand++;



return rand;



}









var imageOK = false;



if( navigator.appName.indexOf( "Microsoft" ) > -1 ) {

  if( parseInt( navigator.appVersion.charAt( 0 ) ) > 3 ) {

    if( document.images ) { imageOK = true; }

  }

} else if( navigator.appName.indexOf( "Netscape" ) > -1 ) {

  if( parseInt( navigator.appVersion.charAt( 0 ) ) > 2 ) {

    if( document.images ) { imageOK = true; }

  }

}





function imgChg(imgID, imgFile) {

  if ( imageOK ) { document [imgID].src = imgFile.src; }

}



if( imageOK ) {

  button1off = new Image(); button1off.src = "images/but_about.gif";

  button1on = new Image(); button1on.src = "images/but_about_on.gif";

  button2off = new Image(); button2off.src = "images/but_chat.gif";

  button2on = new Image(); button2on.src = "images/but_chat_on.gif";

  button3off = new Image(); button3off.src = "images/but_dance.gif";

  button3on = new Image(); button3on.src = "images/but_dance_on.gif";

  button4off = new Image(); button4off.src = "images/but_bored.gif";

  button4on = new Image(); button4on.src = "images/but_bored_on.gif";

  button5off = new Image(); button5off.src = "../images/sub_home.gif";

  button5on = new Image(); button5on.src = "../images/sub_home_on.gif";



  

  

  

}

else {

  next1 = 0; back1 = 0; 

}



