tf_artist = rm_artist;
tf_songtitle = rm_songtitle;

ad_text = tf_songtitle;
url = "http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=";

creatives = new Array();

/*
 *  Add one of these to add a creative.
 *  Make sure that you don't have line breaks in these, and if you need an apostrophe ('), put a backslash (\) before it,
 *  like (\').  So just copy an existing three lines to make a new creative
 */

creatives[creatives.length] = new Array();
creatives[creatives.length - 1]['HTML'] = '<a href="' + url + 'SLLYrosT01&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" rel="nofollow" style="color: red; font-size: 11pt; font-family: Arial; font-weight: bold; text-decoration: none;" target="_blank"><img src="http://www.songlyrics.com/imagesad/left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" /><span style="text-decoration: underline;">Send "' + ad_text + '" Ringtone to Cell Phone</span><img src="http://www.songlyrics.com/imagesad/right.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>';
creatives[creatives.length - 1]['Weight'] = 0;

creatives[creatives.length] = new Array();
creatives[creatives.length - 1]['HTML'] = '<a href="' + url + 'SLLYrosT02&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" rel="nofollow" style="color: red; font-size: 12pt; font-family: Arial; font-weight: bold; text-decoration: none;" target="_blank"><img src="http://www.songlyrics.com/imagesad/left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" /><span style="text-decoration: underline;">Send "' + ad_text + '" Ringtone to Cell</span><img src="http://www.songlyrics.com/imagesad/right.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>';
creatives[creatives.length - 1]['Weight'] = 0;

creatives[creatives.length] = new Array();
creatives[creatives.length - 1]['HTML'] = '<a href="' + url + 'SLLYrosT03&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" rel="nofollow" style="color: red; font-size: 12pt; font-family: Arial; font-weight: bold; text-decoration: none;" target="_blank"><img src="http://www.songlyrics.com/imagesad/left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" /><span style="text-decoration: underline;">Send "' + ad_text + '" Ringtone to your Cell</span><img src="http://www.songlyrics.com/imagesad/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="' + url + 'SLLYrosT04&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" rel="nofollow" style="color: red; font-size: 12pt; font-family: Arial; font-weight: bold; text-decoration: none;" target="_blank"><img src="http://www.songlyrics.com/imagesad/left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" /><span style="text-decoration: underline;">Send "' + ad_text + '" Ringtone to your Cell Phone</span><img src="http://www.songlyrics.com/imagesad/right.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>';
creatives[creatives.length - 1]['Weight'] = 0;


creatives[creatives.length] = new Array();
creatives[creatives.length - 1]['HTML'] = '<a href="' + url + 'SLLYrosT05&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" rel="nofollow" style="color: red; font-size: 12pt; font-family: Arial; font-weight: bold; text-decoration: none;" target="_blank"><img src="http://www.songlyrics.com/imagesad/left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" /><span style="text-decoration: underline;">Send "' + ad_text + '" Ringtone to your Mobile</span><img src="http://www.songlyrics.com/imagesad/right.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a>';
creatives[creatives.length - 1]['Weight'] = 0;



/*
 *  Done editing
 */

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);