

function CreateObjects() {
	obj = eval("document." + objC + "splash" + objStyle);
	objContent = eval("document." + objC + "splash");
}

function getElementWidth(obj) {
	if (isNN == "true") {
		return obj.clip.width;
	}else {
		return obj.clientWidth;
	}
}

function getElementHeight(obj) {
	if (isNN == "true") {
		return obj.clip.height;
	}else {
		return obj.clientHeight;
	}
}

function getWidth() {
	if (isNN == "true") {
		return window.innerWidth;
	}else {
		return document.body.clientWidth;
	}
}

function getHeight() {
	if (isNN == "true") {
		return window.innerHeight;
	}else {
		return document.body.clientHeight;
	}
}

function GetX(obj) {
	if (isNN == "true") {
		return obj.left;
	}else {
		return obj.pixelLeft;	
	}
}

function GetY(obj) {
	if (isNN == "true") {
		return obj.top;
	}else {
		return obj.pixelTop;	
	}
}



function shiftTo(obj,dx,dy) {
	if(isNN == "true") {
		obj.moveBy(dx,dy);
	}else{
		obj.pixelLeft += dx;
		obj.pixelTop += dy;
	}
}

function waitForIt() {
	window.setTimeout("replaceIT()", 4000);
}

function replaceIT(obj) {
	obj.visibility = "hidden";
//	window.location.replace("home.htm");
}

function setUp() {
	if (isOK == 1) {
		if (browserName == "Netscape"){
			isNN = "true";
			obj =  document.splash;
			objContent = document.splash;
		//	var objC = ""; 
		//	var objStyle = ""; 
		}else {
			isNN = "false";
			obj =  document.all.splash.style;
			objContent = document.all.splash;
		//	var objC = "all.";
		//	var objStyle = ".style";
		}
	}
}


function centerIT() {
	if (isOK == 1) {
		var x = Math.round((getWidth()/2) - (getElementWidth(objContent)/2));
		var y = 0 - (getElementHeight(objContent));
		obj.visibility = "visible";
		shiftTo(obj, x, y);
		Drop();
		window.setTimeout("replaceIT(obj)", 3000);
	}
}

function Drop() {
	var MoveID;
	shiftTo(obj,0,5);
	var p = GetY(obj);
	var q = Math.round((getHeight()/2) - (getElementHeight(objContent)/2));
	if (p >= q) {
		clearTimeout(MoveID);
	}else{
		MoveID = setTimeout("Drop()", 20);
	}
}