var top_right_text_link = document.getElementById('top_right_text_link');
top_right_text_link.parentNode.style.position='relative';

if(!navigator.userAgent.toLowerCase().match('msie 6') && top_right_text_link.parentNode.id=='hdr-reg')
{
	top_right_text_link.style.left = '700px';
}

//fix dell expanding ad
if(typeof commercialNode != 'undefined' && commercialNode=='washingtonpost.com' && (estNowWithYear.substring(0,8)=='20091203' || estNowWithYear.substring(0,8)=='20091208'))
{
	//document.write('<link href="http://media.washingtonpost.com/wp-srv/ad/wphp_expand_fix.css" type="text/css" rel="stylesheet">');	
	document.write("<style>");
	document.write('#hp #top .rtcol #flex-ad-area{overflow:visible}');
	document.write("</style>");
}


document.write("<style>")
document.write("#top_right_text_link {font-size:11px;position:absolute;width:250px;text-align:right;font-family:Arial,sans-serif}")
document.write("#top_right_text_link a {text-decoration:none}")
document.write("#top_right_text_link a:hover {color:#cc0000; text-decoration:underline}")
document.write("</style>")

if(estNowWithYear <= '200903312359' || location.href.match('textlink_test'))
{	
	var textLinks = [
		'&#187; Ad: <a href="http://ad.doubleclick.net/clk;212806133;9011563;u?http://getinfo.kaplan.edu/index.aspx?source=304515&ve=60494" style="font-weight: normal" target="_blank"><span style="font-weight: bold;">Kaplan University</span> - Get Your Degree</a>',
		'&#187; Ad: <a href="http://ad.doubleclick.net/clk;212806592;11282947;i?http://getinfo.kaplan.edu/index.aspx?source=304515&ve=60494" style="font-weight: normal" target="_blank">Degrees Online<span style="font-weight: bold;"> - Kaplan University</span></a>'
	];
	var varTextNumber = Math.round(Math.random());
	document.write(textLinks[varTextNumber]);
}
else if(commercialNode=="washingtonpost.com")
{
	
	if (document.all)
	{
		document.write('&#187; <a style="font-weight:normal" href="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.washingtonpost.com\');sa_onclick(\'http://www.washingtonpost.com/wp-srv/tracking/muyhome\');"> ');
		document.write('Make Us Your Home Page</a>');
	}
	else if (document.getElementById)
	{
		document.write('&#187; <a style="font-weight:normal" href="javascript:void(window.open(\'http://www.washingtonpost.com/wp-srv/bookmark_ff.html\',\'\',\'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width=417,height=415,left=50,top=200,screenX=50,screenY=200\'));" onClick="sa_onclick(\'http://www.washingtonpost.com/wp-srv/tracking/muyhome\');">Make Us Your Home Page</a>');
	}
}

//10528-TW
wpAd=(typeof wpAd!='undefined')?wpAd:{};
wpAd.node = (typeof commercialNode != 'undefined')?commercialNode:'';
wpAd.spotlight={
	'axel':function(){return Math.floor(Math.random()* 10000000000000);},
	'tags':{
		'business':'wapob665',
		'politics':'wapop435'
	},
	'exec':function(){document.write('<iframe src="http://fls.doubleclick.net/activityi;src=2314774;type=wppmg900;cat='+wpAd.spotlight.tags[wpAd.node]+';ord=1;num='+ wpAd.spotlight.axel() + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');},
	'init':function(){for(var nodes in wpAd.spotlight.tags){if(nodes==wpAd.node){wpAd.spotlight.exec();}}}
};wpAd.spotlight.init();

if(urlCheck('test_ads=wpboa') || ((typeof commercialNode != 'undefined' && commercialNode=='washingtonpost.com') && (estNowWithYear >= '200909150000' && estNowWithYear <= '200909152359'))){
	function boaSkin(){
		var z = document.createAttribute('class');
		z.value = document.body.getAttribute('class')+' '+'boa';
		document.body.setAttributeNode(z);
		document.write('<link rel="stylesheet" type="text/css" href="http://media.washingtonpost.com/wp-adv/advertisers/boa/css/boa_hp_skin.css"/>')
	}boaSkin();
}
