// JavaScript Document
function showSpecificContent(Obj,nextNum,totalNum){
	// hides all hidable in current select menu
	for(var i = 1; i < totalNum + 1; i++){
		document.getElementById(Obj+i).style.display = 'none';
	}
	// shows next object
	document.getElementById(Obj+nextNum).style.display = 'block';
}
function showSpecificTabContent(Obj,nextNum,totalNum){
	// hides all hidable in current select menu
	for(var i = 1; i < totalNum + 1; i++){
		document.getElementById(Obj+i).style.display = 'block';
	}
	// shows next object
	document.getElementById(Obj+nextNum).style.display = 'none';
}
// ----- START Toggle Show Hide function -----
function showhide(section) {
    var divToHide = section + "_pages";
    var imgToSwap = section + "_arrow";
    if (document.getElementById(divToHide).style.display == 'none') {
        document.getElementById(divToHide).style.display = 'block';
        document.getElementById(imgToSwap).src = 'images/pdf-open.gif';
    }
    else {
        document.getElementById(divToHide).style.display = 'none';
        document.getElementById(imgToSwap).src = 'images/pdf-closed.gif';
    }
}
// ----- END Toggle Show Hide function -----

//function sectionController: Checks or unchecks all items in the section
function sectionController(el) {
    checkSection(el.checked, el.name);
}

//function checkSection: Checks or unchecks all items in the section depending on boolswitch value
function checkSection(boolswitch, section) {
    var theSection = document.getElementsByName(section)
    for (i = 0; i < theSection.length; i++) {
        if (theSection[i].type == 'checkbox')
            theSection[i].checked = boolswitch;
    }
}
// onLoad close some tabs
function hideSomeTabs(section){
    var divToHide = section + "_pages";
    var imgToSwap = section + "_arrow";
    if (document.getElementById(divToHide).style.display == 'block') {
        document.getElementById(divToHide).style.display = 'none';
        document.getElementById(imgToSwap).src = 'images/pdf-closed.gif';
    }
 }
function closeSomeTabs(){
        document.getElementById('section2_pages').style.display = 'none';
        document.getElementById('section2_arrow').src = 'images/pdf-closed.gif';
        document.getElementById('section3_pages').style.display = 'none';
        document.getElementById('section3_arrow').src = 'images/pdf-closed.gif';
        document.getElementById('section4_pages').style.display = 'none';
        document.getElementById('section4_arrow').src = 'images/pdf-closed.gif';
        document.getElementById('section5_pages').style.display = 'none';
        document.getElementById('section5_arrow').src = 'images/pdf-closed.gif';
        document.getElementById('section6_pages').style.display = 'none';
        document.getElementById('section6_arrow').src = 'images/pdf-closed.gif';
        document.getElementById('section7_pages').style.display = 'none';
        document.getElementById('section7_arrow').src = 'images/pdf-closed.gif';
}


function showDivMyAlerts(divNumero)
{
document.getElementById(divNumero).style.display = '';
}
function hideDivMyAlerts(divNumero)
{
document.getElementById(divNumero).style.display = 'none';
}
function showDiv(divNumero)
{
document.getElementById(divNumero).style.display = 'block';
}

function hiddenDiv(divNumeroA)
{
document.getElementById(divNumeroA).style.display = 'none';
}





function hideContent(divNumeroA, divNumeroB)
{
document.getElementById(divNumeroA).style.display = 'none';
document.getElementById(divNumeroB).style.display = 'none';
}
function showContent(divNumeroA, divNumeroB)
{
document.getElementById(divNumeroA).style.display = 'block';
document.getElementById(divNumeroB).style.display = 'block';
}

