// versioning
var gBrowserVer = parseInt(navigator.appVersion);
var gBrowserName = navigator.appName;



 

function Image_preload( theName, thePath ){
	window[ theName ] = new Image();
	window[ theName ].src = thePath;
}





function Image_change( theImageName, theVariableName ){
	if( document.images )
		document[ theImageName ].src = window[ theVariableName ].src;
}




function Button_preload( theName ){
	Image_preload( theName + "but_nrm", "/graphics/buttons/" + theName + "but_nrm.jpg" );
	Image_preload( theName + "but_ovr", "/graphics/buttons/" + theName + "but_ovr.jpg" );
	Image_preload( theName + "but_info", "/graphics/buttons/" + theName + "but_info.jpg" );
}






function Button_overDoubleFlip( theName ){
	Image_change( theName + "but", theName + "but_ovr" );
	Image_change( "info", theName + "but_info" )
}





function Button_outDoubleFlip( theName ){
	Image_change( theName + "but", theName + "but_nrm" );
	Image_change( "info", "blank_info" );
}





// local image loading
if( document.images ){
	var blank_info = new Image();
	blank_info.src = "/graphics/blankinfo.jpg";
	Button_preload( "index" );
	Button_preload( "about" );
	Button_preload( "astrotoys" );
	Button_preload( "webtoys" );
	Button_preload( "palmtoys" );
	Button_preload( "esperanto" );
	Button_preload( "travel" );
}
	