jQuery(function(){ var $body = jQuery('body'); var ie = (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) ? true:false; if(ie) { jQuery("#bg img").hide(); jQuery("#bg").css({"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"}); } if ($body.hasClass('home')){ jQuery("#bg img").attr("src", "https://www.billyheromans.com/images/weddingSetting/DSC6397edited-17060652817.jpg"); if(ie) jQuery("#bg").css({"filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://www.billyheromans.com/images/weddingSetting/DSC6397edited-17060652817.jpg', sizingMethod='scale');","-ms-filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://www.billyheromans.com/images/weddingSetting/DSC6397edited-17060652817.jpg', sizingMethod='scale')"}); } else if ($body.hasClass('single-post')){ jQuery("#bg img").attr("src", "https://www.billyheromans.com/images/weddingSetting/About-Our-Wedding-Flowers-120718122204.jpg"); if(ie) jQuery("#bg").css({"filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://www.billyheromans.com/images/weddingSetting/About-Our-Wedding-Flowers-120718122204.jpg', sizingMethod='scale');","-ms-filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://www.billyheromans.com/images/weddingSetting/About-Our-Wedding-Flowers-120718122204.jpg', sizingMethod='scale')"}); } else { jQuery("#bg img").attr("src", "https://www.billyheromans.com/images/weddingSetting/Contact-Wedding-Florist-120718122208.jpg"); if(ie) jQuery("#bg").css({"filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://www.billyheromans.com/images/weddingSetting/Contact-Wedding-Florist-120718122208.jpg', sizingMethod='scale');","-ms-filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://www.billyheromans.com/images/weddingSetting/Contact-Wedding-Florist-120718122208.jpg', sizingMethod='scale')"}); } });