// JavaScript Document

$(document).ready(function() {
			
	/* VIDEOCLIP */
	$("#clip").click(function() {
	  $.fancybox({
		  'padding'		    : 0,
		  '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'
	  });
  
	  return false;
    });
	
	/* GALLERY */		
	$("a.zoom").fancybox();

	$("a.zoom1").fancybox({
		'overlayOpacity'	:	0.8,
		'overlayColor'		:	'#000'
	});

	$("a.zoom2").fancybox({
		'zoomSpeedIn'		:	500,
		'zoomSpeedOut'		:	500
	});
	
	/* SLIDE-IN DIV */
	div = jQuery('#slidein');
		duration = 1500;
		
		div.css({
				left:Math.round((jQuery(window).width() - div.width()) / 2),
				top:-div.height()
			})
			.animate(
				{top:Math.floor((jQuery(window).height() - div.height()) / 2)},
				duration,
				function(){
					jQuery('#close_slidein').click(function(){div.fadeOut()});
				}
			);


});
