eClass( "selected" );
		$( this ).addClass( "selected" );

		pageIndex = 1;
		genre = encodeURI( $(this).text() );
		getMovies( pageIndex );
	}

	function sort() {
		var compare = compareName, reverse = false, data = [];
		cart.sortBy = $( "#sort select" ).val();
		switch ( $( "#sort select" ).val() ) {
			case "1":
				reverse = true;
				break;
			case "2":
				compare = compareDate;
				break;
		}

		for ( var item in cart.bookings ) {
			data.push( cart.bookings[item] );
		}
		data = data.sort( compare 