// コンフリクト回避設定
jQuery(function($) {

//pngfix
$(document).ready(function(){ 
     $(document).pngFix(); 
});


/* roll over ********************************************************* */
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);
/* /roll over ******************************************************** */

$(document).ready(function(){

/* test ********************************************************* */
 $("#dummy").html('<img src="images/top/hd-menu001.png" alt="トップ" width="100" height="57" />').pngFix();
 
			$("#btn").hover(function () {
					 $("#dummy").html('<img src="images/top/hd-menu001_on.png" alt="トップ" width="100" height="57" />').pngFix();

				},function () {
					 $("#dummy").html('<img src="images/top/hd-menu001.png" alt="トップ" width="100" height="57" />').pngFix(); 
			});
			
 $("#dummy2").html('<img src="images/top/hd-menu002.png" alt="最新情報" width="104" height="63" />').pngFix();
 
			$("#btn2").hover(function () {
					 $("#dummy2").html('<img src="images/top/hd-menu002_on.png" alt="最新情報" width="104" height="63" />').pngFix();

				},function () {
					 $("#dummy2").html('<img src="images/top/hd-menu002.png" alt="最新情報" width="104" height="63" />').pngFix(); 
			});
			
 $("#dummy3").html('<img src="images/top/hd-menu003.png" alt="GPレース" width="104" height="69" />').pngFix();
 
			$("#btn3").hover(function () {
					 $("#dummy3").html('<img src="images/top/hd-menu003_on.png" alt="GPレース" width="104" height="69" />').pngFix();

				},function () {
					 $("#dummy3").html('<img src="images/top/hd-menu003.png" alt="GPレース" width="104" height="69" />').pngFix(); 
			});

 $("#dummy4").html('<img src="images/top/hd-menu004.png" alt="フォトギャラリー" width="109" height="69" />').pngFix();
 
			$("#btn4").hover(function () {
					 $("#dummy4").html('<img src="images/top/hd-menu004_on.png" alt="フォトギャラリー" width="109" height="69" />').pngFix();

				},function () {
					 $("#dummy4").html('<img src="images/top/hd-menu004.png" alt="フォトギャラリー" width="109" height="69" />').pngFix(); 
			});
			
 $("#dummy5").html('<img src="images/top/hd-menu005.png" alt="プロフィール" width="104" height="69" />').pngFix();
 
			$("#btn5").hover(function () {
					 $("#dummy5").html('<img src="images/top/hd-menu005_on.png" alt="プロフィール" width="104" height="69" />').pngFix();

				},function () {
					 $("#dummy5").html('<img src="images/top/hd-menu005.png" alt="プロフィール" width="104" height="69" />').pngFix(); 
			});
			
 $("#dummy6").html('<img src="images/top/hd-menu006.png" alt="ブログ" width="99" height="69" />').pngFix();
 
			$("#btn6").hover(function () {
					 $("#dummy6").html('<img src="images/top/hd-menu006_on.png" alt="ブログ" width="99" height="69" />').pngFix();

				},function () {
					 $("#dummy6").html('<img src="images/top/hd-menu006.png" alt="ブログ" width="99" height="69" />').pngFix(); 
			});
			
 $("#dummy7").html('<img src="images/top/hd-menu007.png" alt="お問い合わせ" width="109" height="69" />').pngFix();
 
			$("#btn7").hover(function () {
					 $("#dummy7").html('<img src="images/top/hd-menu007_on.png" alt="お問い合わせ" width="109" height="69" />').pngFix();

				},function () {
					 $("#dummy7").html('<img src="images/top/hd-menu007.png" alt="お問い合わせ" />').pngFix(); 
			});
/* /test ******************************************************** */
	
});





// コンフリクト回避設定を閉じる。
});





