$(document).ready(function() {

    // Hover fade in effect
    // 7th April 2011 - Remved the .sidebox-01 a from the fading effect " $('h1, #lang, .hotspots img, .img-gallery img, .sidebox-01 a').hover(" 
  $('h1, #lang, .hotspots img, .img-gallery img').hover(
    function () {
      $(this).stop(true).fadeTo('normal',.7);
    }, 
    function () {
      $(this).fadeTo('normal',1);
    }
  );


// Thumbs hover fade in		
	$('#press-gallery span').hide();	
	$('#press-gallery li').mouseenter(function(e) {
        $(this).children('span').fadeIn(400);
    }).mouseleave(function(e) {        
        $(this).children('span').fadeOut(400);
    });
    
    
// Gallery cycle: http://jquery.malsup.com/cycle/pager6.html 
	
	$('.gallery').cycle({ 
		fx:     'scrollLeft', 
		speed:  'fast', 
		timeout: 0, 
		pager:  '.gallerynav', 
		pagerAnchorBuilder: function(idx, slide) { 
			// return selector string for existing anchor 
			return '.gallerynav li:eq(' + idx + ') a'; 
		}     
	});
	
	$('.heropics').cycle({ 
		fx:     'fade', 
		speed:  '1500', 
		prev:   '#prev', 
		next:   '#next', 
		timeout: 5000 
	});

	
// Fancybox
// Author: http://fancybox.net/
	
	$(".side-gallery a").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false,
		'hideOnContentClick': true,
        'titleShow'		: false
	});
 
	 

});

