





function move_home_up() {
/*
	$('#main_slider_cont').animate({
		height: 660
	},
	{
		duration: 600,
		queue: false,
		easing: 'easeInOutQuart',
		complete: function() {}
	});
*/
	
	$('#whatsnew_close_bt').css({
				display: 'block'
			});
	

	$('#main_slider').animate({
		marginTop: -703
	},
	{
		duration: 600,
		queue: false,
		easing: 'easeInOutQuart',
		complete: function() {

			
/*

			$('#whatsnew_close_bt').animate({
				marginLeft: 890
			},
			{
				duration: 600,
				queue: false,
				easing: 'easeInOutQuart',
				complete: function() {}
			});
*/

		}
	});
}



function move_home_down() {

 
	$('#main_slider').animate({
				marginTop: 0
			},
			{
				duration: 600,
				queue: false,
				easing: 'easeInOutQuart',
				complete: function() {
				
 				}
			});
			
			
		
}

// Resizable background image
$(document).ready(function() {

	// var imgWidth = 920 + ($(window).width() - 1140);
	// $("#imgbg").css("width", imgWidth);
	// $(window).resize(function() {
	// 	var imgWidth = 920 + ($(window).width() - 1140);
	// 	$("#imgbg").css({
	// 		width: imgWidth
	// 	});
	// 	
	// });       

});

$(document).ready(function() {

	/* Home Fade Images */

	// $('.whats-new #fade-images').cycle({
	// 	fx: 'fade',
	// 	speedIn:3000,
	// 	speedOut:3000,
	// 	continuous:    1,
	// 	sync: 0
	// 
	// }); 
	/* Page Transitions */

	// $("#menu a").click(function(){
	// 	  
	// 	$(".content, #imgbg").fadeOut(500);
	// 	  	
	// });	  
	//     
	// 	$(".content, #imgbg").fadeIn(500);
	//                                         
	/* Tabs */

	$("#partners").tabs(".partners-content", {
		effect: 'ajax'
	});

	//   
	// $('.gallery-columns, .chairman-text, .company-text, .charity-text').cycle({ 
	// 	fx:     'scrollHorz',
	// 	easing: 'easeOutQuart', 
	// 	prev:   '#prev', 
	// 	next:   '#next', 
	// 	after:   onAfter, 
	// 	timeout: 0,
	// 	cleartypeNoBg: 'true'
	// });    
	//              

});

// function onAfter(curr, next, opts) {
// 	var index = opts.currSlide;
// 	$('#prev')[index == 0 ? 'hide' : 'show']();
// 	$('#next')[index == opts.slideCount - 1 ? 'hide' : 'show']();
// }
// 
//       

// Back animation
// $("a.back").click(function() {
// 	$(".single-article,.single-hotel").animate({
// 		left: "-200px",
// 		opacity: "0.0"
// 	},
// 	300);
// });  

$(".team a").overlay({
	target: '#team-popup',
	mask: {
		color: '#0d0d0d',
		opacity: 0.8,
		closeSpeed: 'slow'
	},
	top: 0,
	left: 0,
	onBeforeLoad: function() {

		// grab wrapper element inside content
		var wrap = this.getOverlay().find(".contentWrap");

		// load the page specified in the trigger
		wrap.load(this.getTrigger().attr("href"));
	}

});

//Video Popup	


// Galleria Plugin

$(document).ready(function() {

	/* Hotel Gallery*/
	$(".hotel-pages a").click(function() {

	});

	$('.page-title').css({
		display: "none"
	});  
	
	
	$('.preload').hide();   
	
	
	$('.page-title').animate({
		left: "0",
		opacity: "show"
	},
	"slow", "easeOutSine");

});

/*PRELOAD*/
$(document).ready(function() {

	/*$('.financial-partners').delay(250).fadeIn(600);*/

});

