// JavaScript Document

function change(element) {
    document.getElementById("blurb-home").style.display = "none";
    document.getElementById("blurb-D").style.display = "none";
    document.getElementById("blurb-S").style.display = "none";
    document.getElementById("blurb-R").style.display = "none";
    document.getElementById("blurb-C").style.display = "none";
    document.getElementById("blurb-H").style.display = "none";
    document.getElementById("blurb-C2").style.display = "none";
    document.getElementById(element).style.display = "inline";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function randinator() {
	if (randinator.arguments) {
		var randArray = new Array();
		var randNum = Math.floor(Math.random() * randinator.arguments.length);
		document.write(randinator.arguments[randNum]);
	}
}



/***********************************************
* ProHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var tickspeed=8000 //ticker speed in miliseconds (2000=2 seconds)
var enablesubject=0 //enable scroller subject? Set to 0 to hide

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()
document.getElementById("dropcontentsubject").innerHTML=selectedDivObj.getAttribute("subject")
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 (!enablesubject)
document.getElementById("dropcontentsubject").style.display="none"
}

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

