var pagetitle = document.title; //INSERT CUSTOM PAGE NAME IN QUOTES
var scriptlocation = "http://www.streamwaves.com/reporting/track.asp";

var pagedata = 'mtpt=' + escape(pagetitle) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mtz=' + Math.random() 
document.write ('<img height=1 width=1 ');
document.write ('src="' + scriptlocation + '?' + pagedata + '" style="display:none;">');

                            
var dc=document; var date_ob=new Date();
dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
if(dc.cookie.indexOf('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){
dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
dc.write('/w/pop.cgi?sid=22093&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
date_ob.setTime(date_ob.getTime()+43200000);
dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();}



var d=new Date();var r=(d.getTime()%8673806982)+Math.random();var u=escape(window.location.href);
var host=' language="Javascript" src="http://as.casalemedia.com/s?s=';
document.write('<scr'+'ipt'+host+'61794&u='+u+'&f=1&id='+r+'"></scr'+'ipt>');


function bload()
{


for(i=0; i<document.links.length; i++)
{
	
	if(document.links[i].href == "javascript:ShowPopup('https://dalweb01.streamwaves.com/popups/activate_frame.asp?type=free&loc=2&affID=static&aff=static');")
	{
		document.links[i].href = "http://order.streamwaves.com/rhapsody/order.aspx";
	}
}

for(i=0; i<document.links.length; i++)
{
	
	if(document.links[i].href == "https://dalweb01.streamwaves.com/activate2.asp?type=free&loc=1&affID=static&aff=static")
	{
		document.links[i].href = "http://www.streamwaves.com/";
	}
}


for(i=0; i<document.links.length; i++)
{
	
	if(document.links[i].innerText == "I’d like to take the FREE 3 day trial!" ||
	   document.links[i].innerHTML == "I’d like to take the FREE 3 day trial!")
	{
		document.links[i].innerHTML = "I’d like to take the FREE 14 day trial!";
		document.links[i].innerText = "I’d like to take the FREE 14 day trial!";
		document.links[i].href = "http://order.streamwaves.com/rhapsody/order.aspx";
	}
}

    var words={'300,000':'6,000,000', '3-day':'14 day'};
    
    var regs=[];
    for(arg in words){regs[regs.length]=new RegExp(arg,'g')}
    replaceText(regs, words);
}

window.onload = bload;

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Corneliu Lucian 'Kor' Rusu | corneliulucian[at]gmail[dot]com */


function replaceText(regs, words){
var tags=document.getElementsByTagName('body')[0].getElementsByTagName('*');
var i=0,t;
	while(t=tags[i++]){
		if(t.childNodes[0]){
			var j=0, c;
			while(c=t.childNodes[j++]){
				if(c.nodeType==3){
					var k=0;
					for(arg in words){
						c.nodeValue=c.nodeValue.replace(regs[k],words[arg]);
						k++;
					}
				}
			}
		}
	}
}

/*

(document.links[i].href == "") ||
	   (document.links[i].href == "javascript:ShowPopup('http://www.streamwaves.com/news/Universal060402.htm'); void(0)") ||
	   (document.links[i].href == "javascript:ShowPopup('http://www.streamwaves.com/news/sony.htm'); void(0)") ||
	   (document.links[i].href == "javascript:ShowPopup('http://www.streamwaves.com/news/EMIPressRelease.htm'); void(0)") ||
	   (document.links[i].href == "javascript:ShowPopup('http://www.streamwaves.com/news/HarryFox092601.htm'); void(0)") ||
	   (document.links[i].href == "javascript:ShowPopup('http://www.streamwaves.com/news/warner.htm'); void(0)") ||
	   (document.links[i].href == "javascript:ShowPopup('http://www.streamwaves.com/news/BMGStreamRelease.htm'); void(0):))
	{*/
