// JavaScript Document
var scroller;

function initAdvertScroller(){
	sc = $('advertScrollerContent');
	
	if(sc.childNodes.length > 4){
		
		for(var a = 0; a < sc.childNodes.length; a++){
	
			if(sc.childNodes[a].nodeType == 1){
				c = $(sc.childNodes[a]);
				c.style.cssFloat = "none";
				c.style.position = "absolute";
				
			}
		}
	}
	
	scroller = new MagicScroller($('advertScrollerContent') , $('advertScrollLeft') , $('advertScrollRight'));
	scroller.width = 537;
	scroller.xIconSpacing = 46;
	scroller.init();
	scroller.startScrolling();
}