/*
****************************************
****************************************
**********  DEVELOPER NOTES  ***********
****************************************
****************************************
*************  Developer  **************
****************************************

Northscaping ITDS
www.northscaping.com/Business/ITDS.shtml

****************************************
********  Development History  *********
****************************************

Mar 6/09	- Created new file

****************************************
**********  Important Notes  ***********
****************************************

- none

****************************************
****************************************
*/

function swapOver(image) {
	document.getElementById(image).style.visibility = "hidden"
}

function swapOut(image) {
	document.getElementById(image).style.visibility = "visible"
}

function validEmail(email) {
	return (email.indexOf(".") > 0) && (email.indexOf("@") > 0);
}

function validateFF() {

	if ((validEmail(document.FeedbackForm.email.value) == false) && (document.FeedbackForm.email.value != "")) {
		alert ("Please enter a valid e-mail address in the form 'info@landscapeconceptsmn.com'");
		return false;
	}

	test = document.FeedbackForm.comments.value;
	if (test.length > 2000) {
		alert ("Wow, you have a lot to say, but please make your comments a little shorter!");
		return false;
	}

	test = document.FeedbackForm.name.value;
	if (test.length < 2) {
		alert ("We'd love to know your name!");
		return false;
	}

	test = document.FeedbackForm.comments.value;
	if (test.length < 10) {
		alert ("Do you have anything to say to us? We'd love to hear your comments!");
		return false;
	}
	return true; 
}

/* Menu code based on 'Son Of Suckerfish' */

sfHover = function() {
	var sfEls = document.getElementById("topNav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfHover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfHover\\b"), "");
		}
	}
}
	
	if (window.attachEvent) window.attachEvent("onload", sfHover); 

