jQuery(function($) {
	var height = -1, top = -1;
	$('.thanksLink').click(function(e) {
		if (height == -1 || top == -1) {
			height = parseInt($('#thanksBox').css('height'));
			top = $('.thanksLink').position().top;
			$('#thanksBox').css('height', '0px').css('top', $('.thanksLink').position().top).show();
		}
		e.preventDefault();
		var visible = jQuery('#thanksBox').hasClass('open');
		var properties = {
			height: visible ? 0 : height,
			top: visible ? top : top - height
		};
		$('#thanksBox').toggleClass('open').animate(properties, 800, 'linear');
		$('.thanksLink').toggleClass('close');
		return false;
	});


	$('#accordion').accordion();
	
	$(window).load(function() {
	         $('#sliderHome').orbit({
	            'bullets' : true,		
				'bulletThumbs': true,
				'bulletThumbLocation': 'orbit/'
	         });
	     });
});
