function js_template(templates) {
    

    
    // config
    this.qname = "publication"
    this.default_id = "DEFAULT"
    
    

    // initializes the object
    this._init = function () {
        this.data = templates['cantonrep']
        template_id =  (this._get_q(this.qname))
        if (template_id && templates[template_id]){
            this.data = templates[template_id]
            this._cookie_set("publication",template_id,"30",this._get_domain())
        }
        else if (templates[this._cookie_get("publication")]){
            this.data = templates[this._cookie_get("publication")]
        }
        else {
            this.data = templates[this.default_id]
        }
    }
    
    
    
    // public functions
    this.render_title = function (value, id) {
        if(!this.data[value]) return;
        var output = '<h2 id="'+id+'">'+this.data[value]+'</h2>'
        this._render(output)
    }
    
    this.render_nav = function (value, id) {
        if(!this.data[value].length) return;
        var output = ''
        if (id) output = '<ul id="'+id+'">';
        else output = "<ul>";
        for(var i in this.data[value]){
            output += '<li><a href="'+this.data[value][i]["href"]+'">'+this.data[value][i]['name']+'</a></li>'
        }
        output += "</ul>"
        this._render(output)
    }
    
    this.init_ads = function () {
        if (this.data["ad_server"]["type"] == "gam"){
            // init gam
            window.GFP_site_id = ghs_template.data["ad_server"]["site_id"]
            window.GFP_section_id = ghs_template.data["ad_server"]["section_id"]
            output = '%3Cscript type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js"%3E%3C/script%3E'+
                '%3Cscript type="text/javascript"%3E'+
                'GS_googleAddAdSenseService("ca-pub-3269881829519502");'+
    			'GS_googleEnableAllServices();'+
                '%3C/script%3E'+
                '%3Cscript type="text/javascript" src="http://global.static.ghm.zope.net/resources/global/ga.js"%3E%3C/script%3E'+
                '%3Cscript type="text/javascript"%3E'+
    			'GA_googleAddSlot("ca-pub-3269881829519502", GFP_site_id+"_"+GFP_section_id+"_728x90");'+
    			'GA_googleAddSlot("ca-pub-3269881829519502", GFP_site_id+"_"+GFP_section_id+"_728x90-2");'+
    			'GA_googleAddSlot("ca-pub-3269881829519502", GFP_site_id+"_"+GFP_section_id+"_160x600");'+
                '%3C/script%3E'+
                '%3Cscript type="text/javascript"%3E'+
    			'GA_googleFetchAds();'+
                '%3C/script%3E'
            this._render(unescape(output))
        }
        if (this.data["ad_server"]["type"] == "oas"){
            window.OAS_url = this.data["ad_server"]["oas_url"]
            window.OAS_sitepage = this.data["ad_server"]["oas_sitepage"];
            positions = []
            for (var key in ghs_template.data["ad_server"]["positions"]){
               positions.push(ghs_template.data["ad_server"]["positions"][key])
            }
            window.OAS_listpos = positions.join(",");
            window.OAS_query = "";
            output = '%3Cscript type="text/javascript"%3E'+
                'OAS_version = 10;'+
                'OAS_rn = \'001234567890\'; OAS_rns = \'1234567890\';'+
                'OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring(2, 11);'+
                'function OAS_NORMAL (pos) {'+
                'document.write(\'%3CA HREF="\' + OAS_url + \'click_nx.ads/\' + OAS_sitepage + \'/1\' + OAS_rns + \'@\' + OAS_listpos + \'!\' + pos + \'?\' + OAS_query + \'" TARGET=\' + OAS_target + \'%3E\');'+
                'document.write(\'%3CIMG SRC="\' + OAS_url + \'adstream_nx.ads/\' + OAS_sitepage + \'/1\' + OAS_rns + \'@\' + OAS_listpos + \'!\' + pos + \'?\' + OAS_query + \'" Border=0%3E%3C/A%3E\');'+
                '}'+
                '%3C/script%3E'+
                '%3Cscript type="text/javascript"%3E'+
                'OAS_version = 11;'+
                'if (navigator.userAgent.indexOf(\'Mozilla/3\') != -1 || navigator.userAgent.indexOf(\'Mozilla/4.0 WebTV\') != -1)'+
                'OAS_version = 10;'+
                'if (OAS_version %3E= 11)'+
                'document.write(\'%3CSCR\' + \'IPT LANGUAGE=JavaScript1.1 SRC="\' + OAS_url + \'adstream_mjx.ads/\' + OAS_sitepage + \'/1\' + OAS_rns + \'@\' + OAS_listpos + \'?\' + OAS_query + \'"%3E%3C\/SCR\' + \'IPT%3E\');'+
                '%3C/script%3E'+
                '%3Cscript type="text/javascript"%3E'+
                'document.write(\'\');'+
                'function OAS_AD(pos) {'+
                '    if (OAS_version %3E= 11){OAS_RICH(pos)}'+
                '    else {OAS_NORMAL(pos);}'+
                '}'+
                '%3C/script%3E'
            this._render(unescape(output))
        }
        if (this.data["ad_server"]["type"] == "apt"){
            window.yld_mgr = {};
            window.yld_mgr.slots = {};
            window.yld_mgr.container_type='js';
            window.yld_mgr.request_type='ac';
            window.yld_mgr.pub_id=this.data["ad_server"]["apt_pub_id"]; // Pub ID
            window.yld_mgr.site_name=this.data["ad_server"]["apt_site_name"]; // Site Name
            window.yld_mgr.clk_dest='_blank';
            window.yld_mgr.cstm_sctn_list=['Classified Front'];
            window.yld_mgr.content_topic_id_list=['20243001'];

            window.yld_mgr.slots.s728x90_1 = {};
            window.yld_mgr.slots.s728x90_1.ad_size_list=["728x90"];
            window.yld_mgr.slots.s728x90_1.ad_delivery_mode='ipatf';
            window.yld_mgr.slots.s728x90_1.content_type_list=['fn_news'];
            window.yld_mgr.slots.s728x90_1.cstm_content_cat_list=[''];

            window.yld_mgr.slots.s728x90_2 = {};
            window.yld_mgr.slots.s728x90_2.ad_size_list=["728x90"];
            window.yld_mgr.slots.s728x90_2.ad_delivery_mode='ipbtf';
            window.yld_mgr.slots.s728x90_2.content_type_list=['fn_news'];
            window.yld_mgr.slots.s728x90_2.cstm_content_cat_list=[''];

            window.yld_mgr.slots.s160x600_1 = {};
            window.yld_mgr.slots.s160x600_1.ad_size_list=["160x600"];
            window.yld_mgr.slots.s160x600_1.ad_delivery_mode='ipatf';
            window.yld_mgr.slots.s160x600_1.content_type_list=['fn_news'];
            window.yld_mgr.slots.s160x600_1.cstm_content_cat_list=[''];
            
            output = '%3Cscript type="text/javascript" src="http://e.yieldmanager.net/script.js"%3E%3C/script%3E';
            this._render(unescape(output))
            
            this.data["ad_server"]["positions"] = {
                "728x90":"s728x90_1",
                "728x90-2":"s728x90_2",
                "160x600":"s160x600_1",
            }
        }
    }
    
    this.render_ad = function (slot) {
        if (this.data["ad_server"]["type"] == "gam"){
    		this._render(unescape('%3Cscript type="text/javascript"%3E GA_googleFillSlot("global_global_'+slot+'"); %3C/script%3E'))
        }
        if (this.data["ad_server"]["type"] == "oas"){
    		this._render(unescape('%3Cscript type="text/javascript"%3E OAS_AD(\''+this.data["ad_server"]["positions"][slot]+'\'); %3C/script%3E'))
        }
        if (this.data["ad_server"]["type"] == "apt"){
    		this._render(unescape('%3Cscript type="text/javascript"%3E yld_mgr.place_ad_here(\''+this.data["ad_server"]["positions"][slot]+'\'); %3C/script%3E'))
        }
    }
    
    // internal functions
    this._render = function (s) {
        document.write(s)
    }
    this._get_q = function (v) {
		var q = window.location.search.substring(1);
		var vars = q.split("&");
		for (var i=0;i<vars.length;i++) {
			var p = vars[i].split("=");
			if (p[0] == v) return p[1];
			}
	}
    this._cookie_set = function (name,value,days,domain) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = ";  expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; domain="+domain+"; path=/"; }
    this._cookie_get = function (name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); }	return null; }
    this._cookie_delete = function (name) { this._cookie_set(name,"",-1); }
    this._get_domain = function() {
        return document.domain.match( /[^\.]+\.[^\.]+$/ );
    }

    this._init()
}


