//float
		$(document).ready(function() {
			setTimeout("animation()",300);
		});
		
		function animation(){
			float();
		}
			
		function float(){
			$("#ark, #bottle").animate({top:"-=5px"},1000).animate({top:"+=5px"}, 1000);
			setTimeout("float()",2000);
		}
		
	//hover	
		
		$(function() {
			/* horizontal menu */
			
			// hide sub menus
			$('.navbar ul').hide();
			
			// toggle sub menus on hover
			$('.navbar > li')
				.hover(function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'height': 'show',
						'marginTop': 'show',
						'marginBottom': 'show',
						'paddingTop': 'show',
						'paddingBottom': 'show' 
					});
				}, function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'height': 'hide',
						'marginTop': 'hide',
						'marginBottom': 'hide',
						'paddingTop': 'hide',
						'paddingBottom': 'hide' 
					});
					
				});
					});
				
//slideshows	 

$(function() {


$('#s1').cycle({ 
    fx:    'custom', 
    sync: 0, 
    cssBefore: {  
        top:  400, 
        display: 'block' 
    }, 
    animIn:  { 
        top: 0 
    }, 
    animOut: {  
        top: 400 
    }, 
	timeout: 5500, 
	delay:  7000,
    speed:  800, 
	pause:  1,
	//autostop: 1,
	next:   '.right',
	prev:   '.left',
	
    pagerAnchorBuilder: function(idx, slide) {
    return '#nav li:eq(' + (idx) + ') a'; 
   }
});

$(function() {
$('#s2').cycle({ 
    fx:    'custom', 
    sync: 0, 
    cssBefore: {  
        top:  400, 
        display: 'block' 
    }, 
    animIn:  { 
        top: 0 
    }, 
    animOut: {  
        top: 400 
    }, 
	timeout: 30, 
    speed:  800, 
	autostop: 1,

});

});
	

//lightbox

$(function() {
$(".lightbox").fancybox({
'padding': 0,
})
});
//lightbox	player
$(function() {
var mySRC ="";
$(".lightboxplayerreel").fancybox({
'padding': 0,
// other API options etc
'onComplete': function() {
mySRC = $('.playerreel iframe').attr('src');
},

'onClosed': function() {
$('.playerreel iframe').attr('src',mySRC);

}
});
}); 

$(function() {
var mySRC ="";
$(".lightboxplayer").fancybox({
'padding': 0,
// other API options etc
'onComplete': function() {
mySRC = $('.player iframe').attr('src');
},

'onClosed': function() {
$('.player iframe').attr('src',mySRC);

}
});
}); 

$(function() {
var mySRC ="";
$(".lightboxplayer2").fancybox({
'padding': 0,
// other API options etc
'onComplete': function() {
mySRC = $('.player2 iframe').attr('src');
},

'onClosed': function() {
$('.player2 iframe').attr('src',mySRC);

}
});
}); 

$(function() {
var mySRC ="";
$(".lightboxplayer3").fancybox({
'padding': 0,
// other API options etc
'onComplete': function() {
mySRC = $('.player3 iframe').attr('src');
},

'onClosed': function() {
$('.player3 iframe').attr('src',mySRC);

}
});
}); 



$(function() {
var mySRC ="";
$(".lightboxplayer4").fancybox({
'padding': 0,
// other API options etc
'onComplete': function() {
mySRC = $('.player4 iframe').attr('src');
},

'onClosed': function() {
$('.player4 iframe').attr('src',mySRC);

}
});
}); 



$(function() {
var mySRC ="";
$(".lightboxplayer5").fancybox({
'padding': 0,
// other API options etc
'onComplete': function() {
mySRC = $('.player5 iframe').attr('src');
},

'onClosed': function() {
$('.player5 iframe').attr('src',mySRC);

}
});
}); 


$(function() {
var mySRC ="";
$(".lightboxplayer6").fancybox({
'padding': 0,
// other API options etc
'onComplete': function() {
mySRC = $('.player6 iframe').attr('src');
},

'onClosed': function() {
$('.player6 iframe').attr('src',mySRC);

}
});
}); 
//hoverblock

	
$(function() {
			$('ul.hover_block li').hover(function(){
				$(this).find('img').animate({left:'300px'},{queue:false,duration:500});
			}, function(){
				$(this).find('img').animate({left:'0px'},{queue:false,duration:500});

});
});


// PIC FADE

$(function() {
 
$("img.pictop").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
 
});

});

