str = '';
keys = ['DocID', 'PageKey', 'SectionKey', 'ConditionKey'];
if (typeof(smarter_ad) == 'object') {
	for(i=0;i<smarter_ad.length;i++) {
		for(j=0;j<keys.length;j++) {
			key = keys[j];
			if(typeof(smarter_ad[i][key]) != 'undefined') {
				str += "smarter_ad["+i+"]["+key+"]="+smarter_ad[i][key]+"&";
			}
		}
	}
}
document.write('<script type="text/javascript" src="'+smarter_adhost+"?"+str+'"></script>');
