//メインFlash

//フォーム フォーカス
$(function() {
  $('#sword')
    .focus(function() {
      if($(this).hasClass('over')) {
        $(this).removeClass();
      }
    })
    .blur(function() {
      if($(this).val().length == 0) {
        $(this).addClass('over');
      }
    })
    .blur();
});


//ロールオーバー
jQuery(document).ready(function($)
{
// 基本
$('.over img').rollover();
// inputもいける
//$('form input:image').rollover();
// 複数指定も楽々
//$('#nav a img, form input:image').rollover();
// 引数で _on の部分を指定できる
//$('#nav a img').rollover('_over');
});



$(function(){

//jquery お知らせ
    $(".news .iconlist li").hide();
    $(".news .iconlist li:first").show();
	
    $(".news .title a").toggle(function(){
		$(".news .iconlist li").show();
		$(this).text("閉じる");
    },function(){
		$(".news .iconlist li").hide();
		$(".news .iconlist li:first").show();
		$(this).text("もっと見る");
    })

//jquery 商品詳細ページ内リンク
	$("#goods .pagelink").click(function(){
		var targetOffset = $(".description2").offset().top;
		$("html,body").animate({scrollTop: targetOffset}, 300);
		return false;
	});
	
//jquery 商品画像中央揃えie6,7対応用
    $("#goods .image h3").after('<div class="ie"></div>');
})





//プルダウンメニューに関するファンクションをここに。
function change(LNS){
 if(LNS !="default"){
  window.document.location.href=LNS;
 }
}

//ポップアップに関するファンクションをここに。
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

