
var selectedDiv2=[];
var totalDivs2=[];


function expandone2(id,tickspeed2){
	var selectedDivObj2 = document.getElementById("dropmsg2_"+id+'_'+selectedDiv2[id]);
	if(selectedDivObj2!=null)
	 {
	Effect.Appear( selectedDivObj2.id,{duration:2, from:0, to:1});
	selectedDiv2[id]=(selectedDiv2[id]<totalDivs2[id]-1)? selectedDiv2[id]+1 : 1;

    	setTimeout("expandone2("+id+","+tickspeed2+")",tickspeed2);
        setTimeout("hideone2("+id+","+tickspeed2+")",tickspeed2);
        setTimeout("Effect.Appear('"+selectedDivObj2.id+"', {duration:2, from:1, to:0})",tickspeed2-2000 );
        setTimeout("Element.hide('"+selectedDivObj2.id+"')",tickspeed2);
		}
}


function hideone2(id, tickspeed2)	{
	var selectedDivObj2 = document.getElementById("dropmsg2_"+id+'_'+selectedDiv2[id]);
}

function startscroller2(id,tickspeed2){
    selectedDiv2[id] = 1;
    var tmp = 1;
    while (document.getElementById("dropmsg2_"+id+'_'+tmp)!=null)
    tmp++;
    totalDivs2[id] = tmp;
    expandone2(id,tickspeed2);
}


if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(4,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(4,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(5,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(5,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(6,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(6,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(7,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(7,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(8,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(8,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(9,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(9,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(10,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(10,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(11,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(11,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(12,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(12,11000)})
if (window.addEventListener)
    window.addEventListener("load", function() {startscroller2(13,11000)}, false)
else if (window.attachEvent)
    window.attachEvent("onload", function() {startscroller2(13,11000)})
    
