/*
 * 
 * jQuery
 * 
 */
$(document).ready(function()
{
	// Show slideshow animation on main pages.
	$("#image").innerfade({
//		animationtype: 'slide',		// animationtype: Type of animation 'fade' or 'slide' (Default: 'fade')
//		speed: 'slow',				// speed: Fadingspeed in milliseconds or keywords (slow, normal or fast) (Default: 'normal')
		timeout: 4000,				// timeout: Time between the fades in milliseconds (Default: '2000')
		type: 'random',				// type: Type of slideshow: 'sequence', 'random' or 'random_start' (Default: 'sequence')
		containerheight: '450px'	// containerheight: Height of the containing element in any css-height-value (Default: 'auto')
//		runningclass: 'innerfade'	// runningclass: CSS-Class which the container get’s applied (Default: 'innerfade')
	});
	
	// Make main nav menu totally awesome.
	$("#nav li:has(ul)").hover(function() {
		$("#nav li ul li").show(350);						// Reveal subnav items in a "cool" way.
		$(this).children().eq(0).css('color', '#ffffff');	// When we move to a sub nav, keep the parent nav lit up.
	}, function() {
		$("#nav li ul li").hide();							// Hide subnav items in a "cool" way.
		$(this).children().eq(0).css('color', '#000000');	// When we move to a sub nav, keep the parent nav lit up.
	});
	
});



/*
 * 
 * Shadowbox
 * 
 */
Shadowbox.init({
	language: 'en',
	players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});
