﻿function leftnav(num) {
document.getElementById('leftnav' + num).style.color='#007fb3';
}

function headernav(num){
//for (o = 1; o <= 6; o++){document.getElementById('hmenubuta' + o).style.color='#586a80';}
//document.getElementById('hmenubut' + num).style.backgroundColor='#37414b';
//document.getElementById('hmenubuta' + num).style.color='#fff';
for (o = 1; o <= 6; o++){document.getElementById('hmenubuta' + num).className='';}
document.getElementById('hmenubuta' + num).className='selected_top';
fixes()
}

function headernavover(num){
//for (o = 1; o <= x; o++){document.getElementById('HMenuButA' + o).style.color='#586a80';}
document.getElementById('hmenubuta' + num).style.color='#fff';
document.getElementById('hmenubut' + num).style.backgroundColor='#37414b';
}

function headernavout(num){
//for (o = 1; o <= x; o++){document.getElementById('hmenubuta' + o).style.color='#586a80';}
document.getElementById('hmenubuta' + num).style.color='#586a80';
document.getElementById('hmenubut' + num).style.backgroundColor='#fff';
}

function LeftNav2(num){
document.getElementById('leftnav2-' + num).style.color='#0192de';
document.getElementById('hmenubuta5').style.color='#fff';
document.getElementById('hmenubut5').style.backgroundColor='#37414b';
document.getElementById('hmenubuta5').style.hover='';
document.getElementById('hmenustrong5').style.color='#fff';
}
//============================================

function lmb(num){
document.getElementById('lmb' + num).style.backgroundImage = 'url(/Bg/LMBT2.jpg)';
}

function lmbout(num){
document.getElementById('lmb' + num).style.backgroundImage = 'url(/Bg/LMBT.jpg)';
if(num==leftbut){document.getElementById('lmb' + num).style.backgroundImage = 'url(/Bg/LMBT2.jpg)';}
}

function lmbin(num){
document.getElementById('lmb' + num).style.backgroundImage = 'url(/Bg/LMBTIn2.jpg)';
}

function lmbinout(num){
document.getElementById('lmb' + num).style.backgroundImage = 'url(/Bg/LMBTIn.jpg)';
if(num==leftbut){document.getElementById('lmb' + num).style.backgroundImage = 'url(/Bg/LMBTIn2.jpg)';}
}

function lmbin1(num){
document.getElementById('lmb' + num).style.backgroundImage = 'url(/Bg/LMBT2.jpg)';
}


function glossary(num){
document.getElementById('glossary_' + num).className='glossary_selected';
}
function glossaryletter(num){
document.getElementById('glossary_' + num).className='glossary_selected';
}


////////////////////////
function lmbin2(num){
document.getElementById('lmb' + num).style.backgroundColor = '#c7c7c9';
}

function lmbinout2(num){
document.getElementById('lmb' + num).style.backgroundColor = '#eeeeee';
if(num==leftbut){document.getElementById('lmb' + num).style.backgroundColor = '#c7c7c9';}
}

function lmb2(num){
document.getElementById('lmb2_' + num).style.backgroundColor = '#c7c7c9';
}

function lmbout2(num){
document.getElementById('lmb2_' + num).style.backgroundColor = '#eeeeee';
if(num==leftbut){document.getElementById('lmb2_' + num).style.backgroundColor = '#c7c7c9';}
}


function footerForm() {
    var name = 0;
    var umail = 0;

    document.getElementById('newsname').style.backgroundColor = '#ffffa0';
    document.getElementById('Text5').style.backgroundColor = '#ffffa0';

    if (document.getElementById("newsname").value == "") { umail++; };
    if (document.getElementById("Text5").value == "") { name++; };

    if (umail != 0) {
        document.getElementById('newsname').style.backgroundColor = 'red';
    };
    
    if (name != 0) {
        document.getElementById('Text5').style.backgroundColor = 'red';
    };

    if (umail == 0 && name == 0) {
        document.newsletterForm.submit();
    };

}

function footerOriginalColor(el) {el.style.backgroundColor = '#ffffa0';}
