// Google analytics

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-23167365-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

// Google analytics

  window.iPhone = /iPhone|iPod/.test(navigator.userAgent);
  window.iPad = /iPad/.test(navigator.userAgent);

  var css = document.createElement("link");
  css.rel="stylesheet";
  css.type="text/css";
  if(iPad){
    css.href="/css/ipad.css";
  } else if(iPhone){
    css.href="/css/iphone.css";
  } else {
    css.href="/css/pc.css";
  }
  document.getElementsByTagName('head')[0].appendChild(css);

