jQuery(document).ready(function(){jQuery('#tablecloth').submit(function(){var send=false;if(jQuery('#width').val()!=''&&jQuery('#length').val()!='')send=true;else if(jQuery('#round').val()!='')send=true;else{jQuery('.validation-advice').fadeIn('slow');if(jQuery('#width').val()=='')jQuery('#width').addClass('validation-failed');if(jQuery('#length').val()=='')jQuery('#length').addClass('validation-failed');}
return send;});jQuery('#form').change(function(index){if(jQuery('#form option:selected').val()==3){jQuery('#table-width').hide();jQuery('#table-round').show();}else{jQuery('#table-width').show();jQuery('#table-round').hide();}});jQuery('#tablecloth').find('input').click(function(){jQuery(this).removeClass('validation-failed');jQuery('.validation-advice').hide();});});;jQuery(document).ready(function(){if(jQuery('#newsletterPopup').size()>0){jQuery('#newsletterPopup').css({'left':Math.round((jQuery('.page').width()-400)/2),'top':jQuery(document).scrollTop()+50});jQuery('#newsletterPopup').fadeIn();jQuery('#popupclose').click(function(){jQuery('#newsletterPopup').fadeOut();});}});
