jQuery(document).ready(function(){ var inventAmount = 105; var inventDate = 'DISABLED'; if('' == '' && inventAmount > 0) { if(jQuery('#notReorderable').length) jQuery('body').removeAttr('style'); jQuery('[id="inventNotice"]').html('In Stock'); jQuery('[id="inventDetails"]').html(''+inventAmount+' Available  ·  Need More? Contact Us'); jQuery('[id="inventAmount"], strong form[action*="http://order.store.yahoo.net/bevfabriccrafts/cgi-bin/wg-order?bevfabriccrafts"] input[name="vwquantity"], strong form[action*="http://order.store.yahoo.net/bevfabriccrafts/cgi-bin/wg-order?bevfabriccrafts"] span[id="addtocart"], .addthisButtons').css({'opacity':'0','visibility':'visible'}).animate({opacity: 1}); } else if('' == '' && inventAmount == 0) { if(jQuery('#notReorderable').length) else { jQuery('body').removeAttr('style'); jQuery('[id="inventNotice"]').css('color','red').html('Out Of Stock'); if(inventDate.indexOf('There are') == -1 && inventDate.indexOf('DISABLED') == -1) { jQuery('[id="inventDetails"]').html('Expected Back On '+inventDate); } jQuery('[id="inventAmount"]').css({'opacity':'0','visibility':'visible'}).animate({opacity: 1}); } } });