omnvar_regex = /[^\w\s]+/g;
// get filename
var title = document.getElementsByTagName('title')[0].innerHTML;

if (title == '') {
    title = new String(window.location.pathname);
    var cleanTitle = title.substring(title.lastIndexOf("/") + 1, title.lastIndexOf("."));
    title = cleanTitle;
}
//filename = new String(window.location.pathname);
//cleanFilename = filename.substring(filename.lastIndexOf("/") + 1, filename.lastIndexOf("."));
/* You may give each page an identifying name, server, and channel on
 the next lines. */
s.pageName = "amc:filmcritic:" + title;
s.server = "www"
s.channel = "filmcritic"
s.pageType = ""
s.prop1 = ""
s.prop2 = ""
s.prop3 = ""
s.prop4 = ""
s.prop5 = ""
s.hier1 = "amc,filmcritic," + title;
/* E-commerce Variables */
s.campaign = ""
s.state = ""
s.zip = ""
s.events = ""
s.products = ""
s.purchaseID = ""
s.eVar1 = ""
s.eVar2 = ""
s.eVar3 = ""
s.eVar4 = ""
s.eVar5 = ""
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code = s.t();
if (s_code) document.write(s_code);


/*
 *  AMC RSS/ATOM feed parser
 *  AMC_RSS 
 *  @feedURL = target rss/atom feed URL ie: http://rss.news.yahoo.com/rss/topstories
 *  @entryLimit = number of rss entries you'd like to display on your page
 *  @targetElement = the node from the DOM which you'd like to append the entries to
 *  @cssClassName = the css class for the rss entries container
 *  @optionalCSS = will inject a new <link> node into the DOM when provided with a URL ie: http://static.amctv.com/amc-widgets/amc-feed-reader/css/film-critic.css
 */

var AMC_RSS = function(feedURL, entryLimit, targetElement, cssClassName, optionalCSS){
    this.feed = feedURL;
    this.limit = entryLimit;
    this.target = targetElement;
    this.cssClass = cssClassName;
    this.cssLink = optionalCSS;
    var header = document.getElementsByTagName('head')[0];
    if (typeof this.cssLink != 'undefined' && typeof this.cssLink != undefined) {
        var newLink = document.createElement('link');
        newLink.rel = 'stylesheet';
        newLink.type = 'text/css';
        newLink.href = this.cssLink;
        header.appendChild(newLink);
    }
    var url = 'feed=' + this.feed + '&limit=' + this.limit + '&target=' + this.target + '&class=' + this.cssClass;
    var newScript = document.createElement('script');
    newScript.type = 'text/javascript';
    newScript.src = 'http://blogs.amctv.com/rss-reader.php?' + url;
    header.appendChild(newScript);
}




// Add rss widget to sidebar
if (window.location.href == 'http://www.filmcritic.com/') {
	var filmCriticRSS = new AMC_RSS('http://blogs.amctv.com/amctv-globall-rss.xml', '4', 'features', 'film-critic', 'http://static.amctv.com/amc-widgets/amc-feed-reader/css/film-critic.css');
}















