// remap jQuery to $
(function($){
	
	// Copyright script - found in the plugins.js file
	// To use, replace the '#copyright' id with the
	// id of the element that holds your copyright date
	$('#copyright').copyright();
	
	// Email defuscator - found in the plugins.js file
	$('.email').defuscate();
	
	// Supersized fullscreen slideshow	
	$.fn.supersized.options = {  
		startwidth: 1500,  
		startheight: 1126,
		vertical_center: 1,
		slideshow: 1,
		navigation: 1,
		thumbnail_navigation: 0,
		transition: 3, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
		pause_hover: 0,
		slide_counter: 0,
		slide_captions: 0,
		slide_interval: 10000,
		slides : [
			{image : '/images/bg/fullscreens/home/home-slider-1.jpg', title : 'test'},
			{image : '/images/bg/fullscreens/home/home-slider-2.jpg', title : 'test'},  
			{image : '/images/bg/fullscreens/home/home-slider-3.jpg', title : 'test'},
			{image : '/images/bg/fullscreens/home/home-slider-4.jpg', title : 'test'}
		]
	};
	$('#supersized').supersized(); 
	
	// User defined functions go here
	$('#nav > li, #nav > li > a').hover(
		function() {
			$(this).addClass('iehover');	
		}, function() {
			$(this).removeClass('iehover');
	})
	
	// Add padding to container bottom to fill with white without creating a scrollbar
	var winHt = parseInt($(window).height());
	var contHt = parseInt($('#container').height());
	var pad = winHt - contHt;
	$('#container').css('padding-bottom',pad);
	
	$(window).resize(function() {
		var winHt = parseInt($(window).height());
		var contHt = parseInt($('#container').height());
		var pad = winHt - contHt;
		$('#container').css('padding-bottom',pad);
	})
	
})(this.jQuery);
