function slideLoad() {
	var ample = $('#wrap').width();
	var alt = $('#wrap').height();
	$('#section_load, #home').width(ample);
	$('#section_load, #home').height(alt);
	
	$('#section_load').css('left',ample);
	$('#section_load').show();
	
	$('#section_load').animate({'left':'-50px'},function(){
	    $('#section_load').css('width','100%');
	    $('#section_load').css('height','100%');
	});
	$('#section_load').animate({'left':'0px'}, 400);
}

$(document).ready(function(){
	$('#section_load').hide();
	
	// NAV HOME HOVER
	// $("#nav li a").hover(function(){
    	// $(this).stop(true, true).animate({"opacity":1}, 200);
  	// }, function(){
    	// $(this).stop(true, true).animate({"opacity":0.5}, 200);
  	//});
  	
  	// NAV HOME LOAD SLIDE  	
	$('#btn_1').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/idea.html").fadeIn(1000);
		return false;
	});
	$('#btn_2').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/who.html").fadeIn(1000);
		return false;
	});
	$('#btn_3').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/what.html").fadeIn(1000);
		return false;
	});
	$('#btn_4').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/clients.html").fadeIn(1000);
		return false;
	});
	$('#btn_5').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/labs.html").fadeIn(1000);
		$('body').addClass("close_alt");
		return false;
	});
	$('#btn_6').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/updates.html").fadeIn(1000);
		$('body').addClass("close_alt");
		return false;
	});
	$('#btn_7').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/workwithus.html").fadeIn(1000);
		return false;
	});
	$('#btn_8').click(function(){
		slideLoad();
		$('#section_load .inner_wrap').html('<div class="preload"></div>');
		$("#section_load .inner_wrap").hide().load("templates/connect.html").fadeIn(1000);
		return false;
	});
	
	
	// RETURN BUTTON
	$('#btn_return').hover(function(){		
		$("#section_load").stop(true, true).animate({'left':'20px'}, 200);
		$(this).stop(true, true).animate({'margin-left':'-500px'}, 400);	
	},function(){
		$("#section_load").stop(true, true).animate({'left':'0px'}, 200);
    	$(this).stop(true, true).animate({'margin-left':'-480px'}, 400);
  	});
	
	$('#btn_return').click(function(){
	
		var ample = $('#wrap').width();
		var alt = $('#wrap').height();
		$('#section_load, #home').width(ample);
		$('#section_load, #home').height(alt);
		
		$("#section_load").animate({'left':$("#section_load").width()},function(){
			$("#section_load").hide();
			$("#home").css('width','100%');
			$("#home").css('height','100%');
		});
		$('#section_load .inner_wrap').html('');
		$('body').removeClass("close_alt");
		
		return false;		
	});
	
	// CODA SLIDER
});



