$(document).ready(function(){


  $("img[src*='_on']").addClass("current");
  $("img,input").mouseover(function(){
    if ($(this).attr("src")){
      $(this).attr("src",$(this).attr("src").replace("_off.", "_on."));
    }
  });
  $("img[class!='current'],input").mouseout(function(){
    if ($(this).attr("src")){
      $(this).attr("src",$(this).attr("src").replace("_on.", "_off."));
    }
  });


  /*
   * ページスクローラー
   * & jquery.page-scroller-306.js
   */
  adjPosition = -30; 


    /*
     * ラウンドコーナー
     * IEは除外
     */
    if(!$.browser.msie) {
      $('.support').corner("5px");
    }

  /*
   * Qtip
   * & jquery.qtip-1.0.0-rc3.min.js
   */
  
  $('.tooltip').qtip({
    position: {
    corner: {
    target: 'topRight',
    tooltip: 'bottomLeft'
    }
    },
    style: {
    name: 'dark',
    padding: '4px 10px',
    width: {
      max: 500,
      min: 0
    },
    title: {
      'font-size': 5
    },
    border: {
    width:2,
    radius: 0
    },
    tip: true
    }
  })
  
  /**
   *  ライトボックス
   *  & jquery.lightbox-0.5.min.js
   */
  $('.lightbox').lightBox();
  
});

var rlink = new Array();
rlink[0] = "company.html#aboutus";
rlink[1] = "company2.html#aboutus";
var x = Math.floor(Math.random() * rlink.length);
function RandomLink(){
  window.location.href = rlink[x];
}
var rlink2 = new Array();
rlink2[0] = "company.html";
rlink2[1] = "company2.html";
var x = Math.floor(Math.random() * rlink2.length);
function RandomLink2(){
  window.location.href = rlink2[x];
}

