// Geothermal Anywhere

var GEOTHERMAL = {

    /**
     * Init functions
     */         
    init: function () {
        GEOTHERMAL.setUpLightBox();
        if($.browser.msie){
            GEOTHERMAL.fixIE6flicker(true);
        }                                      
    },
   
    /**
     * Set up lightBox
     */         
    setUpLightBox: function () {
        $('.gallery a').lightBox({
            imageLoading: 'fileadmin/template/images/lightbox/loading.gif',
            imageBtnClose: 'fileadmin/template/images/lightbox/close.gif',
            imageBtnPrev: 'fileadmin/template/images/lightbox/prev.gif',
            imageBtnNext: 'fileadmin/template/images/lightbox/next.gif',
            imageBlank: 'fileadmin/template/images/lightbox/blank.gif'
        });
    },
     
    /**
     * Fix background image flicker in IE6
     */         
    fixIE6flicker: function (fix) {
        try {
            document.execCommand("BackgroundImageCache", false, fix);
        } catch(err) { }
    }   
}

$(document).ready(function () {
    GEOTHERMAL.init();
});
