if (window.tf_artist) {
	artist_ = tf_artist;
} else {
	tf_artist = "";
}

if (window.tf_songtitle) {
	song_ = tf_songtitle;
} else {
	tf_songtitle = "";
}

creatives = new Array();

////////////

creatives[creatives.length] = new Array();
creatives[creatives.length - 1]['HTML'] = '<a href="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOUGrotT04&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" style="color: red; font-size: 14; font-family: Arial; 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 "' + song_ + '" to Cell Phone<img src="http://img.ultimate-guitar.com/_img/ring_right.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>';
creatives[creatives.length - 1]['Weight'] = 100;

creatives[creatives.length] = new Array();
creatives[creatives.length - 1]['HTML'] = '<a href="http://ultimate-guitar.com/xtra/click_contest.php?ug_from=tabs&url=http%3A%2F%2Fwww.guitartricks.com%2Fap%2Fgt.php%3Fid%3D318%26url%3D4" style="color: red; font-size: 14; font-family: Arial; text-decoration: underline; font-weight: bold;" rel="nofollow" target="_blank">Play guitar like ' + artist_ + ' with video guitar lessons!</a>';
creatives[creatives.length - 1]['Weight'] = 0;

////////////

var arr_choices = new Array();
for (i = 0; i < creatives.length; i++) {
	ind = arr_choices.length;
	for (x = ind; x < ind + creatives[i]['Weight']; x++)
		arr_choices[arr_choices.length] = i;
}
var adrnd = Math.floor(Math.random() * arr_choices.length);
var ad_html = creatives[arr_choices[adrnd]]['HTML'];

document.write(ad_html);