/**
 * @Copyright CSSJockey
 * @Website: http://www.cssjockey.com
 * This message must stay intact, read more about terms of use here: http://www.cssjockey.com/terms-of-use
 * Do not change anything in this document unless you know what you are doing.
 */
$(document).ready(function(){
// Wordpress Comments Check
	$("#commentform").submit(function(){
		var author = $("#author");
		var email = $("#email");
		var comment = $("#comment");
		var emailFormat = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
		if(author.val() == ""){alert("Name must be filled out!");author.focus();return false;}
		if (email.val() == "") {alert("Email must be filled out!");email.focus();return false;}
		if(email.val().search(emailFormat) == -1){alert("Please enter valid email address!");email.focus();return false;}
		if(comment.val() == ""){alert("Got nothing to say?");comment.focus();return false;}	
	}) // End Function

$('a.rsswidget').click( function() {
        window.open( $(this).attr('href') );
        return false;
});
$('a.rsswidget').tooltip();
$('#mainnav ul li a')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 -457px)"}, 
			{duration:300})
		})
	.mouseout(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 0)"}, 
			{duration:100})
		})
})
DD_roundies.addRule('.round', 10, true);
DD_roundies.addRule('.button', 5, true);
DD_roundies.addRule('#tooltip', 10, true);
DD_roundies.addRule('.wp-pagenavi span.current, .wp-pagenavi a', 5, true);
