var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
var px = document.layers ? "" : "px";
function JSFX_FloatDiv(id, sx, sy)
{
    var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
    window[id + "_obj"] = el;
    if(d.layers)el.style=el;    
    el.cx = el.sx = sx;
    el.cy = el.sy = sy;
    el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
    el.flt=function()
    {
        var pX, pY;
        pX = (this.sx >= 0) ? 0 : ns ? innerWidth :
        document.documentElement && document.documentElement.clientWidth ?
        document.documentElement.clientWidth : document.body.clientWidth;
        pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ?
        document.documentElement.scrollTop : document.body.scrollTop;
        if(this.sy<0)
        pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ?
        document.documentElement.clientHeight : document.body.clientHeight;
        this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
        this.sP(this.cx, this.cy);
        setTimeout(this.id + "_obj.flt()", 20);
    }
    return el;
}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function closescroll()
{
	createCookie("show_scroll","no_show",7);
	document.getElementById("divTopLeft").style.display = "none";
}

if (readCookie("show_scroll") == null)
{
	var html = '<div id="divTopLeft" style="position: absolute;width:275px;height:183px;border:solid 0px #333;border-width:1px;display:none;"><div style="width:275px; height:183px;"><a href="http://forum.santabanta.com/register.htm" onclick="closescroll();"><img src="http://media.santabanta.com/test/forum_scroll.gif" border="0" /></a></div><div style="padding-right:15px;text-align:right;position:absolute;margin-top:-172px;width:270px;"><a href="javascript:void(0);" onClick="closescroll();"><img src="http://media.santabanta.com/test/decline.png" border="0"></a></div></div>';
	document.write(html);
	document.getElementById("divTopLeft").style.display = "inline";
	JSFX_FloatDiv("divTopLeft",10,150).flt();
}