var rotateTID = null;
var rotateTime = 6000;
var cID = 0;
var nID = 1;
var arrayC = 3;
var rotateC;
var aID = new Array('a','b','c');

        if(document.layers){
            thisbrowser="NN4";
        }
        if(document.all){
             thisbrowser="ie"
        }
        if(!document.all && document.getElementById){
             thisbrowser="NN6";
        }      

function getElement() { 
if (thisbrowser == "NN6") {
rotateC = document.getElementById('rotateC').firstChild.nodeValue;
}

if (thisbrowser == "ie") {
rotateC = eval("document.all.rotateC.firstChild.nodeValue");
}

}
        
function rotateT() {
if (cID == (rotateC - 1)) {nID = 0;}

rotateTID = setTimeout('rotate_to(nID, true)', rotateTime);
}

function rotate_to(idv, bRot) {
if (rotateTID != null) {clearTimeout(rotateTID);}
if (thisbrowser == "NN6") {
document.getElementById(aID[cID]).style.display = 'none	 ';
document.getElementById(aID[cID] + "sel").style.backgroundColor = '#FFFFFF';
cID = idv;
document.getElementById(aID[idv]).style.display = 'block';
document.getElementById(aID[idv] + "sel").style.backgroundColor = '#CCCCCC';
}

if (thisbrowser == "ie") {
eval("document.all." + aID[cID] + ".style.display = 'none'");
eval("document.all." + aID[cID] + "sel.style.backgroundColor = '#FFFFFF'");
cID = idv;
eval("document.all." + aID[idv] + ".style.display = 'block'");
eval("document.all." + aID[idv] + "sel.style.backgroundColor = '#CCCCCC'");

}
if (bRot == true) {
	 nID++;
	 rotateT();
	 }
}