function slideSwitch() {
    var $active = $('#slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1500, function() {
            $active.removeClass('active last-active');
        });
}


// MENU
function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//$(document).ready(function(){
$(function(){						   						   
	setInterval("slideSwitch()",4000);					   
	mainmenu();
});


// FORM CHECK
function checkform()
{
	if (document.feedback.FirstName.value == '')
	{
		alert('Your name is required');
		return false;
	}
	else if (document.feedback.LastName.value == '')
	{
		alert('Your name is required');
		return false;
	}
	else if (document.feedback.Address.value == '')
	{
		alert('Your Address is required');
		return false;
	}
	else if (document.feedback.City.value == '')
	{
		alert('Your City is required');
		return false;
	}
	else if (document.feedback.ZipCode.value == '')
	{
		alert('Your Zipcode is required');
		return false;
	}
	else if (document.feedback.Country.value == '')
	{
		alert('Your Country is required');
		return false;
	}
	else if (document.feedback.phone.value == '')
	{
		alert('Your Phone is required');
		return false;
	}
	else if (document.feedback.captcha.value == '')
	{
		alert('Type the characters you see in the image');
		return false;
	}
	else if (document.feedback.captcha.value != 'hwy143')
	{
		alert('Type the characters you see in the image');
		return false;
	}
	return true;
}
