/**
 * @author aalucas
 * 
 * To cause a new page hit to be registered call dniComm.updateReporting(<pageName>),
 * where <pageName> is the name of the page you wish to be reported.
 * It must be Alphanumeric. Spaces are supported.
 * 
 *  You do not need to call the reloadAds method directly.
 */

var dniComm = {
	adLock: false,
	reloadAds: function () {
		if (!this.adLock) {
			this.adLock = true;
			top.AdManager.refresh_ads();
			setTimeout(function(){dniComm.adLock = false;}, 3000);
		}
	},
	updateReporting: function (pageName, pageBrand) {
		top.updateReporting(pageName, pageBrand);
		this.reloadAds();
	}
}
