// JavaScript Document
// all the jQuery code goes into document.ready()!!!!!!!!!!!!!!!!!!!!!!!! 
$(document).ready(function(){
	//
	//
	$('#menu ul li a').hover(
		function(){
			$(this).addClass('current');
		},
		function(){
			$(this).removeClass('current');
		} 
	);
	//
	//
	$('.rightColumnBody a img').hover(
		function(){
			$(this).animate({opacity: 0.5});
		},
		function(){
			$(this).animate({opacity: 1});
		} 
	);
	//
	//
	$('.animateOpacity a img').hover(
		function(){
			$(this).animate({opacity: 0.5});
		},
		function(){
			$(this).animate({opacity: 1});
		} 
	);
	//
	//
	$('ul.photoGallery li a img').hover(
		function(){
			$(this).animate({opacity: 0.5});
		},
		function(){
			$(this).animate({opacity: 1});
		} 
	);
	//
	//contact form validation
	$('#contactForm').validate({
		rules:{
			name: 'required',
			subject: 'required',
			email: 
				{
					required: true,
					email: true
					},
			message: 'required'		
		}, //end of rules
		 messages: {
			  email: {
				 required: "<br/>Please supply an e-mail address",
				 email: "<br/>This is not a valid email address"
			   }
		 }, //end of messages
		errorPlacement: function(error, element) { 
          error.insertAfter(element);
        }
	}); //end of validate
	//
	$('#tabSet').tabs();
	//
	$('#map').jmap('init',
			{
				mapCenter:[28.686371170910995, -99.89662170410156],
				mapZoom:7
			}
	);
	//
	$('#map').jmap('addMarker',
			{pointLatLng:[28.686371170910995, -99.89662170410156]}
	);
	//
//
}); // end of document.ready - jQuery	
