
$(window).load(function(){
	//set and get some variables
	var thumbnail = {
		effectDuration : 400, /* the duration of the effect (zoom and caption) */
        imgWidth : $('.caption-wrapper').find('img').width(),
        imgHeight : $('.caption-wrapper').find('img').height()
	};
	//make the list items same size as the images
	$('.caption').css({
		'width' : thumbnail.imgWidth
	});
	//when mouse over the list item...
	$('.caption-wrapper').hover(function(){
		//show the caption using slideDown event
		$(this).find('.caption:not(:animated)').slideDown(thumbnail.effectDuration);
	//when mouse leave...
	}, function(){
		//hide the caption using slideUp event
		$(this).find('.caption').slideUp(thumbnail.effectDuration);

	});
});

//$(document).ready(function() {
//
//    $("a.[rel=siteimg]").fancybox();
//
//	/* Apply fancybox to multiple items */
//	$("a.roomsimg").fancybox({
//		'transitionIn'	:	'elastic',
//		'transitionOut'	:	'elastic',
//		'speedIn'		:	600,
//		'speedOut'		:	200,
//		'overlayShow'	:	true
//	});
//});

