jQuery.noConflict();
jQuery(function($) { 

	// Scroll to top animation
	$('.scroll-top').click(function(){ 
		$('html, body').animate({scrollTop:0}, 600); return false; 
	});
	
	
	// Hide parent on click (error messages, etc...)
	$('a.hideparent').click(function(){ 
		$(this).parent().fadeOut();
		return false;
	});


    $('#slider').nivoSlider({
    effect: 'random',
    slices: 15,
    //	animSpeed:500,
    pauseTime: 5000,
    startSlide: 0, //Set starting Slide (0 index)
    directionNav: true, //Next & Prev
    directionNavHide: true, //Only show on hover
    controlNav: true, //1,2,3...
    controlNavThumbs: false, //Use thumbnails for Control Nav
    controlNavThumbsSearch: '.jpg', //Replace this with...
    controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
    keyboardNav: true, //Use left & right arrows
    pauseOnHover: true, //Stop animation while hovering
    manualAdvance: false, //Force manual transitions
    captionOpacity: 0.8 //Universal caption opacity
    });




	// Toggle Content!
		$(".hidden").hide();
		$("a.toggle").click(function(event){
			if( $(this).text() == 'Show More' ) {
				$(this).text("Show Less");
			}else{
				$(this).text("Show More");
			}
			$(this).parents(".toggle-container").find(".hidden").slideToggle("normal");
			return false;
		});
		
});
