// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// This is the ajax will_paginate script
jQuery(document).ready(function() {
    ajaxifyPagination();
});

function ajaxifyPagination() {
    jQuery(".tnt_pagination a").click(function() {
        jQuery.ajax({
          type: "GET",
          url: jQuery(this).attr("href"),
          dataType: "script"
        });
        return false;
    });
}

// This is the image blocking script
	jQuery(window).bind('load', function() {
		jQuery('img.protect').protectImage();
	});
