text: var origHtmlMargin=parseFloat($('html').css('margin-top'));$(function(){var iPad=navigator.userAgent.match(/iPad/i)!=null;var iPhone=navigator.userAgent.match(/iPhone/i)!=null;var safari=navigator.userAgent.match(/Safari/i)!=null;var appBannerID=$('meta[name=apple-itunes-app]').attr("content");if(navigator.userAgent.match('CriOS')&&safari){safari=false};if(appBannerID!=null){appBannerID=/app-id=([0-9]+)/.exec(appBannerID)[1];if((iPad||iPhone)&&(!safari)){$.getJSON('http://itunes.apple.com/lookup?id='+appBannerID+'&callback=?',function(json){if(json!=null){var artistName,artistViewUrl,artworkUrl60,averageUserRating,formattedPrice,trackCensoredName,averageUserRatingForCurrentVersion;artistName=json.results[0].artistName;artistViewUrl=json.results[0].artistViewUrl;artworkUrl60=json.results[0].artworkUrl60;averageUserRating=json.results[0].averageUserRating;formattedPrice=json.results[0].formattedPrice;averageUserRatingForCurrentVersion=json.results[0].averageUserRatingForCurrentVersion;trackCensoredName=json.results[0].trackCensoredName;if(averageUserRating==null){averageUserRating=0;}if(averageUserRatingForCurrentVersion==null){averageUserRatingForCurrentVersion=0;}var banner='<div class="smart-banner">';banner+='<a href="#" id="swb-close">X</a>';banner+='<img src="'+artworkUrl60+'" alt="" class="smart-glossy-icon" />';banner+='<div id="swb-info"><strong>'+trackCensoredName+'</strong>';banner+='<span>'+artistName+'</span>';banner+='<span class="rating-static rating-'+averageUserRating.toString().replace(".","")+'"></span>';banner+='<span>'+formattedPrice+'</span></div>';banner+='<a href="'+artistViewUrl+'" id="swb-save">VIEW</a></div>';$('body').append(banner);$('#swb-close').click(function(e){e.preventDefault();$('.smart-banner').stop().animate({top:'-82px'},300);$('html').animate({marginTop:origHtmlMargin},300);});$('.smart-banner').stop().animate({top:0},300);$('html').animate({marginTop:origHtmlMargin+78},300);}});}}});