var DEF_VAL   = "Search our Knowledge Base...";
var isSafari = (navigator.userAgent.indexOf("AppleWebKit") !=-1);
run();
function run()
{
var oldOnload = window.onload;
if (typeof(window.onload) != "function") {
window.onload = init;
} else {
window.onload = function() {
oldOnload();
init();
}
}
}
function init() {
if (!document.getElementById) return;
var theSearchField = document.getElementById('s');
if (isSafari) {
theSearchField.setAttribute('type', 'search');
theSearchField.setAttribute('autosave', 'bsn_srch');
theSearchField.setAttribute('results', '5');
theSearchField.setAttribute('Placeholder', DEF_VAL);
} else {
theSearchField.onfocus    = focusSearch;
theSearchField.onblur     = blurSearch;
if (theSearchField.value=='') theSearchField.value = DEF_VAL;
}
}
function focusSearch() {
if (this.value==DEF_VAL) {
this.value = '';
}
}
function blurSearch() {
if (this.value=='') {
this.value = DEF_VAL;
}
}