﻿/* this file is for Mazak Product Pages by Vasi Floroiu */

/* to change color when mouse over */
function changeSection1()
{
    document.getElementById("section1").style.backgroundColor = "#FF5901";
    document.getElementById("section1").style.color = "#1e1e1e";
//    document.getElementById("section1").style.filter = "alpha(opacity=70)";
//    document.getElementById("section1").style.MozOpacity = "0.70";
    document.getElementById("a1").style.color = "#ffffff";
}
function changeSection2()
{
    document.getElementById("section2").style.backgroundColor = "#ff5901";
    document.getElementById("section2").style.color = "#1e1e1e";
    document.getElementById("a2").style.color = "#ffffff";
}
function changeSection3()
{
    document.getElementById("section3").style.backgroundColor = "#ff5901";
    document.getElementById("section3").style.color = "#ffffff";
    document.getElementById("a3").style.color = "#ffffff";    
}
function changeSection4()
{
    document.getElementById("section4").style.backgroundColor = "#ff5901";
    document.getElementById("section4").style.color = "#ffffff";
    document.getElementById("a4").style.color = "#ffffff";    
}
function changeSection5()
{
    document.getElementById("section5").style.backgroundColor = "#ff5901";
    document.getElementById("section5").style.color = "#ffffff";
    document.getElementById("a5").style.color = "#ffffff";    
}
function changeSection6()
{
    document.getElementById("section6").style.backgroundColor = "#ff5901";
    document.getElementById("section6").style.color = "#ffffff";
    document.getElementById("a6").style.color = "#ffffff";    
}
function changeSection7()
{
    document.getElementById("section7").style.backgroundColor = "#ff5901";
    document.getElementById("section7").style.color = "#ffffff";
    document.getElementById("a7").style.color = "#ffffff";    
}

/* to change back when mouse out */
function changeSection1_back()
{
    document.getElementById("section1").style.backgroundColor = "";
    document.getElementById("section1").style.color = "#ffffff";
    document.getElementById("a1").style.color = "#ff5901";
//    document.getElementById("section1").style.filter = "";
//    document.getElementById("section1").style.MozOpacity = "";
}
function changeSection2_back()
{
    document.getElementById("section2").style.backgroundColor = "";
    document.getElementById("section2").style.color = "#ffffff";
    document.getElementById("a2").style.color = "#ff5901";
}
function changeSection3_back()
{
    document.getElementById("section3").style.backgroundColor = "";
    document.getElementById("section3").style.color = "#ffffff";
    document.getElementById("a3").style.color = "#ff5901";
}
function changeSection4_back()
{
    document.getElementById("section4").style.backgroundColor = "";
    document.getElementById("section4").style.color = "#ffffff";
    document.getElementById("a4").style.color = "#ff5901";
}
function changeSection5_back()
{
    document.getElementById("section5").style.backgroundColor = "";
    document.getElementById("section5").style.color = "#ffffff";
    document.getElementById("a5").style.color = "#ff5901";
}
function changeSection6_back()
{
    document.getElementById("section6").style.backgroundColor = "";
    document.getElementById("section6").style.color = "#ffffff";
    document.getElementById("a6").style.color = "#ff5901";
}
function changeSection7_back()
{
    document.getElementById("section7").style.backgroundColor = "";
    document.getElementById("section7").style.color = "#ffffff";
    document.getElementById("a7").style.color = "#ff5901";
}



/*
function changeSection_back()
{
    
    if (document.getElementById("section1"))
    {
        document.getElementById("section1").style.backgroundColor = "";
        document.getElementById("section1").style.color = "#ffffff";
        document.getElementById("a1").style.color = "#ff5901";
        document.getElementById("section1").style.filter = "";
        document.getElementById("section1").style.MozOpacity = "";
    }
    else if(document.getElementById("section2"))
    {
        document.getElementById("section2").style.backgroundColor = "";
        document.getElementById("section2").style.color = "#ffffff";
        document.getElementById("a2").style.color = "#ff5901";
    }
    else if(document.getElementById("section3"))
    {
        document.getElementById("section3").style.backgroundColor = "";
        document.getElementById("section3").style.color = "#ffffff";
        document.getElementById("a3").style.color = "#ff5901";
    }
    else if(document.getElementById("section3"))
    {
        document.getElementById("section4").style.backgroundColor = "";
        document.getElementById("section4").style.color = "#ffffff";
        document.getElementById("a4").style.color = "#ff5901";
    }
    else if(document.getElementById("section5"))
    {
        document.getElementById("section5").style.backgroundColor = "";
        document.getElementById("section5").style.color = "#ffffff";
        document.getElementById("a5").style.color = "#ff5901";
    }
    else if(document.getElementById("section6"))
    {
        document.getElementById("section6").style.backgroundColor = "";
        document.getElementById("section36).style.color = "#ffffff";
        document.getElementById("a6").style.color = "#ff5901";
    }
    else if(document.getElementById("section7"))
    {
        document.getElementById("section7").style.backgroundColor = "";
        document.getElementById("section7").style.color = "#ffffff";
        document.getElementById("a7").style.color = "#ff5901";
    }
    else
				{
					return false;
				}
}*/