// remap jQuery to $
(function($){})(window.jQuery);

/* trigger when page is ready */
$(document).ready(function (){

/*-----------------------------------------------------------------------------------*/
/*	Newsletter
/*-----------------------------------------------------------------------------------*/
	$('#signup-form #email').attr('value','Your Email Address');
	$('#signup-form #email').click(function(){
	if ($(this).value == $(this).defaultValue) {
	this.value = '';
	}
	}).blur(function() {
	if (this.value == '') {
	this.value = 'Your Email Address';
	}
	}); 

/*-----------------------------------------------------------------------------------*/
/*	Slides Properties
/*-----------------------------------------------------------------------------------*/

	if (jQuery().slides) {				
		jQuery("#slider").slides({
			preload: true,
			preloadImage: '/addons/themes/HTML5-Reset/img/loading.gif',
			effect: 'fade',
			fadeSpeed: 1000,
			play: 8000,
			crossfade: true,
			generatePagination: false,
			autoHeight: true
		});
	}

/*-----------------------------------------------------------------------------------*/
/*	Slides Navigation Effect
/*-----------------------------------------------------------------------------------*/
	
	if (jQuery().slides) {
		
		jQuery("#slider").hover( function() {
			jQuery('.slides-nav').fadeIn(200);
		}, function () {
			jQuery('.slides-nav').fadeOut(200);
		});
		
	}
/*-----------------------------------------------------------------------------------*/
/*	Find the last widget box
/*-----------------------------------------------------------------------------------*/
	
	$("#main-sidebar .sidebar-item:last").addClass('last');
/*-----------------------------------------------------------------------------------*/
/*	Find the last issue box
/*-----------------------------------------------------------------------------------*/
	
	$(".issue:last").addClass('last');
/*-----------------------------------------------------------------------------------*/
/*	Find the last category link
/*-----------------------------------------------------------------------------------*/
	
	$("#currect-section h3:last").addClass('last');	
	
	
});


/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/
