﻿var CAAN = {

    windowResizeHandler: function() {
        var objFooter = Phizz.Dom.ByID("Footer");
        objFooter.style.paddingTop = "0px";

        var yFooter = Phizz.Dom.GetAbsolutePosition(objFooter).y;
        var bodyHeight = document.body.offsetHeight;

        if (yFooter < bodyHeight - 120) objFooter.style.paddingTop = (bodyHeight - 120 - yFooter) + "px";
    },

    currentTabIndex: 1,
    showTab: function(index) {
        document.getElementById("t" + this.currentTabIndex).className = "";
        document.getElementById("c" + this.currentTabIndex).style.display = "none";
        this.currentTabIndex = index;
        document.getElementById("t" + this.currentTabIndex).className = "Active";
        document.getElementById("c" + this.currentTabIndex).style.display = "block";

        CAAN.windowResizeHandler();
    }

}


Phizz.Dom.RegisterWindowLoadEvent(CAAN.windowResizeHandler);
Phizz.Dom.RegisterWindowResizeEvent(CAAN.windowResizeHandler);