var DScroll = {
	 init: function()
	 {
			if($("newsscroller")) { var scroller = new DMarquee($("newsscroller"), {height:96, duration:500, timeout:7000, fps: 30}); }
			if($("eventscroller")) { var eventscroller = new DMarquee($("eventscroller"), {height:96, duration:500, timeout:7000, fps: 30}); }

			if($("newsscroller"))
			{
				$("newsscroller").addEvents({
					"mouseover" : function() {
						scroller.mouseover();
						if($("eventscroller")) { eventscroller.mouseover(); }
					}.bind(this),
					"mouseout"  : function() {
						scroller.mouseout();
						if($("eventscroller")) { eventscroller.mouseout(); }
					}.bind(this)

				});
			}

			if($("eventscroller"))
			{
				$("eventscroller").addEvents({
					"mouseover" : function() {
						if($("newsscroller")) { scroller.mouseover(); }
						eventscroller.mouseover();
					}.bind(this),
					"mouseout"  : function() {
						if($("newsscroller")) { scroller.mouseout(); }
						eventscroller.mouseout();
					}.bind(this)

				});
			}
	 }
}
window.addEvent('load',DScroll.init);


/*
var DScroll = {

	 initialize: function()
	 {
	 	DScroll.scrollerarray = new Object;

		 	if($("newsscroller"))
		 	{
		 		DScroll.scrollerarray.newsscroll = new MooMarquee($("newsscroller"),{direction:'vertical',speed:10,width:475,height:96, step:2, timeout: 5000})

				$("newsscroller").addEvents({

				"mouseover" : function() {
					DScroll.stopall();
				}.bind(DScroll),
				"mouseout"  : function() {
					DScroll.startall();
				}.bind(DScroll)

				});

	 	}

	 	if($("eventscroller"))
	 	{
	 		DScroll.scrollerarray.eventscroll = new MooMarquee($("eventscroller"),{direction:'vertical',speed:10,width:195,height:96, step:2, timeout: 5000});

			$("eventscroller").addEvents({
				"mouseover" : function() {
					DScroll.stopall();

				}.bind(DScroll),
				"mouseout"  : function() {
					DScroll.startall();
				}.bind(DScroll)

				});
	 	}
	 },

	 stopall: function()
	 {
	 	$each(DScroll.scrollerarray, function(value) {
	 		value.externalmouseover();
	 	});

	 },

	 startall: function()
	 {

	 	$each(DScroll.scrollerarray, function(value) {
	 		value.externmouseout();
	 	});

	 }
}

window.addEvent('load',DScroll.initialize);
*/