(function(){function c(){var d=YDom.getElementsByClassName("vcard","li",document,function(e){YEvent.on(e,"mouseover",function(){YDom.addClass(this,"hover")
});
YEvent.on(e,"mouseout",function(){YDom.removeClass(this,"hover")
})
})
}function a(){var f=145;
var g=Y$("dl.vcard-expanded dd span");
var e,j;
for(var h=0,d=g.length;
h<d;
h++){e=g[h];
j=e.innerHTML.replace(/(^\s*)|(\s*$)/g,"");
if(j.length>f){e.innerHTML=j.substring(0,f)+"..."
}}}function b(){var m=Y$("#mobile-search-bar",null,true),e=Y$("#mobile-search-bar input",null,true),f=Y$("#global-search .search-cancel",null,true),l=Y$("#global-search input[type=text]",null,false),j=Y$("#global-search legend span",null,true),d=YDom.get("content"),n=[],g="search-active",h,k=l.length;
YDom.addClass(Y$("body",null,true),"js");
if(!e){return
}if(!k){m.style.visibility="hidden";
return
}else{for(h=0;
h<k;
h++){n.push(l[h].value)
}n=n.join(" ");
e.value=n;
e.setAttribute("placeholder",j.innerHTML)
}YEvent.on(m,"click",function(){YDom.addClass(d,g);
l[0].focus()
});
YEvent.on(f,"click",function(){YDom.removeClass(d,g);
l[0].blur()
})
}c();
a();
b();
new LI.GhostLabel(Y$(".searchForm label.ghost")[0],{});
if(Y$(".searchForm label.ghost")[1]){new LI.GhostLabel(Y$(".searchForm label.ghost")[1],{})
}}());