$(document).ready(function($) {
    $("input, button").livequery(function() {
        $(this).addClass($(this).attr('type'));
    });
    $("li, a").livequery(function() {
    	$(this).click(function(event) {
    		$(this).blur();
    	})
        $(this).hoverIntent({
        	over: function(event) {
	            $(this).addClass('hover');
	        },
	        out: function(event) {
            	$(this).removeClass('hover');
        	},
        	timeout: 250
        });
    });
    $("tr:nth-child(odd), th:nth-child(odd), td:nth-child(odd)").livequery(function() {
        $(this).removeClass("even");
        $(this).addClass("odd");
    });
    $("tr:nth-child(even), th:nth-child(even), td:nth-child(even)").livequery(function() {
        $(this).removeClass("odd");
        $(this).addClass("even");
    });
    $(":last-child").livequery(function() {
        $(this).addClass("last");
    });
    $(":first-child").livequery(function() {
        $(this).addClass("first");
    });
    $("img[style*='float: left'], img[style*='float:left']").addClass('left');
    $("img[style*='float: right'], img[style*='float:right']").addClass('right');
});
