var GT_url = document.location.toString(); // get URL

cmnunt_subsilo  = '';   //reset vars
cmnunt_tier     = '';
cmnunt_zone    	= '';
cmnunt_kw       = '';
cmnunt_exclude	= '';

//var GT_tag = $("a").attr("href");
//GT_tag = $('span.tag-element').html();

//alert (GT_tag);
var myString = document.location.toString(); // get URL
var pageTitle = document.title.replace("Get The Big Picture", "").replace("-", ",").replace("-", ",").replace("|", ",").replace("|", ",").replace(/ /g, ",").replace(",,", ",").replace(",,,", ",").replace(",,,", ",").replace(",,,", ",").replace(",,,", ",");
var pageTitle = pageTitle.toLowerCase();
var mySplitResult = myString.split("/");
var mySplitTags = pageTitle.split(" ");

     var ad_subsilo = '';
     var ad_zone = 'system';
     var ad_tier = 'to,t2,internal';
     var ad_keywords = '';

// DFP logic
if (GT_url == '/' || GT_url == 'http://www.getthebigpicture.net/' || GT_url == 'http://www.getthebigpicture.net' || GT_url == 'http://getthebigpicture.net/' || GT_url == 'http://getthebigpicture.net') {
     ad_tier = 'to,home';
     var ad_zone = 'home';
}
if (mySplitResult[5] == 'category') {
     var ad_tier = 'to,t2,subhome';
}
if (mySplitResult[4].match(/(19|20)\d\d/)) {
     var ad_exclude = 'ugc';
}
if (mySplitResult[4].match(/(19|20)\d\d/) || mySplitResult[3].match('galleries')) {
     var ad_keywords = mySplitTags + ',';
}

else if (mySplitResult[4] == 'category') {
     if (mySplitResult[5] == 'reviews'){
     var ad_zone = 'reviews';
}
else if (mySplitResult[5] == 'trailers'){
     var ad_zone = 'trailers';
}
else if (mySplitResult[5] == 'news'){
     var ad_zone = 'news';
}
else if (mySplitResult[5] == 'movie'){
     var ad_zone = 'movie';
}
else if (mySplitResult[5] == 'dvd'){
     var ad_zone = 'dvd';
}
else if (mySplitResult[5] == 'box-office'){
     var ad_zone = 'boxoffice';
}
else if (mySplitResult[5] == 'posters'){
     var ad_zone = 'posters';
}
}
if (mySplitResult[3].match('gallery')) {
     var ad_subsilo = 'sty';
     var ad_zone  = 'galleries';
}
if (mySplitResult[2].match('monthly-archive') && mySplitResult[3].match('month')) {
     var ad_zone  = 'archive';
}

