function Querystring(qs) { // optionally pass a querystring to parse
    this.params = {};
    if (qs == null) qs = location.search.substring(1, location.search.length);
    if (qs.length == 0) return;
    qs = qs.replace(/\+/g, ' ');
    var args = qs.split('&');
    for (var i = 0; i < args.length; i++) {
        var pair = args[i].split('=');
        var name = decodeURIComponent(pair[0]);
        var value = (pair.length==2)
            ? decodeURIComponent(pair[1])
            : name;
        this.params[name] = value;
    }
}
Querystring.prototype.get = function(key, default_) {
    var value = this.params[key];
    return (value != null) ? value : default_;
}
Querystring.prototype.contains = function(key) {
    var value = this.params[key];
    return (value != null);
}
function getCatID()
{
    var qs = new Querystring()
    var v1 = qs.get("CategoryID")
    return(v1);
}

function getMyTags(catID)
{
// catID : sitepage, name, prop1, prop2, prop3, prop4, prop5
var myTags = {
'38479':['www.stltoday.com/multimedia','our best','news','multimedia','mycapture_publisher','photos','our best'],
'38578':['www.stltoday.com/news','news&business','news','news','mycapture_publisher','photos','news&business'],
'38932':['www.stltoday.com/news/election','on the campaign trail','news','news','mycapture_publisher','politics','on the campaign trail'],
'38674':['www.stltoday.com/news','at a glance','news','news','mycapture_publisher','photos','at a glance'],
'40151':['www.stltoday.com/weather','flooding','news','news','mycapture_publisher','weather','flooding'],
'38576':['www.stltoday.com/sports','sports','news','sports','mycapture_publisher','photos','sports'],
'38675':['www.stltoday.com/sports','score','news','sports','mycapture_publisher','photos','score'],
'38580':['www.stltoday.com/sports/cards','cardinals','news','sports','mycapture_publisher','cardinals','cardinals'],
'30322':['www.stltoday.com/sports/cards','cardinal greats','news','sports','mycapture_publisher','cardinals',' cardinal greats'],
'38579':['www.stltoday.com/sports/rams','rams','news','sports','mycapture_publisher','rams','rams'],
'38581':['www.stltoday.com/sports/blues','blues','news','sports','mycapture_publisher','blues','blues'],
'38802':['www.stltoday.com/sports','colleges','news','sports','mycapture_publisher','college','colleges'],
'38803':['www.stltoday.com/sports/mizzou','missouri u','news','sports','mycapture_publisher','mizzou','missouri u'],
'38805':['www.stltoday.com/sports/slu','st. louis u','news','sports','mycapture_publisher','slu','st. louis u'],
'38804':['www.stltoday.com/sports/illini','u of ill','news','sports','mycapture_publisher','illini','u of ill'],
'38939':['www.stltoday.com/sports','southern ill u','news','sports','mycapture_publisher','college','southern ill u'],
'22009':['www.stltoday.com/sports/preps','high school sports','news','sports','mycapture_publisher','preps','high school sports'],
'38577':['www.stltoday.com/ent','features & entertainment','news','entertainment','mycapture_publisher','people_in_the_news','features & entertainment'],
'38676':['www.stltoday.com/ent','celebrity snark','news','entertainment','mycapture_publisher','people_in_the_news','celebrity snark'],
'38925':['www.stltoday.com/ent','iParty','news','entertainment','mycapture_publisher','people_in_the_news','iParty'],
'25906':['www.stltoday.com/news/editorial','cartoons','news','news','mycapture_publisher','editorial','cartoons'],
'19220':['www.stltoday.com/news/editorial','weatherbird','news','news','mycapture_publisher','editorial','weatherbird'],
'19221':['www.stltoday.com/news/editorial','rj matson','news','news','mycapture_publisher','editorial','rj matson'],
'38801':['www.stltoday.com/news/editorial','mound city','news','news','mycapture_publisher','editorial','mound city'],
'39121':['www.stltoday.com/news/editorial','punchline','news','news','mycapture_publisher','editorial','punchline'],
'38575':['www.stltoday.com/multimedia','photographer portfolios','news','multimedia','mycapture_publisher','photos','photographer portfolios'],
'19156':['www.stltoday.com/multimedia','buy newspaper photos','news','multimedia','mycapture_publisher','photots','buy newspaper photos'],
'23105':['www.stltoday.com/multimedia','buy historic photos/pages','news','multimedia','mycapture_publisher','photos','buy historic photos/pages'],
'22264':['www.stltoday.com/multimedia','2006 world series','news','multimedia','mycapture_publisher','photos','2006 world series'],
'21291':['www.stltoday.com/multimedia','busch stadium','news','multimedia','mycapture_publisher','photos','busch stadium'],
'19531':['www.stltoday.com/multimedia','baseball','news','multimedia','mycapture_publisher','photos','baseball'],
'19557':['www.stltoday.com/multimedia','special orders','news','multimedia','mycapture_publisher','photos','special orders'],
'19406':['www.stltoday.com/multimedia','photo collections','news','multimedia','mycapture_publisher','photos','photo collections'],
'21290':['www.stltoday.com/multimedia','special collections','news','multimedia','mycapture_publisher','photos','special collections'],
'34260':['www.stltoday.com/lifestyle/travel','2007 travel contest','news','life_&_style','mycapture_community','travel','2007 travel contest'],
'22820':['www.stltoday.com/lifestyle','holidays','news','life_&_style','mycapture_community','photos','holidays'],
'21342':['www.stltoday.com/sports','sports','news','sports','mycapture_community','photos','sports'],
'21355':['www.stltoday.com/weather','weather','news','news','mycapture_community','weather','weather'],
'35566':['www.stltoday.com/ent','entertainment','news','entertainment','mycapture_community','photos','entertainment'],
'32996':['www.stltoday.com/ent','menu memories','news','entertainment','mycapture_community','photos','menu memories'],
'38467':['www.stltoday.com/ent','iParty','news','entertainment','mycapture_community','photos','iParty'],
'21359':['www.stltoday.com/lifestyle','animals','news','life_&_style','mycapture_community','photos','animals'],
'35565':['www.stltoday.com/lifestyle','life & style','news','life_&_style','mycapture_community','photos','life & style'],
'21375':['www.stltoday.com/lifestyle','architecture','news','life_&_style','mycapture_community','photos','architecture'],
'21531':['www.stltoday.com/lifestyle','just for fun','news','life_&_style','mycapture_community','photos','just for fun'],
'21360':['www.stltoday.com/lifestyle','nature','news','life_&_style','mycapture_community','photos','nature'],
'22323':['www.stltoday.com/lifestyle','hunting & fishing','news','life_&_style','mycapture_community','photos','hunting & fishing'],
'35564':['www.stltoday.com/lifestyle','news','news','news','mycapture_community','photos','news'],
'21373':['www.stltoday.com/lifestyle/travel','travel','news','life_&_style','mycapture_community','travel','travel'],
'36088':['www.stltoday.com/news/religion','religion','news','life_&_style','mycapture_community','faith','religion'],
'unknown':['www.stltoday.com/multimedia','unknown','news','multimedia','mycapture','photos','unknown']
};
    if(typeof myTags[catID] =="undefined"){data=myTags['unknown'];}else{data = myTags[catID];}
    myCap_sitepage = data[0];
    myCap_name = data[1];
    myCap_prop1 = data[2];
    myCap_prop2 = data[3];
    myCap_prop3 = data[4];
    myCap_prop4 = data[5];
    myCap_prop5 = data[6];
    return;
}
catID = getCatID();
getMyTags(catID);
