   
   //ROTATING HOT STUF IMAGES
    var current;
    var numBtns = 5;
    var selectionBtns = new Array(numBtns);
    var imgarray = new Array(numBtns);
    switch(SessionCulture) 
    {
        case "fr-FR":

imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachFR.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';           
imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterFR.gif';
imgarray[1][1] = '/products/epicenter.aspx';                


imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_FR-FR_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     
imgarray[3] = new Array();
imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_FR-FR_SUMX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';     
imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets-fr.gif';
imgarray[4][1] = '/solutions/widget-central/';

break;    
case "es-MX":
imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachES.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';     

imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterES.gif';
imgarray[1][1] = '/products/epicenter.aspx';                

imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_ES-LA_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     
imgarray[3] = new Array();
imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_ES-LA_SumX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';      
imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets-es.gif';
imgarray[4][1] = '/solutions/widget-central/';

break;      
case "de-DE":
imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachDE.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';     

imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterDE.gif';
imgarray[1][1] = '/products/epicenter.aspx';                

imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_DE_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     
imgarray[3] = new Array();
imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_DE_SumX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';     

imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets-de.gif';
imgarray[4][1] = '/solutions/widget-central/';

break;      



case "pt-BR":
imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachBR.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';     

imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterBR.gif';
imgarray[1][1] = '/products/epicenter.aspx';                

imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_PT-BR_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     
imgarray[3] = new Array();
imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_PT-BR_SumX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';     

imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets-pt.gif';
imgarray[4][1] = '/solutions/widget-central/';

break;      
case "zh-CN":

imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachZH.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';     

imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterZH.gif';
imgarray[1][1] = '/products/epicenter.aspx';                


imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_ZH-CN_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     
imgarray[3] = new Array();


imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_ZH-CN_SumX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';     

imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets-zh-cn.gif';
imgarray[4][1] = '/solutions/widget-central/';

break;      

case "ko-KR":

imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachKO.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';     

imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterKO.gif';
imgarray[1][1] = '/products/epicenter.aspx';                

imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_KO_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     
imgarray[3] = new Array();


imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_KO_SumX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';     

imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets-ko.gif';
imgarray[4][1] = '/solutions/widget-central/';
break; 


//case "it-IT":      
//imgarray[0] = new Array();
//imgarray[0][0] = '/images/home/hotstuff_ReachIT.gif';
//imgarray[0][1] = '/products/ReachNXT.aspx';     

//imgarray[1] = new Array();
//imgarray[1][0] = '/images/home/hotstuff_EPICenterIT.gif';
//imgarray[1][1] = '/products/epicenter.aspx';                

//imgarray[2] = new Array();
//imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_IT_DataCenter.gif';
//imgarray[2][1] = '/solutions/datacenter.aspx';                


//imgarray[3] = new Array();            
//imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_IT_SumX650.gif';
//imgarray[3][1] = '/products/summit-X650.aspx';     

//imgarray[4] = new Array();
//imgarray[4][0] = '/images/home/hotstuff-Widgets-it.gif';
//imgarray[4][1] = '/solutions/widget-central/';
//break;

//        case "sv-SE":
//          imgarray[0] = new Array();
//            imgarray[3][3] = '/images/home/Hot-Stuff-Boxes_SV_DataCenter.gif';
//            imgarray[0][1] = '/solutions/datacenter.aspx';     
//                                    
//            imgarray[1] = new Array();            
//            imgarray[1][0] = '/images/home/Hot-Stuff-Boxes_SV_SumX650.gif';
//            imgarray[1][1] = '/products/summit-X650.aspx';     
//            
//            imgarray[2] = new Array();
//            imgarray[2][0] = '/images/home/hotstuff_ReachSV_SE.gif';
//            imgarray[2][1] = '/products/ReachNXT.aspx';     
//          
//            imgarray[3] = new Array();
//            imgarray[3][0] = '/images/home/hotstuff_EPICenterSV.gif';
//            imgarray[3][1] = '/products/epicenter.aspx';                
//            imgarray[4] = new Array();
//            imgarray[4][0] = '/images/home/hotstuff-Widgets-sk.gif';
//            imgarray[4][1] = '/solutions/widget-central/';
//            break;
//            

case "ru-RU":     
imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachRU.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';     

imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterRU.gif';
imgarray[1][1] = '/products/epicenter.aspx';                

imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_RU_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     

imgarray[3] = new Array();            
imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_RU_SumX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';     

imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets-ru.gif';
imgarray[4][1] = '/solutions/widget-central/';
break;

case "en-US":
default: 
imgarray[0] = new Array();
imgarray[0][0] = '/images/home/hotstuff_ReachEnglish.gif';
imgarray[0][1] = '/products/ReachNXT.aspx';     


imgarray[1] = new Array();
imgarray[1][0] = '/images/home/hotstuff_EPICenterEnglish.gif';
imgarray[1][1] = '/products/epicenter.aspx';                

imgarray[2] = new Array();
imgarray[2][0] = '/images/home/Hot-Stuff-Boxes_EN_DataCenter.gif';
imgarray[2][1] = '/solutions/datacenter.aspx';     

imgarray[3] = new Array();
imgarray[3][0] = '/images/home/Hot-Stuff-Boxes_EN_SUMX650.gif';
imgarray[3][1] = '/products/summit-X650.aspx';     

imgarray[4] = new Array();
imgarray[4][0] = '/images/home/hotstuff-Widgets.gif';
imgarray[4][1] = '/solutions/widget-central/';

break;
    }
    
    var waitTime = 3500;

    var nextBtnTimeoutId;

    function startRotate() {

    current = 0;

    nextSelection();

    //nextBtnTimeoutId = setTimeout("nextSelection()", waitTime);

    }

    function docimgChange(selection) {
        var el = document.getElementById('hotstuff');
        el.src = imgarray[selection - 1][0];
        //el.onclick = "docimgClick('" + imgarray[selection - 1][1] + "');";
        el.link = imgarray[selection - 1][1];
    }
    
    function docimgClick(url) {
        window.location= url;
    }

    function nextSelection() {
        current++;
        if (current > numBtns) {
            current = 1;
        }

        //alert('highlightHotStuff('+current+')');
        highlightHotStuff('btn' + current);
	docimgChange(current);
        nextBtnTimeoutId = setTimeout("nextSelection()",waitTime);
    }

    function stopRotate() {
        window.clearTimeout(nextBtnTimeoutId);
    }
   
   
    
      //HIGHLIGHTING NUMBERS IN HOT STUFF SECTION ON HOME/INDEX PAGE
  function highlightHotStuff(targetBtnId) {
    var btnIds = new Array("1", "2", "3", "4", "5");

    for (var i = 0; i < btnIds.length; i++) {
      var id = btnIds[i];
      var btnId = "btn" + id;
      var btnEl = document.getElementById(btnId);

      var origSrc = btnEl.src;

      // get the first part of the image name, ie "/images/home/btn-hotstuff-1"
      var imagePrefix = origSrc.substring(0, origSrc.lastIndexOf("-"));
      if (btnId == targetBtnId) {
        // target btn, so turn it on
        btnEl.src = imagePrefix + "-on.gif";
      } else {
        // other btns, so turn them off
        btnEl.src = imagePrefix + "-off.gif";
      }
    }
  }



  //HIGHLIGHTING NUMBERS IN NEWS SECTION ON HOME/INDEX PAGE
  function highlightNews(targetBtnEl) {
    var btnIds = new Array("1", "2", "3");
    var targetBtnId = targetBtnEl.id;

    for (var i = 0; i < btnIds.length; i++) {
      var id = btnIds[i];
      var btnId = "btnNews" + id;
      var btnEl = document.getElementById(btnId);

      var origSrc = btnEl.src;

      // get the first part of the image name, ie "/images/home/btn-news-1"
      var imagePrefix = origSrc.substring(0, origSrc.lastIndexOf("-"));
      if (btnId == targetBtnId) {
        // target btn, so turn it on
        btnEl.src = imagePrefix + "-on.gif";
      } else {
        // other btns, so turn them off
        btnEl.src = imagePrefix + "-off.gif";
      }
    }
  }


	//SHOW AND HIDE NEWS TEXT ON INDEX/HOME PAGE
    function displayDivHome(id) {
        for (var i=0; i<newItems.length; i++) {
            var divId = newItems[i];
            var divEl = document.getElementById(divId);
            if (divEl)
            {
                if (divId == id) {
                    // display the one we want
                    divEl.style.display="block";
                } else {
                    // turn off all others
                    divEl.style.display="none";
                }
            }
        }

    }

	
	//ROTATING HOME/INDEX TOP AND BOTTOM IMAGES
	var numPairs = 1;  // 5;
	var topPics = new Array(numPairs);
	var bottomPics = new Array(numPairs);
	var linkPics = new Array(numPairs);


    switch(SessionCulture) 
    {
        case "fr-FR":
        
	        topPics[0] = "images/home/Surfer-top-fr.jpg";
	        bottomPics[0] = "images/home/Surfer-bottom.jpg";
	        linkPics[0] = "/solutions/balance_Splash.aspx";

        /* 
	        topPics[0] = "images/home/framework-top-fr.jpg";
	        bottomPics[0] = "images/home/framework-bottom.jpg";
	        linkPics[0] = "/products/automation_Splash.aspx";
        */

        /*
	        topPics[0] = "images/home/focal-top-fr.jpg";
	        bottomPics[0] = "images/home/focal-bottom-fr.jpg";
	        linkPics[0] = "/products/TamingChaos_Splash.aspx";

	        topPics[0] = "images/home/future-top.jpg";
	        bottomPics[0] = "images/home/future-bottom.jpg";

	        topPics[1] = "images/home/mitt-top.jpg";
	        bottomPics[1] = "images/home/mitt-bottom.jpg";

	        topPics[2] = "images/home/clocks-top.jpg";
	        bottomPics[2] = "images/home/clocks-bottom.jpg";

	        topPics[3] = "images/home/focal-top.jpg";
	        bottomPics[3] = "images/home/focal-bottom.jpg";

	        topPics[4] = "images/home/mask-top.jpg";
	        bottomPics[4] = "images/home/mask-bottom.jpg";
        */
            break;    
        case "es-MX":
        
	        topPics[0] = "images/home/Surfer-top-es.jpg";
	        bottomPics[0] = "images/home/Surfer-bottom.jpg";
	        linkPics[0] = "/solutions/balance_Splash.aspx";
	        
        /*
	        topPics[0] = "images/home/framework-top-es.jpg";
	        bottomPics[0] = "images/home/framework-bottom.jpg";
	        linkPics[0] = "/products/automation_Splash.aspx";
	    */
	        
        /*
	        topPics[0] = "images/home/focal-top-es.jpg";
	        bottomPics[0] = "images/home/focal-bottom-es.jpg";
	        linkPics[0] = "/products/TamingChaos_Splash.aspx";

	        topPics[0] = "images/home/future-top.jpg";
	        bottomPics[0] = "images/home/future-bottom.jpg";

	        topPics[1] = "images/home/mitt-top.jpg";
	        bottomPics[1] = "images/home/mitt-bottom.jpg";

	        topPics[2] = "images/home/clocks-top.jpg";
	        bottomPics[2] = "images/home/clocks-bottom.jpg";

	        topPics[3] = "images/home/focal-top.jpg";
	        bottomPics[3] = "images/home/focal-bottom.jpg";

	        topPics[4] = "images/home/mask-top.jpg";
	        bottomPics[4] = "images/home/mask-bottom.jpg";
        */  
            break;      
        case "de-DE":
        
	        topPics[0] = "images/home/Surfer-top-de.jpg";
	        bottomPics[0] = "images/home/Surfer-bottom.jpg";
	        linkPics[0] = "/solutions/balance_Splash.aspx";
	    
	    /*            
	        topPics[0] = "images/home/framework-top-de.jpg";
	        bottomPics[0] = "images/home/framework-bottom.jpg";
	        linkPics[0] = "/products/automation_Splash.aspx";
	    */
	                
        /*
	        topPics[0] = "images/home/focal-top-de.jpg";
	        bottomPics[0] = "images/home/focal-bottom-de.jpg";
	        linkPics[0] = "/products/TamingChaos_Splash.aspx";
        
	        topPics[0] = "images/home/future-top.jpg";
	        bottomPics[0] = "images/home/future-bottom.jpg";

	        topPics[1] = "images/home/mitt-top.jpg";
	        bottomPics[1] = "images/home/mitt-bottom.jpg";

	        topPics[2] = "images/home/clocks-top.jpg";
	        bottomPics[2] = "images/home/clocks-bottom.jpg";

	        topPics[3] = "images/home/focal-top.jpg";
	        bottomPics[3] = "images/home/focal-bottom.jpg";

	        topPics[4] = "images/home/mask-top.jpg";
	        bottomPics[4] = "images/home/mask-bottom.jpg";
        */
            break;  
        case "pt-BR":
        
	        topPics[0] = "images/home/Surfer-top-pt.jpg";
	        bottomPics[0] = "images/home/Surfer-bottom.jpg";
	        linkPics[0] = "/solutions/balance_Splash.aspx";
        
        /*
	        topPics[0] = "images/home/framework-top-pt.jpg";
	        bottomPics[0] = "images/home/framework-bottom.jpg";
	        linkPics[0] = "/products/automation_Splash.aspx";
        */

        /*
	        topPics[0] = "images/home/focal-top-pt.jpg";
	        bottomPics[0] = "images/home/focal-bottom-pt.jpg";
	        linkPics[0] = "/products/TamingChaos_Splash.aspx";
	        
	        topPics[0] = "images/home/future-top.jpg";
	        bottomPics[0] = "images/home/future-bottom.jpg";

	        topPics[1] = "images/home/mitt-top.jpg";
	        bottomPics[1] = "images/home/mitt-bottom.jpg";

	        topPics[2] = "images/home/clocks-top.jpg";
	        bottomPics[2] = "images/home/clocks-bottom.jpg";

	        topPics[3] = "images/home/focal-top.jpg";
	        bottomPics[3] = "images/home/focal-bottom.jpg";

	        topPics[4] = "images/home/mask-top.jpg";
	        bottomPics[4] = "images/home/mask-bottom.jpg";
        */
            break;  
        case "zh-CN":
	        topPics[0] = "images/home/Surfer-top-zh-cn.jpg";
	        bottomPics[0] = "images/home/Surfer-bottom.jpg";
	        linkPics[0] = "/solutions/balance_Splash.aspx";
	        
	    /*    
	        topPics[0] = "images/home/framework-top-zh-cn.jpg";
	        bottomPics[0] = "images/home/framework-bottom.jpg";
	        linkPics[0] = "/products/automation_Splash.aspx";
        */

        /*
	        topPics[0] = "images/home/focal-top-zh-cn.jpg";
	        bottomPics[0] = "images/home/focal-bottom-zh-cn.jpg";
	        linkPics[0] = "/products/TamingChaos_Splash.aspx";
	                
	        topPics[0] = "images/home/future-top.jpg";
	        bottomPics[0] = "images/home/future-bottom.jpg";

	        topPics[1] = "images/home/mitt-top.jpg";
	        bottomPics[1] = "images/home/mitt-bottom.jpg";

	        topPics[2] = "images/home/clocks-top.jpg";
	        bottomPics[2] = "images/home/clocks-bottom.jpg";

	        topPics[3] = "images/home/focal-top.jpg";
	        bottomPics[3] = "images/home/focal-bottom.jpg";

	        topPics[4] = "images/home/mask-top.jpg";
	        bottomPics[4] = "images/home/mask-bottom.jpg";
        */
            break;
        case "ko-KR":
        
	        topPics[0] = "images/home/Surfer-top-ko.jpg";
	        bottomPics[0] = "images/home/Surfer-bottom.jpg";
	        linkPics[0] = "/solutions/balance_Splash.aspx";

        /*
	        topPics[0] = "images/home/framework-top-ko.jpg";
	        bottomPics[0] = "images/home/framework-bottom.jpg";
	        linkPics[0] = "/products/automation_Splash.aspx";
        */

        /*
	        topPics[0] = "images/home/focal-top-ko.jpg";
	        bottomPics[0] = "images/home/focal-bottom-ko.jpg";
	        linkPics[0] = "/products/TamingChaos_Splash.aspx";

	        topPics[0] = "images/home/future-top.jpg";
	        bottomPics[0] = "images/home/future-bottom.jpg";

	        topPics[1] = "images/home/mitt-top.jpg";
	        bottomPics[1] = "images/home/mitt-bottom.jpg";

	        topPics[2] = "images/home/clocks-top.jpg";
	        bottomPics[2] = "images/home/clocks-bottom.jpg";

	        topPics[3] = "images/home/focal-top.jpg";
	        bottomPics[3] = "images/home/focal-bottom.jpg";

	        topPics[4] = "images/home/mask-top.jpg";
	        bottomPics[4] = "images/home/mask-bottom.jpg";
        */
            break;
        case "en-US":
        default: 
	        topPics[0] = "images/home/Surfer-top.jpg";
	        bottomPics[0] = "images/home/Surfer-bottom.jpg";
	        linkPics[0] = "/solutions/balance_Splash.aspx";

        /*
	        topPics[0] = "images/home/focal-top.jpg";
	        bottomPics[0] = "images/home/focal-bottom.jpg";
	        linkPics[0] = "/products/TamingChaos_Splash.aspx";

	        topPics[0] = "images/home/future-top.jpg";
	        bottomPics[0] = "images/home/future-bottom.jpg";

	        topPics[1] = "images/home/mitt-top.jpg";
	        bottomPics[1] = "images/home/mitt-bottom.jpg";

	        topPics[2] = "images/home/clocks-top.jpg";
	        bottomPics[2] = "images/home/clocks-bottom.jpg";

	        topPics[3] = "images/home/focal-top.jpg";
	        bottomPics[3] = "images/home/focal-bottom.jpg";

	        topPics[4] = "images/home/mask-top.jpg";
	        bottomPics[4] = "images/home/mask-bottom.jpg";
        */
        break;
    }	

	function selectPair() {
  	var randIndex=Math.floor(Math.random()*numPairs);

  	var topPicEl = document.getElementById('img1');
  	topPicEl.src = topPics[randIndex];
  	topPicEl.link = linkPics[0];
  	var bottomPicEl = document.getElementById('img2');
  	bottomPicEl.src = bottomPics[randIndex];

	}




