// JavaScript Document

	 $(document).ready(function(){
 $('#tabs-buying div').hide(); // Hide all divs
 $('#tabs-buying div:first').show(); // Show the first div
 $('#tabs-buying ul li:first').addClass('active_buying'); // Set the class for active state
 $('#tabs-buying ul li a').click(function(){ // When link is clicked
 $('#tabs-buying ul li').removeClass('active_buying'); // Remove active class from links
 $(this).parent().addClass('active_buying'); //Set parent of clicked link class to active
 var currentTab = $(this).attr('href'); // Set currentTab to value of href attribute
 $('#tabs-buying div').hide(); // Hide all divs
 $(currentTab).show(); // Show div with id equal to variable currentTab
 return false;
 });
});

$(document).ready(function(){
$('#tabs div').hide(); // Hide all divs
 $('#tabs div:first').show(); // Show the first div
 $('#tabs ul li:first').addClass('active'); // Set the class for active state
 $('#tabs ul li a').click(function(){ // When link is clicked
 $('#tabs ul li').removeClass('active'); // Remove active class from links
 $(this).parent().addClass('active'); //Set parent of clicked link class to active
 var currentTab = $(this).attr('href'); // Set currentTab to value of href attribute
 $('#tabs div').hide(); // Hide all divs
 $(currentTab).show(); // Show div with id equal to variable currentTab
 return false;
 });
});

$(document).ready(function(){
 $('#tabs-loans div').hide(); // Hide all divs
 $('#tabs-loans div:first').show(); // Show the first div
 $('#tabs-loans ul li:first').addClass('active_loans'); // Set the class for active state
 $('#tabs-loans ul li a').click(function(){ // When link is clicked
 $('#tabs-loans ul li').removeClass('active_loans'); // Remove active class from links
 $(this).parent().addClass('active_loans'); //Set parent of clicked link class to active
 var currentTab = $(this).attr('href'); // Set currentTab to value of href attribute
 $('#tabs-loans div').hide(); // Hide all divs
 $(currentTab).show(); // Show div with id equal to variable currentTab
 return false;
 });
 });