function swapImage(intImage) {

switch (intImage) {
 case 1:
   document.getElementById('feature_main1').style.display = "block"
   document.getElementById('feature_main2').style.display = "none"
   document.getElementById('feature_main3').style.display = "none"
   document.getElementById('feature_main4').style.display = "none"
   document.getElementById('feature_main5').style.display = "none"
   document.getElementById('feature_main6').style.display = "none"
   document.getElementById('feature_main7').style.display = "none"
   document.getElementById('feature_main').style.backgroundImage = "url(/images/banner1.jpg)"
   document.getElementById('feature_main').title = "pic1"
   document.getElementById('feature_main').setAttribute("alt","pic1")
   document.getElementById('I1').className = "rd  active_rotater"
   document.getElementById('I2').className = "bl  not_active_rotater"
   document.getElementById('I3').className = "yl  not_active_rotater"
   document.getElementById('I4').className = "gr  not_active_rotater"
   document.getElementById('I5').className = "or  not_active_rotater"
   document.getElementById('I6').className = "vl  not_active_rotater"
   document.getElementById('I7').className = "sb  not_active_rotater"
   break;
   
case 2:
   document.getElementById('feature_main1').style.display = "none"
   document.getElementById('feature_main2').style.display = "block"
   document.getElementById('feature_main3').style.display = "none"
   document.getElementById('feature_main4').style.display = "none"
   document.getElementById('feature_main5').style.display = "none"
   document.getElementById('feature_main6').style.display = "none"
   document.getElementById('feature_main7').style.display = "none"
   document.getElementById('feature_main').style.backgroundImage = "url(/images/banner2.jpg)"
   document.getElementById('feature_main').title = "pic2"
   document.getElementById('feature_main').setAttribute("alt","pic2")
   document.getElementById('I1').className = "rd  not_active_rotater"
   document.getElementById('I2').className = "bl  active_rotater"
   document.getElementById('I3').className = "yl  not_active_rotater"
   document.getElementById('I4').className = "gr  not_active_rotater"
   document.getElementById('I5').className = "or  not_active_rotater"
   document.getElementById('I6').className = "vl  not_active_rotater"
   document.getElementById('I7').className = "sb  not_active_rotater"   
   break;
   
case 3:
   document.getElementById('feature_main1').style.display = "none"
   document.getElementById('feature_main2').style.display = "none"
   document.getElementById('feature_main3').style.display = "block"
   document.getElementById('feature_main4').style.display = "none"
   document.getElementById('feature_main5').style.display = "none"
   document.getElementById('feature_main6').style.display = "none"
   document.getElementById('feature_main7').style.display = "none"
   document.getElementById('feature_main').style.backgroundImage = "url(/images/banner3.jpg)"
   document.getElementById('feature_main').title = "pic3"
   document.getElementById('feature_main').setAttribute("alt","pic3")
   document.getElementById('I1').className = "rd  not_active_rotater"
   document.getElementById('I2').className = "bl  not_active_rotater"
   document.getElementById('I3').className = "yl  active_rotater"
   document.getElementById('I4').className = "gr  not_active_rotater"
   document.getElementById('I5').className = "or  not_active_rotater"
   document.getElementById('I6').className = "vl  not_active_rotater"
   document.getElementById('I7').className = "sb  not_active_rotater"
   break;

case 4:
   document.getElementById('feature_main1').style.display = "none"
   document.getElementById('feature_main2').style.display = "none"
   document.getElementById('feature_main3').style.display = "none"
   document.getElementById('feature_main4').style.display = "block"
   document.getElementById('feature_main5').style.display = "none"
   document.getElementById('feature_main6').style.display = "none"
   document.getElementById('feature_main7').style.display = "none"
   document.getElementById('feature_main').style.backgroundImage = "url(/images/banner4.jpg)"
   document.getElementById('feature_main').title = "pic4"
   document.getElementById('feature_main').setAttribute("alt","pic4")
   document.getElementById('I1').className = "rd  not_active_rotater"
   document.getElementById('I2').className = "bl  not_active_rotater"
   document.getElementById('I3').className = "yl  not_active_rotater"
   document.getElementById('I4').className = "gr  active_rotater"
   document.getElementById('I5').className = "or  not_active_rotater"
   document.getElementById('I6').className = "vl  not_active_rotater"
   document.getElementById('I7').className = "sb  not_active_rotater"   
   break;

case 5:    
   document.getElementById('feature_main1').style.display = "none"
   document.getElementById('feature_main2').style.display = "none"
   document.getElementById('feature_main3').style.display = "none"
   document.getElementById('feature_main4').style.display = "none"
   document.getElementById('feature_main5').style.display = "block"
   document.getElementById('feature_main6').style.display = "none"
   document.getElementById('feature_main7').style.display = "none"
   document.getElementById('feature_main').style.backgroundImage = "url(/images/banner5.jpg)"
   document.getElementById('feature_main').title = "pic5"
   document.getElementById('feature_main').setAttribute("alt","pic5")
   document.getElementById('I1').className = "rd  not_active_rotater"
   document.getElementById('I2').className = "bl  not_active_rotater"
   document.getElementById('I3').className = "yl  not_active_rotater"
   document.getElementById('I4').className = "gr  not_active_rotater"
   document.getElementById('I5').className = "or  active_rotater"
   document.getElementById('I6').className = "vl  not_active_rotater"
   document.getElementById('I7').className = "sb  not_active_rotater"
   break;

   case 6:
   document.getElementById('feature_main1').style.display = "none"
   document.getElementById('feature_main2').style.display = "none"
   document.getElementById('feature_main3').style.display = "none"
   document.getElementById('feature_main4').style.display = "none"
   document.getElementById('feature_main5').style.display = "none"
   document.getElementById('feature_main6').style.display = "block"
   document.getElementById('feature_main7').style.display = "none"
   document.getElementById('feature_main').style.backgroundImage = "url(/images/banner6.jpg)"
   document.getElementById('feature_main').title = "pic6"
   document.getElementById('feature_main').setAttribute("alt","pic6")
   document.getElementById('I1').className = "rd  not_active_rotater"
   document.getElementById('I2').className = "bl  not_active_rotater"
   document.getElementById('I3').className = "yl  not_active_rotater"
   document.getElementById('I4').className = "gr  not_active_rotater"
   document.getElementById('I5').className = "or  not_active_rotater"
   document.getElementById('I6').className = "vl  active_rotater"
   document.getElementById('I7').className = "sb  not_active_rotater"
   break;

   case 7:
   document.getElementById('feature_main1').style.display = "none"
   document.getElementById('feature_main2').style.display = "none"
   document.getElementById('feature_main3').style.display = "none"
   document.getElementById('feature_main4').style.display = "none"
   document.getElementById('feature_main5').style.display = "none"
   document.getElementById('feature_main6').style.display = "none"
   document.getElementById('feature_main7').style.display = "block"
   document.getElementById('feature_main').style.backgroundImage = "url(/images/banner7.jpg)"
   document.getElementById('feature_main').title = "pic7"
   document.getElementById('feature_main').setAttribute("alt","pic7")
   document.getElementById('I1').className = "rd  not_active_rotater"
   document.getElementById('I2').className = "bl  not_active_rotater"
   document.getElementById('I3').className = "yl  not_active_rotater"
   document.getElementById('I4').className = "gr  not_active_rotater"
   document.getElementById('I5').className = "or  not_active_rotater"
   document.getElementById('I6').className = "vl  not_active_rotater"
   document.getElementById('I7').className = "sb  active_rotater"
   break;

 }
dw_Rotator.stop();
 /*{
   //var obj = dw_Rotator.getInstanceById(intImage);
//   dw_Rotator.start();

  var len = dw_Rotator.col.length, obj;
  for (var i=0; i<len; i++) {
    obj = dw_Rotator.col[i];
    //alert(obj.ctr);
    obj.ctr = intImage - 1;
   if (obj ) { obj.timer = setTimeout( obj.animString + ".rotate()", obj.speed); }
  }
    
 }*/

  return(false);
  
}

var rotator1 = {
    path:   '/images/',
    id:     'feature_main',
    speed:  5000,
    images: ["banner1.jpg", "banner2.jpg", "banner3.jpg", "banner4.jpg", "banner5.jpg", "banner6.jpg", "banner7.jpg"],
    title:  ["feature 1", "feature 2", "feature 3", "feature 4", "feature 5", "feature 6", "feature 7"],
    alt:    ["1", "2", "3", "4", "5", "6", "7"]
}

function initRotator() {
    dw_Rotator.setup(rotator1);
}

addLoadEvent(initRotator);
addLoadEvent(dw_Rotator.addControls);