// ~ Variables -------------------------------------------------------



var northAmericaHeight;

var southAmericaHeight;

var europeHeight;

var africaHeight;

var asiaHeight;

var australiaHeight;



// ~ Functions -------------------------------------------------------



/* Sevenforty Img FlipFlops */

function flipFlop( id, flipImg ) {



	var oldSrc = document.getElementById( id ).src;



	document.getElementById( id ).src = "images2007/" + flipImg;

	document.getElementById( id ).onmouseout = function() {

		document.getElementById( id ).src = oldSrc;

	}



}



/* Init map */

function initMap() {

   

  northAmericaHeight = new fx.Height( 'northAmerica', { duration: 400 } );

  southAmericaHeight = new fx.Height( 'southAmerica', { duration: 400 } );

  europeHeight = new fx.Height( 'europe', { duration: 400 } );

  africaHeight = new fx.Height( 'africa', { duration: 400 } );

  asiaHeight = new fx.Height( 'asia', { duration: 400 } );

  australiaHeight = new fx.Height( 'australia', { duration: 400 } );



  northAmericaHeight.hide();

  southAmericaHeight.hide();

  europeHeight.hide();

  africaHeight.hide();

  asiaHeight.hide();

  australiaHeight.hide();

  

	// Moved this function out of the index so it can load.

	if (document.all && document.getElementById) {

		navRoot = document.getElementById("dmenu");

		for (i=0; i < navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {

				node.onmouseover=function() {

					this.className+=" over";

				}

				node.onmouseout=function() {

					this.className=this.className.replace(" over", "");

				}

			}

		}

	}



} // End initMap



window.onload=initMap;

