$(document).ready(function(){
//	golden();
//	itsNew();
//	vec20th();
  $('input#query').val('');
  $('input#query').one('focus',function(){
    $(this).val('').css('color','#000');
  });
  $('input#dmMailAdd').one('focus',function(){
    $(this).val('').css('color','#000');
  });


  $('.vsSoftList dl')
    .mouseover(function(){
      $(this).css('background','#ebf5fb');
    })
    .mouseout(function(){
      $(this).css('background','#fff');
    });
/*
  $('.vsSoftList dl img').click(function(){
    var tarHref = $(this).parent().attr('href');
    if(tarHref !== undefined){
        document.location.href = tarHref;
    }else{
      return false;
    }
  });
*/


});






/*-------------------------
new flag
-------------------------*/
function itsNew() {
	$('.thisEx dd:eq(0) ul li:eq(3)').append($('<img />').attr({
		'src':'http://shop.vector.co.jp/service/common/images/itsnew.gif',
		'alt':'NEW!',
		'title':'『同人コーナー』 オープン！',
		'class':'itsnew'
	})).css('position','relative');

	$('div.doujin').append($('<img />').attr({
		'src':'http://shop.vector.co.jp/service/common/images/itsnew.gif',
		'alt':'NEW!',
		'title':'『同人コーナー』 オープン！',
		'class':'itsnew2'
	})).css('position','relative');
}






/*-------------------------
vector 20th btn
-------------------------*/
function vec20th() {
	if($('#btn_20th').text().length<1) {
		$('.fLeft').append('<a href="http://20th.vector.jp/?site=shp" id="btn_20th" target="_blank" title="Vectorはおかげさまで20周年">Vectorはおかげさまで20周年</a>');
	};
}





/*-------------------------
golden week
-------------------------*/
function golden() {
	if($('.vs_hotcontent').size()) {
		$('body').append('<link rel="stylesheet" href="/service/common/css/vs_common_gold.css" type="text/css" /><link rel="stylesheet" href="/service/common/css/category_gold.css" type="text/css" />');
alert($('.vs_hotcontent').size());
	};
	if($('#hotContents2').size()) {
		$('body').append('<link rel="stylesheet" href="/service/common/css/vs_common_gold.css" type="text/css" /><link rel="stylesheet" href="/service/common/css/category_gold.css" type="text/css" />');
	};
}
