' + '\n';
theapPopContent = theapPopContent + '
' + '\n';
theapPopContent = theapPopContent + '
' + '\n';
theapPopContent = theapPopContent + '
' + '\n';
theapPopContent = theapPopContent + '
' + '\n';
theapPopContent = theapPopContent + '
' + '\n';
theapPopContent = theapPopContent + '
' + '\n';
document.write(theapPopContent);
//Calls the init function on pageload;
apAddLoadEvent(APpageInit);
function apAddLoadEvent(aponfunc) {
var apoldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = aponfunc;
} else {
window.onload = function() {
apoldonload();
aponfunc();
}
}
}
//Document size object ********
function lib_doc_size(){
this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0;
this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0;
if(!this.x2||!this.y2) return message('Document has no width or height')
this.x50=this.x2/2;this.y50=this.y2/2;
return this;
}
/********************************************************************************
Div object functions
********************************************************************************/
//Browsercheck (needed) ***************
function lib_bwcheck(){
this.ver=navigator.appVersion
this.agent=navigator.userAgent.toLowerCase()
this.dom=document.getElementById?1:0
this.op5=this.agent.indexOf("opera 5")>-1 && window.opera
this.op6=this.agent.indexOf("opera 6")>-1 && window.opera
this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6)
this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6)
this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6)
this.ie = (this.ie4 || this.ie5 || this.ie6)
this.mac=(this.agent.indexOf("mac")>-1)
this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar)
this.ns4=(!this.dom && document.layers)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6)
this.usedom= this.ns6//Use dom creation
this.reuse = this.ie||this.usedom //Reuse layers
this.px=this.dom&&!this.op5?"px":""
return this
}
bw=new lib_bwcheck() //Browsercheck object
//Debug function ******************
function lib_message(txt){alert(txt); return false}
//Lib objects ********************
function lib_obj(obj,nest,o){
if(bw.usedom&&o) this.evnt=o
else{nest=(!nest) ? "":'document.layers.'+nest+'.'
this.evnt=bw.dom? document.getElementById(obj):
bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;
}
if(!this.evnt) return lib_message('The layer does not exist ('+obj+')'
+'- \nIf your using Netscape please check the nesting of your tags (on the entire page)\nNest:'+nest)
this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; this.ok=0
this.ref=bw.dom||bw.ie4?document:this.css.document;
this.obj = obj + "Object"; eval(this.obj + "=this");
this.x=0; this.y=0; this.w=0; this.h=0; this.vis=0; return this
}
//Moving object to **************
lib_obj.prototype.moveIt = function(x,y){this.x=x;this.y=y; this.css.left=x+bw.px;this.css.top=y+bw.px}
//Showing object ************
lib_obj.prototype.showIt = function(){this.css.visibility="visible"}
//Hiding object **********
lib_obj.prototype.hideIt = function(){this.css.visibility="hidden"}
//Giving object a zIndex **********
lib_obj.prototype.zIt = function(){this.css.zIndex=1}
function APInterceptHappen(){
LPImageCookieTrigger = new Image();
LPImageCookieTrigger.src = "http:/"+"/secure.audienceprofiler.com/ussurvey/tim010/tim010ShownCookie.asp";
oCenter.showIt();
}
function APpageInit(){
//first me make a page object
appage=new lib_doc_size()
//then we make the layer objects
oCenter=new lib_obj('divCenter')
// oPage=new lib_obj('page');
// oPage.zIt();
//now we place them
oCenter.moveIt((810/2)-125,appage.y+255);
//now we show them
APtimer2 = setTimeout('APInterceptHappen();', 500);
//Takes care of the resizing.
window.onresize=resized;
}
function resized(){
page2=new lib_doc_size()
if(page2.x2!=appage.x2 || appage2.y2!=page.y2){
if(bw.ns4) location.reload() //If the width or height have changed we reload the page.
else APpageInit()
}
}