<!--
/*
 * Splash page/Zooming text
 * Some words zooms out before the content of the page shows.
 * http://www.dhtmlgoodies.com/index.html?whichScript=zooming_text

 * (C) www.dhtmlgoodies.com, September 2005
 * You are free to use this script as long as the copyright 
 * message is kept intact

 * Alf Magne Kalleland
 */

/* ***********************************************************************
 * *** Configuration ***

The words are added to the script with this line:
var textArray = ['Welcome','To','www.dhtmlgoodies.com'];

Fonts and colors for the words and the "Skip intro" link 
is specified in the CSS.

This is the part for the zooming text:
.zoomingText {
    font-family: Trebuchet MS, Lucida Sans Unicode, Arial
    color: #317082;
}

And the "Skip intro" link is set with these lines:
.skipIntro a {
    color:#000000;
    font-size:18px;
    text-decoration:none;
}
 * ***********************************************************************/


var textArray = ['Welcome','To','www.dhtmlgoodies.com'];

var maxFontSize = 70;		// Maximum font size in pixels
var zoomSpeed = 5;		// Lower = Faster

var fontIncrementBy = 2;        // Step of font size inc. (Higher = faster)
var delayBetweenWords = 300;	// Microseconds between each word
var delayAtEnd = 900;		// Microseconds delay after last word

var textIndex = 0;		// Don't change this value

function executeZoomScript()
{
	var obj = document.getElementById('zoomingText');
	if (textIndex<textArray.length) {
		obj.style.fontSize = '1px';
		obj.style.lineHeight = document.body.clientHeight + 'px';
		obj.innerHTML = textArray[textIndex];
		zoomText();	
	} else {
		setTimeout("document.getElementById('zoomingTextContainer').style.display = 'none'",delayAtEnd);
	}
}

function zoomText()
{
	var obj = document.getElementById('zoomingText');
	var fontSize = obj.style.fontSize.replace('px','');
	fontSize = fontSize/1 + fontIncrementBy;
	obj.style.fontSize = fontSize + 'px';
	if (fontSize<maxFontSize) {
		setTimeout('zoomText()',zoomSpeed);
	} else {
		textIndex++;
		setTimeout('executeZoomScript()',delayBetweenWords);
	}
}

function skipIntroSkip()
{
	document.getElementById('zoomingTextContainer').style.display = 'none';
	return false;
}

// start script on load ...
window.onload = executeZoomScript;

-->
