if(!BREEZETAGS){
  var BREEZETAGS=null,breezetagsZ={
    uic:"__uic",
    version:"0.08",
    get_utc:function(){
      var b=new Date(),c=b.getTime(),a=b.getTimezoneOffset()*60000;
      return c+a
      },
    l_ts:-1,
    eval_func:function(_code){
      return eval(_code)
      },
    out:function(b){
      var a=true;
      if(a){
        if(window.console&&window.console.log){
          console.log(b)
          }
        }
    },
get_loader_script:function(){
  var a=document.getElementsByTagName("script"),b=null,d=null;
  for(var c=0;c<a.length;c++){
    d=a[c].src;
    if(d.search(/.*(localhost|cloud|breezetags).*\/ssss(-full|)\.js/)>=0){
      b=a[c]
      }
    }
  return(b?b:null)
},
init:function(){
  var a=this,b=function(d){
    d=d.src||undefined;
    if(d==undefined){
      d=location.search?location.search:""
      }
      var f=[],c=d.indexOf("?");
    if(c){
      d=d.substring(c+1)
      }
      d=d.replace("+"," ");
    var k=d.split(/[&]/g);
    for(var h=0;h<k.length;h++){
      var e=k[h].split("="),g=decodeURIComponent(e[0]),j=decodeURIComponent(e[1]);
      f[g]=(j)?j:""
      }
      return f
    };

  this.l_ts=breezetagsZ.get_utc();
  return breezetagsSSS(b(a.get_loader_script()))
  },
is_array:function(a){
  return a&&!(a.propertyIsEnumerable("length"))&&typeof a==="object"&&typeof a.length==="number"
  },
set_uic:function(){
  if(!document.domain){
    return false
    }
    var d=function(o){
    var n=5381;
    for(var m=o.length-1;m>=0;m--){
      n=((n<<5)+n)+parseInt(o.charCodeAt(m));
      if(n<0){
        n=-n
        }
      }
    return parseInt(n,16)
  },l=function(){
  var n=document.domain.split(/\./);
  var m="";
  if(n.length>1){
    m="."+n[n.length-2]+"."+n[n.length-1]
    }else{
    if(n.length==1){
      m=n[0]
      }
    }
  return m
},k=function(p,q){
  var n=q+"="+escape(p),m=new Date(breezetagsZ.l_ts+7776000000);
  n+=";expires="+m.toUTCString();
  var o=l();
  if(o){
    n+=";domain="+escape(o)
    }
    n+=";path=/";
  document.cookie=n
  },a=function(n){
  var m=document.cookie.match("(^|;) ?"+n+"=([^;]*)(;|$)");
  if(m){
    return(unescape(m[2]))
    }else{
    return false
    }
  },g=a(this.uic);
if(!g){
  var e=Math.round(Math.random()*2147483647).toString(16),b=breezetagsZ.l_ts.toString(16),j="",i=l();
  i=i.split(/\./)[1]||i.split(/\./)[0];
  j=d(i)+"-"+b+"-"+e+"-1";
  g=j;
  k(g,this.uic)
  }else{
  var f=g,c=f.split(/\-/);
  if(c.length==4){
    var h=parseInt(c[3]);
    h++;
    f=c[0]+"-"+c[1]+"-"+c[2]+"-"+h;
    g=f;
    k(g,this.uic)
    }
  }
return g
}
},breezetagsSSS=function(A){
  var B="http://breezetags-test.s3.amazonaws.com/ssss/",a="http://www.breezetags.com/",w=a+"api/l/?",r="btcontainer",d=B+"loader/ssss.css",u=B+"dialog/ssss_dialog.html",l=B+"loader/ssss_close_button.gif",v=breezetagsZ.set_uic(),e=1,y="btframe",C="breezethis_share",t=null,c={
    publisher:(A&&A.pid)?A.pid:0,
    host:location.host,
    path:location.pathname,
    session_id:breezetagsZ.l_ts.toString(16),
    page_url:document.URL,
    page_title:document.title?document.title:""
    },f={},m=function(E,F){
    if(typeof(window.addEventListener)!="undefined"){
      window.addEventListener(F,E,false)
      }else{
      if(typeof(document.addEventListener)!="undefined"){
        document.addEventListener(F,E,false)
        }else{
        if(typeof window.attachEvent!="undefined"){
          window.attachEvent("on"+F,E)
          }
        }
    }
},D=function(H,G){
  var F=document.createElement(H);
  for(var E in G){
    F.setAttribute(E,G[E])
    }
    try{
    document.getElementsByTagName("head")[0].appendChild(F)
    }catch(F){
    document.body.appendChild(F)
    }
  },n=function(){
  D("link",{
    href:d,
    rel:"stylesheet",
    type:"text/css"
  });
  var H=null,F=this,E=null;
  try{
    H=document.createElement("iframe");
    H.allowTransparency="true";
    H.setAttribute("allowTransparency","true")
    }catch(G){
    H=document.createElement('<iframe name="'+y+'" allowTransparency="true" style="body{background:transparent;}" ></iframe>')
    }
    H.id=y;
  H.className=y;
  H.name=y;
  H.frameBorder="0";
  H.scrolling="no";
  H.style.top="0px";
  H.style.left="0px";
  H.src=u;
  E=document.createElement("div");
  E.id="btcontainer";
  E.className="btcontainer";
  E.style.visibility="hidden";
  E.style.top="-999px";
  E.style.left="-999px";
  E.appendChild(H);
  t=document.createElement("img");
  t.src=l;
  t.title="close";
  t.height="15";
  t.width="15";
  t.className="btclose";
  t.style.position="absolute";
  t.onclick=function(){
    F.close_widget()
    };

  E.appendChild(t);
  if(this.w_created!==true){
    document.body.appendChild(E);
    this.w_created=true
    }
  },h=function(F){
  if(!document.getElementById(F)){
    try{
      document.write('<span id="'+F+'"></span>')
      }catch(E){
      breezetagsZ.out("doc_write_locator: can't create here a locator element.",E)
      }
    }
  return
},z=function(F){
  function L(N,O){
    N=N||"Send to phone";
    O=O||"BreezeThis to Your Friends via mobile, email, social bookmarking and networking sites.";
    var M=document.createElement("a"),P;
    M.className="btbutton btico";
    M.title=O;
    M.href="javascript:void(0)";
    P=document.createElement("span");
    P.className="btbuttontext";
    P.appendChild(document.createTextNode(N));
    M.appendChild(P);
    return M
    }
    function I(M,N){
    try{
      M.onclick=function(){
        if(BREEZETAGS.w_visible){
          BREEZETAGS.close_widget();
          if(this===BREEZETAGS.current_button){
            BREEZETAGS.current_button=null;
            return
          }else{}
      }
      BREEZETAGS.send_order("show","/page=home/title="+encodeURIComponent(N.page_title)+"/url="+encodeURIComponent(N.page_url)+"/pid="+encodeURIComponent(c.publisher)+"/sid="+c.session_id+"/cid="+v+"/host="+encodeURIComponent(c.host)+"/path="+encodeURIComponent(c.path)+"/view="+N.page_view);
      BREEZETAGS.current_button=M;
      BREEZETAGS.positionWidget(this);
      BREEZETAGS.close_widget=function(){
        k.call(this);
        this.log("d_close",{
          properties:{
            url:N.page_url,
            by_user:1
          }
        },null)
      };

    BREEZETAGS.log("d_open",{
      properties:{
        url:N.page_url,
        by_user:1
      }
    },null)
  }
}catch(O){
  breezetagsZ.out("attach_click: got exception",O,"on object",M)
  }
  return M
}
F=F||b;
var H,J={
  page_url:((F&&F.url)?F.url:c.page_url),
  page_title:((F&&F.title)?F.title:c.page_title),
  page_view:((F&&F.default_view)?F.default_view:"")
  };

switch(F.attach_type){
  case"noauto":
    break;
  case"behavior":
    var G=document.getElementById(F.dest_id);
    I(G,J);
    break;
  case"here":
    if(s){
    breezetagsZ.out("_attach_dialog: not attaching HERE as script is in HEAD")
    }else{
    if(s===false){
      h(C);
      H=document.getElementById(C);
      if(H){
        var E=L(F.link_text,F.tooltip);
        E=I(E,J);
        try{
          H.appendChild(E)
          }catch(K){
          breezetagsZ.out("_attach_dialog:can't append anchor to parent",E,H,K)
          }
        }else{
      breezetagsZ.out("_attach_dialog: can't find parent elt",H," to attach widget to.")
      }
    }else{
    breezetagsZ.out("_attach_dialog:can't find where SSS script is. ")
    }
  }
break;
case"container":
  if(F.dest_id){
  H=document.getElementById(F.dest_id);
  if(H){
    var E=L(F.link_text,F.tooltip);
    E=I(E,J);
    try{
      H.appendChild(E)
      }catch(K){
      breezetagsZ.out("_attach_dialog:can't append anchor to parent",E,H,K)
      }
    }else{
  breezetagsZ.out("_attach_dialog: can't find parent elt",H," to attach widget to.")
  }
}else{
  breezetagsZ.out("new_init(): no value for `dest_id` provided but attach_type:container requires `dest_id`")
  }
  break;
default:
  breezetagsZ.out("_attach_dialog got unknown value for `attach_type`",F.attach_type)
  }
},o=function(F,H,G){
  var I=w;
  I+="e="+F;
  if(G!=null){
    I+="&src="+G
    }
    if((H&&H.properties&&H.properties.by_user)){
    I+="&auto=0"
    }
    I+="&pid="+encodeURIComponent(c.publisher)+"&host="+encodeURIComponent(c.host)+"&path="+encodeURIComponent(c.path)+"&uri="+encodeURIComponent((H&&H.properties&&H.properties.url)?H.properties.url:c.page_url)+"&sid="+c.session_id+"&cid="+v+"&ts="+breezetagsZ.get_utc()+"."+e++;
  var E=new Image(1,1);
  E.src=I;
  E.onload=function(){}
},k=function(){
  var E=document.getElementById(r);
  E.style.visibility="hidden";
  document.getElementById(y).style.visibility="hidden";
  E.style.top="-999px";
  E.style.left="-999px";
  this.w_visible=false;
  this.send_order("reset","/page=home")
  },i=function(E){
  var G={};

  for(var F in E){
    if(!E.hasOwnProperty(F)){
      continue
    }
    G[F]=E[F]
    }
    for(var F in b){
    if(!b.hasOwnProperty(F)){
      continue
    }
    if(G[F]===undefined){
      G[F]=b[F]
      }
    }
  return G
},x=function(E){
  if(E==="undefined"){
    return{}
  }
  var G={};

for(var F in E){
  if(!E.hasOwnProperty(F)){
    continue
  }
  G[F]=E[F]
  }
  return G
},q=function(){
  var F=b.callback;
  if(F!==null){
    try{
      breezetagsZ.eval_func(F+"()")
      }catch(E){
      breezetagsZ.out("_exec_callback: failed to exec callback",F,"exception:",E)
      }
    }
},g=function(K){
  var E=["pid","attach_type","dest_id","default_view","init_time","callback","url","title","link_text","tooltip"],F={
    pid:0,
    attach_type:"noauto",
    dest_id:null,
    default_view:"phone",
    init_time:"onload",
    callback:null,
    url:null,
    title:null,
    link_text:null,
    tooltip:null
  };

  K=K||{};

  for(var H in K){
    if(!K.hasOwnProperty(H)){
      continue
    }
    var J=false;
    for(var G=E.length-1;G>=0;G--){
      if(H===E[G]){
        J=true
        }
      }
    if(!J){
    delete K[H]
  }
  }
  for(var G=E.length-1;G>=0;G--){
  var I=E[G];
  if(K[I]===undefined||!K.hasOwnProperty(I)){
    K[I]=F[I]
    }
  }
return K
},p=function(){
  n.call(this);
  z(false);
  o("p_view",{
    properties:{
      by_user:1
    }
  },null);
m(function(){
  o("p_close",{
    properties:{
      by_user:1
    }
  },null)
},"unload");
setTimeout(q,0)
},j=function(E){
  if(!E){
    return undefined
    }
    if(E.parentNode.tagName=="HEAD"){
    return true
    }else{
    return false
    }
  },s=j(breezetagsZ.get_loader_script()),b=g(x(A));
return{
  w_visible:false,
  w_created:false,
  positionWidget:function(Q){
    function G(){
      var ab=0,ad=0,X=0,aa=0,Z=window,ac=document.body,Y=document.documentElement;
      if(typeof(Z.pageYOffset)=="number"){
        ab=Z.pageXOffset;
        ad=Z.pageYOffset
        }else{
        if(ac&&(ac.scrollLeft||ac.scrollTop)){
          ab=ac.scrollLeft;
          ad=ac.scrollTop
          }else{
          if(Y&&(Y.scrollLeft||Y.scrollTop)){
            ab=Y.scrollLeft;
            ad=Y.scrollTop
            }
          }
      }
    if(Z.innerWidth){
    X=Z.innerWidth;
    aa=Z.innerHeight
    }else{
    if(Y.offsetWidth){
      X=Y.offsetWidth;
      aa=Y.offsetHeight
      }
    }
  return{
  left:ab,
  top:ad,
  width:X,
  height:aa
}
}
function T(Y){
  var X=0,Z=0;
  do{
    X+=Y.offsetTop;
    Z+=Y.offsetLeft
    }while(Y=Y.offsetParent);
  return{
    position_top:X,
    position_left:Z
  }
}
var M=document.getElementById(r),F=document.getElementById(y);
if(Q==null){
  M.style.top="300px";
  M.style.left="200px";
  M.style.visibility="visible";
  F.style.visibility="visible";
  return
}
var S=T(Q),R=S.position_left,W=S.position_top,K=Q.offsetHeight,E=Q.offsetWidth,H=G(),U=H.height+H.top,P=H.width+H.left,N=350,I=600,L=P-R,V=U-(W+K),J=R,O=W+K;
if(L<I){
  J=R+E-I
  }
  if(V<N&&W>N){
  O=W-N
  }
  M.style.top=O+"px";
M.style.left=J+"px";
M.style.visibility="visible";
F.style.visibility="visible";
this.w_visible=true
},
create:function(F){
  var E=i(F);
  E=g(E);
  z(E)
  },
send_order:function(E,F){
  window.frames[y].location.replace(u+"#"+E+F)
  },
new_init:function(){
  var E=this;
  switch(b.init_time){
    case"nowait":
      try{
      p.call(E)
      }catch(F){
      breezetagsZ.out("new_init(): tried calling _real_init(); exception err:",F)
      }
      break;
    case"onload":
      if(b.attach_type==="here"){
      h(C)
      }
      m(function(){
      p.call(E)
      },"load");
    break;
    default:
      breezetagsZ.out("new_init(): got unknown value for `global_config.init_time`",b.init_time)
      }
      return this
  },
log:function(E,G,F){
  o(E,G,F)
  }
}.new_init()
};

BREEZETAGS=breezetagsZ.init()
  };
