// ---------------------------------------------------------
// Slideshow Navigation
// ---------------------------------------------------------

function paginate(idx, slide){
    return '<li><a href="" title="">#</a></li>';
}

// ---------------------------------------------------------
// jQuery
// ---------------------------------------------------------

jQuery.noConflict()(function($){

	$(document).ready(function() { 
		
		// ---------------------------------------------------------
	    // Header Social Icons
	    // ---------------------------------------------------------

		$("#header .social-icons a").tooltip({ effect: 'slide', position: 'bottom center', opacity: .5 });
		
		// ---------------------------------------------------------
		// Main Menu
		// ---------------------------------------------------------
	
		$('#main-menu .menu').superfish({
			dropShadows: false
		});
				
		// ---------------------------------------------------------
	    // Headers
	    // ---------------------------------------------------------
		
		$("h1").each(function(){
	
	        $(this).prepend("<span></span>");
	
	    });
	    
	    $(".widget h2").each(function(){
	
	        $(this).prepend("<span></span>");
	
	    });
	    
	    $("#footer h4").each(function(){
	
	        $(this).prepend("<span></span>");
	
	    });
	    
	    $(".entry h1 span, .page h1 span").each(function(){
	
	        $(this).remove();
	
	    });
		
		// ---------------------------------------------------------
	    // Contact Form
	    // ---------------------------------------------------------
	
	    //Define URL to PHP mail file
	    url = "sendmail.php";
	
	    //Activate $ form validation
	    $("#jaybich-contact").validate({
	
	        submitHandler: function() {
	
	            //Define data string
	            var datastring = $("#jaybich-contact").serialize();
	
	            //Submit form
	            $.ajax({
	                type: "POST",
	                url: url,
	                data: datastring,
	                success: function(){
	                        $('#jaybich-contact').slideUp();
	                        $('#sent').fadeIn();
	                }
	            });
	        }
	
	    });
	
	    // ---------------------------------------------------------
	    // Comments Form
	    // ---------------------------------------------------------
	    
	    
	    $("#commentform .comment-form-author input").addClass('required');
	    $("#commentform .comment-form-email input").addClass('required');
	    $("#commentform .comment-form-comment textarea").addClass('required');
	    $("#commentform").validate();
	    
	    $('.comment-body').each(function(){
	    	
	    	$(this).addClass('page');
	    	$(this).prepend('<div class="top"><!-- --></div>');
	    	$(this).append('<div class="bottom"><!-- --></div>');
	    	
	    });
		
	    // ---------------------------------------------------------
	    // Removed Portfolio Thumbnail
	    // ---------------------------------------------------------
	
	   
	
	    // ---------------------------------------------------------
	    // Removed Wordpress Gallery Lightbox Integration
	    // ---------------------------------------------------------
	
	
	    // ---------------------------------------------------------
	    // Image Buttons
	    // ---------------------------------------------------------
	
	    $('.image-button img').hover(function() {
	
	        $(this).stop(true, true).animate({opacity:.75},100);
	
	    }, function() {
	
	        $(this).stop(true, true).animate({opacity:1},100);
	
	    });
	    
	    // ---------------------------------------------------------
	    // Remove Post Thumbnails
	    // ---------------------------------------------------------
	
	   
		
		// ---------------------------------------------------------
	    // Remove Tabs
	    // ---------------------------------------------------------
	
	
	    // ---------------------------------------------------------
	    // Remove Toggle
	    // ---------------------------------------------------------
	
	    
	    // ---------------------------------------------------------
        // Remove - Innititate Pretty Photo
        // ---------------------------------------------------------

        
        // ---------------------------------------------------------
        // REmoved Main Menu Search
        // ---------------------------------------------------------


	}); //End DOM Ready
	
}); //End jQuery

// ---------------------------------------------------------
// Removed Twitter Widget
// ---------------------------------------------------------

