$(document).ready(function() {

	$("#mainDiv1, #mainDiv2, #mainDiv3, #mainDiv4").hide();
 	$("#mainDiv1, #mainDiv2, #mainDiv3, #mainDiv4").removeClass("nostack");
 	$("#mainDiv1, #mainDiv2, #mainDiv3, #mainDiv4").addClass("stackem");
	 
	$(".nonjs").removeClass("showheading");
 	$(".nonjs").addClass("hideheading");
 
 	$(".mainTabs, .top-no-bg").removeClass("hideTabs");
    $(".mainTabs").addClass("reveal");
   
	$(".mainLink1").click(function() {
		$("#mainDiv1").show();
		$("#mainDiv2, #mainDiv3, #mainDiv4").hide();
		$("#content-wrap-outer-home").hide();
		return false;//stops the page from jumping if content is longer than the browser window
	});
	 
    $(".mainLink2").click(function() {
	   $("#mainDiv2").show(); 
	   $("#mainDiv1, #mainDiv3, #mainDiv4").hide();
	   $("#content-wrap-outer-home").hide(); 
	   	return false;//stops the page from jumping if content is longer than the browser window
	});
	 
	$(".mainLink3").click(function() {
		$("#mainDiv3").show(); 
		$("#mainDiv1, #mainDiv2, #mainDiv4").hide();
		$("#content-wrap-outer-home").hide();
		return false;//stops the page from jumping if content is longer than the browser window
	});
	 
	$(".mainLink4, #mainLink4").click(function() {
		$("#mainDiv4").show();
	    $("#mainDiv1, #mainDiv2, #mainDiv3").hide();
		$("#content-wrap-outer-home").hide();
		return false;//stops the page from jumping if content is longer than the browser window
	});
	 
	$(".closeLink").click(function() {
	    $("#mainDiv1, #mainDiv2, #mainDiv3, #mainDiv4").hide(); 
		$("#content-wrap-outer-home").show(); 
		
		return false;//stops the page from jumping if content that is longer than the browser window is returning to original state
	 });
	 
 });
  
  
  