// JavaScript Document

var mySlideList1 = ['album/Classes/large/EtaClass.jpg', 'album/Classes/large/NuAlpha.jpg', 'album/Classes/large/NuZetaminusone.jpg', 'album/Nu_Chapter/large/316230134_l.jpg', 'album/Nu_Chapter/large/317959125_l.jpg', 'album/Nu_Chapter/large/317959793_l.jpg'];
var mySlideShow1 = new SlideShow(mySlideList1, 'slide1', 3000, "mySlideShow1");

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}


function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}

SlideShow.prototype.play = SlideShow_play;  

function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}


function foo(imgsrc) {
    window.open(imgsrc,"popwin",
    "width=650px,height=500px,scrollbars, resizable");
}


function openwindow(URL, WIDTH, HEIGHT) {
window.onerror = null;
windowprops = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,left=150,top=150,width=" + (WIDTH+50) + ",height=" + (HEIGHT+20) + "";
popup = window.open(URL, "popwin", windowprops);
popup.focus();
}//openwindow()


/*DONT DELETE BELOW VAR limit*/
var limit = 100;

 function check() {	 
   if(document.form1.body.value.length > limit) {
     alert('Too much data!');
     document.form1.body.focus();
     return false; }
   else
     return true; }
	  
 function update() {
   var old = document.form1.counter.value;
   document.form1.counter.value=document.form1.body.value.length;
   if(document.form1.counter.value > limit && old <= limit) {
     alert('Too much data in the text box!');
     if(document.styleSheets) {
       document.form1.counter.style.fontWeight = 'bold';
       document.form1.counter.style.color = '#ff0000'; } }
   else if(document.form1.counter.value <= limit && old > limit
	   && document.styleSheets ) {
       document.form1.counter.style.fontWeight = 'normal';
       document.form1.counter.style.color = '#000000'; } 
   }