	$(document).ready(function() {
			//img fade		
				$('#mainMenu_pl li, #mainMenu_en li')
           .removeClass('highlight')
           .find('a')
           .append('<span class="hover" />').each(function () {
                   var $span = $('> span.hover', this).css('opacity', 0);
                   $(this).hover(function () {
                       // on hover
                       $span.stop().fadeTo(500, 1);
                   }, function () {
                       // off hover
                       $span.stop().fadeTo(1000, 0);
                   });
               });
		//input fade
			jQuery("input:[type=text], textarea.messageArea").focus(function () {
			jQuery(this).addClass("overInput");	
			});
			jQuery("input:[type=text], textarea.messageArea").blur(function () {
			jQuery(this).removeClass("overInput");
			});
		//slideshow
		$('#slideShow').cycle({
		fx: 'fade',
		speed:    4000, 
    timeout:  6000 
		});
		//newsslide
		$( "#newsSlider" ).accessNews({
	        headline : "",
	        speed : "slow",
			slideBy : 1
	    });
			
		$( "#stablePhotos" ).accessNews({
	        headline : "",
	        speed : "slow",
			slideBy : 1
	    });
			$( "#clubPhotos" ).accessNews({
	        headline : "",
	        speed : "slow",
			slideBy : 1
	    });
			$( "#eventsPhotos" ).accessNews({
	        headline : "",
	        speed : "slow",
			slideBy : 1
	    });
		//colorbox
		$(".horseFilm").colorbox({transition:"fade", iframe:true, innerWidth:425, innerHeight:344});
		$("a[rel='Stable']").colorbox({transition:"fade"});
		$("a[rel='Club']").colorbox({transition:"fade"});
		$("a[rel='Events']").colorbox({transition:"fade"});
		
		jQuery.each($('a.newsLink'), function(k, v){
			$(v).colorbox({width: '50%', inline: true, href:"#full_news"+$(v).attr('id').substr(8)});
		});
});
