$(document).ready( function(){

	$('#center-line').fadeIn( 'slow' );

	$('#menu a').hover(function(){
		$(this).css({ 'padding-left' : '5px'});
		$(this).fadeOut('fast');
		$(this).fadeIn('fast');
	}, function(){
			$(this).css({ 'padding-left' : '0px'});
	});
	
	$('ul.gallery a').lightBox({fixedNavigation:true});
	
	
	if ( $('#logoAnimation').length )
	{
		setTimeout("$('#logoAnimation').fadeOut();$('#hiddenContent').fadeIn();", 1000 );
	}

	
	if ( $('#showAnimation').length )
	{
		setTimeout("showSlideShow();", 1500 );
	}
});



function showSlideShow()
{
		$('#slideshow').crossSlide({
	  fade: 1,
	  shuffle: true
	}, [
	  {
	    src:  '/images/slideshow/foto_1.jpg',
	    href: '/o-nas/',
	    from: '100% 80% 1x',
	    to:   '100% 0% 1.7x',
	    time: 3
	  }, {
	    src:  '/images/slideshow/foto_2.jpg',
	    href: '/o-nas/',
	    from: 'top left',
	    to:   'bottom right 1.5x',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_3.jpg',
	    href: '/o-nas/',
	    from: '100% 80% 1.5x',
	    to:   '80% 0% 1.1x',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_4.jpg',
	    href: '/o-nas/',
	    from: '100% 50%',
	    to:   '30% 50% 1.5x',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_5.jpg',
	    href: '/o-nas/',
	    from: '100% 80% 1x',
	    to:   '100% 0% 1.7x',
	    time: 3
	  }, {
	    src:  '/images/slideshow/foto_6.jpg',
	    href: '/o-nas/',
	    from: 'top center',
	    to:   'bottom center',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_7.jpg',
	    href: '/o-nas/',
	    from: 'center left',
	    to:   'center right',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_8.jpg',
	    href: '/o-nas/',
	    from: 'bottom right',
	    to:   'top left 1.5x',
	    time: 2
  	  }, {
	    src:  '/images/slideshow/foto_9.jpg',
	    href: '/o-nas/',
	    from: '100% 80% 1.5x',
	    to:   '80% 0% 1.1x',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_10.jpg',
	    href: '/o-nas/',
	    from: 'top center',
	    to:   'bottom center',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_11.jpg',
	    href: '/o-nas/',
	    from: '100% 80% 1x',
	    to:   '100% 0% 1.7x',
	    time: 3
	  }, {
	    src:  '/images/slideshow/foto_12.jpg',
	    href: '/o-nas/',
	    from: 'top center',
	    to:   'bottom center',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_13.jpg',
	    href: '/o-nas/',
	    from: 'center left',
	    to:   'center right',
	    time: 2
	  }, {
	    src:  '/images/slideshow/foto_14.jpg',
	    href: '/o-nas/',
	    from: 'bottom right',
	    to:   'top left 1.5x',
	    time: 2
	  }
	]);
	$('#slideshow').fadeIn( 'fast' );
	
}
