function jeLocal() {
  return document.cookie.search('local=')>=0  
}

if (!jeLocal()) {
  document.write('<a href="http://www.toplist.cz/"><img src="http://toplist.cz/count.asp?id=201017&amp;logo=blank" alt="online utility - toplist" /></a>')
  //ga **
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-152823-17']);
  _gaq.push(['_setDomainName', '.wutils.com']);
  _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);
    
  })();
  //ga ** end
} else {
  document.write('L');
}

//**** fixdiv roller. 2006 Antonin Foller www.motobit.com
var lastscroll = new Date();
fixdiv_init();

function fixdiv_init() {
  var ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
  if (ie)  {
    var fixdiv = document.getElementById('fixdiv')
    fixdiv.style.position = 'absolute'
    
    window.onscroll = fixdiv_scroll;
    window.onresize = fixdiv_scroll;
  
    fixdiv.style.visibility = 'hidden'
    fixdiv_show();
  } 
};


function fixdiv_show() {
  var now = new Date();
  if (now.getTime() - lastscroll.getTime() < 500 ) {
  
    window.setTimeout('fixdiv_show()', 500);
  } else {
    if (fixdiv.style.visibility != 'visible') {
      fixdiv.style.filter = 'revealTrans(duration=0.5),alpha(opacity=75)'
      fixdiv.filters[0].Apply();
      fixdiv.style.visibility = 'visible'
      fixdiv.filters[0].transition=12; 
      fixdiv.filters[0].Play();
    };
  }
}

function fixdiv_scroll() {
  if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    scrOfY = document.body.scrollTop;
    clientHeight = document.body.clientHeight; 
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    scrOfY = document.documentElement.scrollTop;
    clientHeight = document.documentElement.clientHeight;
  }

  
  fixdiv.style.top = scrOfY + clientHeight - fixdiv.offsetHeight - 0;
    
  fixdiv.style.visibility = 'hidden'
  lastscroll = new Date();
  window.setTimeout('fixdiv_show()', 500);
}


