function _switch(page){
	$.get('include/get_banners.php?page='+page, function(data){
		$('#banners').html(data);
	})
	ps = page.split("&");
	url = "include/"+ps[0].toLowerCase()+"_content.php?page="+page;
	$.get(url, function(data){
		$('#content').html(data);
	});
}
function _get_banner(page){
	$.get('include/get_banners.php?page='+page, function(data){
		$('#banners').html(data);
	})
}
default_page = 'HOME';
$(document).ready(function() {		
	_switch(default_page);
});
function _swith_month(m, y){
	my = m+'-'+y;
	$.get('include/get_calendar.php?my='+my, function(data){
		$('#calendar').html(data);
	});
}
function _ca_click(date, id){
	if (id!=0)
	{
		var ob = document.getElementById("future_event");
		if(ob!=null){
			ob.selectedIndex=0;
		}
		_load_event(id);		
	}
}
function _change_event(sel){
	if (sel.selectedIndex>0)
	{
		v = sel.value;
		p = v.split(',');
		_load_event(p[1]);
	}
}
function _load_event(id){
	url = 'include/load_event.php?eid='+id;
	$.get(url, function(data){
		$('#event_body').html(data);
	});
}
function _load_banner(url){
	$('#banners').html("<img src='"+url+"'>");
}