$(document).ready(function(){
	
	$('#menu a').not("#selected").hover(function() {
		$(this).stop().animate({
			paddingRight: 20
		}, 100);
	}, function() {
		$(this).stop().animate({
			paddingRight: 10
		}, 100);
    });
    
    $('#gallery').jcarousel({
    	scroll: 4
    });
    
    $('#gallery a').fancybox();
    
    $('.video').click(function(){
    	$.fancybox({
			'autoScale': false,
			'transitionIn': 'none',
			'transitionOut': 'none',
			'title': this.title,
			'width': 680,
			'height': 495,
			'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type': 'swf',
			'swf': { 'wmode' : 'transparent', 'allowfullscreen'	: 'true' }
		});
		return false;
	});
	
	var $buoop = {
		vs: {i:6,f:2,o:9.63,s:2,n:10},
		reminder: 168,
		onshow: function(infos){},
		l: "it",
		test: false,
		text: "",
		newwindow: false
	}
	$buoop.ol = window.onload; 
	window.onload=function(){
		if ($buoop.ol) $buoop.ol(); 
		var e = document.createElement("script");
		e.setAttribute("type", "text/javascript"); 
		e.setAttribute("src", "http://browser-update.org/update.js");
		document.body.appendChild(e);
	}
});
