$(document).ready(function() { 
	
	// Navigation Highlight Control
	
	$("ul#nav li a").mouseover(function(){
		$(this).parent().parent().children(".highlight").removeClass("highlight");
		$(this).parent().addClass("highlight");
		$(".blurb").hide();
	});
	
	
	// Navigation MouseOver Control
	
	// var myTimer = {};
	
	$("#home-link").click(function(){
		$("div#main > div:not(#home)").hide();
		$("div#home").fadeIn('slow');
	});
	$("#about-link").mouseover(function(){
		$("div#main > div:not(#about)").hide();
		$("div#about").fadeIn('slow');
	});
	$("#services-link").mouseover(function(){
		$("div#main > div:not(#services)").hide();
		$("div#services").fadeIn('slow');
	});
	$("#resources-link").mouseover(function(){
		$("div#main > div:not(#resources)").hide();
		$("div#resources").fadeIn('slow');
	});
	$("#contact-link").mouseover(function(){
		$("div#main > div:not(#contact)").hide();
		$("div#contact").fadeIn('slow');
	});
	$("#membership-link").mouseover(function(){
		$("div#main > div:not(#membership)").hide();
		$("div#membership").fadeIn('slow');
	});
	
	// Navigation Click Control
	
	//$("#home-link").click(function() {
	//	myTimer = $.timer(2000,function(){
	//	$("div#home > div.blurb").fadeIn('slow');
	//	});
	//});
	
	$("#about-link").click(function() {
		$("div#about > div.blurb").fadeIn(2000);
		//myTimer = $.timer(1000,function(){
		$("div#about > div.blurb > div.blurb-content").fadeIn(2000);
		//});
	});
	$("#services-link").click(function() {
		$("div#services > div.blurb").fadeIn(2000);
		//myTimer = $.timer(1000,function(){
		$("div#services > div.blurb > div.blurb-content").fadeIn(2000);
		//});
	});
	$("#resources-link").click(function() {
		$("div#resources > div.blurb").fadeIn(2000);
		//myTimer = $.timer(1000,function(){
		$("div#resources > div.blurb > div.blurb-content").fadeIn(2000);
		//});
	});
	$("#contact-link").click(function() {
		$("div#contact > div.blurb").fadeIn(2000);
		//myTimer = $.timer(1000,function(){
		$("div#contact > div.blurb > div.blurb-content").fadeIn(2000);
		//});
	});
	$("#membership-link").click(function() {
		$("div#membership > div.blurb").fadeIn(2000);
		//myTimer = $.timer(1000,function(){
		$("div#membership > div.blurb > div.blurb-content").fadeIn(2000);
		//});
	});
	
	// Modal
	
	  			
  				$("#services-sales-link").click(function() {
  					$("#services-sales").modal();
  				});
  				
  				$("#services-lease-link").click(function() {
  					$("#services-lease").modal();
  				});
  				
  				$("#services-relocation-link").click(function() {
  					$("#services-relocation").modal();
  				});
  			
  				$("#gold-link").click(function() {
  					$("#membership-gold").modal();
  				});
  				$("#silver-link").click(function() {
  					$("#membership-silver").modal();
  				});
  					
	
	
});