//google js causes "security" warning in IE when page is https. google doesn't offer script/img over https. 
//removing them breaks TOS, but what to do?
//copy the js here and host the img on our server
//call this function after each google search form
function google_cse_brand(cx) {
    var f = document.getElementById("searchbox_"+cx);
    if (!f) {
        return;
    }
    if (f && f.q) {
        var q = f.q;
        var n = navigator;
        var l = location;
        if (n.platform == "Win32") {
            q.style.cssText = "border: 1px solid #7e9db9; padding: 2px;";
        }
        var b = function () {if (q.value == "") {q.style.background = "#FFFFFF url(/images/google_custom_search_watermark.gif) left no-repeat";}};
        var f = function () {q.style.background = "#ffffff";};
        q.onfocus = f;
        q.onblur = b;
        if (!/[&?]q=[^&]/.test(l.search)) {
            b();
        }
    }
}
