dojo.require('dojo._base.html');
dojo.require('dojo.fx');
dojo.require('dojo.fx.easing');

function onLoad()
{
	dojo.attr('wrapper', 'innerHTML', '<img id="logo" alt="Gaming World Evolved" src="gwe.jpg" />');
	setTimeout('finishOnLoad(1)', 100);
}

function finishOnLoad(part)
{
	if (part == 1) {
		dojo.byId('logo').style.display = 'inline';
		dojo.style('wrapper', 'opacity', '0');
		setTimeout('finishOnLoad(2)', 38);
	}
	else {
		var fadeArgs = {
			node: 'wrapper',
			duration: 17000,
			easing: dojo.fx.easing.expoOut
		};

		var anim1 = dojo.fadeIn(fadeArgs);

		var anim2 = dojo.animateProperty({
			node: 'logo',
			duration: 1000,
			properties: {
				height: {end: 600, unit: 'px'},
				width: {end: 600, unit: 'px'}
			}
		});

		dojo.fx.combine([anim1, anim2]).play();
	}
}

