function cmfBasketDelete(id,type) 
{
	return cmfAjaxSend(cmfBaseUrl + '/mainAjax/basket/delete.php', {id: id, type: type});
}

function cmfBasketAdd(id,type) 
{     
	return cmfAjaxSend(cmfBaseUrl + '/mainAjax/basket/add.php', {id: id, type: type});
}

function cmfBasket() 
{
	var count = cmfGetCookie('main_basket_count');
	var price = cmfGetCookie('main_basket_price');
	cmfBasketHeader(count, price);
}

function cmfBasketHeader(count, price) 
{
	var html1 = '';
	
	if(count)
	{		
		html1 += '<div><a href="/basket/">В Корзине: '+ count +' шт.</a></div>';		
		html1 += '<p>Сумма: <a href="/basket/">'+ price +'</a></p>';				
	} 
	else 
	{		
		html1 += '<div>Корзина заказов:</div>';
		html1 += '<p><a href="/basket/">корзина пустая</a></p>';
	}
	
	//$('#basket1').html(html1);
}

function cmfBasketIsOrder() 
{
	cmfSetValue('isOrder', 1);
}

