var DEF_VAL   = "Search...";
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;
}
}
function commentAdded(request){if($('errors')){Element.remove('errors');}
new Effect.Appear($('commentlist').lastChild)
$('comment').value=''
$('comment').disabled=true
$('submit').disabled=true
if($('nocomment')){Element.remove('nocomment');}
if($('hidelist')){Element.remove('hidelist');}}
function failure(request){Element.show('errors')
$('errors').innerHTML=request.responseText
new Effect.Highlight('errors',{queue:'end'})
if($('nocomment')){Element.show('nocomment');}}
function loading(){if($('nocomment')){Element.hide('nocomment');}
$('
