function goHome() {
    // document.getElementById('SubServices').style.display = 'none';
    document.getElementById('m1').style.background = 'url(/images/menuBG_on.png) no-repeat';
    //document.getElementById('m2').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m3').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m5').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m7').style.background = 'url(/images/menuBG_off.png) no-repeat';
}

function goServ() {
    document.getElementById('SubServices').style.display = 'block';
    //document.getElementById('m1').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m2').style.background = 'url(/images/menuBG_on.png) no-repeat';
    //document.getElementById('m3').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m5').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m7').style.background = 'url(/images/menuBG_off.png) no-repeat';

}

function goServ2() {
    document.getElementById('scrollme2').scrollTop = 1900;
    document.getElementById('SubServices').style.display = 'block';
    document.getElementById('m1').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m2').style.background = 'url(/images/menuBG_on.png) no-repeat';
    document.getElementById('m3').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m5').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m7').style.background = 'url(/images/menuBG_off.png) no-repeat';

}

function goCon() {
    //document.getElementById('SubServices').style.display = 'none';
    //document.getElementById('m1').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m2').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m3').style.background = 'url(/images/menuBG_on.png) no-repeat';
    //document.getElementById('m5').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m7').style.background = 'url(/images/menuBG_off.png) no-repeat';
}


function goMed() {
    //document.getElementById('SubServices').style.display = 'none';
    //document.getElementById('m1').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m2').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m3').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m5').style.background = 'url(/images/menuBG_on.png) no-repeat';
    //document.getElementById('m7').style.background = 'url(/images/menuBG_off.png) no-repeat';
}

function goPol() {
    //document.getElementById('SubServices').style.display = 'none';
    //document.getElementById('m1').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m2').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m3').style.background = 'url(/images/menuBG_off.png) no-repeat';
    //document.getElementById('m5').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m7').style.background = 'url(/images/menuBG_on.png) no-repeat';
}

// thingy that does a thing ...isn't this documentation so helpful? 
// actually it scrolls to a set position on the page you're headed to (in this case Panel 4). 

function panel4() {
    document.getElementById('scrollme4').scrollTop = 3200;
    document.getElementById('SubServices').style.display = 'none';
}
function panel4b() {
    document.getElementById('scrollme4').scrollTop = 0;
    document.getElementById('SubServices').style.display = 'none';
}
function panel2c() {
    document.getElementById('SubServices').style.display = 'block';
    document.getElementById('sdnp').scrollIntoView(true);
}

function closer() {
    document.getElementById('SubServices').style.display = 'none';
}

// combined function

function disFunction() {
    goServ2();
    booYaa();
}

 function flip1() { document.getElementById('F1').style.background = 'url(/images/icons/cutstyle_01.jpg) no-repeat'; }
 function flip2() { document.getElementById('F1').style.background = 'url(/images/icons/cutstyle_02.jpg) no-repeat'; }
 function flip3() { document.getElementById('F2').style.background = 'url(/images/icons/jenbouq.jpg) no-repeat'; }
 function flip4() { document.getElementById('F2').style.background = 'url(/images/icons/specstyles_02.jpg) no-repeat'; }
 function flip5() { document.getElementById('F2').style.background = 'url(/images/icons/specstyles_01.jpg) no-repeat'; }
 function flip6() { document.getElementById('F4').style.background = 'url(/images/icons/dpb_01.jpg) no-repeat'; }
 function flip7() { document.getElementById('F4').style.background = 'url(/images/icons/kerajap_01.jpg) no-repeat'; }
 function flip8() { document.getElementById('F5').style.background = 'url(/images/icons/dpb_02.jpg) no-repeat'; }
 function flip9() { document.getElementById('F5').style.background = 'url(/images/icons/color_01.jpg) no-repeat'; }
function flip10() { document.getElementById('F5').style.background = 'url(/images/icons/highlow_01.jpg) no-repeat'; }
function flip11() { document.getElementById('F6').style.background = 'url(/images/icons/mutrial_01.jpg) no-repeat'; }
function flip12() { document.getElementById('F9').style.background = 'url(/images/icons/jenbouq.jpg) no-repeat'; }
function flip13() { document.getElementById('F9').style.background = 'url(/images/icons/mutrial_02.jpg) no-repeat'; }
function flip14() { document.getElementById('F9').style.background = 'url(/images/icons/bride_01.jpg) no-repeat'; }
function flip15() { document.getElementById('F9').style.background = 'url(/images/icons/brimake_01.jpg) no-repeat'; }
function flip16() { document.getElementById('F9').style.background = 'url(/images/icons/bgirls_02.jpg) no-repeat'; }
function flip17() { document.getElementById('F7').style.background = 'url(/images/icons/tan.jpg) no-repeat'; }
function flip18() { document.getElementById('F7').style.background = 'url(/images/icons/lazer.jpg) no-repeat'; }
function flip19() { document.getElementById('F7').style.background = 'url(/images/icons/accu.jpg) no-repeat'; }
function flip20() { document.getElementById('F7').style.background = 'url(/images/icons/botox.jpg) no-repeat'; }

function showSalon() {
    document.getElementById('Salon_Spa').style.display = 'block';
    document.getElementById('Client').style.display = 'none';
    document.getElementById('p1').style.background = 'url(/images/salonspa_on.png) no-repeat';
    document.getElementById('p2').style.background = 'url(/images/client_off.png) no-repeat'; 
}
function showClient() {
    document.getElementById('Salon_Spa').style.display = 'none';
    document.getElementById('Client').style.display = 'block';
    document.getElementById('p1').style.background = 'url(/images/salonspa_off.png) no-repeat'; 
    document.getElementById('p2').style.background = 'url(/images/client_on.png) no-repeat';
}

function BrazBlow() {
    document.getElementById('SubServices').style.display = 'block';
    document.getElementById('m1').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m2').style.background = 'url(/images/menuBG_on.png) no-repeat';
    document.getElementById('m3').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m5').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('m7').style.background = 'url(/images/menuBG_off.png) no-repeat';
    document.getElementById('scrollme2').scrollTop = 1200;
}

function silentErrorHandler() {
    return true;
}
window.onerror = silentErrorHandler;