﻿   function init() {
   
       // quit if this function has already been called
       //if (arguments.callee.done) return;

       // flag this function so we don't do the same thing twice
       //arguments.callee.done = true;

//	   isBack = (x != document._mine._a1.value);
//	   document._mine._a1.value=2;
//	   document._mine._a1.defaultValue=2;
//	   if (isBack) {

//		document.getElementById("mainleft1imgtext").className="hidden";
//		document.getElementById("mainleft3imgtext").className="hidden";
//		document.getElementById("mainleft10imgtext").className="hidden";
//		document.getElementById("mainleft12imgtext").className="hidden";
	   	
	// }
	
	    var rotator1 = new Rotator("mainleft1img", 5000, "/images/");
	    rotator1.addImages("mainleft1.jpg", "mainleft1m.jpg", "mainleft1.jpg", "mainleft1.jpg", "mainleft1.jpg");
	    rotator1.addActions("/media/media.aspx", "/media/media.aspx", "/media/media.aspx", "/media/media.aspx", "/media/media.aspx");
	    var rotator2 = new Rotator("mainleft3img", 5000, "/images/");
	    rotator2.addImages("mainleft3.jpg", "mainleft3.jpg", "mainleft3m.jpg", "mainleft3.jpg", "mainleft3.jpg");
	    rotator2.addActions("/education/schedule.aspx", "/education/schedule.aspx", "/education/schedule.aspx", "/education/schedule.aspx", "/education/schedule.aspx");
	    var rotator3 = new Rotator('mainleft10img', 5000, "/images/");
	    rotator3.addImages("mainleft10.jpg", "mainleft10.jpg", "mainleft10.jpg", "mainleft10m.jpg", "mainleft10.jpg");
	    rotator3.addActions("/articles/articles.aspx", "/articles/articles.aspx", "/articles/articles.aspx", "/articles/articles.aspx", "/articles/articles.aspx");
	    var rotator4 = new Rotator("mainleft12img", 5000, "/images/");
	    rotator4.addImages("mainleft12.jpg", "mainleft12.jpg", "mainleft12.jpg", "mainleft12.jpg","mainleft12m.jpg");
	    rotator4.addActions("/help/locator.aspx", "/help/locator.aspx", "/help/locator.aspx", "/help/locator.aspx", "/help/locator.aspx");
	    Rotator.start();
	
   };

   if (window.addEventListener)
       window.addEventListener('load', init, false);
   else if (window.attachEvent)
       window.attachEvent('onload', init);

