// JavaScript Document

function windowpopup ( u , w , h , n ){
window.open( u , n ,"width=" + w + " , height=" + h +  " , menubar=no , toolbar=no,location=no,status=no,resizable=yes,scrollbars=yes");
}

$(document).ready( function(){
    $("#logo a, #utility li a, #gnavi li a, #local li a, #footer-utility li a, .reset a, .confirm a, .btn-go a, a img, .alphabtn").hover(function(){
       $(this).fadeTo("fast", 0.4);
    },function(){
       $(this).fadeTo("fast", 1.0);
    });
});

$(document).ready(function(){
  $('a[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}, 500);
       return false;
      }
    }
  });
});
