/**
 * @author Administrator
 */

var urlFilters = "viacom_master_adult_url,comedycentral" 
var termFilters = "viacom_master_adult,comedycentral"
var keywords = "";
var ctxtCat = "";
var keywordCharEnc = "utf8";
var outputCharEnc= "latin1";
var ctxtId = 'tvshows' 
var type = 'tvshows'
var mkt = "";
var maxCount = "3";
 
if ((keywords == undefined) || (keywords == "")) {
	keywords = getMetaTagKeywords();
}
 
//Create a configuration object and add the keywords to the conf.
var conf = new overtureContentMatchConf();
 
conf.setCtxtKeywords(keywords);
if (!isEmpty(ctxtId)) {
	conf.setCtxtId(ctxtId);
} else {
	//use the map to get the ctxtId
	conf.setCtxtIdMap(g_contextIdMap);
}
 
if (!isEmpty(ctxtCat)) {
	conf.setCtxtCat(ctxtCat);
}

if (!isEmpty(mkt)) {
	conf.setMkt(mkt);
}

if (!isEmpty(type)) {
	conf.setType(type);
}

if (!isEmpty(keywordCharEnc)) {
	conf.setKeywordCharEnc(keywordCharEnc);
}

if (!isEmpty(outputCharEnc)) {
	conf.setOutputCharEnc(outputCharEnc);
}

if (!isEmpty(maxCount)) {
	conf.setMaxCount(maxCount);
}
 
var myUrl = createOvertureCMLink(conf);
//alert("<P>url = " + myUrl + "<BR>");
loadOvertureCMInclude(conf);
 
//Create a configuration object for linkspots and load the linkspots in
var lsConf = new overtureLinkspotConf();
lsConf.setNGrp(1);
lsConf.setNKw(10);
//This will use the mapping to determine the linkspot id
lsConf.setLinkspotIdMap(g_linkspotIdMap);
 
var myLsUrl = createOvertureLinkspotLink(lsConf);
//alert("<P>url = " + myLsUrl + "<BR>");
 
loadOvertureLinkspotInclude(lsConf);