function Track(){this.host="commercial.trackthepack.com",this.number="",this.width=575,this.height=700,this.map_width="260px",this.map_height="200px",this.debug=!1,this.attach="ttp",this.api_key="",this.initialize=function(a){for(key in a)this[key]=a[key];this.generateFrameUrl()},this.generateFrameUrl=function(){var a=this.determineSecurity();a+=this.host+"/track",a+="?api="+this.api_key,a+="&url="+escape(window.location.hostname),a+="&number="+this.number,a+="&width="+this.width,a+="&height="+this.height,a+="&map_width="+escape(this.map_width),a+="&map_height="+this.map_height,this.debug==1&&(a+="&debug=true"),this.frameUrl=a},this.determineSecurity=function(){return this.ssl==1?"https://":"http://"},this.generateFrameMarkup=function(){var a='<iframe id="iframe_'+this.attach+'" height="'+this.height+'" width="'+this.width+'" allowTransparency="true" frameborder="0" scrolling="auto" style="width:'+this.width+"px;height:"+this.height+'px;border:none" src="'+this.frameUrl+'">';return a},this.display=function(){document.getElementById(this.attach).innerHTML=this.generateFrameMarkup()}}var ttp_key,ttp_number,ttp_width,ttp_height,ttp_m_width,ttp_m_height,ttp_debug;if(!ttp_width)var ttp_width=575;if(!ttp_height)var ttp_height=700;if(!ttp_m_width)var ttp_m_width=260;if(!ttp_m_height)var ttp_m_height=200;if(!ttp_debug)var ttp_debug=!1;var ttp_options={width:ttp_width,height:ttp_height,map_width:ttp_m_width+"px",map_height:ttp_m_height+"px",debug:ttp_debug,number:ttp_number,api_key:ttp_key},ttp;ttp=new Track,ttp.initialize(ttp_options),ttp.display();
