$(document).ready(function () {

	//-------------------------------------------------------------------------------
	//	SET THE MOUSE OVER FOR THE THREE LINKS IN THE BLOCKS AT THE TOP AND THE BOTTOM
	//
	$('div#bottomrow a, div#toprow a.toplink').mouseover(function() {
		$(this.parentNode).addClass('mouseover');
	});
	
	$('div#bottomrow a, div#toprow a.toplink').mouseout(function() {
		$(this.parentNode).removeClass('mouseover');
	});

	$('div#maincontent div.buttons a').mouseover(function() {
		$(this.parentNode.parentNode.parentNode.parentNode).addClass('mouseover');
	});

	$('div#maincontent div.buttons a').mouseout(function() {
		$(this.parentNode.parentNode.parentNode.parentNode).removeClass('mouseover');
	});
	
	$('form.feedback button').mouseover(function(){
		$(this).addClass('mouseover');
	});

	$('form.feedback button').mouseout(function(){
		$(this).removeClass('mouseover');
	});

	//player links in een popup
	$("a[href^='http://player.omroep.nl']").attr('class','playerpopup');

	//rel=external link in een nieuw venster openen
	$("a[rel=external]").each(function(i){this.target="_blank";});

	//definitie popupwindow
	$('.popupwindow').popupWindow({ 
		height:500, 
		width:800, 
		top:50, 
		left:50 
	}); 

	//definitie popup Uitzending Gemist player
	$('.playerpopup').popupWindow({ 
		height:690, 
		width:800, 
		top:50, 
		left:50 
	}); 

});
