jQuery.noConflict();

jQuery.tablesorter.addParser({ 
        // set a unique id 
        id: 'specialDate', 
        is: function(s) { 
            // return false so this parser is not auto detected 
            return false; 
        }, 
        format: function(s) { 
            // format your data for normalization            
            _year = s.substring(6,10);
            _month = s.substring(3,5);
            _day = s.substring(0,2);
            _hour = s.substring(11,13);
            _minute = s.substring(14,16);
            
            final = _year+_month+_day+_hour+_minute;        
            
            return final; 
        }, 
        // set type, either numeric or text 
        type: 'numeric' 
});
    

jQuery(document).ready(function(){
	// home boxes hover and last item
	jQuery('.homeBox').hover(
      function () {
        jQuery(this).addClass("hovered");
      }, 
      function () {
        jQuery(this).removeClass("hovered");
      }
    );
	
	jQuery('.homeBox:last').css({"margin-right":"0"});
	
	// submenu
	jQuery("ul#submenu>li>ul").each(function(){
		jQuery(this).children('li:first').addClass('firstSub');
	});
	
	// content first paragraph
	jQuery("#content p:first").css({"color":"#333"});
	
	jQuery("#myTable").tablesorter({
	    headers: { 
                5: { 
                    sorter:'specialDate'
                }
            },
            widgets: ['zebra']                
        }); 
});
