\n');
}
function refreshAd(id, url) {
var f = getFrame(id);
var doc = f.document;
//if (f.document.contentWindow) {
// doc = f.document.contentWindow;
//}
doc.close();
doc.open();
doc.write("<"+"html><"+"head><"+"style type='text/css'>a:link,a:active,a:visited, a:hover {color:#000000;font-size:9pt;font-weight:bold;font-family:Arial;text-decoration:none;}<"+"body style='background-color:transparent;' margin='0'><"+"script type='text/javascript' src='"+url+"'>"+"script"+">"+"body><"+"/html>");
}
function getFrame(id) {
for (var i = 0; i < parent.frames.length; i++) {
if (parent.frames[i].name == id) {
return parent.frames[i];
}
}
return null;
}
//Used to test ads...
//refreshAd("compLarge", "ad-test.js");
function recordEvent(evt) {
//implement webtrends code here using following events
//evt.type
//evt.querystring
//evt.videoDisplayName
//evt.videoId
//evt.videoTags
//evt.videoPath
dcsExtend("cmsSection", "brightcove");
dcsExtend("vpSection", "brightcove");
dcsExtend("elVideo", evt.videoId + " > " + prepareWTValue(evt.videoDisplayName));
if (evt.videoPath) {
if (evt.videoPath.substring(0, 1) == "/") {
evt.videoPath = evt.videoPath.substring(1, evt.videoPath.length);
}
var arry = evt.videoPath.split("/");
if (arry.length > 0) {
dcsExtend("elChanl", prepareWTValue(arry[0]));
} else {
dcsExtend("elChanl", "");
}
if (arry.length > 1) {
dcsExtend("elSubchanl", prepareWTValue(arry[1]));
} else {
dcsExtend("elSubchanl", "");
}
} else {
dcsExtend("elChanl", "");
dcsExtend("elSubchanl", "");
}
//dcsExtend("elSeasn","season");
//dcsExtend("elDesign","designer");
//dcsExtend("elPhotype","phototype");
//dcsExtend("elModel","model");
//dcsExtend("elCeleb","celebrity");
dcsExtend("elVidsrch", prepareWTValue(evt.querystring));
dcsVar();
dcsMeta();
dcsFunc("dcsAdv");
dcsTag()
}
function prepareWTValue(str) {
if (str) {
return str.toLowerCase();
}
return "";
}