function mouseOver(menuId)
{
    if (menuId=="m7"){
        document.getElementById(menuId).style.backgroundColor="#2b1106";
        document.getElementById(menuId+"a").style.color="#f6e6cd";
    }
    else if (menuId=="m8")
        document.getElementById(menuId).style.color="#9B2700";
    else
        document.getElementById(menuId).style.backgroundColor="#9B2700";
}

function mouseOut(menuId)
{
    if (menuId=="m7"){
        document.getElementById(menuId).style.backgroundColor="transparent";
        document.getElementById(menuId+"a").style.color="#2b1106";
    }
    else if (menuId=="m8")
        document.getElementById(menuId).style.color="#f6e6cd";
    else
        document.getElementById(menuId).style.backgroundColor="#811d02";
}

function menuClick(fileName)
{
    window.location=fileName;
}

function check_email(e) {
	ok ="1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
	for(i=0; i < e.length ;i++){
	if(ok.indexOf(e.charAt(i))<0){ 
		return (false);
		}	
	} 
	if (document.images) {
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) {
			return (-1);
		} 
	}
}

if (document.images)
{
    preload_image_object = new Image();
    // set image url
    image_url = new Array();
    image_url[0] = "http://www.abcwoodflooring.net/Images/Template/FreeEstmateArrow.png";
    image_url[1] = "http://www.abcwoodflooring.net/Images/Template/FreeEstmateArrow_Hover.png";
    image_url[2] = "http://www.abcwoodflooring.net/Images/Template/GreenArrow.jpg";
    image_url[3] = "http://www.abcwoodflooring.net/Images/Template/GreenArrow_Hover.jpg";
    image_url[4] = "http://www.abcwoodflooring.net/Images/Template/OffersArrow.png";
    image_url[5] = "http://www.abcwoodflooring.net/Images/Template/OffersArrow_Hover.png";

    for(i=0; i<=image_url.length; i++) 
        preload_image_object.src = image_url[i];
}

function onHoverImage(objName,imageUrlId)
{
    document.getElementById(objName).src=image_url[imageUrlId];
}