var mboxCopyright="Copyright 1996-2010. Adobe Systems Incorporated. All rights reserved";
mboxUrlBuilder=function(d,c){this.a=d;
this.b=c;
this.c=new Array();
this.d=function(a){return a
};
this.f=null
};
mboxUrlBuilder.prototype.addParameter=function(f,e){var d=new RegExp("('|\")");
if(d.exec(f)){throw"Parameter '"+f+"' contains invalid characters"
}for(var c=0;
c<this.c.length;
c++){var b=this.c[c];
if(b.name==f){b.value=e;
return this
}}var a=new Object();
a.name=f;
a.value=e;
this.c[this.c.length]=a;
return this
};
mboxUrlBuilder.prototype.addParameters=function(d){if(!d){return this
}for(var b=0;
b<d.length;
b++){var a=d[b].indexOf("=");
if(a==-1||a==0){continue
}this.addParameter(d[b].substring(0,a),d[b].substring(a+1,d[b].length))
}return this
};
mboxUrlBuilder.prototype.setServerType=function(a){this.o=a
};
mboxUrlBuilder.prototype.setBasePath=function(a){this.f=a
};
mboxUrlBuilder.prototype.setUrlProcessAction=function(a){this.d=a
};
mboxUrlBuilder.prototype.buildUrl=function(){var f=this.f?this.f:"/m2/"+this.b+"/mbox/"+this.o;
var d=document.location.protocol=="file:"?"http:":document.location.protocol;
var g=d+"//"+this.a+f;
var c=g.indexOf("?")!=-1?"&":"?";
for(var b=0;
b<this.c.length;
b++){var a=this.c[b];
g+=c+encodeURIComponent(a.name)+"="+encodeURIComponent(a.value);
c="&"
}return this.t(this.d(g))
};
mboxUrlBuilder.prototype.getParameters=function(){return this.c
};
mboxUrlBuilder.prototype.setParameters=function(a){this.c=a
};
mboxUrlBuilder.prototype.clone=function(){var b=new mboxUrlBuilder(this.a,this.b);
b.setServerType(this.o);
b.setBasePath(this.f);
b.setUrlProcessAction(this.d);
for(var a=0;
a<this.c.length;
a++){b.addParameter(this.c[a].name,this.c[a].value)
}return b
};
mboxUrlBuilder.prototype.t=function(a){return a.replace(/\"/g,"&quot;").replace(/>/g,"&gt;")
};
mboxStandardFetcher=function(){};
mboxStandardFetcher.prototype.getType=function(){return"standard"
};
mboxStandardFetcher.prototype.fetch=function(a){a.setServerType(this.getType());
document.write('<script src="'+a.buildUrl()+'" language="JavaScript"><\/script>')
};
mboxStandardFetcher.prototype.cancel=function(){};
mboxAjaxFetcher=function(){};
mboxAjaxFetcher.prototype.getType=function(){return"ajax"
};
mboxAjaxFetcher.prototype.fetch=function(a){a.setServerType(this.getType());
var b=a.buildUrl();
this.x=document.createElement("script");
this.x.src=b;
document.body.appendChild(this.x)
};
mboxAjaxFetcher.prototype.cancel=function(){};
mboxMap=function(){this.y=new Object();
this.z=new Array()
};
mboxMap.prototype.put=function(a,b){if(!this.y[a]){this.z[this.z.length]=a
}this.y[a]=b
};
mboxMap.prototype.get=function(a){return this.y[a]
};
mboxMap.prototype.remove=function(a){this.y[a]=undefined
};
mboxMap.prototype.each=function(d){for(var b=0;
b<this.z.length;
b++){var a=this.z[b];
var c=this.y[a];
if(c){var e=d(a,c);
if(e===false){break
}}}};
mboxFactory=function(e,a,d){this.E=false;
this.C=e;
this.D=d;
this.F=new mboxList();
mboxFactories.put(d,this);
this.G=typeof document.createElement("div").replaceChild!="undefined"&&(function(){return true
})()&&typeof document.getElementById!="undefined"&&typeof(window.attachEvent||document.addEventListener||window.addEventListener)!="undefined"&&typeof encodeURIComponent!="undefined";
this.H=this.G&&mboxGetPageParameter("mboxDisable")==null;
var c=d=="default";
this.J=new mboxCookieManager("mbox"+(c?"":("-"+d)),(function(){return mboxCookiePageDomain()
})());
this.H=this.H&&this.J.isEnabled()&&(this.J.getCookie("disable")==null);
if(this.isAdmin()){this.enable()
}this.K();
this.L=mboxGenerateId();
this.M=mboxScreenHeight();
this.N=mboxScreenWidth();
this.O=mboxBrowserWidth();
this.P=mboxBrowserHeight();
this.Q=mboxScreenColorDepth();
this.R=mboxBrowserTimeOffset();
this.S=new mboxSession(this.L,"mboxSession","session",31*60,this.J);
this.T=new mboxPC("PC",5184000,this.J);
this.w=new mboxUrlBuilder(e,a);
this.U(this.w,c);
this.V=new Date().getTime();
this.W=this.V;
var f=this;
this.addOnLoad(function(){f.W=new Date().getTime()
});
if(this.G){this.addOnLoad(function(){f.E=true;
f.getMboxes().each(function(b){b.setFetcher(new mboxAjaxFetcher());
b.finalize()
})
});
this.limitTraffic(100,10368000);
if(this.H){this.Z();
this._=new mboxSignaler(function(b,g){return f.create(b,g)
},this.J)
}}};
mboxFactory.prototype.isEnabled=function(){return this.H
};
mboxFactory.prototype.getDisableReason=function(){return this.J.getCookie("disable")
};
mboxFactory.prototype.isSupported=function(){return this.G
};
mboxFactory.prototype.disable=function(b,a){if(typeof b=="undefined"){b=60*60
}if(typeof a=="undefined"){a="unspecified"
}if(!this.isAdmin()){this.H=false;
this.J.setCookie("disable",a,b)
}};
mboxFactory.prototype.enable=function(){this.H=true;
this.J.deleteCookie("disable")
};
mboxFactory.prototype.isAdmin=function(){return document.location.href.indexOf("mboxEnv")!=-1
};
mboxFactory.prototype.limitTraffic=function(a,b){};
mboxFactory.prototype.addOnLoad=function(a){if(this.isDomLoaded()){a()
}else{var b=false;
var c=function(){if(b){return
}b=true;
a()
};
this.hb.push(c);
if(this.isDomLoaded()&&!b){c()
}}};
mboxFactory.prototype.getEllapsedTime=function(){return this.W-this.V
};
mboxFactory.prototype.getEllapsedTimeUntil=function(a){return a-this.V
};
mboxFactory.prototype.getMboxes=function(){return this.F
};
mboxFactory.prototype.get=function(b,a){return this.F.get(b).getById(a||0)
};
mboxFactory.prototype.update=function(a,d){if(!this.isEnabled()){return
}if(!this.isDomLoaded()){var b=this;
this.addOnLoad(function(){b.update(a,d)
});
return
}if(this.F.get(a).length()==0){throw"Mbox "+a+" is not defined"
}this.F.get(a).each(function(c){c.getUrlBuilder().addParameter("mboxPage",mboxGenerateId());
c.load(d)
})
};
mboxFactory.prototype.create=function(n,j,h){if(!this.isSupported()){return null
}var i=this.w.clone();
i.addParameter("mboxCount",this.F.length()+1);
i.addParameters(j);
var m=this.F.get(n).length();
var d=this.D+"-"+n+"-"+m;
var l;
if(h){l=new mboxLocatorNode(h)
}else{if(this.E){throw"The page has already been loaded, can't write marker"
}l=new mboxLocatorDefault(d)
}try{var b=this;
var g="mboxImported-"+d;
var a=new mbox(n,m,i,l,g);
if(this.H){a.setFetcher(this.E?new mboxAjaxFetcher():new mboxStandardFetcher())
}a.setOnError(function(c,e){a.setMessage(c);
a.activate();
if(!a.isActivated()){b.disable(60*60,c);
window.location.reload(false)
}});
this.F.add(a)
}catch(k){this.disable();
throw'Failed creating mbox "'+n+'", the error was: '+k
}var f=new Date();
i.addParameter("mboxTime",f.getTime()-(f.getTimezoneOffset()*60000));
return a
};
mboxFactory.prototype.getCookieManager=function(){return this.J
};
mboxFactory.prototype.getPageId=function(){return this.L
};
mboxFactory.prototype.getPCId=function(){return this.T
};
mboxFactory.prototype.getSessionId=function(){return this.S
};
mboxFactory.prototype.getSignaler=function(){return this._
};
mboxFactory.prototype.getUrlBuilder=function(){return this.w
};
mboxFactory.prototype.U=function(b,a){b.addParameter("mboxHost",document.location.hostname).addParameter("mboxSession",this.S.getId());
if(!a){b.addParameter("mboxFactoryId",this.D)
}if(this.T.getId()!=null){b.addParameter("mboxPC",this.T.getId())
}b.addParameter("mboxPage",this.L);
b.addParameter("screenHeight",this.M);
b.addParameter("screenWidth",this.N);
b.addParameter("browserWidth",this.O);
b.addParameter("browserHeight",this.P);
b.addParameter("browserTimeOffset",this.R);
b.addParameter("colorDepth",this.Q);
b.addParameter("mboxXDomain","enabled");
b.setUrlProcessAction(function(d){d+="&mboxURL="+encodeURIComponent(document.location);
var c=encodeURIComponent(document.referrer);
if(d.length+c.length<2000){d+="&mboxReferrer="+c
}d+="&mboxVersion="+mboxVersion;
return d
})
};
mboxFactory.prototype.sb=function(){return""
};
mboxFactory.prototype.Z=function(){document.write("<style>.mboxDefault { visibility:hidden; }</style>")
};
mboxFactory.prototype.isDomLoaded=function(){return this.E
};
mboxFactory.prototype.K=function(){if(this.hb!=null){return
}this.hb=new Array();
var a=this;
(function(){var b=document.addEventListener?"DOMContentLoaded":"onreadystatechange";
var c=false;
var d=function(){if(c){return
}c=true;
for(var f=0;
f<a.hb.length;
++f){a.hb[f]()
}};
if(document.addEventListener){document.addEventListener(b,function(){document.removeEventListener(b,arguments.callee,false);
d()
},false);
window.addEventListener("load",function(){document.removeEventListener("load",arguments.callee,false);
d()
},false)
}else{if(document.attachEvent){if(self!==self.top){document.attachEvent(b,function(){if(document.readyState==="complete"){document.detachEvent(b,arguments.callee);
d()
}})
}else{var e=function(){try{document.documentElement.doScroll("left");
d()
}catch(f){setTimeout(e,13)
}};
e()
}}}if(document.readyState==="complete"){d()
}})()
};
mboxSignaler=function(b,d){this.J=d;
var c=d.getCookieNames("signal-");
for(var e=0;
e<c.length;
e++){var g=c[e];
var a=d.getCookie(g).split("&");
var f=b(a[0],a);
f.load();
d.deleteCookie(g)
}};
mboxSignaler.prototype.signal=function(a,b){this.J.setCookie("signal-"+a,mboxShiftArray(arguments).join("&"),45*60)
};
mboxList=function(){this.F=new Array()
};
mboxList.prototype.add=function(a){if(a!=null){this.F[this.F.length]=a
}};
mboxList.prototype.get=function(b){var d=new mboxList();
for(var a=0;
a<this.F.length;
a++){var c=this.F[a];
if(c.getName()==b){d.add(c)
}}return d
};
mboxList.prototype.getById=function(a){return this.F[a]
};
mboxList.prototype.length=function(){return this.F.length
};
mboxList.prototype.each=function(b){if(typeof b!="function"){throw"Action must be a function, was: "+typeof(b)
}for(var a=0;
a<this.F.length;
a++){b(this.F[a])
}};
mboxLocatorDefault=function(a){this.g="mboxMarker-"+a;
document.write('<div id="'+this.g+'" style="visibility:hidden;display:none">&nbsp;</div>')
};
mboxLocatorDefault.prototype.locate=function(){var a=document.getElementById(this.g);
while(a!=null){if(a.nodeType==1){if(a.className=="mboxDefault"){return a
}}a=a.previousSibling
}return null
};
mboxLocatorDefault.prototype.force=function(){var a=document.createElement("div");
a.className="mboxDefault";
var b=document.getElementById(this.g);
b.parentNode.insertBefore(a,b);
return a
};
mboxLocatorNode=function(a){this.Eb=a
};
mboxLocatorNode.prototype.locate=function(){return typeof this.Eb=="string"?document.getElementById(this.Eb):this.Eb
};
mboxLocatorNode.prototype.force=function(){return null
};
mboxCreate=function(a){var b=mboxFactoryDefault.create(a,mboxShiftArray(arguments));
if(b){b.load()
}return b
};
mboxDefine=function(a,b){var c=mboxFactoryDefault.create(b,mboxShiftArray(mboxShiftArray(arguments)),a);
return c
};
mboxUpdate=function(a){mboxFactoryDefault.update(a,mboxShiftArray(arguments))
};
mbox=function(e,c,b,d,a){this.Kb=null;
this.Lb=0;
this.mb=d;
this.nb=a;
this.Mb=null;
this.Nb=new mboxOfferContent();
this.Fb=null;
this.w=b;
this.message="";
this.Ob=new Object();
this.Pb=0;
this.Ib=c;
this.g=e;
this.Qb();
b.addParameter("mbox",e).addParameter("mboxId",c);
this.Rb=function(){};
this.Sb=function(){};
this.Tb=null
};
mbox.prototype.getId=function(){return this.Ib
};
mbox.prototype.Qb=function(){if(this.g.length>250){throw"Mbox Name "+this.g+" exceeds max length of 250 characters."
}else{if(this.g.match(/^\s+|\s+$/g)){throw"Mbox Name "+this.g+" has leading/trailing whitespace(s)."
}}};
mbox.prototype.getName=function(){return this.g
};
mbox.prototype.getParameters=function(){var d=this.w.getParameters();
var b=new Array();
for(var a=0;
a<d.length;
a++){if(d[a].name.indexOf("mbox")!=0){b[b.length]=d[a].name+"="+d[a].value
}}return b
};
mbox.prototype.setOnLoad=function(a){this.Sb=a;
return this
};
mbox.prototype.setMessage=function(a){this.message=a;
return this
};
mbox.prototype.setOnError=function(a){this.Rb=a;
return this
};
mbox.prototype.setFetcher=function(a){if(this.Mb){this.Mb.cancel()
}this.Mb=a;
return this
};
mbox.prototype.getFetcher=function(){return this.Mb
};
mbox.prototype.load=function(d){if(this.Mb==null){return this
}this.setEventTime("load.start");
this.cancelTimeout();
this.Lb=0;
var a=(d&&d.length>0)?this.w.clone().addParameters(d):this.w;
this.Mb.fetch(a);
var b=this;
this.Vb=setTimeout(function(){b.Rb("browser timeout",b.Mb.getType())
},1000);
this.setEventTime("load.end");
return this
};
mbox.prototype.loaded=function(){this.cancelTimeout();
if(!this.activate()){var a=this;
setTimeout(function(){a.loaded()
},100)
}};
mbox.prototype.activate=function(){if(this.Lb){return this.Lb
}this.setEventTime("activate"+ ++this.Pb+".start");
if(this.show()){this.cancelTimeout();
this.Lb=1
}this.setEventTime("activate"+this.Pb+".end");
return this.Lb
};
mbox.prototype.isActivated=function(){return this.Lb
};
mbox.prototype.setOffer=function(a){if(a&&a.show&&a.setOnLoad){this.Nb=a
}else{throw"Invalid offer"
}return this
};
mbox.prototype.getOffer=function(){return this.Nb
};
mbox.prototype.show=function(){this.setEventTime("show.start");
var a=this.Nb.show(this);
this.setEventTime(a==1?"show.end.ok":"show.end");
return a
};
mbox.prototype.showContent=function(a){if(a==null){return 0
}if(this.Fb==null||!this.Fb.parentNode){this.Fb=this.getDefaultDiv();
if(this.Fb==null){return 0
}}if(this.Fb!=a){this.Xb(this.Fb);
this.Fb.parentNode.replaceChild(a,this.Fb);
this.Fb=a
}this.Yb(a);
this.Sb();
return 1
};
mbox.prototype.hide=function(){this.setEventTime("hide.start");
var a=this.showContent(this.getDefaultDiv());
this.setEventTime(a==1?"hide.end.ok":"hide.end.fail");
return a
};
mbox.prototype.finalize=function(){this.setEventTime("finalize.start");
this.cancelTimeout();
if(this.getDefaultDiv()==null){if(this.mb.force()!=null){this.setMessage("No default content, an empty one has been added")
}else{this.setMessage("Unable to locate mbox")
}}if(!this.activate()){this.hide();
this.setEventTime("finalize.end.hide")
}this.setEventTime("finalize.end.ok")
};
mbox.prototype.cancelTimeout=function(){if(this.Vb){clearTimeout(this.Vb)
}if(this.Mb!=null){this.Mb.cancel()
}};
mbox.prototype.getDiv=function(){return this.Fb
};
mbox.prototype.getDefaultDiv=function(){if(this.Tb==null){this.Tb=this.mb.locate()
}return this.Tb
};
mbox.prototype.setEventTime=function(a){this.Ob[a]=(new Date()).getTime()
};
mbox.prototype.getEventTimes=function(){return this.Ob
};
mbox.prototype.getImportName=function(){return this.nb
};
mbox.prototype.getURL=function(){return this.w.buildUrl()
};
mbox.prototype.getUrlBuilder=function(){return this.w
};
mbox.prototype._b=function(a){return a.style.display!="none"
};
mbox.prototype.Yb=function(a){this.ac(a,true)
};
mbox.prototype.Xb=function(a){this.ac(a,false)
};
mbox.prototype.ac=function(b,a){b.style.visibility=a?"visible":"hidden";
b.style.display=a?"block":"none"
};
mboxOfferContent=function(){this.Sb=function(){}
};
mboxOfferContent.prototype.show=function(a){var b=a.showContent(document.getElementById(a.getImportName()));
if(b==1){this.Sb()
}return b
};
mboxOfferContent.prototype.setOnLoad=function(a){this.Sb=a
};
mboxOfferAjax=function(a){this.Wb=a;
this.Sb=function(){}
};
mboxOfferAjax.prototype.setOnLoad=function(a){this.Sb=a
};
mboxOfferAjax.prototype.show=function(a){var c=document.createElement("div");
c.id=a.getImportName();
c.innerHTML=this.Wb;
var b=a.showContent(c);
if(b==1){this.Sb()
}return b
};
mboxOfferDefault=function(){this.Sb=function(){}
};
mboxOfferDefault.prototype.setOnLoad=function(a){this.Sb=a
};
mboxOfferDefault.prototype.show=function(a){var b=a.hide();
if(b==1){this.Sb()
}return b
};
mboxCookieManager=function mboxCookieManager(b,a){this.g=b;
this.dc=a==""||a.indexOf(".")==-1?"":"; domain="+a;
this.ec=new mboxMap();
this.loadCookies()
};
mboxCookieManager.prototype.isEnabled=function(){this.setCookie("check","true",60);
this.loadCookies();
return this.getCookie("check")=="true"
};
mboxCookieManager.prototype.setCookie=function(c,b,d){if(typeof c!="undefined"&&typeof b!="undefined"&&typeof d!="undefined"){var a=new Object();
a.name=c;
a.value=escape(b);
a.expireOn=Math.ceil(d+new Date().getTime()/1000);
this.ec.put(c,a);
this.saveCookies()
}};
mboxCookieManager.prototype.getCookie=function(b){var a=this.ec.get(b);
return a?unescape(a.value):null
};
mboxCookieManager.prototype.deleteCookie=function(a){this.ec.remove(a);
this.saveCookies()
};
mboxCookieManager.prototype.getCookieNames=function(a){var b=new Array();
this.ec.each(function(d,c){if(d.indexOf(a)==0){b[b.length]=d
}});
return b
};
mboxCookieManager.prototype.saveCookies=function(){var a=new Array();
var b=0;
this.ec.each(function(e,d){a[a.length]=e+"#"+d.value+"#"+d.expireOn;
if(b<d.expireOn){b=d.expireOn
}});
var c=new Date(b*1000);
document.cookie=this.g+"="+a.join("|")+"; expires="+c.toGMTString()+"; path=/"+this.dc
};
mboxCookieManager.prototype.loadCookies=function(){this.ec=new mboxMap();
var e=document.cookie.indexOf(this.g+"=");
if(e!=-1){var f=document.cookie.indexOf(";",e);
if(f==-1){f=document.cookie.indexOf(",",e);
if(f==-1){f=document.cookie.length
}}var g=document.cookie.substring(e+this.g.length+1,f).split("|");
var a=Math.ceil(new Date().getTime()/1000);
for(var c=0;
c<g.length;
c++){var d=g[c].split("#");
if(a<=d[2]){var b=new Object();
b.name=d[0];
b.value=d[1];
b.expireOn=d[2];
this.ec.put(b.name,b)
}}}};
mboxSession=function(b,c,e,d,a){this.rc=c;
this.Ab=e;
this.sc=d;
this.J=a;
this.tc=false;
this.Ib=typeof mboxForceSessionId!="undefined"?mboxForceSessionId:mboxGetPageParameter(this.rc);
if(this.Ib==null||this.Ib.length==0){this.Ib=a.getCookie(e);
if(this.Ib==null||this.Ib.length==0){this.Ib=b;
this.tc=true
}}a.setCookie(e,this.Ib,d)
};
mboxSession.prototype.getId=function(){return this.Ib
};
mboxSession.prototype.forceId=function(a){this.Ib=a;
this.J.setCookie(this.Ab,this.Ib,this.sc)
};
mboxPC=function(c,b,a){this.Ab=c;
this.sc=b;
this.J=a;
this.Ib=typeof mboxForcePCId!="undefined"?mboxForcePCId:a.getCookie(c);
if(this.Ib!=null){a.setCookie(c,this.Ib,b)
}};
mboxPC.prototype.getId=function(){return this.Ib
};
mboxPC.prototype.forceId=function(a){if(this.Ib!=a){this.Ib=a;
this.J.setCookie(this.Ab,this.Ib,this.sc);
return true
}return false
};
mboxGetPageParameter=function(c){var d=null;
var a=new RegExp(c+"=([^&]*)");
var b=a.exec(document.location);
if(b!=null&&b.length>=2){d=b[1]
}return d
};
mboxSetCookie=function(b,a,c){return mboxFactoryDefault.getCookieManager().setCookie(b,a,c)
};
mboxGetCookie=function(a){return mboxFactoryDefault.getCookieManager().getCookie(a)
};
mboxCookiePageDomain=function(){var a=(/([^:]*)(:[0-9]{0,5})?/).exec(document.location.host)[1];
var b=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;
if(!b.exec(a)){var c=(/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/).exec(a);
if(c){a=c[0]
}}return a?a:""
};
mboxShiftArray=function(a){var c=new Array();
for(var b=1;
b<a.length;
b++){c[c.length]=a[b]
}return c
};
mboxGenerateId=function(){return(new Date()).getTime()+"-"+Math.floor(Math.random()*999999)
};
mboxScreenHeight=function(){return screen.height
};
mboxScreenWidth=function(){return screen.width
};
mboxBrowserWidth=function(){return(window.innerWidth)?window.innerWidth:document.documentElement?document.documentElement.clientWidth:document.body.clientWidth
};
mboxBrowserHeight=function(){return(window.innerHeight)?window.innerHeight:document.documentElement?document.documentElement.clientHeight:document.body.clientHeight
};
mboxBrowserTimeOffset=function(){return -new Date().getTimezoneOffset()
};
mboxScreenColorDepth=function(){return screen.pixelDepth
};
if(typeof mboxVersion=="undefined"){var mboxVersion=40;
var mboxFactories=new mboxMap();
var mboxFactoryDefault=new mboxFactory("southwestairlines.tt.omtrdc.net","southwestairlines","default")
}if(mboxGetPageParameter("mboxDebug")!=null||mboxFactoryDefault.getCookieManager().getCookie("debug")!=null){setTimeout(function(){if(typeof mboxDebugLoaded=="undefined"){alert("Could not load the remote debug.\nPlease check your connection to Test&amp;Target servers")
}},60*60);
document.write('<script language="Javascript1.2" src="http://admin9.testandtarget.omniture.com/admin/mbox/mbox_debug.jsp?mboxServerHost=southwestairlines.tt.omtrdc.net&clientCode=southwestairlines"><\/script>')
};
