$(function() {
      // Stylesheet Switch
      var small = "文字サイズ小";
      var middle = "文字サイズ中";
      var large = "文字サイズ大";
      $("#stylesheetSwitch")
      .tag("dl")
        .tag("dt")
          .tag("img")
            .attr({
                      "src": "/common/image/common/fontSize.png",
                      "alt": "文字サイズの変更"
                  })
          .gat()
        .gat()
        .tag("dd").addClass("small")
          .tag("a")
            .attr({
              "href": "?style=" +small,
              "rel": small,
              "title": small,
              "class": "styleswitch"
            })
            .text(small)
          .gat()
        .gat()
        .tag("dd").addClass("normal")
          .tag("a")
            .attr({
              "href": "?style=" +middle,
              "rel": middle,
              "title": middle,
              "class": "styleswitch"
            })
            .text(middle)
          .gat()
        .gat()
        .tag("dd").addClass("large")
          .tag("a")
            .attr({
              "href": "?style=" +large,
              "rel": large,
              "title": large,
              "class": "styleswitch"
            })
            .text(large)
          .gat()
        .gat()
      .gat()

      // Call stylesheet init so that all stylesheet changing functions 
      // will work.
      $.stylesheetInit();

      // This code loops through the stylesheets when you click the link with 
      // an ID of "toggler" below.
      $('#toggler').bind(
          'click',
          function(e) {
              $.stylesheetToggle();
              return false;
          }
      );

      // When one of the styleswitch links is clicked then switch the stylesheet to
      // the one matching the value of that links rel attribute.
      $('.styleswitch').bind(
          'click',
          function(e) {
              $.stylesheetSwitch(this.getAttribute('rel'));
              return false;
          }
      );



      // if URI is start [http] add target@_blank
      $("a[href^=http]:not(.popupwindow)").attr("target","_blank");


});
      document.write ('<script type="text/javascript" src="/common/js/jquery.popupwindow.js"><\/script>');