//jQuery.noConflict();
try{
		jQuery(document).ready(function(){
		
			var showMainContent=false;
			if(jQuery().fancybox){ //namespace check
				jQuery("#mod_pukkaPictures .picture a").fancybox({
					'zoomSpeedIn': 1200,
					'zoomSpeedOut': 1200,
					'zoomOpacity': true
				});
				jQuery("#mod_pukkaGalleries .gallery .pictures .picture a.zoomer").fancybox({
					'zoomSpeedIn': 500,
					'zoomSpeedOut': 500,
					'zoomOpacity': true
				});					
				 jQuery('#special-offers ul.offers-list').cycle({ 
					fx:     'scrollHorz', 
					prev:   '#special-offers #controls a#prev', 
					next:   '#special-offers #controls a#next', 
					timeout: 0, 
					startingSlide: 0 				
				});	
						
			}
			
		
		
			if(jQuery(document.body)){
				var mainContent = jQuery("#main-content");				
				var mainContentTop = mainContent.position().top;
				var mainContentHeight = mainContent.height();
				//-------------------------
				var mainFollow = jQuery("#follow-content");
				var mainFollowTop = mainFollow.position().top;
				var mainFollowHeight = mainFollow.height();
				//-----------------------------			
				var mainPress = jQuery("#press-content");
				var mainPressTop = mainPress.position().top;
				var mainPressHeight = mainPress.height();
				//-----------------------------
				var mainSitemap = jQuery("#sitemap-content");
				var mainSitemapTop = mainSitemap.position().top;
				var mainSitemapHeight = mainSitemap.height();
				//-----------------------------
				var accMenu=jQuery("#accessibility-menu");
				var startPoint=(accMenu.width()-((accMenu.width()/100)*60))*-1;
	
				
				var specialOffersTrigger=jQuery("#accessibility-menu .special-packages");
				
				mainContent.hide();
				mainContent.css({
					"bottom":(mainContentHeight)*-1
				}).show();
				
				accMenu.css("left",startPoint);
				
			    accMenu.animate({"left":0},1,function(){
					if(showMainContent){
						setTimeout(function(){
							welcomeTrigger.click()
						},1);
						
					}
				});
				
			//***********************
				mainFollow.hide();
				mainFollow.css({
					"bottom":(mainFollowHeight)*-1
				}).show();		
				
		   //************************		   
				mainPress.hide();
				mainPress.css({
					"bottom":(mainPressHeight)*-1
				}).show();		
				
		   //************************
		   		mainSitemap.hide();
				mainSitemap.css({
					"bottom":(mainSitemapHeight)*-1
				}).show();		
				
		   //************************
				specialOffersTrigger.click(function(){
					if(!accMenu.is(":animated")){
						showHide(accMenu,"hide");
						showHide(jQuery("#special-offers"),"show");
					}
				});
				
			}else{
				jQuery("#close-btn").hide();
			}
				
			function showHide(jqEL,action){
				
				switch(action){
					case "show":
						var animHeight=jqEL.height();
						var modifier="+=";
						if(!jqEL.is(":animated")){
					      jqEL.animate({"bottom":"0px"},1500);
			        	}
					break;
					case "hide":
						var animHeight=jqEL.height();
						var modifier="-=";
						if(!jqEL.is(":animated")){
					      jqEL.animate({"bottom":modifier+animHeight+"px"},1500);
			        	}
					break;
				}
				
			}
			
				jQuery("#photogallery").click(function(){
					    showHide(jQuery("#main-content"),"hide");
						showHide(jQuery("#follow-content"),"hide");
						showHide(jQuery("#press-content"),"hide");
						showHide(jQuery("#sitemap-content"),"hide");
						$("#info").animate({right: '-500px'}, 150, 'easeOutQuad');
						$("#icon").hide("slow");
						$("#container_transfer").hide("slow");
						 

						
						
					    showHide(jQuery("#special-offers"),"show");
					
				      
					  });
					  
				jQuery("#promotion").click(function(){
					    showHide(jQuery("#special-offers"),"hide");
						showHide(jQuery("#follow-content"),"hide");
						showHide(jQuery("#press-content"),"hide");
						showHide(jQuery("#sitemap-content"),"hide");
								$("#info").animate({right: '-500px'}, 150, 'easeOutQuad');
						$("#icon").hide("slow"); 
						$("#container_transfer").hide("slow");	
					    showHide(jQuery("#main-content"),"show");
					
				       
					  });
				jQuery("#follow").click(function(){
					    showHide(jQuery("#special-offers"),"hide");
				        showHide(jQuery("#main-content"),"hide");
						showHide(jQuery("#press-content"),"hide");
						showHide(jQuery("#sitemap-content"),"hide");
								$("#info").animate({right: '-500px'}, 150, 'easeOutQuad');
						$("#icon").hide("slow"); 
						$("#container_transfer").hide("slow");
					    showHide(jQuery("#follow-content"),"show");
						
				       
					  });
					  
			     jQuery("#press").click(function(){
					    showHide(jQuery("#special-offers"),"hide");
				        showHide(jQuery("#main-content"),"hide");
					    showHide(jQuery("#follow-content"),"hide");
						showHide(jQuery("#sitemap-content"),"hide");
								$("#info").animate({right: '-500px'}, 150, 'easeOutQuad');
						$("#icon").hide("slow"); 
					$("#container_transfer").hide("slow");
						showHide(jQuery("#press-content"),"show");
				
				       
					  });
			     jQuery("#sitemap").click(function(){
					    showHide(jQuery("#special-offers"),"hide");
				        showHide(jQuery("#main-content"),"hide");
					    showHide(jQuery("#follow-content"),"hide");
						showHide(jQuery("#press-content"),"hide");
								$("#info").animate({right: '-500px'}, 150, 'easeOutQuad');
						$("#icon").hide("slow"); 
					    $("#container_transfer").hide("slow");
						showHide(jQuery("#sitemap-content"),"show");
					
					  });
				
			   
	  
			 
				
				
			 jQuery("#close-btn,#offer-close-btn,#reservation-close,#close-btn-follow,#close-btn-press,#close-btn-sitemap").click(function(){
				var id=this.id;
				var hide='';
				var show=jQuery("#accessibility-menu");
				switch(id){
					case 'close-btn':
						hide=jQuery("#main-content");
						$("#info").animate({right: '0px'}, 150, 'easeOutQuad');
						$("#icon").show(2000); 
						$("#container_transfer").show(2000); 
						<!-- $("#icon").animate({right: '0px'}, 150, 'easeOutQuad'); -->
						
					break;
					case 'offer-close-btn':
						hide=jQuery("#special-offers");
						$("#info").animate({right: '0px'}, 150, 'easeOutQuad');
						<!-- $("#icon").animate({right: '0px'}, 150, 'easeOutQuad'); -->
						$("#icon").show(2000); 
						$("#container_transfer").show(2000);

					break;
					case 'reservation-close':
						hide=jQuery("#availability-checker");
						$("#info").animate({right: '0px'}, 150, 'easeOutQuad');
						$("#icon").show(2000);
						$("#container_transfer").show(2000); 
					break;
					case 'close-btn-follow' :
					    hide=jQuery("#follow-content");
						$("#info").animate({right: '0px'}, 150, 'easeOutQuad');
						$("#icon").show(2000);
						$("#container_transfer").show(2000); 
						break;
					case 'close-btn-press' :
					    hide=jQuery("#press-content");
						$("#info").animate({right: '0px'}, 150, 'easeOutQuad');
						$("#icon").show(2000);
						$("#container_transfer").show(2000); 
						break;
					case 'close-btn-sitemap' :
					    hide=jQuery("#sitemap-content");
						$("#info").animate({right: '0px'}, 150, 'easeOutQuad');
						$("#icon").show(2000);
						$("#container_transfer").show(2000); 
						break;

				}
				
				showHide(hide,"hide");
				showHide(show,"show");
			 });
			 
		
		//Logo Rotator

		
		});
		
}catch(error){

}
