// JavaScript Document

function addToStart(f)
{
if (!window.StartList) window.StartList=new Array();
window.StartList.push(f);
}

function runStartList()
{
var ls=window.StartList;
if (ls)
	{
	for(i=0;i<ls.length;i++)
		{
		//alert(fnc);
		fnc=ls[i];
		if (typeof(fnc)=='function')	fnc();
		else							eval(fnc);
		}
	}
}

window.onload=runStartList;

function dropDiv(obj)
{
var h,p;
if(obj)
	{
	if (document.body)	h=document.body.clientHeight;
	else				h=window.innerHeight;
	p=h-obj.offsetHeight-80;
	if (p>700)
		{
		obj.style.position='absolute';
		obj.style.display='block';
		obj.style.top=p+'px';
		}
	}
}
