$(document).ready(function(){

/* Anchor */
	$('a[href*=#],area[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
		&& location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target
			|| $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body')
				.animate({scrollTop: targetOffset}, 800);
				return false;
			}
		}
	});

/* Rollover */
	$('.rollover').each(function(){
		var overImg = '_on';
		var imgout = $(this).attr("src");
		var imgovr = imgout.replace('.gif', overImg+'.gif').replace('.jpg', overImg+'.jpg').replace('.png', overImg+'.png');
		$(this).mouseover( function () { $(this).attr("src", imgovr); } );
		$(this).mouseout( function () { $(this).attr("src", imgout); } );
		$(this).mouseup( function () { $(this).attr("src", imgout); } );
		/*
		$(this).hover(
			function(){ $(this).attr("src", imgovr); },
			function(){ $(this).attr("src", imgout); }
		);
		*/
	});
	
/* Link target blank */
	$('a.external').each(function(){
		$(this).attr("target","_blank");
	});
	
/* Banner include */
	$("#Banner").load("/banner.html");

/* Not contextmenu
	$(document).bind("contextmenu",function(e){
		return false;
	});
*/
 
});


$(window).load( function() {

});


