function lightAddCartOn( artId, qty, colorSize_FL ){
	
	var colorId = "";
	var sizeDetId = "";
	
	if( colorSize_FL == 1) {		
		colorId   = $("#colorId_"+artId).val();
		sizeDetId = $("#sizeDetId_"+artId).val();

		if(!colorId || !sizeDetId){
			alert('Por favor elegir color y talle');
			return;
		}
	}
	
	if( qty < 1 )
	{
		alert('Por favor especifique una cantidad mayor o igual a 1 para agregar este producto');
		return;
	}
	
	$.ajax(
    {
		type: "post",
		url: $basePath+'pedido/LBAddConfirm',
		data: "ART_ID="+artId+"&ORDER_ART_QTY="+qty+"&COLOR_ID="+colorId+"&SIZE_DET_ID="+sizeDetId+"&COLORSIZE_FL="+colorSize_FL,
		success: function(data)
		{
			$('#LightAddCartContent').html(data);
			//$("#colorId").val('');
			$("#sizeDetId_"+artId).val('');
			//$('.productcolor > a').removeClass("activated");
			$('.productsize a').removeClass('activated')
		}
	});
	
	$("#LightAddCart").fadeIn();
	document.getElementById('LightBack').style.display 	   	= 	'block'; //no hacer fade del fondo, rompe en ie

}
	
function lightAddCartOff(){
	$("#LightAddCart").fadeOut();
	document.getElementById('LightBack').style.display 	   	= 	'none'; //no hacer fade del fondo, rompe en ie

}

function bannerFlotadorOff(){
	document.getElementById('bannerFlotador').style.display 			= 	'none'; 
}
function LightGaleriaOff(){
	document.getElementById('LightGaleria').style.display = 'none';
	document.getElementById('LightBack').style.display = 'none';
}