function swapImages(){
	var $active = $('.artwork .active');
	var $next = ($('.artwork .active').next().length > 0) ? $('.artwork .active').next() : $('.artwork img:first');
	$active.removeClass('active');
	$next.addClass('active');
}
setInterval('swapImages()', 6000);

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}


$(function() {
	$('.primary li').not('.secondary li').each(function() {
		$(this).hover(function() {
			$(this).addClass('selected');
			$(this).find('a:eq(0)').addClass('selected');
			$(this).find('ul').addClass('showNav');
		},function() {
			$(this).removeClass('selected');	
			$(this).find('a:eq(0)').removeClass('selected');
			$(this).find('ul').removeClass('showNav');
		});
	});


});





function validateForm(form) { //This is the name of the function

if (form.name.value == "") { //This checks to make sure the field is not empty
   alert("Ooops! Please include your name!"); //Informs user of empty field
   form.name.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.phone.value == "") { //This checks to make sure the field is not empty
   alert("Ooops! Please include your phone number!"); //Informs user of empty field
   form.phone.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.email.value == "") { //This checks to make sure the field is not empty
   alert("Ooops! Please include your email!"); //Informs user of empty field
   form.email.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }   

}
