
// Display a welcome notice in the status bar
window.status="Welcome to Entertainment Spy";


//=============================================================================================================================
// Function opens a new window called newName to newURL, with size newWidth x newHeight
//-----------------------------------------------------------------------------------------------------------------------------
function NewWindow(newName, newURL, newWidth, newHeight) {
	theNewWindow = window.open(newURL,newName,"width="+newWidth+",height="+newHeight+",resizable=no,menubar=no,toolbar=no,location=no,directories=no,status=0,scrollbars=yes");
	theNewWindow.moveTo(5,5);
	theNewWindow.focus();
}
//=============================================================================================================================


//=============================================================================================================================
// This function causes the current window to jump to the URL newPage
//-----------------------------------------------------------------------------------------------------------------------------
function gotoPage(newPage) {
	if (newPage == "")
		window.alert ("You must select a site");
	else
		window.location.href = newPage;
}
//=============================================================================================================================


//=============================================================================================================================
// Function used to create the dynamic slideing frames on the left sidebar
//-----------------------------------------------------------------------------------------------------------------------------
var slideContent;
function slide(dir,layer) {
	if (document.layers || document.all) {
		if (document.layers) slideContent = document.layers[layer];
		if (document.all) slideContent = document.all[layer].style;
		slideContent.xpos = parseInt(slideContent.left);
		if (dir == 'out')
			setTimeout("slideOut()",10);
		else if (dir == 'in')
			setTimeout("slideIn()",10);
	}
}
function slideOut() {
	if (slideContent.xpos < 0) {
		slideContent.xpos += 5;
		slideContent.left = slideContent.xpos;
		setTimeout("slideOut()",10);
	}
}
function slideIn() {
	if (slideContent.xpos > -200) {
		slideContent.xpos -= 5;
		slideContent.left = slideContent.xpos;
		setTimeout("slideIn()",10);
	}
}
//=============================================================================================================================

