$(document).ready(function(){

	if (document.getElementById("slider")){
		$("#slider").easySlider({
			orientation: 'vertical'
		});
	 }
	 if (document.getElementById("homebnr")){
	 	$('.slideshow').cycle({
			fx: 'fade',
			speed:    2000, 
			timeout:  2000 
		});
	}
	if (document.getElementById("tag-list")){
		$('#tag-list').jScrollPane({
			scrollbarWidth: 5
		});
	}
	if (document.getElementById("scroll-items")){
		$('ul#scroll-items li:first').css('border','none');
	}
	// subscription form validation
	if (document.getElementById("subscribeForm")){
		$("#subscribeForm").validate();
	}
	
	if (document.getElementById("resource-srch")){
		$('#cat-list li input').prettyCheckboxes();
		$('#tag-list li input').prettyCheckboxes({
			checkboxWidth: 17,
			checkboxHeight: 15
		});
	}
});