(function() { var f = document.getElementById('searchForm'); if (f && f.q) { var q = f.q; var n = navigator; var l = location; if (n.userAgent.indexOf('Safari') != -1) { // Find coordinates of searchbox var x = 0; var y = 0; var el = q; while (el) { x += el.offsetLeft; y += el.offsetTop; el = el.offsetParent; } var i = document.createElement('img'); i.src = 'http://www.google.com/coop/images/searchbox.gif'; i.style.position = 'absolute'; i.style.left = (x + 2)+ 'px'; i.style.top = (y + 2) +'px'; i.style.display = 'none'; q.parentNode.insertBefore(i, q); var f = function() { i.style.display = 'none'; q.focus(); } var b = function() { if (q.value == '') { i.style.display = ''; } }; i.onclick = f; } else { if (n.platform == 'Win32') { q.style.cssText = 'border: 1px solid #7e9db9; padding: 2px;'; } var b = function() { if (q.value == '') { q.style.background = '#FFFFFF url(http://www.google.com/coop/images/searchbox.gif) left no-repeat'; } }; var f = function() { q.style.background = '#ffffff'; }; } q.onfocus = f; q.onblur = b; if (!/[&?]q=[^&]/.test(l.search)) { b(); } } })();