(function() {
    if (!window.listTable) {
        window.listTable = function($listTables) {
            function strip() {
                if ($listTables.is(".striped")) {
                    $listTables.find("> tbody > tr:odd").addClass("odd");
                    $listTables.find("> tbody > tr:even").addClass("even");
                }
            }

            function bindHover() {
                if (!$.support.style) {
                    $listTables.find("> tbody > tr").hover(function() {
                        $(this).addClass("hover");
                    }, function() {
                        $(this).removeClass("hover");
                    });
                }
            }

            $listTables.addClass("ui-widget ui-widget-content ui-corner-all");
            $listTables.find("> thead > tr").addClass("header");
            $listTables.find("> tbody > tr").addClass("row");
            bindHover();
            strip();
        };
    }
})();

$(function() {
    listTable($(".list-table"));

    $("div.slide-store-comment").each(function(){
		var $this = $(this);
		var desc = $("div.store-comment-text", $this).addClass("hidden-block");
		$("div.store-comment-title", $this).click(function(){
			desc.toggleClass("hidden-block");
		}).wrap("<a href='#'></a>");
	});
});
