/*
RIGHT-BOTTOM
*/

var Ovr2='';

if (typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') {
    bright_doctp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
} else {
    bright_doctp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";}if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){bright_doctp2="_top:expression(document.documentElement.scrollTop-20+document.documentElement.clientHeight-this.clientHeight);}";}else{bright_doctp2="_top:expression(document.body.scrollTop-20+document.body.clientHeight-this.clientHeight);}";
}

var cot_bgf0=(window.location.protocol.toLowerCase()=="https:") ? "pix.gif": "pix.gif";

var bright_bodycss='* html {background:url('+cot_bgf0+') fixed;background-repeat: repeat;background-position: right bottom;}';
var bright_fixedcss='#brightfixed_div{position:fixed;';
var bright_fixedcss=bright_fixedcss+'_position:absolute;';
var bright_fixedcss=bright_fixedcss+'bottom:0px;';
var bright_fixedcss=bright_fixedcss+'right:0px;';
var bright_fixedcss=bright_fixedcss+bright_doctp;
var bright_popcss='#brightpop_div {background-color: transparent;';
var bright_popcss=bright_popcss+'position:fixed;';
var bright_popcss=bright_popcss+'_position:absolute;';
var bright_popcss=bright_popcss+'right: 160px;';
var bright_popcss=bright_popcss+'bottom: 30px;';
var bright_popcss=bright_popcss+'overflow: hidden;';
var bright_popcss=bright_popcss+'visibility: hidden;';
var bright_popcss=bright_popcss+'z-index: 100;';
var bright_popcss=bright_popcss+bright_doctp2;

document.write('<style type="text/css">'+bright_bodycss+bright_fixedcss+bright_popcss+'</style>');

function brightpop_hide()
{
    var cred_id='brightpop_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 brightpop_show()
{
    cred_id='brightpop_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 program_id_br(id)
{

		var image1='http://www.european-monitor.com/floating.php?a=image&lid='+id;
		var image2='http://www.european-monitor.com/index.php?a=image&lid='+id;
		var url='http://www.european-monitor.com/details-'+id+'.html#vote';

    document.write('<div id="brightpop_div">');
    document.write('<img src="' + image2 + '" border=0">');
    document.write('</div>');
    document.write('<div id="brightfixed_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+ '" target="_blank"><img object.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sProperties)" border=0 hspace=0 '+'vspace=0 src="' +image1+ '" ');
    document.write('onMouseOver="Ovr=setTimeout(\'brightpop_show()\',100);clearTimeout(Ovr2)" ')
    document.write('onMouseOut="Ovr2=setTimeout(\'brightpop_hide()\',100);clearTimeout(Ovr)"></a>');
    document.write('</div>');
}
