saveInSession=function(id, price){
	var count = $('count'+id).value;
	if(count){
		new Ajax.Updater(
			{success:'cart_info'},
			'/events/save_in_session',
			{
				asynchronous:true,evalScripts:true,
				onLoading:function(request, json){
					
				},
				onComplete:function(request, json){
				    $('cart_info_over').show();
				},
				method:'post',
				postBody:'id_person='+id+'&count='+count+'&price='+price
			}
		);
	}
}

removeFromSession=function(id){

}

showCartInfo=function(){
	$('event_cart').style.width='211px';
	$('event_cart').style.left='569px';
	$('cart_info_over').style.right='0px';
	$('cart_info').style.display='block';
}

function hideCartInfo(){
    $('event_cart').style.width='50px';
	$('event_cart').style.left='730px';
	$('cart_info_over').style.right='50px';
	$('cart_info').style.display='none';
}


function clearSessionTickets(){
if(confirm('Are you sure you want to delete your tickets?')){
		new Ajax.Request(
			'/events/clear_session',
			{
				asynchronous:true,evalScripts:true,
				onLoading:function(request, json){

				},
				onComplete:function(request, json){
				    $('cart_info_over').hide();
				}
			}
		);
		}
}