// JavaScript Document

var _contactus_imageCount = 3;

// arrays of images for mouseOut and mouseOver events 
var _contactus_img_off = new Array(imageCount);
var _contactus_img_on = new Array(imageCount);

_contactus_img_off[0] = "images/contactfrmbutton.gif"; 
_contactus_img_off[1] = "images/resfrmbutton.gif"; 
_contactus_img_off[2] = "images/emailbutton.gif"; 
_contactus_img_on[0] = "images/contactfrmbutton2.gif"; 
_contactus_img_on[1] = "images/resfrmbutton2.gif"; 
_contactus_img_on[2] = "images/emailbutton2.gif"; 

// preload the images 
function preload_contactus_buttons() 
{ 
	if (document.images)
	{	
		preload_image_object = new Image();
        
		for (var j = 0; j < _contactus_imageCount; j++)
		{ 
			// preload the "on" images
			preload_image_object.src = _contactus_img_on[j];
		}
	}

} 
   


function contactus_swap_on(img, swap)
{
	if (document.images)
	{
		//document.mm2.src = img_on[swap];	
		document[img].src = _contactus_img_on[swap];
	}	
}

function contactus_swap_off(img, swap)
{
	if (document.images)
	{
		//document.mm2.src = img_off[swap];	
		document[img].src = _contactus_img_off[swap];
	}
}

function contactus_swap(img, swap) 
{ 
	img.src = imgs[swap].src; 
} 

//--> 
