function popWindow( url, width, height, windowName )
{
    //get center coords
    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    
    win=window.open(url, windowName, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top);
}
function popScrollingWindow(url, width, height, windowName)
{
    //get center coords
    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    
    win=window.open(url, windowName, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top);
}
function openWindow(url)
{
    var rand = "_blank";
    win=window.open(url,rand,"directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes");
}

function downloadFile(theFile)
{
    popWindow("download.html?theFile="+theFile, 300, 100, "downloadWindow");
}



function popGame1()
{
	popWindow('match.html', 401, 350, 'matching_game');
}

function popGame2()
{
	popWindow('coopcatch.html', 400, 330, 'coop_catch');
}

function popGame3()
{
	popWindow("dingleball.html", 600, 410, "minecar");
}

function popGame4()
{
	openWindow("http://disney.tokenzone.com/dtz2/set/hotr/Home");
}

function popFoodFightGame()
{
	popWindow("ggrfoodfightgame/index.html", 610, 610, "ggrfoodfight");
}


function popHungryGarfieldGame()
{
	popWindow("hungrygarfield.html", 240, 400, "hungrygarfield");
}

function popComicCreatorGame()
{
	popWindow("comiccreator.html", 720, 450, "comiccreator");
}

function popFreeOdieGame()
{
	popWindow("freeodie/index.html", 550, 400, "freeodie");
}

function popBuckGame()
{
	popWindow("http://disney.go.com/disneypictures/homeontherange/buckrescue/index.html", 750, 450, "buck_game");
}

function popPatchChoir()
{
	popWindow("patch.html", 640, 582, "patch_game");
}

function popSSOS9()
{
	downloadFile("screensaver/hotr_ss_OS9.sit");
}

function popSSOSX()
{
	downloadFile("screensaver/hotr_ss_OSX.sit");
}

function popSSWindows()
{
	downloadFile("screensaver/screensaver_setup.zip");
}
