// ===============================
// remixdesign inc 2011
// ===============================

jQuery(document).ready(function() {
	jQuery(".hide_content").show();
	jQuery(".min").show();
	jQuery(".plus").hide();

	jQuery(".plus").click(function() {
		jQuery(this).show();
		jQuery(".plus").hide();
		jQuery(".min").show();
		jQuery(this).next(".hide_content").slideToggle(200);
	});
  
	jQuery(".min").click(function() {
		jQuery(this).parent().prev(".min").slideToggle(200);
		jQuery(this).parent().slideToggle(200);
		jQuery(this).fadeOut(10);
		jQuery(".plus").show();
	});
});

// ===============================
// fading objects //
// ===============================

$(document).ready(function(){

$('.pic_hover').hover(
	function() {
		$(this).find('.rollover').stop().fadeTo(150, .90);
	},
	
	function() {
		$(this).find('.rollover').stop().fadeTo(150, 0);
	}	
)
});


$(document).ready(function(){
	$("#social-icons img, #mainlogo img").hover(
	function() {
	$(this).stop().animate({"opacity": ".5"}, "50");
	},
	function() {
	$(this).stop().animate({"opacity": "1"}, "50");
});
 
});

// ===============================
// Function for smooth scroll
// ===============================

	function goToByScroll(id){
			$('html,body').animate({scrollTop: $("#"+id).offset().top},1200);
	}

// ===============================
// Function for external links to open in new window
// ===============================

	$(function(){
	$('a[href^=http]').click( function(){
		window.open(this.href);
		return false;
		});
	});
