function initImgSwitcher() {
	  // create rotating image objects here 
	  // arguments: image name, rotation speed
	  var switcher21 = new SwitchImgObj('img21',2500);
	  // add the images to Switch into that image object  
	  switcher21.declareImages("2.1.jpg","2.1.a.jpg");
	  switcher21.Switch();
	  
	  var switcher22 = new SwitchImgObj('img22',3000);
	  switcher22.declareImages("2.2.jpg","2.2.a.jpg");
	  switcher22.Switch();
	  var switcher24 = new SwitchImgObj('img24',6000);
	  switcher24.declareImages("2.4.jpg","2.4.a.jpg");
	  switcher24.Switch();
	  var switcher25 = new SwitchImgObj('img25',2000);
	  switcher25.declareImages("2.5.jpg","2.5.a.jpg");
	  switcher25.Switch();
	  var switcher32 = new SwitchImgObj('img32',1000);
	  switcher32.declareImages("3.2.jpg","3.2.a.jpg");
	  switcher32.Switch();
	  var switcher33 = new SwitchImgObj('img33',4000);
	  switcher33.declareImages("3.3.jpg","3.3.a.jpg");
	  switcher33.Switch();
	  var switcher34 = new SwitchImgObj('img34',10000);
	  switcher34.declareImages("3.4.jpg","3.4.a.jpg");
	  switcher34.Switch();
	  
	  SwitchImgObj.start();  
	}
	
	// If all the images you wish to display are in the same location, you can specify the path here 
	SwitchImgObj.imagesPath = "img/hp/";
	
	// no need to edit code below 
	/////////////////////////////////////////////////////////////////////
	SwitchImgObjs = []; // holds all rotating image objects defined
	// constructor 
	function SwitchImgObj(nm,s) {
	  this.speed=s; this.ctr=0; this.timer=0;  
	  this.imgObj = document.images[nm]; // get reference to the image object
	  this.index = SwitchImgObjs.length; SwitchImgObjs[this.index] = this;
	  this.animString = "SwitchImgObjs[" + this.index + "]";
	}
	
	SwitchImgObj.prototype = {
	  declareImages: function() { // preloads images
	    this.imgObj.imag = [];
	    for (var i=0; i<arguments.length; i++) {
	      this.imgObj.imag[i] = new Image();
	      this.imgObj.imag[i].src = SwitchImgObj.imagesPath + arguments[i];
	    }
	  },
	
	  Switch: function() {
	    if (this.ctr < this.imgObj.imag.length-1) this.ctr++;
	    else this.ctr = 0;
	    this.imgObj.src = this.imgObj.imag[this.ctr].src;
	  }
	}
	
	// sets up rotation for all defined SwitchImgObjs
	SwitchImgObj.start = function() {
	  for (var i=0; i<SwitchImgObjs.length; i++) 
	    SwitchImgObjs[i].timer = setInterval(SwitchImgObjs[i].animString + ".Switch()", SwitchImgObjs[i].speed);                     
	}
