﻿// if(location.href.match('test_ads')) placeAd('SECTION',commercialNode,19,'kw=wpni_test',false)

function dateToString(date) {
	var yyyy = date.getYear();
	var mm = date.getMonth() + 1;
	var dd = date.getDate();
	var hour = date.getHours();
	var min = date.getMinutes();
	if (mm < 10) mm = "0"+mm;
	if (dd < 10) dd = "0"+dd;
	if (hour < 10) hour = "0"+hour;
	if (min < 10) min = "0"+min;
	return ''+mm+dd+hour+min;
}
var today = new Date();
var now = dateToString(today);

var ord = Math.floor(Math.random()*10000000);

if (now >= "10010000" && now <="10312359") {

document.write('<iframe src="http://ad.doubleclick.net/adi/wpni.realestate/homepricereports;kw=tenten336x35;sz=336x35;wpid=realestatehomepricereports_homepricereports;ord='+ord+'?" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="336" height="35" style="margin-bottom:10px;"></iframe>');

}

document.write('<div><img src="http://media3.washingtonpost.com/wp-srv/hp/img/ad_label_leftjust.gif" alt="ad_icon" width="100" height="13" border="0"/></div>');