botlst = new Array();
botlst[0]="<li><a href=\"#\" onClick=\"swap(this)\">OSA Home</a></li><li><a href=\"#\" onClick=\"swap(this)\">OSA Board</a></li><li><a href=\"#\" onClick=\"swap(this)\">Contact</a></li>"
botlst[1]="<li><a href=\"info.php?podid=registration\">Registration</a></li><li><a href=\"info.php?podid=rules\">League Rules</a></li><li><a href=\"info.php?podid=forms\">Forms</a></li><li><a href=\"info.php?podid=links\">Links</a></li><li><a href=\"info.php?podid=maps\">Maps</a></li>"
botlst[2]="<li><a href=\"http://odessasoccer.com/web/content\">Calendar</a></li><li><a href=\"http://odessasoccer.com/web/schedule.php?podid=boys\">Boys</a></li><li><a href=\"http://odessasoccer.com/web/schedule.php?podid=girls\">Girls</a></li><li><a href=\"http://www.odessasoccer.com/web/schedule.php?podid=playerdev\">Player Development</a></li><li><a href=\"http://www.odessasoccer.com/web/schedule.php?podid=academies\">Academies</a></li>"
botlst[3]="<li><a href=\"tournament.php?podid=information\">Information</a></li><li><a href=\"tournament.php?podid=registration\">Registration</a></li><li><a href=\"tournament.php?podid=schedule\">Schedule</a></li><li><a href=\"tournament.php?podid=ntssaform\">NTSSA Sanctioning Form</a></li>"
botlst[4]="<li><a href=\"development.php?podid=mission\">Mission</a></li><li><a href=\"development.php?podid=pdSchedule\">Schedule</a></li><li><a href=\"development.php?podid=article\">Articles</a></li>"
botlst[5]="<li><a href=\"referees.php?podid=clinics\">Clinics</a></li><li><a href=\"referees.php?podid=contact\">Contact</a></li>"

function tabby(item)
{
var lst=document.getElementById("toplist");
var its=lst.getElementsByTagName("li");
for (i=0;i<=its.length-1;i++){
var tblow=its[i].getElementsByTagName("img");
var tpp=its[i].getElementsByTagName("p");
if (document.getElementById(item.id).id==its[i].id){
tblow[0].style.opacity="1";
tblow[1].style.opacity="1";
tblow[0].style.filter="alpha(opacity=100)";
tblow[1].style.filter="alpha(opacity=100)";
tpp[0].style.background="white";
tpp[0].style.color="black";
document.getElementById("bottomlist").innerHTML=botlst[i];}
else {
tblow[0].style.opacity="0";
tblow[1].style.opacity="0";
tblow[0].style.filter="alpha(opacity=0)";
tblow[1].style.filter="alpha(opacity=0)";
tpp[0].style.background="";
tpp[0].style.color="white";}
}
}
function levi()
{
var icns = thiz.getElementsByTagName("img");
var iconht = 1*parseInt(icns[2].style.marginTop);
var iot = setTimeout("levi()",50);  // 50 controls the speed
iconht = iconht-1;  // move by 50 pixels
icns[2].style.marginTop= iconht + "px" ;
if (iconht <= -20) {  // left edge of image past the right edge of screen
clearTimeout(iot);// back to the left
icns[2].style.marginTop="-20px";
}
//icon.style.marginTop="-25px";
}


function unLd()
{
//var gt = document.getElementById("jsload").innerHTML;
//document.getElementById("jsload").innerHTML = gt;
//if (1*gt > 0) {
var tg=document.getElementById("jsload").className;
var cc=document.getElementById(tg);
thiz=cc;
tabby(cc);
levi();

//}
}
function swap(item)
{
var tabb = item.innerHTML;
var hss = tabb.split(' ').join('');
document.getElementById("main1").innerHTML = hss ;
document.getElementById("main1").innerHTML = document.getElementById(hss).innerHTML;
if (hss == 'OSAHome'){document.getElementById("main1").getElementsByTagName("ul")[0].innerHTML = document.getElementById("newslinks").innerHTML;
document.getElementById("main1").getElementsByTagName("ul")[1].innerHTML = document.getElementById("news_tray").getElementsByTagName("ul")[0].innerHTML;}
}
function findnews()
{
if(uIE){_xmlhttp2 = new ActiveXObject('Microsoft.XMLHTTP');}
else {_xmlhttp2 = new XMLHttpRequest();}

_xmlhttp2.onreadystatechange = newsHandler;
_xmlhttp2.open("GET", 'sheets/newsboard.xml' ,true);
_xmlhttp2.send(null);
}
function newsHandler()
{
if(_xmlhttp2.readyState == 4) {
document.getElementById("news_tray").innerHTML = _xmlhttp2.responseText;
var ind = document.getElementById("jsload").getAttribute('alt'); //podid
//var str = document.getElementById("newslinks").innerHTML ;
//var strx = document.getElementById("news_tray").getElementsByTagName("ul")[0].innerHTML;
if (ind == 'home') {
document.getElementById("main1").getElementsByTagName("ul")[0].innerHTML = document.getElementById("newslinks").innerHTML;
document.getElementById("main1").getElementsByTagName("ul")[1].innerHTML = document.getElementById("news_tray").getElementsByTagName("ul")[0].innerHTML;}
//document.getElementById("OSAHome").getElementsByTagName("div")[0].innerHTML = document.getElementById("main1").getElmentsByTagName("div")[0].innerHTML ;
}
}
function step()
{
var xjmz = document.getElementById("daolnu") ;     // xml island
var ind = document.getElementById("jsload").getAttribute('alt'); //podid
var skgee =  document.getElementById(ind+'g').innerHTML ;
//document.getElementById("main1").innerHTML = ind ;
document.getElementById("main1").innerHTML = document.getElementById(skgee).innerHTML;
findnews();
}

