var action;
var x, y;
var Banner;

document.write('<div id="Banner"><layer id="nsBanner"><font face="Tahoma, Arial, Helvetica, sans-serif" color="#ffffff">Welcome To</font></layer></div>');

function StartGlide() {
	Banner = document.getElementById("Banner");
	if (ie4 || ns6){
		Banner.style.top = document.body.offsetHeight / 4;
		Banner.style.left = document.body.offsetWidth / 4;
		Banner.style.visibility = "visible";
		action = window.setInterval("Glide()",100);
		x = document.body.offsetWidth / 50;
		y = document.body.offsetHeight / 50;
	}
	else if (ns4){
		document.nsBanner.left = 150;
		document.nsBanner.top = 150;
		action = window.setInterval("Glide()",100);
		x = 150 / 50;
		y = x;
	}
}

function Glide() {
	if (ie4){
		Banner.style.pixelTop -= y;
		if (Banner.style.pixelTop <= 10) {
			window.clearInterval(action);
		}
		Banner.style.pixelLeft -= x;
	}
	if (ns6){
		Banner.style.top = parseInt(Banner.style.top) - y;
		if (parseInt(Banner.style.top) <= 10) {
			window.clearInterval(action);
		}
		Banner.style.left = parseInt(Banner.style.left) - x;
	}
	else if (ns4){
		document.nsBanner.top -= y;
		if (document.nsBanner.top <= 15){
			window.clearInterval(action);
		}
		document.nsBanner.left -= x;
	}
}
