// JavaScript Document
$(function () {
	// install the Flash object inside an element whose id is "flash"
	if ($('.home').length) {
		flashembed("logo", {
			src: 'assets/flash/FvdG.swf',
			height:'370',
			width:'360',
			valign:'bottom',
			loop:'false',
			wmode:'transparent',
			onFail: function() {
				$('#logo img').show('fast');
			},
			allowfullscreen: false
		});
		$('.home .nav a').mouseenter(function () {
			$('.nav').attr('zIndex',1000)
		});
	}
	
	// Add bullets to the ticker terms, since they seem to disappear from the list items
	$('.ticker li').prepend('&bull;&emsp;');
	
	// Initialise the marquee
	$('.marquee').marquee();
	
	// Back button
	$('.back a').click(function () {
		window.history.back();
		return false;
	});
	
	// Initialise the accordeon effect
	$(".programma .content").tabs(".pane", {tabs: 'h2', effect: 'slide'});
	
	// Enlarge image on hover
	$('.stage .content .contentImage img').mouseenter(function () {
		$(this).stop().animate({
			width:'595px'
		}, 300)
	});
	// Shrink image on mouseleave
	$('.stage .content .contentImage img').mouseleave(function () {
		$(this).stop().animate({
			width:'205px'
		}, 300)
	});
});
