
$(function() {

$('button').button();

$('#synopsis').iphoneStyle({
	checkedLabel: 'YES',
	uncheckedLabel: 'NO'
}).bind('change', function() {
	if ($(this).prop('checked'))
		$('.synopsis').show();
	else
		$('.synopsis').hide();
});

$('#listview').bind('click', function() {
	var service = $(this).attr('service');
	window.location.href = '/epg/xservice.jim?service=' + service;
});

$('table.weekview').freezeHeader();

$('#jumptonow').bind('click', function() {
	var hour = $(this).attr('hour');
	$('body').scrollTo('#hour_' + hour, 500, {
		offset: {top: -50, left: 0}
	});
});

});

