
function setOpacity(amnt,id)
{
	if(amnt < 10)
	{
		amnt = "0"+amnt;
	}
	
        var item = document.getElementById(id);
	if(!item)
	{
		return;
	}
        if (amnt == 100)
        {
                item.style.opacity = 1;
                item.style.filter = "alpha(opacity="+amnt+")";
                item.style.mozOpacity = "1.0";
        
	}
        else
        {
                item.style.opacity = "."+amnt;
                item.style.filter = "alpha(opacity="+amnt+")";
                item.style.mozOpacity = "0."+amnt;
        }
}

function runTimer(leftMenu)
{
	if(leftMenu == 1)
	{
		  var randimg = Math.round((Math.random()*19))+1;
                  document.getElementById('innerbanner').style.backgroundImage = "url('images/headers/top_"+randimg+".jpg')";
	}
	else
	{
                  document.getElementById('innerbanner').style.backgroundImage = "url('images/TVrandom/BGtv-top-copy.jpg')";
	}
		                                   return;
}
function startlist() {
        if (document.all && document.getElementById) 
        {
                navRoot = document.getElementById("plums");
                for (i=0; i<navRoot.childNodes.length; i++) 
                {
                        node = navRoot.childNodes[i];
                        if (node.nodeName=="LI") 
                        {
                                node.onmouseover=function() 
                                {
                                        this.className+=" over";
                                }
                                node.onmouseout=function()      
                                {
                                        this.className=this.className.replace(" over", "");
                                }
                        }
                }
        }
	AddCaption();
}
