var raiz='http://www.paddockstore.com'; 



function redondea(sVal, nDec){
		var n = parseFloat(sVal);
		var s = "0.00";
		if (!isNaN(n)){
		 n = Math.round(n * Math.pow(10, nDec)) / Math.pow(10, nDec);
		 s = String(n);
		 s += (s.indexOf(".") == -1? ".": "") + String(Math.pow(10, nDec)).substr(1);
		 s = s.substr(0, s.indexOf(".") + nDec + 1);
		}
		return s;
   }
   
   

	function cart(){
		$('#carrito').load(raiz+'/pops/?a=carrito');
	}

	$(function() {
		$('a.lb').lightBox();
	});

		
		
		$("a.tb").click(function(){
			tb_show($(this).attr('title'),$(this).attr('href'));
		});