function hideContent01(){
showContent('tabs015','tabsContent015');
hideContent('tabs025','tabsContent025');
hideContent('tabs035','tabsContent035');
hideContent('tabs045','tabsContent045');
hideContent('tabs055','tabsContent055');
hideContent('tabs065','tabsContent065');
hideContent('tabs075','tabsContent075');
}
function hideContent02(){
hideContent('tabs015','tabsContent015');
showContent('tabs025','tabsContent025');
hideContent('tabs035','tabsContent035');
hideContent('tabs045','tabsContent045');
hideContent('tabs055','tabsContent055');
hideContent('tabs065','tabsContent065');
hideContent('tabs075','tabsContent075');
}
function hideContent03(){
hideContent('tabs015','tabsContent015');
hideContent('tabs025','tabsContent025');
showContent('tabs035','tabsContent035');
hideContent('tabs045','tabsContent045');
hideContent('tabs055','tabsContent055');
hideContent('tabs065','tabsContent065');
hideContent('tabs075','tabsContent075');
}
function hideContent04(){
hideContent('tabs015','tabsContent015');
hideContent('tabs025','tabsContent025');
hideContent('tabs035','tabsContent035');
showContent('tabs045','tabsContent045');
hideContent('tabs055','tabsContent055');
hideContent('tabs065','tabsContent065');
hideContent('tabs075','tabsContent075');
}
function hideContent05(){
hideContent('tabs015','tabsContent015');
hideContent('tabs025','tabsContent025');
hideContent('tabs035','tabsContent035');
hideContent('tabs045','tabsContent045');
showContent('tabs055','tabsContent055');
hideContent('tabs065','tabsContent065');
hideContent('tabs075','tabsContent075');
}
function hideContent06(){
hideContent('tabs015','tabsContent015');
hideContent('tabs025','tabsContent025');
hideContent('tabs035','tabsContent035');
hideContent('tabs045','tabsContent045');
hideContent('tabs055','tabsContent055');
showContent('tabs065','tabsContent065');
hideContent('tabs075','tabsContent075');
}
function hideContent07(){
alert("sdf");
hideContent('tabs015','tabsContent015');
hideContent('tabs025','tabsContent025');
hideContent('tabs035','tabsContent035');
hideContent('tabs045','tabsContent045');
hideContent('tabs055','tabsContent055');
hideContent('tabs065','tabsContent065');
showContent('tabs075','tabsContent075');
}


// new home tab functions
function overTab02(){
showMenuTab('finalTab02Text');showMenuTab('graph02');
hideMenuTab('finalTab01Text');hideMenuTab('graph01');
}
function overTab03(){
showMenuTab('finalTab03Text');showMenuTab('graph03');
hideMenuTab('finalTab01Text');hideMenuTab('graph01');
}
function overTab04(){
showMenuTab('finalTab04Text');showMenuTab('graph04');
hideMenuTab('finalTab01Text');hideMenuTab('graph01');
}
function overTab05(){
showMenuTab('finalTab05Text');showMenuTab('graph05');
hideMenuTab('finalTab01Text');hideMenuTab('graph01');
}
function overTab06(){
showMenuTab('finalTab06Text');showMenuTab('graph06');
hideMenuTab('finalTab01Text');hideMenuTab('graph01');
}

function overTab07(){
showMenuTab('finalTab07Text');showMenuTab('graph07');
hideMenuTab('finalTab01Text');hideMenuTab('graph01');
}

function outTab02(){
showMenuTab('finalTab01Text');showMenuTab('graph01');
hideMenuTab('finalTab02Text');hideMenuTab('graph02');
}
function outTab03(){
showMenuTab('finalTab01Text');showMenuTab('graph01');
hideMenuTab('finalTab03Text');hideMenuTab('graph03');
}
function outTab04(){
showMenuTab('finalTab01Text');showMenuTab('graph01');
hideMenuTab('finalTab04Text');hideMenuTab('graph04');
}
function outTab05(){
showMenuTab('finalTab01Text');showMenuTab('graph01');
hideMenuTab('finalTab05Text');hideMenuTab('graph05');
}
function outTab06(){
showMenuTab('finalTab01Text');showMenuTab('graph01');
hideMenuTab('finalTab06Text');hideMenuTab('graph06');
}
function outTab07(){
showMenuTab('finalTab01Text');showMenuTab('graph01');
hideMenuTab('finalTab07Text');hideMenuTab('graph07');
}



