var T1=T2='';

if (typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat') {
//+document.documentElement.clientHeight-this.clientHeight
    tleft_doctp="_top:expression(document.documentElement.scrollTop+this.clientHeight-60);_left:expression(document.documentElement.scrollLeft);}";
//+document.documentElement.clientHeight-this.clientHeight
    tleft_doctp2="_top:expression(document.documentElement.scrollTop+this.clientHeight-200);}";
} else {
//document.body.scrollTop+document.body.clientHeight-this.clientHeight
    tleft_doctp="_top:expression(document.body.scrollTop+this.clientHeight-60);_left:expression(document.body.scrollLeft);}";
//+document.body.clientHeight-this.clientHeight
    tleft_doctp2="_top:expression(document.body.scrollTop+this.clientHeight-200);}";
}

var tleft_fixedcss='#tleftfixed_div{position:fixed;_position:absolute;top:0px;left:0px;z-index: 1000;'+tleft_doctp;
var tleft_popcss='#tleftpopup_div {background-color: transparent;position:fixed;_position:absolute;left: 120px;top: 50px;overflow: hidden;visibility: hidden;z-index: 100;'+tleft_doctp2;

document.write('<style type="text/css">'+tleft_fixedcss+tleft_popcss+'</style>');

function tleftpop_hide()
{
    var cred_id='tleftpopup_div';
    if (document.getElementById) {
        document.getElementById(cred_id).style.visibility='hidden';
    } else if (document.layers) {
        document.layers[cred_id].visibility='hidden';
    } else if (document.all) {
       eval("document.all.'+cred_id+'.style.v=\"hidden\"");
    }
}

function tleftpop_show()
{
    var cred_id='tleftpopup_div';
    if (document.getElementById) {
        document.getElementById(cred_id).style.visibility='visible';
    } else if (document.layers) {
        document.layers[cred_id].visibility='show';
    } else if (document.all) {
       eval("document.all.'+cred_id+'.style.v=\"visible\"");
    }
}

function show_topleft(type,id)
{
	if(type==1)
	{ 
		var image1='http://investdad.com/img/125.gif';
		var image2='';
		var url='http://investdad.com/?advertise#sticky';
	}
	
	
    document.write('<div id="tleftpopup_div">');
    document.write('<img src="' + image2 + '" border=0 alt="">');
    document.write('</div>');
    document.write('<div id="tleftfixed_div">');
    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="T1=setTimeout(\'tleftpop_show()\',100);clearTimeout(T2)" ')
    document.write('onMouseOut="T2=setTimeout(\'tleftpop_hide()\',100);clearTimeout(T1)"></a>');
    document.write('</div>');
}