


	





	


   
//alert("hasRotateModules" + hasRotateModules);
var Col1 = document.getElementById("HomeColumn1") ;
var Col2 = document.getElementById("HomeColumn2") ;
var Columns = new Array();
Columns[1]=Col1.innerHTML;
Columns[2]=Col2.innerHTML;

var rNum1     = Math.floor(Math.random() * 2);
rNum1++;
Col1.innerHTML= Columns[rNum1];
document.getElementById('HomeColumn1').style.visibility = 'visible'; 

do{
    var rNum2     = Math.floor(Math.random() * 2);
    rNum2++;

}while(rNum1==rNum2)


Col2.innerHTML= Columns[rNum2];
document.getElementById('HomeColumn2').style.visibility = 'visible'; 

var helpCol1 = document.getElementById("helpCol1") ;
var helpCol2 = document.getElementById("helpCol2") ;
var helpCol3 = document.getElementById("helpCol3") ;

var helpContent = new Array();
helpContent[1]=helpCol1.innerHTML;
helpContent[2]=helpCol2.innerHTML;
helpContent[3]=helpCol3.innerHTML;

//alert(" agent " + helpCol1.innerHTML);
//alert(" phone " + helpCol2.innerHTML);
//alert(" online " + helpCol3.innerHTML);

var randomNum1     = Math.floor(Math.random() * 3);
randomNum1++;

helpCol1.innerHTML= helpContent[randomNum1];
document.getElementById('helpCol1').style.visibility = 'visible'; 
do{
    var randomNum2     = Math.floor(Math.random() * 3);
    randomNum2++;

}while(randomNum1==randomNum2)

helpCol2.innerHTML= helpContent[randomNum2];
document.getElementById('helpCol2').style.visibility = 'visible'; 


do{
    do{
        var randomNum3     = Math.floor(Math.random() * 3);
        randomNum3++;
    }while(randomNum3==randomNum2)
}while(randomNum3==randomNum1)

helpCol3.innerHTML= helpContent[randomNum3];
document.getElementById('helpCol3').style.visibility = 'visible';  
if(hasRotateModules=="true"){
    document.getElementById('HR_For_Rotating_Modules').style.visibility = 'visible';  
}