function hideLink(divNumeroA, divNumeroB)
{
document.getElementById(divNumeroA).style.display = 'none';
document.getElementById(divNumeroB).style.display = 'block';
}
function cleanUpOnLoads(){
	onLoadHideSet02();
	onLoadHideSet03();
	onLoadHideSet04();
	onLoadHideSet05();
	onLoadHideSet06();
	onLoadHideSet07();
}
function onLoadHideSet02(){
     showDiv('myAlertsClosed01');
     showDiv('myAlertsMenuClosed01');
     hiddenDiv('myAlertsOpen01');
     hideDivMyAlerts('myAlertsTable01');
}
function onLoadHideSet03(){
     showDiv('myAlertsClosed02');
     showDiv('myAlertsMenuClosed02');
     hiddenDiv('myAlertsOpen02');
     hideDivMyAlerts('myAlertsTable02');
}
function onLoadHideSet04(){
     showDiv('myAlertsClosed03');
     showDiv('myAlertsMenuClosed03');
     hiddenDiv('myAlertsOpen03');
     hideDivMyAlerts('myAlertsTable03');
}
function onLoadHideSet05(){
     showDiv('myAlertsClosed04');
     showDiv('myAlertsMenuClosed04');
     hiddenDiv('myAlertsOpen04');
     hideDivMyAlerts('myAlertsTable04');
}
function onLoadHideSet06(){
     showDiv('myAlertsClosed05');
     showDiv('myAlertsMenuClosed05');
     hiddenDiv('myAlertsOpen05');
     hideDivMyAlerts('myAlertsTable05');
}
function onLoadHideSet07(){
     showDiv('myAlertsClosed06');
     showDiv('myAlertsMenuClosed06');
     hiddenDiv('myAlertsOpen06');
     hideDivMyAlerts('myAlertsTable06');
}


// HOME MENU TABS

function hideMenuTab(divNumeroA)
{
document.getElementById(divNumeroA).style.display = 'none';
}
function showMenuTab(divNumeroA)
{
document.getElementById(divNumeroA).style.display = 'block';
}

function changeClassOn(divNumeroA)
{
document.getElementById(divNumeroA).className = 'finalTabOnNew';
}
function changeClassOff(divNumeroA)
{
document.getElementById(divNumeroA).className = 'finalTabOn';
}

function newOvers01(){
showMenuTab('menuItem01');
hideMenuTab('menuItem02');
hideMenuTab('menuItem03');
hideMenuTab('menuItem04');
hideMenuTab('menuItem05');
hideMenuTab('menuItem06');
hideMenuTab('menuItem07');
}
function newOvers02(){
showMenuTab('menuItem02');
hideMenuTab('menuItem01');
hideMenuTab('menuItem03');
hideMenuTab('menuItem04');
hideMenuTab('menuItem05');
hideMenuTab('menuItem06');
hideMenuTab('menuItem07');
}
function newOvers03(){
showMenuTab('menuItem03');
hideMenuTab('menuItem01');
hideMenuTab('menuItem02');
hideMenuTab('menuItem04');
hideMenuTab('menuItem05');
hideMenuTab('menuItem06');
hideMenuTab('menuItem07');
}
function newOvers04(){
showMenuTab('menuItem04');
hideMenuTab('menuItem01');
hideMenuTab('menuItem02');
hideMenuTab('menuItem03');
hideMenuTab('menuItem05');
hideMenuTab('menuItem06');
hideMenuTab('menuItem07');
}
function newOvers05(){
showMenuTab('menuItem05');
hideMenuTab('menuItem01');
hideMenuTab('menuItem02');
hideMenuTab('menuItem03');
hideMenuTab('menuItem04');
hideMenuTab('menuItem06');
hideMenuTab('menuItem07');
}
function newOvers06(){
showMenuTab('menuItem06');
hideMenuTab('menuItem01');
hideMenuTab('menuItem02');
hideMenuTab('menuItem03');
hideMenuTab('menuItem04');
hideMenuTab('menuItem05');
hideMenuTab('menuItem07');
}
function newOvers07(){
showMenuTab('menuItem07');
hideMenuTab('menuItem06');
hideMenuTab('menuItem02');
hideMenuTab('menuItem03');
hideMenuTab('menuItem04');
hideMenuTab('menuItem05');
}
















