var objInterval;
var nMultiplier, nRatio;
var strNextPage;
var nParlorL, nParlorT;
var nParlor2L, nParlor2T;
var nBrowserHeight, nBrowserWidth;

nMultiplier = 1.05;
strNextPage = "EmeraldCity.htm";

function GrowWitch(){
	if (navigator.appName == "Netscape") {
		alert ("You're missing this in Netscape.  Try IE4.");
		document.location = strNextPage;
		return false;
	}
    nBrowserHeight = document.body.clientHeight;
    nBrowserWidth = document.body.clientWidth;
    
    imgParlor2.style.top = nBrowserHeight;
    imgParlor2.style.left = -234;
    
    nParlorL = imgParlor.style.left;
    nParlorT = imgParlor.style.top;
    nParlorL = new Number (nParlorL.substr(0, nParlorL.indexOf("px")));
    nParlorT = new Number (nParlorT.substr(0, nParlorT.indexOf("px")));
    
    nParlor2L = imgParlor2.style.left;
    nParlor2T = imgParlor2.style.top; 
    nParlor2L = new Number (nParlor2L.substr(0, nParlor2L.indexOf("px")));
    nParlor2T = new Number (nParlor2T.substr(0, nParlor2T.indexOf("px")));
    
    nRatio = nBrowserHeight / nBrowserWidth;

	MakeCenter();
	imgWitch.style.visibility = "visible";
	objInterval = window.setInterval("GrowBigger()", 40);
}

function MakeCenter(){
	imgWitch.style.top = (nBrowserHeight / 2) - (imgWitch.height / 2) - 10;
	imgWitch.style.left = (nBrowserWidth / 2) - (imgWitch.width / 2) - 10;
	return true;
}

function GrowBigger(){
	if (((imgWitch.height * nMultiplier) > (nBrowserHeight)) || ((imgWitch.width * nMultiplier) > (nBrowserWidth))){
		window.setTimeout ("BringSignIn()", 40 );
        imgWitch.style.visibility = "hidden";
        document.body.style.backgroundColor = "white";
        tblWitch.style.borderColor = "lightpink";
	}
	imgWitch.height = imgWitch.height * nMultiplier;
    imgWitch.width = imgWitch.height * nMultiplier;
	MakeCenter();
	return true;
}

function ChangePage(){
	document.location = strNextPage;
}

function BringSignIn(){

    if (nParlorL > nBrowserWidth) {
    	window.clearInterval ( objInterval );
        window.setTimeout ("ChangePage()", 100 );
    }
    
 
    nParlorT = nParlorT + 5 * nRatio;
    nParlorL = nParlorL + 5;
    
    imgParlor.style.top = nParlorT;
    imgParlor.style.left = nParlorL;
    
    nParlor2T = nParlor2T - 5 * nRatio;
    nParlor2L = nParlor2L + 5;
    
    imgParlor2.style.top = nParlor2T;
    imgParlor2.style.left = nParlor2L;
    

}
