ug_ad_html=tf_song!=""?'<a href="http://www.ultimate-guitar.com/xtra/click_contest.php?ug_from=tabs&url=http://ad.jamster.com/landingpages/campaigns/int_o_flow/ultimateguitar/?artist='+str_replace("%20","+",encodeURIComponent(tf_artist.toLowerCase()))+"&title="+str_replace("%20","+",encodeURIComponent(tf_song.toLowerCase()))+'&campaign=ug" style="color: red; font-size: 14px; font-family: Arial; text-decoration: underline; font-weight: bold;" rel="nofollow" target="_blank"><img src="http://img.ultimate-guitar.com/_img/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "'+
tf_song+'" Ringtone to Cell Phone<img src="http://img.ultimate-guitar.com/_img/ring_right.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>':'<a href="http://www.ultimate-guitar.com/xtra/click_contest.php?ug_from=tabs&url=http://ad.jamster.com/landingpages/campaigns/int_o_flow/ultimateguitar/?campaign=ug" style="color: red; font-size: 14px; font-family: Arial; text-decoration: underline; font-weight: bold;" rel="nofollow" target="_blank"><img src="http://img.ultimate-guitar.com/_img/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send Ringtones to your Cell Phone<img src="http://img.ultimate-guitar.com/_img/ring_right.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>';
jam_ad_html='<a href="http://www.ultimate-guitar.com/xtra/click_contest.php?ug_from=tabs&url=http://www.jamplay.com/?s=16&c=213" style="color: red; font-size: 14px; font-family: Arial; text-decoration: underline; font-weight: bold;" rel="nofollow" target="_blank"><img src="http://tonefuse.s3.amazonaws.com/clientjs/images/ug.png" border="0" style="margin-right: 5px; vertical-align: bottom;" />Learn to play "'+tf_song+'" with online video lessons<img src="http://tonefuse.s3.amazonaws.com/clientjs/images/ug.png" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>';
gmatch_ad_html='<a href="http://www.guitarmatcher.com/co/guitarmatcher/main.php?sid=NOUGros&artist='+str_replace("%20","+",encodeURIComponent(tf_artist.toLowerCase()))+"&song="+str_replace("%20","+",encodeURIComponent(tf_song.toLowerCase()))+'" style="color: red; font-size: 14px; font-family: Arial; text-decoration: underline; font-weight: bold;" rel="nofollow" target="_blank">Learn to play "'+tf_song+'" with online video lessons</a>';
infin_ad_html='<a href="http://www.ultimate-guitar.com/xtra/click_contest.php?ug_from=tabs&url=http://www.infiniteguitar.com/ultimate-guitar.php" style="color: red; font-size: 14px; font-family: Arial; text-decoration: underline; font-weight: bold;" rel="nofollow" target="_blank">Learn songs like "'+tf_song+'" with online video lessons</a>';creatives=[];creatives[creatives.length]=[];creatives[creatives.length-1].HTML=ug_ad_html;creatives[creatives.length-1].Weight=36;
creatives[creatives.length]=[];creatives[creatives.length-1].HTML=jam_ad_html;creatives[creatives.length-1].Weight=18;creatives[creatives.length]=[];creatives[creatives.length-1].HTML=gmatch_ad_html;creatives[creatives.length-1].Weight=36;creatives[creatives.length]=[];creatives[creatives.length-1].HTML=infin_ad_html;creatives[creatives.length-1].Weight=10;var arr_choices=[];for(i=0;i<creatives.length;i++)for(x=ind=arr_choices.length;x<ind+creatives[i].Weight;x++)arr_choices[arr_choices.length]=i;
var adrnd=Math.floor(Math.random()*arr_choices.length),ad_html=creatives[arr_choices[adrnd]].HTML;document.write(ad_html);function str_replace(c,d,a){for(var b;(b=a.replace(c,d))!=a;)a=b;return a};
