$(document).ready(function(){

//coda-slider
$("div#slider").codaSlider();

//// tooltip for social networking buttons
//   $('.social li a').each(function()
//   {
//      // Create image content using websnapr thumbnail service
//      var content = '<img src="http://images.websnapr.com/?url=';
//      content += $(this).attr('href');
//      content += '" alt="Loading thumbnail..." height="150" width="150" />';
//	  content += '<br/>';
//      
//      $(this).qtip(
//      {
//         content: content,
//         position: {
//            corner: {
//               tooltip: 'bottomMiddle',
//               target: 'topMiddle'
//            }
//         },
//         style: {
//            tip: true, 
//			 	background: '#cc6633',
//  		    	color: 'black',
//						 border: {
//							 width: 3,
//							 radius: 2,
//							 color: '#cc6633'
//     							 },
//         		},
//
//      });
//   });
//
////tooltip on up/down arrows
//   $('a#arrow[title]').qtip({
//      content: {
//         text: false 
//      },
//         style: {
//            tip: true, 
//			 	background: '#cc6633',
//  		    	color: 'black',
//						 border: {
//							 width: 3,
//							 radius: 2,
//							 color: '#cc6633'
//     							 },
//         		},
//				position: {
//					   corner: {
//						  target: 'rightMiddle',
//						  tooltip: 'leftMiddle'
//							   },
//					   target: 'mouse',
//					   adjust: { mouse: true },
//						},
//});

   
//fancybox(lightbox-like plugin) for thumbnails on portfolio panel
$("a.thumbs").fancybox();

//animated scrolling of links! in this case my 'arrow' anchors
$.localScroll();

//Validate Contact Form
$("#contactForm").validate({
		rules: {
			name:{
				required: true,
				minlength: 3
				},
			subject: "required",
			email: {
				required: true,
				email: true,
			},
			msg: "required",
		},
		messages: {
			name: "Enter your name",
			subject: "Enter a subject",
			email: "Enter a valid email",
			msg: "Enter a message"
		},
//		 submitHandler: function(form) {
//  		 $(form).submit()
//   }

						   });
});

$.validator.setDefaults({
//	submitHandler: function() { alert("Thank you!!"); }
});

