
$(document).ready(function(){
$(".fadeImg img").hover(function(){
        $(this).addClass("ov_opt");
    },
    function(){
        $(this).removeClass("ov_opt");
    });
});


$(document).ready(function(){
	$("#detailMoorPlan .planBox:last").addClass("noBdr");
});



/*外部リンクをブランク表示*/
$(function() {   
  $(".blank").attr("target","_blank");  
});


/*ブックマーク*/
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;
    }
}







/*---------------------------------

フロートマージン制御

---------------------------------*/
$(document).ready(function() {
	
	/*忘年会*/
	$("#bounenkai .itemBlock:even").css("margin-right", "10px");
	
	/*-----*/
	$("div.kankou div.randomdisplay div:even").css("margin-right", "10px");
});


/*---------------------------------

カーソール表示

---------------------------------*/
$(function() {
	$(".printBtn img").mouseover(function () {
		$(this).css({"cursor":"pointer"});	
	});
	$(".search").mouseover(function () {
		$(this).css({"cursor":"pointer"});	
	});
});



/*---------------------------------

フォーム要素

---------------------------------*/
$(function() {
	$("input[type='text'],textarea").addClass("txt_base_style");
	
	/*フォーカス*/
	$("input[type='text'],textarea")
		.focus(function() {
			$(this).addClass("focus_style");
		})
		.blur(function() {
			$(this).removeClass("focus_style");
		});	
});





/*---------------------------------

半角英数字

---------------------------------*/
function chkCode(id) {
  work='';
  for (lp=0;lp<id.value.length;lp++) {
    unicode=id.value.charCodeAt(lp);
    if ((0xff0f<unicode) && (unicode<0xff1a)) {
      work+=String.fromCharCode(unicode-0xfee0);
    } else if ((0xff20<unicode) && (unicode<0xff3b)) {
      work+=String.fromCharCode(unicode-0xfee0);
    } else if ((0xff40<unicode) && (unicode<0xff5b)) {
      work+=String.fromCharCode(unicode-0xfee0);
    } else {
      work+=String.fromCharCode(unicode);
    }
  }
  id.value=work; /* 半角処理のみ */
  //id.value=work.toUpperCase(); /* 大文字に統一する場合に使用 */
  //id.value=work.toLowerCase(); /* 小文字に統一する場合に使用 */
}


/*---------------------------------

インプットマウスオーバー

---------------------------------*/
$(function(){
	$(".wpcf7-submit").hover(
	function () {
		$(this).addClass("on");
	}, 
	function () {
		$(this).removeClass("on");
	});
});
$(function() { 
	$(".wpcf7-submit").mouseover(function () {
		$(this).css({"cursor":"pointer"});	
	});
});





/*---------------------------------

グーグルマップ

---------------------------------*/


