/* +++photo*WAVE++++++++++++++++++++++++++++++++++++++++++++++
+
+ Since:2007-12-28
+ Update:2007-0X-XX
+
+ http://www.photowave.co.jp
+ EditiorID:MGN
+ EditiorID:
+
+ + use library:jquery.js,jquery-jqir.js
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* Category:Image +++++++++++++++++++++++++++++++++++++++++ */

/*SEO対策：画像置換*/
//$(".クラス名").jQIR("画像の拡張子", "ファイルパス");

//top page:トップページ +++++++++++++++++++++++++++ */
$(function(){
$("#top .gcom").jQIR("gif", "images/common/");
$("#top .gtop").jQIR("gif", "images/top/");
$("#top .glow").jQIR("gif", "images/lower/");
$("#top .swf").jQIR("swf", "images/swf/");

$("#top .jcom").jQIR("jpg", "images/common/");
$("#top .jtop").jQIR("jpg", "images/top/");
$("#top .jlow").jQIR("jpg", "images/lower/");
});

//news page:ニュースページ +++++++++++++++++++++++++++ */
$(function(){
$("#news .gcom").jQIR("gif", "images/common/");
$("#news .glow").jQIR("gif", "images/lower/");
$("#news .gnew").jQIR("gif", "images/news/");

$("#news .jcom").jQIR("jpg", "images/common/");
$("#news .jlow").jQIR("jpg", "images/lower/");
$("#news .jnew").jQIR("jpg", "images/news/");
});

//policy page:ポリシーページ +++++++++++++++++++++++++ */
$(function(){
$("#policy .gcom").jQIR("gif", "images/common/");
$("#policy .glow").jQIR("gif", "images/lower/");
$("#policy .gpcy").jQIR("gif", "images/policy/");

$("#policy .jcom").jQIR("jpg", "images/common/");
$("#policy .jlow").jQIR("jpg", "images/lower/");
$("#policy .jpcy").jQIR("jpg", "images/policy/");
});

//inquiry：お問い合わせ ++++++++++++++++++++++++++++ */
$(function(){
$("#inquiry .gcom").jQIR("gif", "../images/common/");
$("#inquiry .glow").jQIR("gif", "../images/lower/");
$("#inquiry .ginq").jQIR("gif", "../images/inquiry/");

$("#inquiry .jcom").jQIR("jpg", "../images/common/");
$("#inquiry .jlow").jQIR("jpg", "../images/lower/");
$("#inquiry .jinq").jQIR("jpg", "../images/inqiry/");
});

//about：会社情報 +++++++++++++++++++++++++++++++++ */
$(function(){
$("#about .gcom").jQIR("gif", "../images/common/");
$("#about .glow").jQIR("gif", "../images/lower/");
$("#about .gabt").jQIR("gif", "../images/about/");

$("#about .jcom").jQIR("jpg", "../images/common/");
$("#about .jlow").jQIR("jpg", "../images/lower/");
$("#about .jabt").jQIR("jpg", "../images/about/");
});

//Service：サービス +++++++++++++++++++++++++++++++ */
$(function(){
$("#service .gcom").jQIR("gif", "../images/common/");
$("#service .glow").jQIR("gif", "../images/lower/");
$("#service .gsvc").jQIR("gif", "../images/service/");

$("#service .jcom").jQIR("jpg", "../images/common/");
$("#service .jlow").jQIR("jpg", "../images/lower/");
$("#service .jsvc").jQIR("jpg", "../images/service/");
});

//Recruit：採用情報 +++++++++++++++++++++++++++++++ */
$(function(){
$("#recruit .gcom").jQIR("gif", "../images/common/");
$("#recruit .glow").jQIR("gif", "../images/lower/");
$("#recruit .grct").jQIR("gif", "../images/recruit/");

$("#recruit .jcom").jQIR("jpg", "../images/common/");
$("#recruit .jlow").jQIR("jpg", "../images/lower/");
$("#recruit .jrct").jQIR("jpg", "../images/recruit/");
});


//works： +++++++++++++++++++++++++++++++ */
$(function(){
$("#works .gcom").jQIR("gif", "../images/common/");
$("#works .glow").jQIR("gif", "../images/lower/");
$("#works .grct").jQIR("gif", "../images/recruit/");

$("#works .jcom").jQIR("jpg", "../images/common/");
$("#works .jlow").jQIR("jpg", "../images/lower/");
$("#works .jrct").jQIR("jpg", "../images/recruit/");
});



