/*
 * 
 * Bicycle Filter - Filter, sort, by Brand, Type, Price...etc.
 * Version 1.0
 * 
 * Copyright (c) 2009 Jeffrey Carriere
 * Examples and docs at: http://
 * 
 */   	

	$(function(){

		// CLOSEOUTS
		if($.cookie('jqCookieJar_tablesorter') === null){
			$('#bicycleCloseoutsList').tablesorter({
				widgets: ['cookie'],
				sortList: [[0,0],[1,0],[2,0]]
			});
		}
		else {
			$('#bicycleCloseoutsList').tablesorter({
				widgets: ['cookie']
			});
		}			   
		
		// LIST ALL BICYCLES sortList: [[0,0],[1,0],[2,0]]
			   
		if($.cookie('jqCookieJar_tablesorter') === null){
			$('#bicycleList').tablesorter({
				widgets: ['cookie'],
				sortList: [[4,0], [5,0]]
			});
		}
		else {
			$('#bicycleList').tablesorter({
				widgets: ['cookie']
			});
		}
		
		// BIKE TYPE AND SUB BIKE TYPE
		
		if($.cookie('jqCookieJar_tablesorter') === null){
			$('#bicycleListType').tablesorter({
				widgets: ['cookie'],
				sortList: [[0,0],[1,0],[2,0]]
			});
		}
		else {
			$('#bicycleListType').tablesorter({
				widgets: ['cookie']
			});
		}
		
	});

