if(!document.getElementById)
{
	if(document.all)
	{
		accessObj = function()
		{
			if(typeof document.all[arguments[0]]!="undefined")
			return document.all[arguments[0]]
			else
			return null
		}
	}
	else if(document.layers)
	{
		accessObj = function()
		{
			if(typeof document[arguments[0]]!="undefined")
			return document[arguments[0]]
			else
			return null
		}
	}
}
else
{
	accessObj = function()
	{
		return document.getElementById(arguments[0]);
	}
}

function setOpacity(objname, o)
{
	var obj = accessObj(objname);
	var per = o / 100;
	
    obj.style.opacity = (per);
    obj.style.MozOpacity = (per);
    obj.style.KhtmlOpacity = (per);
    obj.style.filter = 'alpha(opacity=' + o + ')';
}

function newsscrollerbutton(newsscrollercurrentid, newsscrollerlastid)
{
	$("#go-button-"+newsscrollercurrentid).removeClass("news-scroller-button");
	$("#go-button-"+newsscrollercurrentid).addClass("news-scroller-button-on");
	$("#go-button-"+newsscrollerlastid).removeClass("news-scroller-button-on");
	$("#go-button-"+newsscrollerlastid).addClass("news-scroller-button");	
}

function newsscrollerauto()
{
	newsscrollercurrentid = newsscrollercurrentid+1;
    $("#go-button-"+newsscrollercurrentid).click();
}