/* Supersized defaults */
$(function(){
	$.fn.supersized.options = {  
		startwidth: 640,  
		startheight: 480,
		vertical_center: 1,
		slideshow: 1,
		navigation: 1,
		transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
		pause_hover: 0,
		slide_counter: 1,
		slide_captions: 1,
		slide_interval: 5000  
	};
	$('#supersize').supersized();
	$('.slide').animate( { left:"0px"}, 2000);
});

/* Slide panel */
function closeSlide() {
	$('.slide').animate( { left:"-387px"}, "slow", function() {
		$('.open_slide').show();
	});
};
function openSlide() {
	$('.open_slide').hide('fast',function() {
		$('.slide').animate( { left:"0px"}, "slow");
	});
};

/* Slide Gallery */
function closeGallery() {
	$('.gallery_holder').animate( { right:"-57px"}, "fast", function() {
		$('.open_gallery').show();
		$('.close_gallery').hide();
	});
};
function openGallery() {
	$('.open_gallery').hide('fast',function() {
		$('.close_gallery').show();
		$('.gallery_holder').animate( { right:"0px"}, "fast");
	});
};


/* Content pager */
$(document).ready(function() {
	$('.content').pager('div', {height: 'auto'});
});

