if(!window.CQ_Analytics){window.CQ_Analytics={}
}if(!CQ_Analytics.TestTarget){CQ_Analytics.TestTarget={}
}if(window.console){console.log("TestTarget.pull.definition")
}CQ_Analytics.TestTarget.pull=function(path){window.theArg=arguments;
var wcmmode=CQ.shared.HTTP.getParameter(document.location.href,"wcmmode");
if(typeof CQ.WCM!=="undefined"){wcmmode="disabled"
}if(wcmmode&&wcmmode.length>0){path=CQ.shared.HTTP.addParameter(path,"wcmmode",wcmmode)
}var output=CQ.shared.HTTP.get(path);
var isOk=(output&&output.status&&output.status==200);
var hasBody=(output&&output.body&&output.body.length>0);
if(isOk&&hasBody){var caller=arguments.callee.caller;
var outputWritten=false;
var target;
while(caller){if(caller.arguments.length>0){var mboxParameters=extractMboxParameters(caller.arguments[0]);
if(!mboxParameters){continue
}var mboxName,mboxId,i,entry;
for(i=0;
i<mboxParameters.length;
i++){entry=mboxParameters[i];
if("name" in entry&&"value" in entry){if(entry.name==="mbox"){mboxName=entry.value
}else{if(entry.name==="mboxId"){mboxId=entry.value
}}}}target=document.getElementById("mboxImported-default-"+mboxName+"-"+mboxId);
break
}caller=caller.arguments.callee.caller
}if(target){var childDivs=target.getElementsByTagName("div");
if(childDivs.length==1){target=childDivs[0]
}var scriptwrapper=document.createElement("div");
scriptwrapper.innerHTML=output.body;
target.appendChild(scriptwrapper);
var scripts=target.getElementsByTagName("script");
for(var i=0;
i<scripts.length;
i++){eval(scripts[i].text)
}outputWritten=true
}if(!outputWritten){document.write(output.body)
}}else{if(window.console){console.log("Could not pull resource. Response[status:{},body:{}]",output.status,output.body)
}}};