// JavaScript Document

<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

leftPos=0;
if(screen) {
	leftPos = (screen.width / 2) - 200;
}
function launchPopup(pFile, pName, px, py) {
	paramString = 'width=' + px+',height='+py+',left='+leftPos+',top=200,resizable=no';
	PopupWin = window.open(pFile, pName, paramString);
	PopupWin.focus();
}
function newAndromedaBoxWindow() {
	VideoWin = window.open('andromedabox.html', 'AndromedaBox', 'width=320,height=240,left='+leftPos+',top=200,resizable=no');
	VideoWin.focus();
}
function newSquirrelOverloadWindow() {
//	VideoWin = window.open('http://imm.sheridanc.on.ca/imm2003/mazurmat/SquirrelOverload.html', 'SquirrelOverload', 'width=320,height=240,left='+leftPos+',top=200,resizable=no');
	VideoWin = window.open('squirreloverload.html', 'SquirrelOverload', 'width=320,height=240,left='+leftPos+',top=200,resizable=no');
	VideoWin.focus();
}
function newInnerWorldsWindow() {
	WorldWin = window.open('innerworldsloader.htm', 'InnerWorlds', 'width=740,height=500,left=20,top=50,resizable=no');
	WorldWin.focus();
}
function newElfWindow() {
	ElfWin = window.open('http://www.elftrance.com/Html/ElfInterface.html', 'ElfTrance', 'width=730,height=547,left=25,top=25,resizable=yes')
	ElfWin.focus();
}
function newCavemanWindow() {
	CavemanWin = window.open('Projects/Caveman.html', 'Caveman', 'width=370,height=385,left=25,top=25,resizable=yes')
	CavemanWin.focus();
}
function newSlideshow() {
	SlideShowWin = window.open('Slideshow/show.php', '_show', 'width=780,height=580,left=0,top=0,resizable=yes')
	SlideShowWin.focus();
}
function launchJedi() {
	SlideShowWin = window.open('ultimatejedi.htm', 'UltimateJedi', 'width=400,height=300,left=0,top=0,resizable=no')
	SlideShowWin.focus();
}
function launchUWBanners() {
	SlideShowWin = window.open('Projects/UWBanners.htm', 'UnitedWay', 'width=500,height=750,left=0,top=0,resizable=no')
	SlideShowWin.focus();
}
function launchPolarAdventure() {
	SlideShowWin = window.open('Projects/PolarAdventure.htm', 'UltimateJedi', 'width=400,height=375,left=0,top=0,resizable=no')
	SlideShowWin.focus();
}
function launchRogersCalculator() {
	RogersWin = window.open('Projects/RogersCalculator.htm', 'Rogers', 'width=780,height=430,left=0,top=0,resizable=no')
	RogersWin.focus();
}
function launchOlmecHead() {
	HeadWin = window.open('olmechead.htm', 'GiantHead', 'width=560,height=395,left=0,top=0,resizable=no')
	HeadWin.focus();
}
function launchUniverse() {
	UnivWin = window.open('Artwork/universe.htm', 'Universe', 'width=1024,height=768,left=0,top=0,resizable=no')
	UnivWin.focus();
}
function launchMars() {
	UnivWin = window.open('Artwork/elfmars.htm', 'MarsSpirit', 'width=1024,height=811,left=0,top=0,resizable=no')
	UnivWin.focus();
}
function launchComplexity() {
	UnivWin = window.open('Artwork/Buddhabrot2.htm', 'Buddhabrot', 'width=599,height=768,left=0,top=0,resizable=no')
	UnivWin.focus();
}
function launchLoveQuasar() {
	UnivWin = window.open('Artwork/godfountain.htm', 'LoveQuasar', 'width=800,height=600,left=0,top=0,resizable=no')
	UnivWin.focus();
}
function launchHeartExpansion() {
	UnivWin = window.open('Artwork/heartexpansion.htm', 'HeartExpansion', 'width=800,height=600,left=0,top=0,resizable=no')
	UnivWin.focus();
}
function launchLight() {
	UnivWin = window.open('Artwork/LetThereBeLight.htm', 'LetThereBeLight', 'width=800,height=600,left=0,top=0,resizable=no')
	UnivWin.focus();
}
function launchEchoBaby() {
	UnivWin = window.open('Artwork/LightEchoBaby.htm', 'LightEchoBaby', 'width=800,height=600,left=0,top=0,resizable=no')
	UnivWin.focus();
}
function launchNeo() {
	ExpWin = window.open('neoloader.htm', 'Elftrance', 'width=730,height=547,left=0,top=0,resizable=no')
	ExpWin.focus();
}
function launchEmailUpdate() {
	GuestWin = window.open('emailupdate.php', 'Guestbook', 'width=600,height=500,left=0,top=0,resizable=no')
	GuestWin.focus();
}

// for MediaStream
function launchPlayer()
{
	var strURL;
	strURL="http://www.elftrance.com/MediaStream/MediaStreamIntro.html";
	MediaWin = window.open(strURL,"MediaStream","height=300,width=400,scrollbars=no,resizable=no,toolbar=no,status=no");
	MediaWin.focus();
}
// for Expando banner
function show(object) {
    if (document.layers && document.layers[object]) {
        //netscape
        document.layers[object].visibility = 'visible';
    } else if (document.all) {
        document.all[object].style.visibility = 'visible';
        document.all[object].style.zIndex = 100;
    }
}
// for Expando banner
function hide(object) {
    if (document.layers && document.layers[object]) {
        document.layers[object].visibility = 'hidden';
    } else if (document.all) {
        document.all[object].style.visibility = 'hidden';
    }
}

// to validate the email update list form
function validateForm(f) {
	if(f.email.value == "") {
		alert("Please enter your email address.");
		return false;
	}
	return true;
}


//-->
