// JavaScript Document

jQuery.noConflict();  
var j$ = jQuery; 

j$(function(){
	j$("ul#brand_list li.bonds a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_bonds' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_bonds'; return false;'><img src='image/top/brand_bonds.jpg' alt='Bonds&quot;Peace' id='main_image'></a>");
		return false;
	});
});

j$(function(){
	j$("ul#brand_list li.buzz a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_buzz' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_buzz'; return false;'><img src='image/top/brand_buzz.jpg' alt='BUZZ SPUNKY' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.cluise a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_cluise' id='main_img_link'><img src='image/top/brand_cluise.jpg' alt='cluise' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.crest a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_crest' id='main_img_link'><img src='image/top/main_img.jpg' alt='CRESTRIDE' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.elcid a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_elcid' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_gennaro'; return false;'><img src='image/top/brand_elcid.jpg' alt='ElCid' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.gennaro a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_gennaro' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_gennaro'; return false;'><img src='image/top/brand_gennaro.jpg' alt='gonnaro' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.slangy a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_slangy' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_slangy'; return false;'><img src='image/top/bland_slangy.jpg' alt='SLANGY' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.buvrus a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_buvrus' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_buvrus'; return false;'><img src='image/top/brand_buvrus.jpg' alt='BUVRUS' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.buzz_lady a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_buzz_lady' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_buzz_lady'; return false;'><img src='image/top/brand_buzz_lady.jpg' alt='Buzz Spunky Ladys' id='main_image'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.rise a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_rise' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_rise'; return false;'><img src='image/top/brand_rise.jpg' alt='RISE RILY' id='main_image' width='656' height='322'></a>");
		return false;
	});
});
j$(function(){
	j$("ul#brand_list li.screws a").mouseover(function(){
		j$("#main_img_link").replaceWith("<a href='./brand/index.html#brand_screws' id='main_img_link' onclick='location.href='./brand/index.html?pScbrand_screws'; return false;'><img src='image/top/brand_screws.jpg' alt='SCEWSZ' id='main_image' width='656' height='322'></a>");
		return false;
	});
});
/*j$(function(){
	j$("ul#brand_list li.* a").mouseout(function(){
		j$("#main_image").replaceWith("<img src='image/top/main_img.jpg' alt='' id='main_image'>");
		return false;
	});
});*/


/* スムーススクロール */

$(function(){
   // #で始まるアンカーをクリックした場合に処理
   $('a[href^=#]').click(function() {
      // スクロールの速度
      var speed = 400;// ミリ秒
      // アンカーの値取得
      var href= $(this).attr("href");
      // 移動先を取得
      var target = $(href == "#" || href == "" ? 'html' : href);
      // 移動先を数値で取得
      var position = target.offset().top;
      // スムーススクロール
      $($.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'swing');
      return false;
   });
});

