$.noConflict();
jQuery(document).ready(function($) {

// Animate the "go to top" scroll
$('a[href=#top]').click(function(){
	$('html, body').animate({scrollTop:0}, 'slow');
        return false;
});

// Hover effect on social icons
jQuery(".social_links img").hover(
	function() {
		jQuery(this).stop().animate({"opacity": "0"}, "400");
	},
	function() {
		jQuery(this).stop().animate({"opacity": "1"}, "400");
	});
	
// Opacity fade on the main logo
jQuery(".linkFade").hover(
	function() {
		jQuery(this).stop().animate({"opacity": "1"}, "300");
	},
	function() {
		jQuery(this).stop().animate({"opacity": "0.7"}, "300");
	});
	
// Opacity fade on targeted backgrounds.
jQuery(".bgFade").hover(
	function() {
		jQuery(this).stop().animate({"opacity": "1"}, "300");
	},
	function() {
		jQuery(this).stop().animate({"opacity": "0.2"}, "300");
	});      
	
// Show & Hide: style switcher 
$('html, .jq_show_switcher').click(function() {
	$('#styleSwitcher').fadeOut('fast');
});		
$('.jq_show_switcher, #styleSwitcher').click(function(event){		     
	if(!$('#styleSwitcher').is(":visible")) {
		$('#styleSwitcher').stop().fadeIn('fast');
	}
	return false;	
	event.stopPropagation();
});

});
