// JavaScript Document
jQuery(function($) { 
	var loc = location.href;
	$("#left").load("leftLink.html");
	
	// for About Us sub menu
	if((loc.indexOf('about-us.html') > -1) || (loc.indexOf('mission.html') > -1) || (loc.indexOf('history.html') > -1) || (loc.indexOf('vision.html') > -1) || (loc.indexOf('fact-sheet.html') > -1) || (loc.indexOf('team.html') > -1) || (loc.indexOf('staff.html') > -1) || (loc.indexOf('multimedia.html') > -1)){
		 $("#topLink").load("about-us-link.html");
	}
	
	// for Donation sub menu
	if((loc.indexOf('your-donations.html') > -1) || (loc.indexOf('send-a-check.html') > -1) || (loc.indexOf('charge-your-donation.html') > -1) || (loc.indexOf('corporate-partner-program.html') > -1) ){
		 $("#topLink").load("donation-link.html");
	}
	
	// for Housing sub menu
	if((loc.indexOf('housing.html') > -1) || (loc.indexOf('current-housing-programs.html') > -1) || (loc.indexOf('future-housing-programs.html') > -1)){
		 $("#topLink").load("housing-link.html");
	}
	
	// for Forms sub menu
	if((loc.indexOf('forms.html') > -1) || (loc.indexOf('volunteer-forms.html') > -1) || (loc.indexOf('survey-forms.html') > -1) || (loc.indexOf('RSVP-form-for-special-events.html') > -1) || (loc.indexOf('registration-for-conference.html') > -1) || (loc.indexOf('residents-application.html') > -1)){
		 $("#topLink").load("forms-link.html");
	}
	
	
	// for Press sub menu
	if((loc.indexOf('press.html') > -1) || (loc.indexOf('media.html') > -1) ){
		 $("#topLink").load("press-link.html");
	}
	
	
	// for Links sub menu
	if((loc.indexOf('links.html') > -1) || (loc.indexOf('carrfour-major-sponsor.html') > -1) ){
		 $("#topLink").load("links-link.html");
	}
	
	$("#footer").load("footer.html"); 
	
 $.fn.textDropShadow = function(){
	 $(this).html('<span class="jq-shadow">'+$(this).html()+'</span><span>'+$(this).html()+'</span>');
	 return $(this);
 }

	$('A[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
	$('A[rel="int"]').click( function() {
       $("div#flash").show("slow");
    });
	
	}); 