This ad type has its slug type intentionally omitted.' )
}
if (this.doubleClickFlag == true)
{
if (typeof varDcCount == 'undefined')
{
varDcCount = 1
}
else
{
varDcCount++
}
var adAddress = "http://ad.doubleclick.net/" + dcMediaServer + "/" + siteZoneDir(currentLoc) + this.code + this.testAction(this.testFlagArray) + wpFlex(flexBoolean,this.size) + kvAjax(AJAXflag) + tile(this.tile,varDcCount,what,AJAXflag) + interstitial(this.interstitial,varDcCount) + this.dcCode + thisPos + onTheFly + ordMaker(AJAXflag) + "?"
}
if (deliveryType == 'iframe')
{
iframeObj = document.createElement('iframe');
iframeObj.setAttribute('src',adAddress);
iframeObj.style.width = maxDim(this)[0] + 'px';
iframeObj.style.height = maxDim(this)[1] + 'px'
iframeObj.setAttribute('marginWidth','0');
iframeObj.setAttribute('marginHeight','0');
iframeObj.setAttribute('frameBorder','0');
iframeObj.setAttribute('scrolling','no');
iframeObj.style.border = "none"
adDivRef = document.getElementById(targetDivId)
if(adDivRef.hasChildNodes())
{
while ( adDivRef.childNodes.length >= 1 )
{
adDivRef.removeChild(adDivRef.firstChild );
}
}
adDivRef.appendChild(iframeObj);
adopsDebug(''+targetDivId+' Appended Iframe Ad Call: '+ textifyCode(adDivRef.innerHTML) + '
')
}
else
{
var output="";
document.write(output);
adopsDebug('document-written call: ' + textifyCode(output) + '
');
debugTextArea(output,adAddress);
}
}
}
function placeAd2(currentLoc,what,flex,onTheFly)
{
if (location.href.match('no_ads'))
{
return
}
adopsDebug('placeAd2("'+currentLoc+'","'+what+'",'+flex+',"'+onTheFly+'")
')
if(typeof onTheFly == 'undefined')
{
onTheFly = ''
}
//pipe is delimiter for pos iterator override, //AJAX is delimiter for AJAX
var currentLoc = hackBin('currentLoc',currentLoc,what,flex,onTheFly);
var what = hackBin('what',currentLoc,what,flex,onTheFly);
var flex = hackBin('flex',currentLoc,what,flex,onTheFly);
var onTheFly= hackBin('onTheFly',currentLoc,what,flex,onTheFly);
var AJAXflag = what.split('AJAX')[1]
var posOverride = what.split('|')[1] || AJAXflag;
var what = (AJAXflag)?what.split('AJAX')[0]:what.split('|')[0];
var thisPos = posMaker(what,AJAXflag,posOverride);
//if array adClasses doesn't exist, initializes it.
if (typeof adClasses == "undefined")
{
var adClasses = new Array()
}
//if the specified ad type (what) doesn't exist in the array adClasses, define it with initAdType
if (typeof adClasses[what] == "undefined")
{
adClasses[what] = initAdType(what)
}
//run this adtype's method, which actually does what has to be done.
if(adClasses[what].isTest && location.href.match('testAdSpots'))
{
adopsDebug('This is a test spot.');
}
else if (adClasses[what].isTest)
{
adopsDebug('This is a test spot and there is no "testAdSpots" in the query string, so it did not get rendered.');
}
var testCheck = !adClasses[what].isTest || location.href.match('testAdSpots');
if( (adClasses[what].templateCheck( currentLoc,thisPos ) && testCheck) || location.href.match('allAds') )
{
adClasses[what].adExecute(currentLoc,what,flex,onTheFly,thisPos,AJAXflag)
}
}
function adopsDebugToggle()
{
var toggleButton = document.getElementById('adopsDebugToggle');
var adopsDebugDiv = document.getElementById('adopsDebugDiv');
adopsDebugDiv.style.display = (toggleButton.innerHTML == 'Show Data')?'block':'none';
toggleButton.innerHTML = (toggleButton.innerHTML == 'Show Data')?'Hide Data':'Show Data';
}
function adopsDebug(_str)
{
if(!location.href.match('debugAdCode') && !location.href.match('adopsDebug') && !location.href.match('allAds')) return;
if(!document.getElementById('adopsDebugDiv'))
{
debugDiv = document.createElement('DIV');
debugDiv.style.fontSize = '9px';
debugDiv.style.textAlign = 'left';
debugDiv.style.fontFamily = 'verdana,arial,helvetica';
debugDiv.style.padding = "10px";
debugDiv.style.marginBottom = "10px";
debugDiv.style.borderBottom = "1px solid #a8a1a1";
debugDiv.style.backgroundColor= "#e1e1e8";
debugDiv.innerHTML = "