var TopR2='';

if (typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') {
    tright_doctp="_top:expression(document.body.scrollTop+this.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
} else {
    tright_doctp="_top:expression(document.body.scrollTop+this.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";}if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){tright_doctp2="_top:expression(document.body.scrollTop+95+this.clientHeight-this.clientHeight);}";}else{tright_doctp2="_top:expression(document.body.scrollTop+95+this.clientHeight-this.clientHeight);}";
}
    
var cot_bgf0=(window.location.protocol.toLowerCase()=="https:") ? "pix.gif": "pix.gif";

var tright_bodycss='* html {background:url('+cot_bgf0+') fixed;background-repeat: repeat;background-position: right top;}';
var tright_fixedcss='#trightfixed_div{position:fixed;';
var tright_fixedcss=tright_fixedcss+'_position:absolute;';
var tright_fixedcss=tright_fixedcss+'top:0px;';
var tright_fixedcss=tright_fixedcss+'right:0px;';
var tright_fixedcss=tright_fixedcss+tright_doctp;
var tright_popcss='#trightpop_div {background-color: transparent;';
var tright_popcss=tright_popcss+'position:fixed;';
var tright_popcss=tright_popcss+'_position:absolute;';
var tright_popcss=tright_popcss+'right: 50px;';
var tright_popcss=tright_popcss+'top: 85px;';
var tright_popcss=tright_popcss+'overflow: hidden;';
var tright_popcss=tright_popcss+'visibility: hidden;';
var tright_popcss=tright_popcss+'z-index: 100;';
var tright_popcss=tright_popcss+tright_doctp2;

document.write('<style type="text/css">'+tright_bodycss+tright_fixedcss+tright_popcss+'</style>');

function trightpop_hide()
{
    var cred_id='trightpop_div';
    var NNtype='hidden';
    var IEtype='hidden';
    var WC3type='hidden';
    if (document.getElementById) {
        eval("document.getElementById(cred_id).style.visibility=\""+WC3type+"\"");
    } else {
        if (document.layers) {
            document.layers[cred_id].visibility=NNtype;}else{if(document.all) {
                eval("document.all."+cred_id+".style.visibility=\""+IEtype+"\"");
            }
        }
    }
}

function trightpop_show()
{
    cred_id='trightpop_div';
    var NNtype='show';
    var IEtype='visible';
    var WC3type='visible';
    if (document.getElementById) {
        eval("document.getElementById(cred_id).style.visibility=\""+WC3type+"\"");
    } else {
        if (document.layers) {
            document.layers[cred_id].visibility=NNtype;
        } else {
            if (document.all) {
                eval("document.all."+cred_id+".style.visibility=\""+IEtype+"\"");
            }
        }
    }
}

function topright(id)
{
 
		var image1='http://russpy.ru/images/ugol4.gif';
		var image2='http://russpy.ru/?a=image&lid='+id;
		var url='http://russpy.ru/?a=details&lid='+id;
	
    document.write('<div id="trightpop_div">');
    document.write('<img src="' + image2 + '" border=0 alt="RusSpy.ru">');
    document.write('</div>');
    document.write('<div id="trightfixed_div">');

    
    var data, p;
    var agt=navigator.userAgent.toLowerCase();
    p='http';
    if((location.href.substr(0,6)=='https:')||(location.href.substr(0,6)=='HTTPS:')) {p='https';} data = '&r=' + escape(document.referrer) + '&n=' + escape(navigator.userAgent) + '&p=' + escape(navigator.userAgent)
    if(navigator.userAgent.substring(0,1)>'3') {data = data + '&sd=' + screen.colorDepth + '&sw=' + escape(screen.width+ 'x'+screen.height)};
    
    document.write('<a onfocus="this.blur()" href="' +url+ '"><img object.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sProperties)" border=0 hspace=0 '+'vspace=0 src="' +image1+ '" ');
    document.write('onMouseOver="TopR=setTimeout(\'trightpop_show()\',100);clearTimeout(TopR2)" ')
    document.write('onMouseOut="TopR2=setTimeout(\'trightpop_hide()\',100);clearTimeout(TopR)"></a>');
    document.write('</div>');
}
