jQuery(document).ready(function() { //Start up our Featured Project Carosuel
	jQuery('#featured ul').roundabout({
		easing: 'easeOutInCirc',
		duration: 600,
		minOpacity: 1
	});
	
	jQuery('ul.key-project-list li').click(function() {
			jQuery('#key-projects div').each(function(index) {
				divproject = this.id;
				jQuery('#'+divproject).hide();
			  });
		jQuery('ul.key-project-list li').each(function(index) {
			whichProject = this.id;
			jQuery('#'+whichProject).removeClass('projUnderline');
		  });		
	  var pos = this.id;
	  jQuery('#'+pos).addClass('projUnderline');		  
      jQuery('#'+pos+'-container').fadeIn('slow');  
	});
});
 
 jQuery(document).ready(function() {    
    var pathname = window.location.hash;    //pathname == hash
    if (pathname == ''){    //    if pathname contains nothing
        jQuery('#tower41-container').fadeIn('slow');
    } else {
			jQuery('#key-projects div').each(function(index) {
				divproject = this.id;
				jQuery('#'+divproject).hide();
			  });    
       jQuery('#key-projects div' + pathname).show();
       var linkPathName = pathname.replace("-container", "");
	   jQuery('#tower41').removeClass('projUnderline');		              
	   jQuery(linkPathName).addClass('projUnderline');		       
    }
});
