// Copyright (c) 2010, Charles Dumont
//
// ./javascript/script.js
// Various functions
//
// note :       needs jQuery < John Resig © 2010 http://jquery.com/ >
//


// function onInit()
// executed on page load.
// 
function onInit() {
        $(".js_mustshow_slide").hide();
        $(".js_mustshow_fade").hide();
        $(".js_willshow").show();
        $(".js_willhide").hide();
        
        $("#menu_normal").hide();
        $("#menu_office").hide();
        $("#menu_normal").slideDown();
        $("#menu_office").slideDown();
        $(".js_mustshow_fade").fadeIn('slow');
        $(".js_mustshow_slide").slideDown();
}

// object Download
// handles the download table
//
function _Download() {
        // funtion doShow
        //      shows it and switch the shower bar
        //
        this.doShow = function() {
                $("#download_show").hide(); 
                $("#download_hide").show(); 
                $("#download").fadeIn();
                 
                return false;
        }
        
        //funtion doHide
        //      hides it and switch the shower bar
        //
        this.doHide = function() {
                $("#download_hide").hide(); 
                $("#download_show").show(); 
                $("#download").fadeOut('fast');
                
                return false;
        }
        
        return this;
} Download = _Download();


