// JavaScript Document

function createMouseOvers()
{
  var allPageTags = document.getElementsByTagName("a"); 

  for (var i=0; i < allPageTags.length; i++) { 
		currItem = allPageTags[i]
	if ( currItem.parentNode.parentNode.parentNode.id=="menuLayer") { 
		 currItem.onmouseover = doMouseOver;
		 currItem.onmouseout = doMouseOut;
	} 
  }
}

function doMouseOver(mouseObject)
{

	this.parentNode.style.borderColor="#3961AD";
}

function doMouseOut(mouseObject)
{
	this.parentNode.style.borderColor="white";	
}

function preloadImages() {
	images = new Array( "images/float.gif", 
					    "images/float_square.gif", 
						"images/mailto.gif", 
						"images/link.gif" );
	
	imageObjects = new Array();
	
	for( i=0; i < images.length; i++ )
	{
		imageObjects[i] = new Image();
		imageObjects[i].src = images[i];
	}
}

function doAlert()
{
		alert(this);
}

function loadEffects()
{
	createMouseOvers();
	preloadImages();
}

function popUp( url, width, height )
{
	var tWin;
	
	if( window.open )
		tWin = window.open( url, "tWin", "width="+width+",height="+height );
	
	if( tWin == null || typeof(tWin)=="undefined" )
	{
		return true;
	}
	return false;
}