﻿if (window.attachEvent) {
    window.attachEvent("onload", Init);
    //window.attachEvent("onunload", Page_Unload);
} else {
    window.addEventListener("DOMContentLoaded", Init, false);
    window.addEventListener("unload", Page_Unload, false);
}

//window.onload = Init;
var obj; 

function Init() {
    ContentInit();
}

/*

function SetCurrentSelectedTab(id) {
    obj = document.getElementById("tabHome");
    obj.removeAttribute("class");
    //obj = document.getElementById("tabHosting");
    //obj.removeAttribute("class");
    obj = document.getElementById("tabPortfolio");
    obj.removeAttribute("class");
    obj = document.getElementById("tabClientLogin");
    obj.removeAttribute("class");

    obj = document.getElementById(id);
    obj.setAttribute("class", "current");
}
*/

function SetCurrentSelectedTab(id) {
    obj = document.getElementById("tabHome");
    obj.removeAttribute("class");
    //obj = document.getElementById("tabHosting");
    //obj.removeAttribute("class");
    obj = document.getElementById("tabPortfolio");
    obj.removeAttribute("class");
    obj = document.getElementById("tabClientLogin");
    obj.removeAttribute("class");

    obj = document.getElementById(id);
    obj.setAttribute("class", "current");
    obj.setAttribute("className", "current");
}

