  var colorSwitcher=new Object();
	colorSwitcher.imagesArray=new Array();
	colorSwitcher.selected=null;
  
  colorSwitcher.changeImage=function(e,a,b,c,d,f,i,g,h) {
    if(colorSwitcher.selected!=null) {
	   colorSwitcher.selected.className=""
    }
	  colorSwitcher.selected=e;
	  colorSwitcher.selected.className="selected";
	  document.getElementById(a).src=d;
	  document.getElementById(f).href=i;
	  if(h!=""){
      document.getElementById(h).href=g;
    }
	  this.change1(b,c)
  }	;

  colorSwitcher.addSelectFunction=function(b,c,d) {
	   var e=document.getElementById(c);
     if(!window.attachEvent) {
      document.getElementById(c).addEventListener("change",function() {
	    var a=document.getElementById(c).selectedIndex;
	    document.getElementById(b).src=d[a];
	    colorSwitcher.switchIt(e,a)
      }
	     , false)
    } else {
      document.getElementById(c).attachEvent("onchange",function() {
	    var a=document.getElementById(c).selectedIndex;
	    document.getElementById(b).src=d[a];
	    colorSwitcher.switchIt(e,a)
    }
	)
}
};

  colorSwitcher.change1=function(a,b) {
	document.getElementById(a).selectedIndex=b;
	 spConfig.configureElement($(a))
  };
  
  colorSwitcher.toolTip=function(a,b) {
	 document.getElementById(a).innerHTML=b
  };
  
  colorSwitcher.cleanToolTip=function(a) {
	 document.getElementById(a).innerHTML="&nbsp;"
  };
  
  colorSwitcher.addArray=function(a) {
	 for(i=0;i<a.length;i++) {
	   colorSwitcher.imagesArray[i]=a[i]
   }
  };

  colorSwitcher.switchIt=function(a,b) {
    if(colorSwitcher.selected!=null) {
	   colorSwitcher.selected.className=""
    }
  };
