	// general-purpose popup
	function popup(URL, winwidth, winheight, scroll) {
		day = new Date();
		id = day.getTime();
		pleft=(screen.width-winwidth)/2;
		ptop=(screen.height-winheight)/2;
		eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars="+scroll+",location=0,statusbar=0,menubar=0,resizable=1,width="+winwidth+",height="+winheight+",left="+pleft+",top="+ptop+"');");
		}

	//  - trimming a string
	function trim(s)   {
		l=s.length; b=0; x=0;
		while (x<l&&b==0) { if (s.charAt(x)!=" ")  { b=1; } x++; }
		if (b==0) s="";  
		else { 
			b=0; s=s.substr(x-1); x=s.length-1;
			while(x>=0&&b==0) { if (s.charAt(x)!=" ")  { b=1; } x--; } 
			s=s.substr(0,x+2);
			}
		return s;
		}
		
	// - newsletter signup functions
	function closeSignup(){
		if (document.getElementById('newsletterdiv')) document.getElementById('newsletterdiv').style.display = 'none';		
	}
	
	function openSignup(){
		if (document.getElementById('newsletterdiv')) document.getElementById('newsletterdiv').style.display = 'block';		
	}

function FloatBottom()
{
	var startX = 0, startY = 20;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		el.x = startX; 
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		return el;
	}
	window.stayBottomLeft=function()
	{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		fblObj.y += (pY - startY - fblObj.y)/8;
		fblObj.sP(fblObj.x, fblObj.y);
		setTimeout("stayBottomLeft()", 4);
	}
	fblObj = ml("footer");
	stayBottomLeft();
}







