$(function() {
/*
	$("a:not([href*='olywagov.com']), a:not([href*='booking.ihotelier.com'])").click(function(){
		window.open(this.href);
		return false;
	}).attr("title", "Opens in a new window");	 
	*/

	$("a.video").click(function() {
	$.fancybox({
		'padding'		: 0,
		'autoScale'	: false,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'title'			: this.title,
		'width'		: 560,
		'height'		: 400,
		'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
		'type'		: 'swf'
	});

	return false;
	});

	$('#slider').cycle({
		fx: 'fade' 
	});
	
	$("#home-specials li, .room-desc, .special").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});



		$('.slides').after('<div id="slider-nav">').cycle({ 
			fx:     'fade',
		    speed:  500, 
		    timeout: 3000,
		    pause: true,
		    pager:  '#slider-nav' 
		});


/*
   $('.kwicks').kwicks({  
       max : 120, 
       spacing : 3,  
       isVertical : true  
   });
   */  
});
