var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-120208-3");
pageTracker._trackPageview();
} catch(err) {}

if(document.addEventListener != undefined) {
  document.addEventListener("DOMContentLoaded", function() {
    var search = document.getElementById("serachtext");
    search.addEventListener("focus", function() {
      if(this.value == "search...") {
        this.value = "";
      }
    }, false);
    search.addEventListener("blur", function() {
      if(this.value == "" || this.value.match(/^\s+$/)) {
        this.value = "search...";
      }
    }, false);
  }, false);
}
else {
  window.attachEvent("onload", function() {
    var search = document.getElementById("serachtext");
    search.attachEvent("onfocus", function() {
      if(search.value == "search...") {
        search.value = "";
      }
    });
    search.attachEvent("onblur", function() {
      if(search.value == "" || search.value.match(/^\s+$/)) {
        search.value = "search...";
      }
    });
  });

// for IE6
if( window.clipboardData != undefined
  && navigator.userAgent.indexOf( "MSIE 6" ) != -1
  && document.getElementById( "side" )
   ) {
  
  function fix( ) {
    var side = document.getElementById( "side" );
    var scy = document.body.scrollTop;
    var clh = document.body.clientHeight;
    side.style.top = scy + clh - side.clientHeight * 1.6;
  }
  
  window.onload = function( ) {
    fix( );
    var timer = null;
    
    window.onscroll = function( ) {
      clearTimeout( timer );
      timer = setTimeout( fix, 0 );
    };
  }
  
  var script2 = document.createElement( "script" );
  script2.charset = "UTF-8";
  script2.type = "text/javascript";
  script2.src = "js/minmax.js";
  document.getElementsByTagName("head")[0].appendChild( script2 );
  }
}

