/***********************************************
* ProHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
* http://www.dynamicdrive.com/dynamicindex2/prohtmlticker_dev.htm
*
* adaptations by Communimedia.com
***********************************************/
var tickspeed=4000 //ticker speed in miliseconds (2000=2 seconds)

if (document.getElementById)
	{
	document.write('<style type="text/css">\n')
	document.write('.dropcontent{display:none;}\n')
	document.write('</style>\n')
	}

var selectedDiv=0
var totalDivs=0

function contractall()
	{
	var inc=0
	while (document.getElementById("dropmsg"+inc))
		{
		document.getElementById("dropmsg"+inc).style.display="none"
		inc++
		}
	}


function expandone()
	{
	var selectedDivObj=document.getElementById("dropmsg"+selectedDiv)
	contractall()
	selectedDivObj.style.display="block"
	selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
	setTimeout("expandone()",tickspeed)
	}

function startscroller()
	{
	while (document.getElementById("dropmsg"+totalDivs)!=null)
	totalDivs++
	expandone()
	}

if (window.addEventListener)
	window.addEventListener("load", startscroller, false);
else if (window.attachEvent)
	window.attachEvent("onload", startscroller);

