tf_songtitle = rm_songtitle;
tf_artist = rm_artist;

ad_text = tf_songtitle;

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="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT01&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://www.lyricsmode.com/i/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "' + ad_text + '" Ringtone to Cell Phone<img src="http://www.lyricsmode.com/i/ring_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="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT02&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://www.lyricsmode.com/i/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "' + ad_text + '" Ringtone to Cell<img src="http://www.lyricsmode.com/i/ring_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="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT03&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://www.lyricsmode.com/i/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "' + ad_text + '" Ringtone to your Cell<img src="http://www.lyricsmode.com/i/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://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT07&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" style="color: red; font-size: 14; font-family: Arial; font-weight: bold; text-decoration: none;" rel="nofollow" target="_blank"><img src="http://www.lyricsmode.com/i/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "' + ad_text + '" Ringtone to your Cell<img src="http://www.lyricsmode.com/i/ring_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="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT04&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://www.lyricsmode.com/i/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "' + ad_text + '" Ringtone to your Cell<img src="http://www.lyricsmode.com/i/ring_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="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT06&artist=' + encodeURIComponent(tf_artist) + '&song=' + encodeURIComponent(tf_songtitle) + '" style="font-size: 14px; font-family: Arial; color: #f00; font-weight: bold; text-decoration: none;" rel="nofollow" target="_blank"><img src="http://www2.ringtonematcher.com/images/cellphone.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "' + ad_text + '" Ringtone to your Cell</a> <a href="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT06" style="color: #00f; font-size: 14px; font-family: Arial;" rel="nofollow" target="_blank">Click Here to Begin<img src="http://www2.ringtonematcher.com/images/cellphone.gif" border="0" style="margin-left: 5px; vertical-align: bottom;" /></a></span>';
creatives[creatives.length - 1]['Weight'] = 0;

creatives[creatives.length] = new Array();
creatives[creatives.length - 1]['HTML'] = '<a href="http://www.ringtonematcher.com/co/ringtonematcher/02/noc.asp?sid=NOMOrosT05&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://www.lyricsmode.com/i/ring_left.gif" border="0" style="margin-right: 5px; vertical-align: bottom;" />Send "' + ad_text + '" Ringtone to your Mobile<img src="http://www.lyricsmode.com/i/ring_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);