// when the DOM is ready:
jQuery(document).ready(function () {
    if (!window.ie6) {
        var btn_imgs = jQuery("#buttonbar img");
        for (i = 1; i < btn_imgs.length; i++) {
            var btn_img = btn_imgs[i];
            // non-IE6 browser can use transparency, 
            // but IE7/8 need to use HTML src for switching image,
            // whereas Mozilla/Chrome use CSS for dynamic image change
            if (window.ie) {
            	btn_img.src = COGTREE.homepage.BUTTONBAR_OFF;
            } else {
                btn_img.setProperty("src", COGTREE.homepage.BUTTONBAR_OFF);
            }
        }
    }
    if (window.ie) {
        // this margin re-adjustment helps with IE "degraded" section
        // display}
        var sections = jQuery(".section");
        sections.each(function() {
            var section = jQuery(this);
            section.css("margin-left", "10px");
            section.css("margin-right", "10px");
        });
    }
});
