var Anim = {};
var News = {};
var opacityName;
/*var IconsID = "ctl00_VisualHomeIcon";
var IconsColorID = "ctl00_VisualHomeIconC";
var IconsActiveID = "ctl00_VisualHomeIconCA";
var IconsDivID = "ctl00_VisualHomeIcons";
var activeIconID;
var activeIconClass = "VisualHomeActiveIcon";*/
var timer = null;
var currOpacity = 0;
var visualID;
var timerInt = 30;
var temp;

Anim.Activate = function()
{
	setTimeout(News.Run,4000);
}

News.Run = function()
{
	target = document.getElementById('NewsRot');
	news = document.getElementById('NewsRot2');
	lift = (news.style.top) ? news.style.top.substr(0,news.style.top.length-2) : "0";
	if (lift<=-27*4) {lift = 27;news.style.top = (lift) + 'px';}

	stopPos = lift - 27;

	newsScroll = setInterval(function() {News.Scroll(stopPos)},30)
}

News.Scroll = function(stopPos)
{
	news = document.getElementById('NewsRot2');
	lift = (news.style.top) ? news.style.top.substr(0,news.style.top.length-2) : "0";
	news.style.top = (lift-1) + 'px';
	if (lift-1==stopPos) {
		clearInterval(newsScroll);

		if ( (lift-1) == (-27*4) ) 
			{News.Run();}
		else {
			setTimeout(News.Run,4000); 
		}
	}
}
