
function preloadIMG(  )
{
	var imgArr = new Array( "m1o", "m2o", "m3o", "m4o" );
	js = "";
	for( i=0; i<imgArr.length; i++ )
	{
		js += "img"+ i +" = new Image(  );";
		js += "img"+ i +".src = 'img/"+ imgArr[i] +"';";
	}
	eval( js );
}

function changeIMG( id, src )
{
	if( document.getElementById )
	{
		img = document.getElementById( id );
		img.src = src;
	}
	else if( document.images )
	{
		document.images[id].src = src;
	}
}

function readIntro( wURL )
{
	var x = null;
	
	wX = (screen.width!=null)? screen.width/2-250:0;
	wY = (screen.height!=null)? screen.height/2-250:0;
	
	wPARAM  = "left=" + wX + ",top=" + wY;
	wPARAM += ",WIDTH=500,HEIGHT=500";
	wPARAM += ",location=0,resizable=1,titlebar=1,directories=0";
	wPARAM += ",toolbar=0,menubar=1,scrollbars=yes,status=no";
    x = window.open( "intro_"+ wURL +".html", wURL, wPARAM );
    x.focus();
}

function launchSite(  )
{
	var x = null;
	
	wX = (screen.width!=null)? screen.width/2-375:0;
	wY = (screen.height!=null)? screen.height/2-275:0;
	
	if( wY < 100 ) wY = 0;
	
	wPARAM  = "left=" + wX + ",top=" + wY;
	wPARAM += ",WIDTH=750,HEIGHT=535";
	wPARAM += ",location=0,resizable=0,titlebar=1,directories=0";
	wPARAM += ",toolbar=0,menubar=0,scrollbars=no,status=no";
    x = window.open( "preload.html", "site", wPARAM );
    x.focus();
}