$(document).ready(function(){
	
	$("#specialBuys").hide();  
	
	$("#specialBuysButton").click(function () {
	      $("#specialBuys").slideToggle(140);
				return false;
	 });   
	
	$("#buyConditions").click(function () {       
		var url = "html/condiciones.html";
		var w = 450; 
		var h = 500;
	  window.open( url, "popup", "width=" + w + ",height=" + h + ",top=" + ((screen.height/2)-(h/2)) + ",left=" + ((screen.width/2)-(w/2 )) + ",resizable=no,status=no,scrollbars=yes" );  
		return false;
	 });  
	
	//$("#num").change(onNumChanged);
});  

function validateForm(){  
	$("#form").validate({   
		errorPlacement: function(error, element) {
			error.appendTo(element.parent("td").parent("tr").next("tr").find('.warning'));
		}
	});
}

function onNumChanged(){  
    var selected = $("#num option:selected");       
    alert(selected.val());
}               

function anentropia() {
	url = "html/anentropia.html";
	w = 500; 
	h = 220;
	miVentana = window.open( url, "popup", "width=" + w + ",height=" + h + ",top=" + ((screen.height/2)-(h/2)) + ",left=" + ((screen.width/2)-(w/2 )) + ",resizable=no,status=no,scrollbars=no" );
	if (miVentana) miVentana.focus();    
return false;
}
