// js functions

window.addEvent('domready', function() {
	
	$$('.news-item').addEvents({
		'mouseenter': function() {
			this.set('tween', { duration: 100 }).tween('background-color', '#fff', '#eee');
		},
		'mouseleave': function() {
			this.set('tween', { duration: 600 }).tween('background-color', '#eee', '#fff');
		}
	});
	
	if ($('flash-menu')) {
		var mov = new Swiff('swf/menu.swf', {
			id: 'flash-top-menu',
			width: '100%',
			height: 275,
			container: 'flash-menu',
			params: {
				wmode: 'transparent',
				scale: 'noscale',
				bgcolor: '#ff5a00'
			}
		});
	}
	
	cdrMenu.menu();
	
	if($('zakelijke_inschrijving'))
	{
		var inschrijfToggle = new Fx.Slide('zakelijke_inschrijving');
		inschrijfToggle.hide();
		
		$('toggle_zakelijk').addEvent('click', function() {
		
			if(!inschrijfToggle.open) inschrijfToggle.toggle();
		
		});
		
		$('toggle_particulier').addEvent('click', function() {
		
			if(inschrijfToggle.open) inschrijfToggle.toggle();
		
		});
	}
	
	scrollNow = function() {
		new Fx.Scroll(window).toBottom()
	}
	
	/* if($('circle-button') != null)
	{
		$('circle-button').addEvents({
			mouseenter: function() {
				this.src = 'assets/png/circle_over.png'
			},
			mouseleave: function() {
				this.src = 'assets/png/circle_out.png'
			}
		});
	} */
	
});
