function check_name(){
	jQuery("#home-button").animate({ opacity: 0.5, borderWidth: 1 }, 0 );
	jQuery("#about-button").animate({ opacity: 0.5, borderWidth: 1 }, 0 );
	jQuery("#contact-button").animate({ opacity: 0.5, borderWidth: 1 }, 0 );
	jQuery("#other-button").animate({ opacity: 0.5, borderWidth: 1 }, 0 );
	var s=window.location.href;
	var request = s.substring(s.length-1);
	var idToLoad = new Array ("home","button") ;
	switch(request) { 
		case "1" : 
			idToLoad[0]="about";
			jQuery("#about-button").animate({ opacity: 1, borderWidth: 5 }, 600 );
			break;
		case "2" :
			idToLoad[0]="contact";
			jQuery("#contact-button").animate({ opacity: 1, borderWidth: 5 }, 600 );
			break ;
		case "3" :
			idToLoad[0]="other";
			jQuery("#other-button").animate({ opacity: 1, borderWidth: 5 }, 600 );
			break;
		default :
			idToLoad[0]="home";
			jQuery("#home-button").animate({ opacity: 1, borderWidth: 5 }, 600 );
			break;
	}
	jQuery("#content").find("div:visible").hide();
	jQuery("#"+idToLoad[0]).fadeIn();
	jQuery("#"+idToLoad[0]).find("div").fadeIn();
};
window.onload = check_name;
jQuery(document).ready(function() {
	jQuery(".blue").corner();  //Rounded corners
	jQuery("#lavalamp").lavaLamp({ fx: "backout", speed: 700, click: function(event, menuItem) { return true; }});
	jQuery(function() {
		jQuery("#page-wrap div.button").click(function() {
			jQueryclicked = jQuery(this);
			if (jQueryclicked.css("opacity") != "1" && jQueryclicked.is(":not(animated)")) {
			    jQueryclicked.animate({ opacity: 1, borderWidth: 5 }, 600 );
				var idToLoad = jQueryclicked.attr("id").split('-');
				jQuery("#content").find("div:visible").hide();
				jQuery("#"+idToLoad[0]).fadeIn();
				jQuery("#"+idToLoad[0]).find("div").fadeIn();
			}
			jQueryclicked.siblings(".button").animate({ opacity: 0.5, borderWidth: 1 }, 600 );
		});
	});
	jQuery(function() {
	jQuery("#logo").hover(function() {
		jQuery(".edge").stop().fadeIn();
	}, function() {
		jQuery(".edge").stop().fadeOut();
	});
	});
});