/*
Document Wipes effect- By Dynamic Web Coding (www.dyn-web.com)
Copyright 2002 by Sharon Paine
Visit http://www.dynamicdrive.com for this script
*/

dom = (document.getElementById) ? true : false;
ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
ns4 = (document.layers && !dom) ? true : false;
ie4 = (document.all && !dom) ? true : false;
opr=  navigator.userAgent.indexOf("Opera")!=-1
nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;


//////////////////////////////////////////////////////////////////////////
// Customization Area
//
// If your wipe series includes images, put them in this array for preload, seperated by commas.
var wipe_imgs=new Array(
	'dwc_btn.gif'
);
if (document.images) {
	var theImgs=new Array();
	for (var i=0;i<wipe_imgs.length;i++) {
		theImgs[i]=new Image();
		theImgs[i].src=wipe_imgs[i];
	}
}

// Here's where you put the content for the wipes.
// Array elements are arranged in pairs:
// content to display, time allotted for wipe of that content. 
// Suggestion: give longer, larger content more time.
// If all your text is to be formatted the same, you can use
// just the wipe class above (it is applied in the doWipes function)
// and put plain text here.
// Images and links are okay too.
var wipe_array=new Array(
	'<span class="wipe2">The environment is being poisoned</span>',2500,
	'<span class="wipe2">Necessary resources are being depleted</span>',2500,
	'<span class="wipe2">Wildlife is becoming extinct</span>',2500,
	'<span class="wipe1">What Can We Do?</span>',2500,
	'<span class="wipe1"><center>Support<br><b>Earth Defense League!</b></center></span>',2500
);

var wipe_final=new Array('Click here',2500);


var wipe_in_delay=1000;			// delay before each wipe in
var wipe_out_delay=1200;		// delay before each wipe out
// wipe out speed (wipe-in time is divided by this number)
var wipe_out_dv=2.5;	// 2 to 4 recommended
var dest_delay=0;			// delay before going to destination url

// destination url, where to go at end of wipes
function setDest() {
	window.location = "http://www.earthdefenseleague.org/index1.php";
}
// end customization area
/////////////////////////////////////////////////////////////////////

if (opr||nodyn)
setDest();

function initDynLyrs() {
	// non-capable browsers skip this and go to your url
	if (nodyn) setDest();
      else {
	positionBotmRt('skipDiv');
	wipeLyr1 = new dynObj('wipeDiv1');
	wipeLyr1.centerIn(window);
	wipeLyr1.show();
	//wipeLyr2 = new dynObj('wipeDiv2');
	//wipeLyr2.centerIn(window);
	doWipes();
      }
}

window.onload=initDynLyrs;
