if (isContentAreaOpened){	scrollToContent();}else{	$.scrollTo({top:'292px',left:'178px'},800);}function loadContent(strPage,strUrlParam,arrParam){	if (strUrlParam)	{		strUrlParam='&'+strUrlParam;	}	else	{		strUrlParam='';	}		if (!arrParam)	{		arrParam={};	}	if (!arrParam.ignoreAjaxParam)	{		strAjaxParam='ajax=true';	}	else	{		strAjaxParam='';	}	showProcessingMessage(true);	$('#contentArea').load(strPage+'.htm?'+strAjaxParam+strUrlParam,arrParam,function(){showProcessingMessage(false); scrollToContent(); offenStatus(true); activateDefaultActions();});		if(typeof(pageTracker) !== 'undefined') 	{		pageTracker._trackPageview(strPage+'.htm?'+strAjaxParam+strUrlParam); 	}}function gbPagination(strParam,strController){	loadContent(strController,strParam)}function showProcessingMessage(bolShowMessage){	if (bolShowMessage)	{						messageXPosition=($(window).width()/2)-86;		messageYPosition=($(window).height()/2)-90;		$('#containerLoadingNotice').css({left:messageXPosition+'px',top:messageYPosition+'px'});		$('#containerLoadingNotice').show();	}	else	{		$('#containerLoadingNotice').hide();		if ($('#contentArea').css('display')=='none')		{					//$('#contentArea').html('<p style="text-align:center"><img src="image/lightbox/loading.gif" style="vertical-align:bottom" /></p>');			$('#contentArea').css('display','block');		}		}	}function scrollToContent(){	$.scrollTo({top:'870px',left:'178px'},800);}function scrollToHome(){	$.scrollTo({top:'292px',left:'178px'},800,{onAfter:function(){$('#contentArea').hide();}});}function activateSmileyInsert(){	if ($('#guestBookSmileyList'))	{		$("#guestBookSmileyList").find('img').click(function(){			$('#guestbookComment').val($('#guestbookComment').val()+' '+$(this).attr('alt'));			//$('#guestbookComment').html('test');			//alert('inserting... '+$(this).attr('alt'));		});			}}function showOpeningHours(){	$.scrollTo({top:'292px',left:'178px'},800);	openRollo();		}function activateMenuCaption(){	if ($('#menu'))	{			$("#menu").find('a').hover(			function () { $('#'+this.id+'Caption').show(); },			function () { $('#'+this.id+'Caption').hide(); }		);	}}function activateLightBox(){	$(".lightbox").lightbox({disableNavbarLinks: true});}function createGuestBookEntry(form,strType){		loadContent('gaestebuch','guestbook[action]=create&guestbook[type]='+strType,$(form).serialize());}function createGuestWhish(form){		loadContent('gaestewuensche','guestwhish[action]=create',$(form).serialize());}function activateDefaultActions(){	activateSmileyInsert();		activateLightBox();	}$(document).ready(function () {	activateMenuCaption();	activateDefaultActions();});function verticalAlignThumbnails(){	$('.galleryThumbNailInnerContainer').vAlign();}(function ($) {// VERTICALLY ALIGN FUNCTION$.fn.vAlign = function() {	return this.each(function(i){	var ah = $(this).height();	var ph = $(this).parent().height();	var mh = (ph - ah) / 2;	$(this).css('margin-top', mh);	});};})(jQuery);