$(function(){
  $('ul.roundBox li').remove();
  shop = new Array(
  '<p class="title">リペアショップPINE</p><p class="subTitle02">リペアショップ</p><a href="http://www.pine-repairshop.com/"><img src="images/link_pine.jpg" width="190" height="100" alt="リペアショップPINE" /></a>',
  '<p class="title">MAEKAWA GUITAR CRAFT</p><p class="subTitle02">工房・リペアショップ</p><a href="http://www.ne.jp/asahi/front/river/"><img src="images/link_maekawa.jpg" width="190" height="100" alt="MAEKAWA GUITAR CRAFT" /></a>',
  '<p class="title">Style-S-Guitar</p><p class="subTitle02">工房・リペアショップ</p><a href="http://style-s-guitar.com/"><img src="images/link_styleS.jpg" width="190" height="100" alt="Style-S-Guitar" /></a>',
  '<p class="title">OGAWA INLAY CRAFT</p><p class="subTitle02">インレイ工房</p><a href="http://www.geocities.jp/ogawa_inlay_craft/"><img src="images/link_ogawa.jpg" width="190" height="100" alt="OGAWA INLAY CRAFT" /></a>',
  '<p class="title">Keystone-si（要石弦楽器工房）</p><p class="subTitle02">アコースティックギター工房</p><a href="http://keystone-si.com/"><img src="images/link_keystone.jpg" width="190" height="100" alt="Keystone Stringed Instruments（要石弦楽器工房）" /></a>',
  '<p class="title">ESP ギタークラフトアカデミー</p><p class="subTitle02">ギター製作学校</p><a href="http://www.esp-gca.com/"><img src="images/link_gca.jpg" width="190" height="100" alt="ESP ギタークラフトアカデミー" /></a>');
  
  for (i=0; i<shop.length; i++){
  n1 = Math.floor(Math.random() * shop.length);
  n2 = Math.floor(Math.random() * shop.length);
  n = shop[n1];
  shop[n1] = shop[n2];
  shop[n2] = n;
  }
  
  band = new Array(
  '<p class="title">セクシーパンサー</p><p class="subTitle02">Label : Sexybeat Records</p><a href="http://sexy-panther.sakura.ne.jp/"><img src="images/link_sekupan.jpg" width="190" height="100" alt="セクシーパンサー" /></a>',
  '<p class="title">NAP</p><p class="subTitle02">Label : None</p><a href="http://nap.voxx.jp/"><img src="images/link_nap.jpg" width="190" height="100" alt="NAP" /></a>',
  '<p class="title">野狐禅</p><p class="subTitle02">Label : None</p><a href="http://www.yakozen.net/"><img src="images/link_yakozen.jpg" width="190" height="100" alt="野狐禅" /></a>',
  '<p class="title">FC FIVE</p><p class="subTitle02">Label : Neuse Records</p><a href="http://www1.odn.ne.jp/~fcfive/"><img src="images/link_fc5.jpg" width="190" height="100" alt="FC FIVE" /></a>',
  '<p class="title">乙三．（OSSAN）</p><p class="subTitle02">Label : Avex</p><a href="http://www.avexnet.or.jp/ossan/"><img src="images/link_ossan.jpg" width="190" height="100" alt="乙三．" /></a>',
  '<p class="title">ブルーコイサンズ</p><p class="subTitle02">Label : None</p><a href="http://www.coisans.com/"><img src="images/link_coisans.jpg" width="190" height="100" alt="ブルーコイサンズ" /></a>',
  '<p class="title">Function5</p><p class="subTitle02">Label : None</p><a href="http://www.function5.jp/"><img src="images/link_f5.jpg" width="190" height="100" alt="Function5" /></a>');
  
  for (i=0; i<band.length; i++){
  n1 = Math.floor(Math.random() * band.length);
  n2 = Math.floor(Math.random() * band.length);
  n = band[n1];
  band[n1] = band[n2];
  band[n2] = n;
  }
  $.each(shop, function(key, value){
  $('ul.roundBox:eq(0)').append('<li>'+value+'</li>');
  })
  $.each(band, function(key, value){
  $('ul.roundBox:eq(1)').append('<li>'+value+'</li>');
  })
  $('ul.roundBox li').hover(function(){
  $(this).animate({
  color:'#ffffff',
  backgroundColor:'#303030'},200);
  },function(){
  $(this).animate({
  color:'#b0b0b0',
  backgroundColor:'#1E1E1E'},400);
  });
  $('ul.roundBox li').corner('6px');
  $('ul.roundBox li:nth-child(3n)').css({marginRight:'0'});
  $('ul.roundBox li:nth-child(3n)').next().css({clear:'both'});
  $('a[@href^="http"]').not('[@href^="http://www.kenstylesounds.com/"]').attr({ target: "_blank" });
});