
var newsitem=0;
 
Behaviour.register({
	
	'div.top10_stuur': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).addClassName('top10_stuur_over');
		});
		Event.observe(el, 'mouseout', function() {
			$(el).removeClassName('top10_stuur_over');
		});
		
	},
	
	'div.games_title': function (el) {
		Event.observe(el, 'mouseover', function() {
			$('games_link').className='games_link_on';
		});
		Event.observe(el, 'mouseout', function() {
			$('games_link').className='games_link';
		});
		
	},
	'div.top10_meer': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='top10_meer_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='top10_meer';
		});
		
	},

	'div.game2-button': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='game2-button_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='game2-button';
		});
		
	},	
	'div.game-button': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='game-button_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='game-button';
		});
		
	},
	'div.top10_laatste': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='top10_laatste_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='top10_laatste';
		});
		
	},
	
	'div.top10_stem': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='top10_stem_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='top10_stem';
		});
		Event.observe(el, 'click', function() {
			$(stem).submit();
		});
		
	},
	'div.faq_verstuur': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='faq_verstuur_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='faq_verstuur';
		});
		Event.observe(el, 'click', function() {
			$(stuur).submit();
		});
		
	},
	'div.faq_terug': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='faq_terug_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='faq_terug';
		});
		
	},
	'div.top10_terug': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='top10_terug_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='top10_terug';
		});
	
	},
	'div.food-item': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='food-item_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='food-item';
		});
		
	},

	'div.news_item': function (el) {
		newsitem= newsitem+1;
		if ((newsitem/2) == Math.round(newsitem/2)) $(el).addClassName('news_item_red');
	},
	
	
	'div.startagline': function (el) {
		Event.observe(el, 'mouseover', function() {
			$('sterreneten').className='leesmeer_over';
		});
		Event.observe(el, 'mouseout', function() {
			$('sterreneten').className='leesmeer';
		});
		
	},
	'div.back_home': function (el) {
		Event.observe(el, 'mouseover', function() {
			$(el).className='back_home_over';
		});
		Event.observe(el, 'mouseout', function() {
			$(el).className='back_home_out';
		});
		
	}	

});

function popupBasic( url, widthPX, heightPX ){
	
	day = new Date();
	id = day.getTime();
	
	if( !widthPX ) widthPX=800;
	if( !heightPX ) heightPX=600;
	
	//eval("page" + id + " = window.open("+url+", '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+widthPX+",height="+heightPX+"');");
	window.open(url, id , 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+widthPX+',height='+heightPX);
}

function popupHapStap( url, widthPX, heightPX ){
	
	day = new Date();
	id = day.getTime();
	
	//eval("page" + id + " = window.open("+url+", '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+widthPX+",height="+heightPX+"');");
	window.open(url, id , 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+widthPX+',height='+heightPX);
}



