// last update 2010-05-10
// COPYRIGHT(C)638-8080.com.ALL RIGHTS RESERVED.
// Editor - studio CLOVER - www.with-clover.com.

$(document).ready(function(){
  $("#tab_nav a").click(function(){
    $($("#tab_nav a.sel").attr("href")).hide();
    $("#tab_nav a.sel").removeClass("sel");
    $(this).addClass("sel");
    $($(this).attr("href")).fadeIn("fast");
				return false;
  });
});
$(document).ready(function(){
  $("#index_benefitBox li a").click(function(){
    $($("#index_benefitBox li a.sel").attr("href")).hide();
    $("#index_benefitBox li a.sel").removeClass("sel");
    $(this).addClass("sel");
    $($(this).attr("href")).fadeIn("fast");
				return false;
  });
});


$(document).ready(function(){
	$("#footer ul li+li,#links #container ul li+li")
	.css("border-left","#000 1px solid")
	.css("padding","0 0 0 0.6em")
});

$(function (){
    if (! $.browser.opera){
        $('a[href^="#"]:not(#index_benefitBox a,#tab_nav a[href^="#"])').click(function (){
            $(this).blur();
            $('html,body').animate({ scrollTop: 0 }, 'slow');
            return false;
        });
    }
});

function ChangeImg(mySrc){
   document.images['Largeimg'].src = mySrc; 
}
function addBookmark(title,url){
    if (window.sidebar){
        window.sidebar.addPanel(title, url,"");
    } else if( document.all ){
        window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ){
        return true;
    }
}

window.onload = function() {
var w = 510;
var h = 300;
var node_a = document.getElementsByTagName('a');
for (var i in node_a) {
if (node_a[i].className == 'newwin') {
node_a[i].onclick = function() {
window.open(this.href, '', 'scrollbars=1,toolbars=0,location=0,status=0,menubar=0,resizable=0,width=' + w + ',height=' + h);
return false;
};
}
}
};