/* Category:MouseOver +++++++++++++++++++++++++++++++++++++ */

/*JQuery:ロールオーバー*/
//mouseoverさせる画像【class="imgOn"】を指定して
//マウスオーバー後のイメージに【ロールオーバー前と同じファイル名_on.拡張子】指定させる

function initRollOverImages() {
  var image_cache = new Object();
  $("img.imgOn").each(function(i) {
    var imgsrc = this.src;
    var dot = this.src.lastIndexOf('.');
    var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
    image_cache[this.src] = new Image();
    image_cache[this.src].src = imgsrc_on;
    $(this).hover(
      function() { this.src = imgsrc_on; },
      function() { this.src = imgsrc; });
  });
}

$(document).ready(initRollOverImages);

/*JQuery:グローバルメニュー*/
//グローバルメニューのマウスオーバーにフェード効果をつける

$(document).ready(function(){
/*//HOME
$("#mnHome a").hover(function(){
	//mouseon
	$("#mnHome a").show();
}, function(){
	//mouseout
	$("#mnHome a").fadeIn("slow");
});
//NEWS
$("#mnNews a").hover(function(){
	//mouseon
	$("#mnNews a").show();
}, function(){
	//mouseout
	$("#mnNews a").fadeIn("slow");
});
//SERVICE
$("#mnService a").hover(function(){
	//mouseon
	$("#mnService a").show();
}, function(){
	//mouseout
	$("#mnService a").fadeIn("slow");
});
$("#mnRecruit a").hover(function(){
	//mouseon
	$("#mnRecruit a").show();
}, function(){
	//mouseout
	$("#mnRecruit a").fadeIn("slow");
});
$("#mnAbout a").hover(function(){
	//mouseon
	$("#mnAbout a").show();
}, function(){
	//mouseout
	$("#mnAbout a").fadeIn("slow");
});
*/

//HOME
$(function(){
$("#mnHome a").load(function(){
	$(this).fadeTo(500, 1.0);
});
$("#mnHome a").hover(
function(){
	$(this).fadeTo(500,1.0);
},
function(){
	$(this).fadeTo(250, 0.3);
  $(this).fadeTo(500, 1.0);
}
);
});
//News
$(function(){
$("#mnNews a").load(function(){
	$(this).fadeTo(500,1.0);
});
$("#mnNews a").hover(
function(){
	$(this).fadeTo(500,1.0);
},
function(){
	$(this).fadeTo(250, 0.3);
  $(this).fadeTo(500, 1.0);
}
);
});

//Service
$(function(){
$("#mnService a").load(function(){
	$(this).fadeTo(500,1.0);
});
$("#mnService a").hover(
function(){
	$(this).fadeTo(500,1.0);
},
function(){
	$(this).fadeTo(250, 0.3);
  $(this).fadeTo(500, 1.0);
}
);
});

//Recruit
$(function(){
$("#mnRecruit a").load(function(){
	$(this).fadeTo(500,1.0);
});
$("#mnRecruit a").hover(
function(){
	$(this).fadeTo(500,1.0);
},
function(){
	$(this).fadeTo(250, 0.3);
  $(this).fadeTo(500, 1.0);
}
);
});

//About
$(function(){
$("#mnAbout a").load(function(){
	$(this).fadeTo(500,1.0);
});
$("#mnAbout a").hover(
function(){
	$(this).fadeTo(500,1.0);
},
function(){
	$(this).fadeTo(250, 0.3);
	$(this).fadeTo(500, 1.0);
}
);
});

});


/*自動TargetBlank指定*/
/*トップページRSSフィード部分*/
$(document).ready( function () {
    $('#blogLineup a').click(function(){
        window.open(this.href, '_blank');
        return false;
    });
});



/* Category:Scroll ++++++++++++++++++++++++++++++++++++++++ */

// jquery scroll
$(document).ready(function(){
//backTop:トップページへ戻る
$(function(){
$('.backTop a').click(function(){
$("#ct").fadeIn(1000);
});
});
$(function(){
$('.backTop a').click(function(){
$('#hd').ScrollTo(100, 'easeout');
return false;
});
});
});


/* Category:Service & About +++++++++++++++++++++++++++++++++++ */
//サービスページと会社情報ページのコンテンツにフェード効果をつける
$(document).ready(function(){
    $("#ctBoxR").fadeIn("slow");
$("a").click(function(){
    // 対象オブジェクトに入った
    $("#ctBoxR").fadeOut("slow");
    $("#ctBoxR").fadeIn("slow");
});

});


