/*******************************************************************************
FILE NAME       :global.js
DESCRIPTION     :functions used throughout website
API DEPENDENCIES:none
********************************************************************************
                        <<----<< DOCUMENTATION >>---->>
````````````````````````````````````````````````````````````````````````````````

*******************************************************************************/

//-- global variables begin ----------------------------------------------------
//pageLoaded = false;
//-- global variables end ------------------------------------------------------

//------------------------------------------------------------------------------
//ROLLOVER FUNCTIONS BEGIN
//------------------------------------------------------------------------------

//FUNCTION-- preload images
function preload_image(virtual_name, file_path, file_name) {
 eval( virtual_name +' = new Image( )');//create a new image object
 eval( virtual_name +'.src = "' + file_path + file_name + '"' );
}

//FUNCTION-- dynamically swaps one image
function swap_image_single(image_name, image_state, image_layer) {
 document.images[image_name].src = eval(image_name + image_state + ".src");
}

//------------------------------------------------------------------------------
//ROLLOVER FUNCTIONS END
//------------------------------------------------------------------------------

//FUNCTION-- sets height and width of mask
function setMask2(zValue) {
	if(zValue) {
		maskDiv2.style.zIndex = zValue;
	} 
	maskDiv2.style.height = screen.height;
	maskDiv2.style.width = screen.width-23;	
}

function setMask(zValue) {	
	if(zValue) {
		maskDiv.style.zIndex = zValue;
	} 
	maskDiv.style.height = screen.height;
	maskDiv.style.width = screen.width-23;	
}