$(document).ready(function(){

$("a[rel='group']").colorbox();
$(".single").colorbox();
//$(".colorbox").colorbox({width:500});
						   
$('#floater').aqFloater({attach: 'se', duration: 0, offsetX: 10, offsetY: 10});
$('#panehome').height();
$('#panehome').jScrollPane({scrollbarWidth:12, scrollbarMargin:15, wheelSpeed:30, reinitialiseOnImageLoad:true, animateTo:true});
$('#pane1').height();
$('#pane1').jScrollPane({scrollbarWidth:12, scrollbarMargin:15, wheelSpeed:30, reinitialiseOnImageLoad:true, animateTo:true});

	$("#handler").toggle(function(){
		$(this).addClass("v"); 
		}, function () {
		$(this).removeClass("v");
	});
	
	$("#handler").click(function(){
		$(this).next(".content").slideToggle("slow");
		var t=$("h1").text();
		if ($("#txt").text()==""){
			$("#txt").text(t);
			 $("#txt").css("padding","0px 5px");

		}else{
			$("#txt").text("");
			$("#txt").css("padding","0px");
		}
	});
	
	$("#handlerRes").toggle(function(){
		$(this).addClass("v"); 
		}, function () {
		$(this).removeClass("v");
	});
	
	$("#handlerRes").click(function(){
		$(this).next(".reservation").slideToggle("slow");
		var t=$(".title").text();
		if ($("#txtRes").text()==""){
			$("#txtRes").text(t);
			 $("#txtRes").css("padding","0px 5px");

		}else{
			$("#txtRes").text("");
			$("#txtRes").css("padding","0px");
		}
	});

});
