$(document).ready(function(){

	// !hello world
	Shadowbox.init({
			overlayColor:'#000'
		,	overlayOpacity:1
		, skipSetup: true
	});


	$('img').attr('title','');


	if ($('.slideshow').length >0)	{
		$('.slideshow').innerfade({
				speed: 'slow',
				timeout: 3000,
				type: 'sequence',
				containerheight: '350px'
		});
	}
	
	if (html_for_vimeo) {
		// console.log(html_for_vimeo);
		
		

		
		
		$('.post * img').click(function(){
			
			Shadowbox.open({
					content:	html_for_vimeo
				,	player:		'html'
				,	title:		''
				,	width:		'601px'
				,	height:		'338px'
				,overlayColor: '#000'
				,overlayOpacity: 0
			})
						
			
/* 			console.log($('.post').position().top); */
			
			
			$('#sb-wrapper').css({
				top: $('.post').position().top+'px !important'
			});
			
		})
		.hover(
				function(){ 
					$(this).css({
						'cursor':'pointer'});
					},
				function() {
					$(this).css({
					'cursor':'default'
					});

				}
			)

}
});

window.onload = function() {

    // set up all anchor elements with a "movie" class to work with Shadowbox
/*
    Shadowbox.setup(".post * img", {
			content:	html_for_vimeo
		,	player:		'html'
		,	title:		''
		,	width:		'601px'
		,	height:		'338px'
		,	autoplayMovies:     true
    });
*/

};

