    // get URL
    var url  = this.location + "";
    var vm_ipid = 19987;

    // check against "known" channels 
    
   if ( (url.indexOf('movies.msn.com/movies/movie/') != -1) || (url.indexOf('movies.msn.com/movies/movie-synopsis/') != -1) ) {
        vm_ipid=22101;
    }    else if (url.indexOf('movies.msn.com/new-on-dvd/movies') != -1) {
        vm_ipid=22102;
    }    else if (url.indexOf('tv.msn.com/tv/tonights-picks') != -1) {
        vm_ipid=22103;
    }    else if (url.indexOf('tv.msn.com/tv/series') != -1) {
        vm_ipid=22104;
    }    else if ( (url.indexOf('entertainment.msn.com') != -1) || (url.indexOf('movies.msn.com') != -1) || (url.indexOf('tv.msn.com') != -1) ) {
        vm_ipid=19983;
    }    else if (url.indexOf('music.msn.com') != -1) {
        vm_ipid=21795;	
    }    
    
    // drop the script, add the refurl on the end to stop tracking problems
    // with the referer on some msn pages navigated to through flash menu's
    document.write(
        '<SCR'+'IPT language="javascript" type="text/javascript" ' +
        'src="http://entertainment.msn.us.intellitxt.com/intellitxt/front.asp?ipid=' + vm_ipid + '&refurl=' + encodeURIComponent(url) +
        '"' +
        '>' +
        '</SCR'+'IPT>'
    );
