$(document).ready(function() {
	if ($('#refers').length > 0) {
	  $('#refers').Fisheye({
	    maxWidth: 30,
	    spacing: 10,
	    items: '.content a',
	    itemsText: 'span',
	    container: '.content',
	    itemWidth: 50,
	    proximity: 60,
	    alignment : 'left',
	    valign: 'bottom',
	    halign : 'center'
	  });
	}
	$(function() {
		$.fn.nyroModal.settings.minWidth = 398;
		$.fn.nyroModal.settings.minHeight = 244;
	});
	$('.courselist tbody tr').click(function (ev) {
		if ($(ev.currentTarget).attr('href') != undefined) window.location.href = $(ev.currentTarget).attr('href');
	});
	$('.courselist tbody tr').mouseover(function (ev) {
		if (!$(ev.currentTarget).hasClass('nolink')) $(ev.currentTarget).addClass('hover');
	});
	$('.courselist tbody tr').mouseout(function (ev) {
		$(ev.currentTarget).removeClass('hover');
	});
	$('#topnav input[name=q]').focus(function (ev) {
		if ($(ev.currentTarget).hasClass('init')) {
			$(ev.currentTarget).removeClass('init');
		}
	});
	if ($('#courselist, #signup_form').length == 2) {
		$('#signup_form').submit(function (ev) {
			if ($('#courselist input:checked').length == 0) {
				alert('U dient minstens één cursus te selecteren');
				ev.preventDefault();
				return false;
			}
			return true;
		});
	}
});

function openMovie() {
$.fn.nyroModal.settings.css.content.overflow='hidden';
	$.nyroModalManual({url: '/content/swf/movie.php',width:398,height:244});	
//	setTimeout('$("#nyroModalIframe").height("100%");',500);
	
}