
// jQuery Codes
$(document).ready(function(){

	// Lightbox PrettyPhoto
	$("a[rel^='prettyPhoto']").prettyPhoto({
		show_title: false
	});


	//jcarousellite - Eyecatcher
	$("#slider").easySlider({
		auto: true,
		speed: 4000,
		pause: 9000,
		prevText: 'Previous',
		continuous: true 
	});
	
	// Navigation
	$('#Top ul.Navigation').superfish({ 
		delay:       1000,                            // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  true                           // disable generation of arrow mark-up 
	}); 
	
	// FontResizer / TextResizer
	// Infos: http://trevordavis.net/blog/simple-jquery-text-resizer/
	if($.cookie('TEXT_SIZE')) {
		$('body').addClass($.cookie('TEXT_SIZE')); 
	}
	$('#OverTop a.FontResizer').click(function() {
		var textSize = $(this).parent().attr('class');
		$('body').removeClass('small medium large').addClass(textSize);
		$.cookie('TEXT_SIZE',textSize, { path: '/', expires: 10000 });
		return false;
	});
	
});
