var file='/itemacms/admin/statistik/count.asp';
var f='' + escape(document.referrer);
var u='' + escape(document.URL);
var w=screen.width;
var h=screen.height;
var v=navigator.appName;
if (v != 'Netscape')
{
    c=screen.colorDepth;
}
else
{
    c=screen.pixelDepth;
}
var fs = window.screen.fontSmoothingEnabled;
var j=navigator.javaEnabled();
var info=file+"?w=" + w + "&h=" + h + "&c=" + c + "&r=" + f + "&u=" + u + "&fs=" + fs + "&j=" + j + "&a=";

function UnCryptMailto( s )
{
    var n = 0;
    var r = "";
    for( var i = 0; i < s.length; i++)
    {
        n = s.charCodeAt( i );
        if( n >= 8364 )
        {
            n = 128;
        }
        r += String.fromCharCode( n - 1 );
    }
    return r;
}

function linkTo_UnCryptMailto( s )
{
    location.href=UnCryptMailto( s );
}

//window.onload = frame_check();
function frame_check()
{
    if (self.name != "myframe")
    {
        tmp = window.location.href.split(".at/");
        window.location.href = "http://www.domain.at/index.php?ref="+tmp[1];
    }
}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18261053-14']);
  _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);
  })();
