$(document).ready(function(){
	/* Search Form submit */
	$("#search_button").click(function(){
		$("#search_form").submit();
		return false;
	});

	/* Javascript implemented CSS drop-shadow effect on type */
	$("#menu a span").dropShadow({left: 1, top: 1, blur: 2, opacity: 0.4});
	$("th *").dropShadow({left: 2, top: 1, blur: 1, opacity: 0.2});
	
	/* Scrolling effect */
	$('a.top_link').click(function(){
		$.scrollTo(0,500);
		return false;
    });	
	$('a.scroll').click(function(){
		$.scrollTo($(this).attr('href'),500);
		return false;
    });
    
    /* Create valid HTML by adding rel="external" to anchor tags to open in new window */
    $('a[rel*=external]').click(function(){
		window.open(this.href);
        return false;
    });

});