function js_template_set() {
    
}

var js_template_sets = {
    'DEFAULT' : {
        title: "",
        domain: "totallylocalhomes.com",
        analytics_id: "totallylocal",
        nav: [],
        ad_server: {
            type: "gam",
            site_id: "totallylocal",
            section_id: "class-re"
            }
    },
    'oh-canton' : {
        title: "The Canton Repository",
        domain: "cantonrep.com",
        analytics_id: "cantonrep",
        nav: [
            { name: "Home", href: "http://www.cantonrep.com"},
            { name: "News", href: "http://www.cantonrep.com/news"},
            { name: "Communities", href: "http://www.cantonrep.com/communities"},
            { name: "Sports", href: "http://www.cantonrep.com/sports"},
            { name: "Business", href: "http://www.cantonrep.com/business"},
            { name: "Opinion", href: "http://www.cantonrep.com/opinion"},
            { name: "A&amp;E", href: "http://www.cantonrep.com/entertainment"},
            { name: "Lifestyle", href: "http://www.cantonrep.com/lifestyle"},
            { name: "Obituaries", href: "http://www.legacy.com/cantonrep/Obituaries.asp"},
            { name: "Announcements", href: "http://www.cantonrep.com/announcements"},
            ],
        ad_server: {
            type: "apt",
            apt_pub_id: "23186973509",
            apt_site_name: "4566_01_cantonrep.com"
            }
    },
    'de-dover' : {
        title: "Dover Post",
        domain: "doverpost.com",
        analytics_id: "doverpost",
        nav: [
            { name: "Home", href: "http://www.doverpost.com/homepage"},
            { name: "News", href: "http://www.doverpost.com/news"},
            { name: "Sports", href: "http://www.doverpost.com/sports"},
            { name: "Lifestyle", href: "http://www.doverpost.com/lifestyle"},
            { name: "Entertainment", href: "http://www.doverpost.com/entertainment"},
            { name: "Opinions", href: "http://www.doverpost.com/opinions"},
            { name: "State News", href: "http://www.doverpost.com/state_news"},
            { name: "Homes", href: "http://www.doverpost.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "de-dover",
            section_id: "class-re"
            }
    },
    'de-delmarva' : {
        title: "Delamarva Express",
        domain: "delmarvaexpress.com",
        analytics_id: "delmarvaexpress",
        nav: [
            { name: "Home", href: "http://www.delmarvaexpress.com/homepage"},
            { name: "Homes", href: "http://www.delmarvaexpress.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "de-delmarva",
            section_id: "class-re"
            }
    },
    'de-sussex' : {
        title: "Sussex Countian",
        domain: "sussexcountian.com",
        analytics_id: "sussexcountian",
        nav: [
            { name: "Home", href: "http://www.sussexcountian.com/homepage"},
            { name: "News", href: "http://www.sussexcountian.com/news"},
            { name: "Sports", href: "http://www.sussexcountian.com/sports"},
            { name: "Lifestyle", href: "http://www.sussexcountian.com/lifestyle"},
            { name: "Entertainment", href: "http://www.sussexcountian.com/entertainment"},
            { name: "Opinions", href: "http://www.sussexcountian.com/opinions"},
            { name: "State News", href: "http://www.sussexcountian.com/state_news"},
            { name: "Homes", href: "http://www.sussexcountian.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "de-sussex",
            section_id: "class-re"
            }
    },
    'de-milford' : {
        title: "Milford Beacon",
        domain: "milfordbeacon.com",
        analytics_id: "milfordbeacon",
        nav: [
            { name: "Home", href: "http://www.milfordbeacon.com/homepage"},
            { name: "News", href: "http://www.milfordbeacon.com/news"},
            { name: "Sports", href: "http://www.milfordbeacon.com/sports"},
            { name: "Lifestyle", href: "http://www.milfordbeacon.com/lifestyle"},
            { name: "Entertainment", href: "http://www.milfordbeacon.com/entertainment"},
            { name: "Opinions", href: "http://www.milfordbeacon.com/opinions"},
            { name: "State News", href: "http://www.milfordbeacon.com/state_news"},
            { name: "Homes", href: "http://www.milfordbeacon.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "de-milford",
            section_id: "class-re"
            }
    },
    'de-smyrnaclayton' : {
        title: "Smyrna/Clayton Sun-Times",
        domain: "scsuntimes.com",
        analytics_id: "scsuntimes",
        nav: [
            { name: "Home", href: "http://www.scsuntimes.com/homepage"},
            { name: "News", href: "http://www.scsuntimes.com/news"},
            { name: "Sports", href: "http://www.scsuntimes.com/sports"},
            { name: "Lifestyle", href: "http://www.scsuntimes.com/lifestyle"},
            { name: "Entertainment", href: "http://www.scsuntimes.com/entertainment"},
            { name: "Opinions", href: "http://www.scsuntimes.com/opinions"},
            { name: "State News", href: "http://www.scsuntimes.com/state_news"},
            { name: "Homes", href: "http://www.scsuntimes.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "de-smyrnaclayton",
            section_id: "class-re"
            }
    },
    'de-middletown' : {
        title: "MiddleTown Transcript",
        domain: "middletowntranscript.com",
        analytics_id: "middletowntranscript",
        nav: [
            { name: "Home", href: "http://www.middletowntranscript.com/homepage"},
            { name: "News", href: "http://www.middletowntranscript.com/news"},
            { name: "Sports", href: "http://www.middletowntranscript.com/sports"},
            { name: "Lifestyle", href: "http://www.middletowntranscript.com/lifestyle"},
            { name: "Entertainment", href: "http://www.middletowntranscript.com/entertainment"},
            { name: "Opinions", href: "http://www.middletowntranscript.com/opinions"},
            { name: "State News", href: "http://www.middletowntranscript.com/state_news"},
            { name: "Homes", href: "http://www.middletowntranscript.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "de-middletown",
            section_id: "class-re"
            }
    },
    'de-communitypub' : {
        title: "Community Pub",
        domain: "communitypub.com",
        analytics_id: "communitypub",
        nav: [
            { name: "Home", href: "http://www.communitypub.com"},
            { name: "News", href: "http://www.communitypub.com/news"},
            { name: "Business", href: "http://www.communitypub.com/business"},
            { name: "Education", href: "http://www.communitypub.com/education"},
            { name: "Sports", href: "http://www.communitypub.com/sports"},
            { name: "A&amp;E", href: "http://www.communitypub.com/arts"},
            { name: "People", href: "http://www.communitypub.com/people"},
            { name: "OpEd", href: "http://www.communitypub.com/letters"},
            { name: "Classifieds", href: "http://communitypub.marketplace.totallylocal.com/"},
            { name: "Lifestyle 55", href: "http://www.communitypub.com/lifestyle_55"},
            { name: "Homes", href: "http://www.communitypub.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "de-communitypub",
            section_id: "class-re"
            }
    },
    'oh-massillon' : {
        title: "Massilon Independent",
        domain: "indeonline.com",
        analytics_id: "indeonline",
        nav: [
            { name: "Home", href: "http://www.indeonline.com"},
            { name: "News", href: "http://www.indeonline.com/news"},
            { name: "Sports", href: "http://www.indeonline.com/sports"},
            { name: "Business", href: "http://www.indeonline.com/business"},
            { name: "Lifestyles", href: "http://www.indeonline.com/lifestyles"},
            { name: "Announcements", href: "http://www.indeonline.com/announcements"},
            { name: "Opinion", href: "http://www.indeonline.com/opinion"},
            { name: "Obituaries", href: "http://www.legacy.com/indeonline/Obituaries.asp"},
            { name: "Multimedia", href: "http://www.indeonline.com/multimedia"},
            { name: "Homes", href: "http://www.indeonline.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "oh-massillon",
            section_id: "class-re"
            }
    },
    'oh-newphil' : {
        title: "Times Reporter",
        domain: "timesreporter.com",
        analytics_id: "timesreporter",
        nav: [
            { name: "Home", href: "http://www.timesreporter.com"},
            { name: "News", href: "http://www.timesreporter.com/news"},
            { name: "Sports", href: "http://www.timesreporter.com/sports"},
            { name: "Business", href: "http://www.timesreporter.com/business"},
            { name: "Entertainment", href: "http://www.timesreporter.com/entertainment"},
            { name: "Lifestyles", href: "http://www.timesreporter.com/lifestyles"},
            { name: "Announcements", href: "http://www.timesreporter.com/announcements"},
            { name: "Opinion", href: "http://www.timesreporter.com/opinion"},
            { name: "Obituaries", href: "http://www.legacy.com/timesreporter/Obituaries.asp"},
            { name: "Multimedia", href: "http://www.timesreporter.com/multimedia"},
            { name: "Homes", href: "http://www.timesreporter.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "oh-newphil",
            section_id: "class-re"
            }
    },
    'oh-green' : {
        title: "The Suburbanite",
        domain: "thesuburbanite.com",
        analytics_id: "thesuburbanite",
        nav: [
            { name: "Home", href: "http://www.thesuburbanite.com/homepage"},
            { name: "News", href: "http://www.thesuburbanite.com/news"},
            { name: "Sports", href: "http://www.thesuburbanite.com/sports"},
            { name: "Lifestyle", href: "http://www.thesuburbanite.com/lifestyle"},
            { name: "Entertainment", href: "http://www.thesuburbanite.com/entertainment"},
            { name: "Opinions", href: "http://www.thesuburbanite.com/opinions"},
            { name: "State News", href: "http://www.thesuburbanite.com/state_news"},
            { name: "Homes", href: "http://www.thesuburbanite.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "oh-green",
            section_id: "class-re"
            }
    },
    'leesvilledailyleader' : {
        title: "Leesville Daily Leader",
        domain: "leesvilledailyleader.com",
        analytics_id: "leesvilledailyleader",
        nav: [
            { name: "Home", href: "http://www.leesvilledailyleader.com/homepage"},
            { name: "News", href: "http://www.leesvilledailyleader.com/news"},
            { name: "Sports", href: "http://www.leesvilledailyleader.com/sports"},
            { name: "Lifestyle", href: "http://www.leesvilledailyleader.com/lifestyle"},
            { name: "Entertainment", href: "http://www.leesvilledailyleader.com/entertainment"},
            { name: "Opinions", href: "http://www.leesvilledailyleader.com/opinions"},
            { name: "State News", href: "http://www.leesvilledailyleader.com/state_news"},
            { name: "Homes", href: "http://www.leesvilledailyleader.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "leesvilledailyleader",
            section_id: "class-re"
            }
    },
    'sulphurdailynews' : {
        title: "Southwest Daily News",
        domain: "sulphurdailynews.com",
        analytics_id: "sulphurdailynews",
        nav: [
            { name: "Home", href: "http://www.sulphurdailynews.com/homepage"},
            { name: "News", href: "http://www.sulphurdailynews.com/news"},
            { name: "Sports", href: "http://www.sulphurdailynews.com/sports"},
            { name: "Lifestyle", href: "http://www.sulphurdailynews.com/lifestyle"},
            { name: "Entertainment", href: "http://www.sulphurdailynews.com/entertainment"},
            { name: "Opinions", href: "http://www.sulphurdailynews.com/opinions"},
            { name: "State News", href: "http://www.sulphurdailynews.com/state_news"},
            { name: "Homes", href: "http://www.sulphurdailynews.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "sulphurdailynews",
            section_id: "class-re"
            },
    },
    'la-gonzales' : {
        title: "Gonzales Weekly Citizen",
        domain: "weeklycitizen.com",
        analytics_id: "weeklycitizen",
        nav: [
            { name: "Home", href: "http://www.weeklycitizen.com/homepage"},
            { name: "News", href: "http://www.weeklycitizen.com/news"},
            { name: "Sports", href: "http://www.weeklycitizen.com/sports"},
            { name: "Lifestyle", href: "http://www.weeklycitizen.com/lifestyle"},
            { name: "Entertainment", href: "http://www.weeklycitizen.com/entertainment"},
            { name: "Opinions", href: "http://www.weeklycitizen.com/opinions"},
            { name: "State News", href: "http://www.weeklycitizen.com/state_news"},
            { name: "Homes", href: "http://www.weeklycitizen.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "la-gonzales",
            section_id: "class-re"
            }
    },
    'mo-independence' : {
        title: "The Examiner",
        domain: "examiner.net",
        analytics_id: "examiner",
        nav: [
            { name: "Home", href: "http://www.examiner.net"},
            { name: "News", href: "http://www.examiner.net/news"},
            { name: "Sports", href: "http://www.examiner.net/sports"},
            { name: "Opinions", href: "http://www.examiner.net/opinions"},
            { name: "Obituaries", href: "http://www.examiner.net/obituaries"},
            { name: "Business", href: "http://www.examiner.net/business"},
            { name: "Lifestyle", href: "http://www.examiner.net/lifestyle"},
            { name: "Jackie", href: "http://www.examiner.net/jackie"},
            { name: "Multimedia", href: "http://www.examiner.net/multimedia"},
            { name: "Blogs", href: "http://blogs.examiner.net"},
            { name: "Homes", href: "http://homes.examiner.net"},
            { name: "Health", href: "http://examiner.net/health"},
            { name: "Homes", href: "http://examiner.net/realestate"}
            ],
        ad_server: {
            type: "oas",
            oas_url: "http://ads.examiner.net/RealMedia/ads/",
            oas_sitepage: "homes.examiner.net",
            positions: {
                '728x90':'x01',
                '160x600':'x15',
                '728x90-2':'x04'
                }
            }
    },
    'leavenworthtimes' : {
        title: "Leavenworth Times",
        domain: "leavenworthtimes.com",
        analytics_id: "leavenworthtimes",
        nav: [
            { name: "Home", href: "http://www.leavenworthtimes.com/homepage"},
            { name: "News", href: "http://www.leavenworthtimes.com/news"},
            { name: "Sports", href: "http://www.leavenworthtimes.com/sports"},
            { name: "Lifestyle", href: "http://www.leavenworthtimes.com/lifestyle"},
            { name: "Entertainment", href: "http://www.leavenworthtimes.com/entertainment"},
            { name: "Opinions", href: "http://www.leavenworthtimes.com/opinions"},
            { name: "State News", href: "http://www.leavenworthtimes.com/state_news"},
            { name: "Homes", href: "http://www.leavenworthtimes.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "leavenworthtimes",
            section_id: "class-re"
            }
    },
    'kansascity' : {
        title: "Kansas City Kansan",
        domain: "kansascitykansan.com",
        analytics_id: "kansascitykansan",
        nav: [
            { name: "Homepage", href: "http://www.kansascitykansan.com"},
            { name: "News", href: "http://www.kansascitykansan.com/news"},
            { name: "Sports", href: "http://www.kansascitykansan.com/sports"},
            { name: "Obituaries", href: "http://www.kansascitykansan.com/obituaries"},
            { name: "Lifestyle", href: "http://www.kansascitykansan.com/lifestyle"},
            { name: "Multimedia", href: "http://www.kansascitykansan.com/multimedia"},
            { name: "Opinions", href: "http://www.kansascitykansan.com/opinions"},
            { name: "Communities", href: "http://www.kansascitykansan.com/communities"},
            { name: "Blogs", href: "http://blogs.kansascitykansan.com"}
            ],
        ad_server: {
            type: "gam",
            site_id: "kansascity",
            section_id: "class-re"
            }
    },
    'newton' : {
        title: "The Newton Kansan",
        domain: "thekansan.com",
        analytics_id: "thekansan",
        nav: [
            { name: "Home", href: "http://www.thekansan.com"},
            { name: "News", href: "http://www.thekansan.com/news"},
            { name: "Community", href: "http://www.thekansan.com/community"},
            { name: "Business", href: "http://www.thekansan.com/business"},
            { name: "Agriculture", href: "http://www.thekansan.com/ag"},
            { name: "Obituaries", href: "http://www.thekansan.com/obituaries"},
            { name: "Opinions", href: "http://www.thekansan.com/opinions"},
            { name: "Sports", href: "http://www.thekansan.com/sports"},
            { name: "Multimedia", href: "http://www.thekansan.com/multimedia"},
            { name: "Calendar", href: "http://thekansan.eviesays.com/search/where/Newton,%20KS.html"},
            { name: "Blogs", href: "http://blogs.thekansan.com/"}
            ],
        ad_server: {
            type: "gam",
            site_id: "newton",
            section_id: "class-re"
            }
    },
    'wellingtondailynews' : {
        title: "Wellington Daily News",
        domain: "wellingtondailynews.com",
        analytics_id: "wellingtondailynews",
        nav: [
            { name: "Home", href: "http://www.wellingtondailynews.com/homepage"},
            { name: "News", href: "http://www.wellingtondailynews.com/news"},
            { name: "Sports", href: "http://www.wellingtondailynews.com/sports"},
            { name: "Lifestyle", href: "http://www.wellingtondailynews.com/lifestyle"},
            { name: "Entertainment", href: "http://www.wellingtondailynews.com/entertainment"},
            { name: "Opinions", href: "http://www.wellingtondailynews.com/opinions"},
            { name: "State News", href: "http://www.wellingtondailynews.com/state_news"},
            { name: "Homes", href: "http://www.wellingtondailynews.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "wellingtondailynews",
            section_id: "class-re"
            }
    },
    'ks-pratt' : {
        title: "Pratt Tribune",
        domain: "pratttribune.com",
        analytics_id: "pratttribune",
        nav: [
            { name: "Home", href: "http://www.pratttribune.com/homepage"},
            { name: "News", href: "http://www.pratttribune.com/news"},
            { name: "Sports", href: "http://www.pratttribune.com/sports"},
            { name: "Lifestyle", href: "http://www.pratttribune.com/lifestyle"},
            { name: "Entertainment", href: "http://www.pratttribune.com/entertainment"},
            { name: "Opinions", href: "http://www.pratttribune.com/opinions"},
            { name: "State News", href: "http://www.pratttribune.com/state_news"},
            { name: "Homes", href: "http://www.pratttribune.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "ks-pratt",
            section_id: "class-re"
            }
    },
    'ks-mcpherson' : {
        title: "The McPherson Sentinel",
        domain: "mcphersonsentinel.com",
        analytics_id: "mcphersonsentinel",
        nav: [
            { name: "Home", href: "http://www.mcphersonsentinel.com/homepage"},
            { name: "News", href: "http://www.mcphersonsentinel.com/news"},
            { name: "Sports", href: "http://www.mcphersonsentinel.com/sports"},
            { name: "Lifestyle", href: "http://www.mcphersonsentinel.com/lifestyle"},
            { name: "Entertainment", href: "http://www.mcphersonsentinel.com/entertainment"},
            { name: "Opinions", href: "http://www.mcphersonsentinel.com/opinions"},
            { name: "State News", href: "http://www.mcphersonsentinel.com/state_news"},
            { name: "Homes", href: "http://www.mcphersonsentinel.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "ks-mcpherson",
            section_id: "class-re"
            }
    },
    'eldoradotimes' : {
        title: "El Dorado Times",
        domain: "eldoradotimes.com",
        analytics_id: "eldoradotimes",
        nav: [
            { name: "Home", href: "http://www.eldoradotimes.com/homepage"},
            { name: "News", href: "http://www.eldoradotimes.com/news"},
            { name: "Sports", href: "http://www.eldoradotimes.com/sports"},
            { name: "Lifestyle", href: "http://www.eldoradotimes.com/lifestyle"},
            { name: "Entertainment", href: "http://www.eldoradotimes.com/entertainment"},
            { name: "Opinions", href: "http://www.eldoradotimes.com/opinions"},
            { name: "State News", href: "http://www.eldoradotimes.com/state_news"},
            { name: "Homes", href: "http://www.eldoradotimes.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "eldoradotimes",
            section_id: "class-re"
            }
    },
    'augustagazette' : {
        title: "Augusta Gazette",
        domain: "augustagazette.com",
        analytics_id: "augustagazette",
        nav: [
            { name: "Home", href: "http://www.augustagazette.com/homepage"},
            { name: "News", href: "http://www.augustagazette.com/news"},
            { name: "Sports", href: "http://www.augustagazette.com/sports"},
            { name: "Lifestyle", href: "http://www.augustagazette.com/lifestyle"},
            { name: "Entertainment", href: "http://www.augustagazette.com/entertainment"},
            { name: "Opinions", href: "http://www.augustagazette.com/opinions"},
            { name: "State News", href: "http://www.augustagazette.com/state_news"},
            { name: "Homes", href: "http://www.augustagazette.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "augustagazette",
            section_id: "class-re"
            }
    },
    'corningleader' : {
        title: "The Corning Leader",
        domain: "the-leader.com",
        analytics_id: "theleader",
        nav: [
            { name: "Home", href: "http://www.the-leader.com/homepage"},
            { name: "News", href: "http://www.the-leader.com/news"},
            { name: "Sports", href: "http://www.the-leader.com/sports"},
            { name: "Lifestyle", href: "http://www.the-leader.com/lifestyle"},
            { name: "Entertainment", href: "http://www.the-leader.com/entertainment"},
            { name: "Opinions", href: "http://www.the-leader.com/opinions"},
            { name: "State News", href: "http://www.the-leader.com/state_news"},
            { name: "Homes", href: "http://www.the-leader.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "corningleader",
            section_id: "class-re"
            }
    },
    'wellsvilledailyreporter' : {
        title: "Wellsville Daily Reporter",
        domain: "wellsvilledaily.com",
        analytics_id: "wellsvilledaily",
        nav: [
            { name: "Home", href: "http://www.wellsvilledaily.com/homepage"},
            { name: "News", href: "http://www.wellsvilledaily.com/news"},
            { name: "Sports", href: "http://www.wellsvilledaily.com/sports"},
            { name: "Lifestyle", href: "http://www.wellsvilledaily.com/lifestyle"},
            { name: "Entertainment", href: "http://www.wellsvilledaily.com/entertainment"},
            { name: "Opinions", href: "http://www.wellsvilledaily.com/opinions"},
            { name: "State News", href: "http://www.wellsvilledaily.com/state_news"},
            { name: "Homes", href: "http://www.wellsvilledaily.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "wellsvilledailyreporter",
            section_id: "class-re"
            }
    },
    'hornelleveningtribune' : {
        title: "Hornell Evening Tribune",
        domain: "eveningtribune.com",
        analytics_id: "eveningtribune",
        nav: [
            { name: "Home", href: "http://www.eveningtribune.com/homepage"},
            { name: "News", href: "http://www.eveningtribune.com/news"},
            { name: "Sports", href: "http://www.eveningtribune.com/sports"},
            { name: "Lifestyle", href: "http://www.eveningtribune.com/lifestyle"},
            { name: "Entertainment", href: "http://www.eveningtribune.com/entertainment"},
            { name: "Opinions", href: "http://www.eveningtribune.com/opinions"},
            { name: "State News", href: "http://www.eveningtribune.com/state_news"},
            { name: "Homes", href: "http://www.eveningtribune.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "hornelleveningtribune",
            section_id: "class-re"
            }
    },
    'hawleynewseagle' : {
        title: "The News Eagle",
        domain: "neagle.com",
        analytics_id: "neagle",
        nav: [
            { name: "Home", href: "http://www.neagle.com/homepage"},
            { name: "News", href: "http://www.neagle.com/news"},
            { name: "Sports", href: "http://www.neagle.com/sports"},
            { name: "Lifestyle", href: "http://www.neagle.com/lifestyle"},
            { name: "Entertainment", href: "http://www.neagle.com/entertainment"},
            { name: "Opinions", href: "http://www.neagle.com/opinions"},
            { name: "State News", href: "http://www.neagle.com/state_news"},
            { name: "Homes", href: "http://www.neagle.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "hawleynewseagle",
            section_id: "class-re"
            }
    },
    'wayneindependent' : {
        title: "Wayne Independent",
        domain: "wayneindependent.com",
        analytics_id: "wayneindependent",
        nav: [
            { name: "Home", href: "http://www.wayneindependent.com/homepage"},
            { name: "News", href: "http://www.wayneindependent.com/news"},
            { name: "Sports", href: "http://www.wayneindependent.com/sports"},
            { name: "Lifestyle", href: "http://www.wayneindependent.com/lifestyle"},
            { name: "Entertainment", href: "http://www.wayneindependent.com/entertainment"},
            { name: "Opinions", href: "http://www.wayneindependent.com/opinions"},
            { name: "State News", href: "http://www.wayneindependent.com/state_news"},
            { name: "Homes", href: "http://www.wayneindependent.com/realestate"}
            ],
        ad_server: {
            type: "gam",
            site_id: "wayneindependent",
            section_id: "class-re"
            }
    },
    'la-fortpolk' : {
        title: "Fort Polk Guardian",
        domain: "fortpolkguardian.com",
        analytics_id: "fortpolkguardian",
        nav: [
            { name: "Home", href: "http://www.fortpolkguardian.com"},
            { name: "News", href: "http://www.fortpolkguardian.com/news"},
            { name: "Army News", href: "http://www.fortpolkguardian.com/army_news"},
            { name: "Community", href: "http://www.fortpolkguardian.com/community"},
            { name: "Calendar", href: "http://www.fortpolkguardian.com/calendar"},
            { name: "After Hours", href: "http://www.fortpolkguardian.com/entertainment"},
            { name: "Opinions", href: "http://www.fortpolkguardian.com/opinions"}
            ],
        ad_server: {
            type: "gam",
            site_id: "la-fortpolk",
            section_id: "class-re"
            }
    },
    'mi-hillsdale' : {
        title: "Hillsdale.net",
        domain: "hillsdale.net",
        analytics_id: "hillsdale",
        nav: [
            { name: "Home", href: "http://www.hillsdale.net"},
            { name: "News", href: "http://www.hillsdale.net/news"},
            { name: "Sports", href: "http://www.hillsdale.net/sports"},
            { name: "Obituaries", href: "http://www.hillsdale.net/obits"},
            { name: "Entertainment", href: "http://www.hillsdale.net/entertainment"},
            { name: "Living and Lifestyles", href: "http://www.hillsdale.net/living"},
            { name: "Multimedia", href: "http://www.hillsdale.net/multimedia"}
            ],
        ad_server: {
            type: "oas",
            oas_url: "http://ads.hillsdale.net/RealMedia/ads/",
            oas_sitepage: "homes.hillsdale.net",
            positions: {
                '728x90':'x01',
                '160x600':'x15',
                '728x90-2':'x04'
                }
            }
    },
    'carthagepress' : {
        title: "Carthagepress.com",
        domain: "carthagepress.com",
        analytics_id: "carthagepress",
        nav: [
            { name: "Homepage", href: "http://www.carthagepress.com"},
            { name: "News", href: "http://www.carthagepress.com/news"},
            { name: "Obituaries", href: "http://www.carthagepress.com/obituaries"},
            { name: "Opinions", href: "http://www.carthagepress.com/opinions"},
            { name: "Sports", href: "http://www.carthagepress.com/sports"},
            { name: "Life", href: "http://www.carthagepress.com/lifestyle"},
            { name: "Entertainment", href: "http://www.carthagepress.com/entertainment"},
            { name: "Photos", href: "http://www.carthagepress.com/photos"},
            { name: "Announcements", href: "http://www.remembering-when.com/carthagepress/celebrations.shtml"},
            { name: "MySource", href: "http://www.carthagepress.com/mysource"}
            ],
        ad_server: {
            type: "gam",
            site_id: "carthagepress",
            section_id: "class-re"
            }
    },
    'neoshodailynews' : {
        title: "Neosho Daily News",
        domain: "neoshodailynews.com",
        analytics_id: "neoshodailynews",
        nav: [
            { name: "News", href: "http://www.neoshodailynews.com/news"},
            { name: "Newton County Fair", href: "http://www.neoshodailynews.com/neoshocountyfair"},
            { name: "Obituaries", href: "http://www.neoshodailynews.com/obituaries"},
            { name: "Sports", href: "http://www.neoshodailynews.com/sports"},
            { name: "School News", href: "http://www.neoshodailynews.com/schoolnews"},
            { name: "Neighbors", href: "http://www.neoshodailynews.com/neighbors"},
            { name: "Commentary", href: "http://www.neoshodailynews.com/commentary"},
            { name: "Photos", href: "http://www.neoshodailynews.com/photos"},
            { name: "MYSOURCE", href: "http://www.neoshodailynews.com/mysource"}
            ],
        ad_server: {
            type: "gam",
            site_id: "neoshodailynews",
            section_id: "class-re"
            }
    },
    'thebignickel' : {
        title: "The Big Nickel",
        domain: "thebignickel.com",
        analytics_id: "thebignickel",
        nav: [
            { name: "Home", href: "http://www.thebignickel.com/"}
            ],
        ad_server: {
            type: "gam",
            site_id: "thebignickel",
            section_id: "class-re"
            }
    },
    'ks-pittsburg' : {
        title: "Morning Sun",
        domain: "morningsun.net",
        analytics_id: "morningsun",
        nav: [
            { name: "News", href: "http://www.morningsun.net/news"},
            { name: "Obituaries", href: "http://www.morningsun.net/obituaries"},
            { name: "Opinions", href: "http://www.morningsun.net/opinions"},
            { name: "Sports", href: "http://www.morningsun.net/sports"},
            { name: "Lifestyles", href: "http://www.morningsun.net/lifestyles"},
            { name: "Photos", href: "http://www.morningsun.net/photos"},
            { name: "Calendar", href: "http://morningsun.eviesays.com/search/where/Pittsburg, KS.html"},
            { name: "iNews", href: "http://www.morningsun.net/inews"},
            { name: "MYSOURCE", href: "http://www.morningsun.net/mysource"}
            ],
        ad_server: {
            type: "oas",
            oas_site_page: "www.morningsun.net/homepage",
            oas_url: "http://ads.morningsun.net/RealMedia/ads/",
            positions: {
                "728x90":"x01",
                "160x600":"x15",
                "728x90-2":"x04"
                }
            }
    },
    'il-aledo' : {
        title: "Aledo Times Record",
        domain: "aledotimesrecord.com",
        analytics_id: "aledotimesrecord",
        nav: [
            { name: "News", href: "http://www.aledotimesrecord.com/news"},
            { name: "Obituaries", href: "http://www.aledotimesrecord.com/obituaries"},
            { name: "Sports", href: "http://www.aledotimesrecord.com/sports"},
            { name: "Entertainment", href: "http://www.aledotimesrecord.com/entertainment"},
            { name: "Lifestyle", href: "http://www.aledotimesrecord.com/lifestyle"},
            { name: "Education", href: "http://www.aledotimesrecord.com/education"},
            { name: "Hometown", href: "http://www.aledotimesrecord.com/hometown"},
            { name: "MySource", href: "http://www.aledotimesrecord.com/mysource"}
            ],
        ad_server: {
            type: "gam",
            site_id: "il-aledo",
            section_id: "class-re"
        }
    },
    'il-canton' : {
            title: "Canton Daily Ledger",
            domain: "cantondailyledger.com",
            analytics_id: "cantondailyledger",
            nav: [
                { name: "News", href: "http://www.cantondailyledger.com/news"},
                { name: "Obituaries", href: "http://www.cantondailyledger.com/obituaries"},
                { name: "Sports", href: "http://www.cantondailyledger.com/sports"},
                { name: "Lifestyle", href: "http://www.cantondailyledger.com/lifestyle"},
                { name: "Entertainment", href: "http://www.cantondailyledger.com/entertainment"},
                { name: "Photos", href: "http://www.cantondailyledger.com/photos"},
                { name: "Opinions", href: "http://www.cantondailyledger.com/opinions"},
                { name: "MYSOURCE", href: "http://www.cantondailyledger.com/mysource"}
                ],
            ad_server: {
                type: "gam",
                site_id: "il-canton",
                section_id: "class-re"
            }
        },
        'il-kewanee' : {
            title: "Star Courier",
            domain: "www.starcourier.com",
            analytics_id: "starcourier",
            nav: [
                { name: "News", href: "http://www.starcourier.com/news"},
                { name: "Sports", href: "http://www.starcourier.com/sports"},
                { name: "Opinions", href: "http://www.starcourier.com/opinions"},
                { name: "Obituaries", href: "http://www.starcourier.com/obituaries"},
                { name: "Education", href: "http://www.starcourier.com/education"},
                { name: "Lifestyle", href: "http://www.starcourier.com/lifestyle"},
                { name: "MYSOURCE", href: "http://www.starcourier.com/mysource"}
                ],
            ad_server: {
                type: "gam",
                site_id: "il-kewanee",
                section_id: "class-re"
            }
        },
        'il-galesburg' : {
            title: "The Register-Mail",
            domain: "galesburg.com",
            analytics_id: "galesburg",
            nav: [
                { name: "News", href: "http://www.galesburg.com/news"},
                { name: "Sports", href: "http://www.galesburg.com/sports"},
                { name: "Opinions", href: "http://www.galesburg.com/opinions"},
                { name: "Education", href: "http://www.galesburg.com/education"},
                { name: "Life", href: "http://www.galesburg.com/lifestyles"},
                { name: "Entertainment", href: "http://www.galesburg.com/entertainment"},
                { name: "Obituaries", href: "http://www.legacy.com/obituaries/Register-Mail/"},
                { name: "Multimedia", href: "http://www.galesburg.com/multimedia/photos"},
                { name: "Knox County Neighbors", href: "http://www.galesburg.com/the_paper"},
                { name: "MYSOURCE", href: "http://www.galesburg.com/mysource"}
                ],
            ad_server: {
                type: "gam",
                site_id: "il-galesburg",
                section_id: "class-re"
            }
        },
        'il-geneseo' : {
            title: "Geneseo Republic",
            domain: "geneseorepublic.com",
            analytics_id: "geneseorepublic",
            nav: [
                { name: "News", href: "http://www.geneseorepublic.com/news"},
                { name: "Sports", href: "http://www.geneseorepublic.com/sports"},
                { name: "Obituaries", href: "http://www.geneseorepublic.com/obituaries"},
                { name: "Lifestyle", href: "http://www.geneseorepublic.com/lifestyle"},
                { name: "Entertainment", href: "http://www.geneseorepublic.com/entertainment"},
                { name: "MySource", href: "http://www.geneseorepublic.com/mysource"}
                ],
            ad_server: {
                type: "gam",
                site_id: "il-geneseo",
                section_id: "class-re"
                }
        },
        'macombjournal' : {
            title: "McDonough County The Voice",
            domain: "mcdonoughvoice.com",
            analytics_id: "macombjournal",
            nav: [
                { name: "News", href: "http://www.mcdonoughvoice.com/news"},
                { name: "Sports", href: "http://www.mcdonoughvoice.com/sports"},
                { name: "Opinions", href: "http://www.mcdonoughvoice.com/opinions"},
                { name: "Entertainment", href: "http://www.mcdonoughvoice.com/entertainment"},
                { name: "Lifestyle", href: "http://www.mcdonoughvoice.com/lifestyle"},
                { name: "Multimedia", href: "http://www.mcdonoughvoice.com/multimedia/photos"},
                { name: "Obituaries", href: "http://www.mcdonoughvoice.com/Obituaries"},
                { name: "Announcements", href: "http://www.remembering-when.com/mcdonoughvoice/celebrations.shtml"},
                { name: "MySource", href: "http://www.mcdonoughvoice.com/mysource"}
                ],
            ad_server: {
                type: "gam",
                site_id: "macombjournal",
                section_id: "class-re"
                }
        },
        'il-monmouth' : {
            title: "Daily Review Atlas",
            domain: "reviewatlas.com",
            analytics_id: "reviewatlas",
            nav: [
                { name: "News", href: "http://www.reviewatlas.com/news"},
                { name: "Obituaries", href: "http://www.reviewatlas.com/obituaries"},
                { name: "Opinions", href: "http://www.reviewatlas.com/opinions"},
                { name: "Sports", href: "http://www.reviewatlas.com/sports"},
                { name: "Lifestyle", href: "http://www.reviewatlas.com/lifestyle"},
                { name: "Hometown", href: "http://www.reviewatlas.com/hometown"},
                { name: "MYSOURCE", href: "http://www.reviewatlas.com/mysource"}
                ],
            ad_server: {
                type: "gam",
                site_id: "il-monmouth",
                section_id: "class-re"
                }
        }
};

ghs_template = new js_template(js_template_sets)
