﻿$(document).ready(function() {

	$('section.rubriek article.right img').hover(function() {
		$('section.rubriek article.left img').attr('src','images/groot/' + $(this).attr('id'));
		$('#omschrijving').html( $(this).attr('alt')  );
	})

  $('#onderwerpen').change(function() {
  	window.location.href = $("option:selected", this).val();
  })

	$('section.rubriek article.left img').attr('src','images/groot/' + $('article.right img').attr('id'));
	
	if ($('article.right img').length != 0) {
		/* rubriek pagina */
		$('#omschrijving').html( $('article.right img').attr('alt')  );
	}
	else {
		/* homepage */
		$('#omschrijving').html( $('article img').attr('alt')  );
	}

});
