/**
 * Clou.sk User Interface
 */ 
var CLOU = {

    /**
     * Init UI functions
     */         
    init: function () {
        CLOU.toggleBoxElements();
        CLOU.emulateHover($(".sec-nav li"));
    },
    
    toggleBoxElements: function () {
         $(".box .manual a").click(function () {
              $(".box .pdfs").toggle();
              return false;
         });
         
         $(".box h3.contact a").click(function () {
              $(".box form.contact").toggle();
              return false;
         });
    },
    
    /**
     * Emulate hover
     */          
    emulateHover: function (items) {
        items.hover(
            function () {
                $(this).addClass('hover');
            },
            function () {
                $(this).removeClass('hover');
            }
        )
    }
}

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