function fadeHovA(node){
$(node).fadeTo('fast',0.75);
$(node).hover(
function(){$(this).fadeTo('fast',1);},
function(){$(this).fadeTo('fast',0.75)}
);
}

function fadeHovB(node){
$(node).hover(
function(){$(this).fadeTo('fast',0.75);},
function(){$(this).fadeTo('fast',1)}
);
}
/*
function whatsNew(){
$('.feedburnerFeedBlock ul li').each(
function(){
aaa = '<dl><dt><span class=\"date\">'+$(".date",this).html()+'</span></dt><dd><a href=\"'+$(".headline a",this).attr('href')+'\" target=\"_blank\">'+$(".headline a",this).html()+'</a></dd></dl>';
$(this).remove();
$('.feedburnerFeedBlock').append(aaa);}
)
$('.feedburnerFeedBlock ul').remove();

}
*/
function contactPage(){
$("input[type $='text'][name^='_'],select[name^='_']").each(
function(){
$(this).css('background','rgb(255,255,240)');
$(this).after('<ins class=\"need\"><img src=\"img/common/must.gif\" alt=\"必須\" /></ins>');
})

$("textarea[name^='_']").each(
function(){
$(this).css('background','rgb(255,200,200)');
$(this).after('<br /><ins class=\"need\"><img src=\"img/common/must.gif\" alt=\"必須\" /></ins>');
})

$("#resetBT").css("cursor","pointer");
$("#submitBT").css("cursor","pointer");

$("#resetBT").hover(
function(){$("#resetBT").css('background','url(img/common/bt_reset.gif)')},
function(){$("#resetBT").css('background','url(img/common/bt_reset2.gif)')}
);
$("#submitBT").hover(
function(){$("#submitBT").css('background','url(img/common/bt_submit.gif)')},
function(){$("#submitBT").css('background','url(img/common/bt_submit2.gif)')}
);
}


function slideSwitch() {
var $active = $('#slideshow img.active');
if ( $active.length == 0 ) $active = $('#slideshow img:last');
var $next =  $active.next().length ? $active.next() : $('#slideshow img:first');
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, 1000, function() {
$active.removeClass('active last-active');
});
}

$(function() {
setInterval( "slideSwitch()", 5000 );
});


function coupon(){window.open("coupon.html","win","width=760,height=320,scrollbars=no");}
function CloseWin(){window.close();}



$(function(){
//onLoad
fonts = "'ＭＳ Ｐゴシック','Hiragino Kaku Gothic Pro', 'メイリオ','san-serif','generic font family'";
$("body").css('font-family',fonts);
//URI = $("[rel='start']").attr('href');
URI = '';
var pageID = $(document.body).attr('id');
$("head").append('<link href="'+URI+'css/alpha.css" rel="stylesheet" type="text/css" media="screen" />');

$("#top a").wrapInner('<span></span>');
if($('form').attr('action')=='mail/postmail.cgi'){contactPage()}


$("#top img").pngfix();
//end onLoad

$("a[href^='http://']").attr('target','_blank');
$("a[href^='https://']").attr('target','_blank');

var jumpHash = location.hash;
if(jumpHash!=''){location.hash =jumpHash;}
})
