/****************** 
Filname:		vineet.js
Theme Name: Vineet nayar
Author:		  Dustan Franks
Date:		    2011/08/10
Email:		  dustanf@gmail.com
Version:	  1.0
*****************/
$(document).ready(function(){  // Call jQuery functions

/* Miscellaneous */
$('#footer li.menu-item-type-custom a').attr('target', '_blank');
						
/**** UX Controls ****/

/* Share This Dropdown */
$("a.shareLink").click(function(){
	$(this).next("div").slideToggle(500);
	return false;
});

/**>> UX Controls <<**/

/**** Plugins ****/

/* Smooth Scroll */
$('a.topLink').smoothScroll();

/* Validation ( comments ) */
$("#commentform").validate(
	{
		rules: {
			author: { 
				required: true,
				minlength: 3
			},
			email: {
				required: true,
				email: true
			},
			comment: {
				required: true,
				minlength: 10
			}
		},
		messages: {
			author: {
				required: "Please enter your name",
				minlength: "Please enter at least 3 characters",	
			},
			email: {
				required: "Please enter your email address",
				minlength: "Please enter a valid email address"
			},
			comment: {
				required: "Please enter a message"	,
				minlength: "Please enter at least 10 characters"
			}
		}
	}
);

/**>> Plugins <<**/

}); // Close the jQuery functions
