
function onair() {
	var url = "/OnAir/Product.aspx?type=onair&item=onair";
	new Ajax(url, {
			    method: 'get',
			    update: $('onairitem')
		    }).request();
}

function refresh() {
	var url = "/OnAir/ShowTitleRefresh.aspx";
	var request = new Json.Remote(url, 
		{
			method: 'get',
			onComplete: function(myJSONObject) 
			{
				//$('ctl00_cphHead_liveshow_ShowTitle').setHTML(myJSONObject.showTitle);
				//$('ctl00_cphHead_liveshow_RemindMe').setAttribute("href",myJSONObject.showHyperlink);
			}
		}).send();
}
	
window.addEvent('load', function()
{
	onair.periodical(5000);
	refresh.periodical(60000);
}
);

