var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;
var link = 0;
var menuidold = 0;



// open hidden layer
function mopen(id,menuid)
{	

	// cancel close timer
	mcancelclosetime();
   

	// close old layer
	if(ddmenuitem)  ddmenuitem.style.visibility = 'hidden';
	
	if (menuidold != menuid)
	 {if (menuidold != 0){
	     document.getElementById(menuidold).setAttribute('class', 'menubuttoninactive');
	     document.getElementById(menuidold).setAttribute('className', 'menubuttoninactive');
	}
	 
	 }
	menuidold = menuid;
	
	
	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';


}

// open hidden layer
function mover(menuid) {

    // cancel close timer
    mcancelclosetime();


    // close old layer
    if (ddmenuitem) ddmenuitem.style.visibility = 'hidden';

    if (menuidold != menuid) {
        if (menuidold != 0) {
            document.getElementById(menuidold).setAttribute('class', 'menubuttoninactive');
            document.getElementById(menuidold).setAttribute('className', 'menubuttoninactive');
        }

    }
    menuidold = menuid;


    

}


// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
	document.getElementById('mainLink1').setAttribute('class', 'menubuttoninactive');
document.getElementById('mainLink1').setAttribute('className', 'menubuttoninactive');
	document.getElementById('mainLink2').setAttribute('class', 'menubuttoninactive');
	document.getElementById('mainLink2').setAttribute('className', 'menubuttoninactive');
	document.getElementById('mainLink3').setAttribute('class', 'menubuttoninactive');
	document.getElementById('mainLink3').setAttribute('className', 'menubuttoninactive');
	document.getElementById('mainLink4').setAttribute('class', 'menubuttoninactive');
	document.getElementById('mainLink4').setAttribute('className', 'menubuttoninactive');
	document.getElementById('mainLink5').setAttribute('class', 'menubuttoninactive');
	document.getElementById('mainLink5').setAttribute('className', 'menubuttoninactive');
	document.getElementById('mainLink6').setAttribute('class', 'menubuttoninactive');
	document.getElementById('mainLink6').setAttribute('className', 'menubuttoninactive');
	document.getElementById('mainLink7').setAttribute('class', 'menubuttoninactive');
	document.getElementById('mainLink7').setAttribute('className', 'menubuttoninactive');
	document.getElementById('mainLink8').setAttribute('class', 'cppinactive');
	document.getElementById('mainLink8').setAttribute('className', 'cppinactive');
}

// go close timer
function mclosetime(link)
{

	closetimer = window.setTimeout(mclose, timeout);
	
}

// cancel close timer
function mcancelclosetime()
{

	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
	
}

function menuchange(link)
{
    document.getElementById('mainLink1').setAttribute('class', 'menubuttoninactive');
    document.getElementById('mainLink1').setAttribute('className', 'menubuttoninactive');
    document.getElementById('mainLink2').setAttribute('class', 'menubuttoninactive');
    document.getElementById('mainLink2').setAttribute('className', 'menubuttoninactive');
    document.getElementById('mainLink3').setAttribute('class', 'menubuttoninactive');
    document.getElementById('mainLink3').setAttribute('className', 'menubuttoninactive');
    document.getElementById('mainLink4').setAttribute('class', 'menubuttoninactive');
    document.getElementById('mainLink4').setAttribute('className', 'menubuttoninactive');
    document.getElementById('mainLink5').setAttribute('class', 'menubuttoninactive');
    document.getElementById('mainLink5').setAttribute('className', 'menubuttoninactive');
    document.getElementById('mainLink6').setAttribute('class', 'menubuttoninactive');
    document.getElementById('mainLink6').setAttribute('className', 'menubuttoninactive');
    document.getElementById('mainLink7').setAttribute('class', 'menubuttoninactive');
    document.getElementById('mainLink7').setAttribute('className', 'menubuttoninactive');
    document.getElementById('mainLink8').setAttribute('class', 'cppinactive');
    document.getElementById('mainLink8').setAttribute('className', 'cppinactive');

    if (link == ('mainLink2') || link == ('mainLink3') || link == ('mainLink4')) {
        document.getElementById(link).setAttribute('class', 'menubuttonactivediv');
        document.getElementById(link).setAttribute('className', 'menubuttonactivediv');
    }
    else if (link == ('mainLink8')) {
        document.getElementById(link).setAttribute('class', 'cppactive');
        document.getElementById(link).setAttribute('className', 'cppactive');
    }
    else {
        document.getElementById(link).setAttribute('class', 'menubuttonactive');
        document.getElementById(link).setAttribute('className', 'menubuttonactive');
    }

	}
	
	
	
	
	function menuchangemain(link)
{

    if (link == ('mainLink8')) {
        document.getElementById(link).setAttribute('class', 'cppinactive');
        document.getElementById(link).setAttribute('className', 'cppinactive');
    }
    else {
        document.getElementById(link).setAttribute('class', 'menubuttoninactive');
        document.getElementById(link).setAttribute('className', 'menubuttoninactive');
    }
	}

// close layer when click-out
	document.onclick = mclose;




	//promotabs

	var promoclosetimer = 0;
	var promoidold = 0;
	var promolink = 0;
	var promoitem = 0;

	// open hidden layer
	function promomopen(promoid, promomenuid) {

	    // cancel close timer
	    promomcancelclosetime();


	    // close old layer
	    if (promoitem) promoitem.style.visibility = 'hidden';

	    if (promoidold != promomenuid) {
	        if (promoidold != 0) {


	            if (promolink == ('promoLink1')) {
	                document.getElementById(promolink).setAttribute('class', 'promoinactivefirst');
	                document.getElementById(promolink).setAttribute('className', 'promoinactivefirst');
	            }
	            else if (promolink == ('promoLink2')) {
	                document.getElementById(promolink).setAttribute('class', 'promoinactivesecond');
	                document.getElementById(promolink).setAttribute('className', 'promoinactivesecond');
	            }
	            else {
	                document.getElementById(promoidold).setAttribute('class', 'promoinactivethird');
	                document.getElementById(promoidold).setAttribute('className', 'promoinactivethird');
	            }
	            promo1.style.visibility = 'hidden';
	        }

	    }
	    promoidold = promomenuid;


	    // get new layer and show it
	    promoitem = document.getElementById(promoid);
	    promoitem.style.visibility = 'visible';


	}

	// open hidden layer
	function promomover(promomenuid) {

	    // cancel close timer
	    promomcancelclosetime();


	    // close old layer
	    if (promoitem) promoitem.style.visibility = 'hidden';

	    if (promoidold != promomenuid) {
	        if (promoidold != 0) {

	            if (promolink == ('promoLink1')) {
	                document.getElementById(promolink).setAttribute('class', 'promoactivefirst');
	                document.getElementById(promolink).setAttribute('className', 'promoactivefirst');
	            }
	            else if (promolink == ('promoLink2')) {
	                document.getElementById(promolink).setAttribute('class', 'promoactivesecond');
	                document.getElementById(promolink).setAttribute('className', 'promoactivesecond');
	            }
	            else {
	                document.getElementById(promoidold).setAttribute('class', 'promoactivethird');
	                document.getElementById(promoidold).setAttribute('className', 'promoactivethird');
	            }
	        }

	    }
	    promoidold = promomenuid;




	}


	// close showed layer
	function promomclose() {
	    if (promoitem) promoitem.style.visibility = 'hidden';
	    document.getElementById('promoLink1').setAttribute('class', 'promoactivefirst');
	    document.getElementById('promoLink1').setAttribute('className', 'promoactivefirst');
	    document.getElementById('promoLink2').setAttribute('class', 'promoinactivesecond');
	    document.getElementById('promoLink2').setAttribute('className', 'promoinactivesecond');
	    document.getElementById('promoLink3').setAttribute('class', 'promoinactivethird');
	    document.getElementById('promoLink3').setAttribute('className', 'promoinactivethird');
	    promo1.style.visibility = 'visible';
	   
	}

	// go close timer
	function promomclosetime(link) {

	    promoclosetimer = window.setTimeout(promomclose, timeout);

	}

	// cancel close timer
	function promomcancelclosetime() {

	    if (promoclosetimer) {
	        window.clearTimeout(promoclosetimer);
	        promoclosetimer = null;
	    }

	}

	function promomenuchange(promolink) {
	    document.getElementById('promoLink1').setAttribute('class', 'promoinactivefirst');
	    document.getElementById('promoLink1').setAttribute('className', 'promoinactivefirst');
	    document.getElementById('promoLink2').setAttribute('class', 'promoinactivesecond');
	    document.getElementById('promoLink2').setAttribute('className', 'promoinactivesecond');
	    document.getElementById('promoLink3').setAttribute('class', 'promoinactivethird');
	    document.getElementById('promoLink3').setAttribute('className', 'promoinactivethird');

	    if (promolink == ('promoLink1')) {
	        document.getElementById(promolink).setAttribute('class', 'promoactivefirst');
	        document.getElementById(promolink).setAttribute('className', 'promoactivefirst');
	    }
	    else if (promolink == ('promoLink2')) {
	        document.getElementById(promolink).setAttribute('class', 'promoactivesecond');
	        document.getElementById(promolink).setAttribute('className', 'promoactivesecond');
	    }
	    else {
	        document.getElementById(promoidold).setAttribute('class', 'promoactivethird');
	        document.getElementById(promoidold).setAttribute('className', 'promoactivethird');
	    }

	    //if (promolink == ('mainLink2') || promolink == ('mainLink3') || promolink == ('mainLink4')) {
	        //document.getElementById(promolink).setAttribute('class', 'menubuttonactivediv');
	        //document.getElementById(promolink).setAttribute('className', 'menubuttonactivediv');
	    //}
	    //else if (promolink == ('mainLink8')) {
	        //document.getElementById(promolink).setAttribute('class', 'cppactive');
	        //document.getElementById(promolink).setAttribute('className', 'cppactive');
	    //}
	    //else {
	        //document.getElementById(promolink).setAttribute('class', 'menubuttonactive');
	        //document.getElementById(promolink).setAttribute('className', 'menubuttonactive');
	    //}

	}




	function promomenuchangemain(promolink) {

	    document.getElementById(promolink).setAttribute('class', 'promoinactive');
	    document.getElementById(promolink).setAttribute('className', 'promoinactive');

	    //if (promolink == ('mainLink8')) {
	        //document.getElementById(promolink).setAttribute('class', 'cppinactive');
	        //document.getElementById(promolink).setAttribute('className', 'cppinactive');
	    //}
	    //else {
	        //document.getElementById(promolink).setAttribute('class', 'menubuttoninactive');
	        //document.getElementById(promolink).setAttribute('className', 'menubuttoninactive');
	    //}
	}

	// close layer when click-out
	document.onclick = promomclose;



	//pstabs




	var psclosetimer = 0;
	var psidold = 0;
	var pslink = 0;
	var psitem = 0;

	// open hidden layer
	function psmopen(psid, psmenuid) {

	    // cancel close timer
	    psmcancelclosetime();


	    // close old layer
	    if (psitem) psitem.style.visibility = 'hidden';

	    if (psidold != psmenuid) {
	        if (psidold != 0) {
	            document.getElementById(psidold).setAttribute('class', 'psinactive');
	            document.getElementById(psidold).setAttribute('className', 'psinactive');
	            ps1.style.visibility = 'hidden';
	        }

	    }
	    psidold = psmenuid;


	    // get new layer and show it
	    psitem = document.getElementById(psid);
	    psitem.style.visibility = 'visible';


	}

	// open hidden layer
	function psmover(psmenuid) {

	    // cancel close timer
	    psmcancelclosetime();


	    // close old layer
	    if (psitem) psitem.style.visibility = 'hidden';

	    if (psidold != psmenuid) {
	        if (psidold != 0) {
	            document.getElementById(psidold).setAttribute('class', 'psinactive');
	            document.getElementById(psidold).setAttribute('className', 'psinactive');
	        }

	    }
	    psidold = psmenuid;




	}


	// close showed layer
	function psmclose() {
	    if (psitem) psitem.style.visibility = 'hidden';
	    document.getElementById('psLink1').setAttribute('class', 'psinactivefirst');
	    document.getElementById('psLink1').setAttribute('className', 'psinactivefirst');
	    document.getElementById('psLink2').setAttribute('class', 'psinactive');
	    document.getElementById('psLink2').setAttribute('className', 'psinactive');
	    document.getElementById('psLink3').setAttribute('class', 'psinactive');
	    document.getElementById('psLink3').setAttribute('className', 'psinactive');
	    document.getElementById('psLink4').setAttribute('class', 'psinactive');
	    document.getElementById('psLink4').setAttribute('className', 'psinactive');

	}

	// go close timer
	function psmclosetime(link) {

	    psclosetimer = window.setTimeout(psmclose, timeout);

	}

	// cancel close timer
	function psmcancelclosetime() {

	    if (psclosetimer) {
	        window.clearTimeout(psclosetimer);
	        psclosetimer = null;
	    }

	}

	function psmenuchange(pslink) {
	    document.getElementById('psLink1').setAttribute('class', 'psinactivefirst');
	    document.getElementById('psLink1').setAttribute('className', 'psinactivefirst');
	    document.getElementById('psLink2').setAttribute('class', 'psinactive');
	    document.getElementById('psLink2').setAttribute('className', 'psinactive');
	    document.getElementById('psLink3').setAttribute('class', 'psinactive');
	    document.getElementById('psLink3').setAttribute('className', 'psinactive');
	    document.getElementById('psLink4').setAttribute('class', 'psinactive');
	    document.getElementById('psLink4').setAttribute('className', 'psinactive');

	    if (pslink == ('psLink1')) {
	        document.getElementById(pslink).setAttribute('class', 'psactivefirst');
	        document.getElementById(pslink).setAttribute('className', 'psactivefirst');
	    }
	    else {
	        document.getElementById(pslink).setAttribute('class', 'psactive');
	        document.getElementById(pslink).setAttribute('className', 'psactive');
	    }

	    //if (promolink == ('mainLink2') || promolink == ('mainLink3') || promolink == ('mainLink4')) {
	    //document.getElementById(promolink).setAttribute('class', 'menubuttonactivediv');
	    //document.getElementById(promolink).setAttribute('className', 'menubuttonactivediv');
	    //}
	    //else if (promolink == ('mainLink8')) {
	    //document.getElementById(promolink).setAttribute('class', 'cppactive');
	    //document.getElementById(promolink).setAttribute('className', 'cppactive');
	    //}
	    //else {
	    //document.getElementById(promolink).setAttribute('class', 'menubuttonactive');
	    //document.getElementById(promolink).setAttribute('className', 'menubuttonactive');
	    //}

	}




	function psmenuchangemain(pslink) {

	    document.getElementById(pslink).setAttribute('class', 'psinactive');
	    document.getElementById(pslink).setAttribute('className', 'psinactive');

	    //if (promolink == ('mainLink8')) {
	    //document.getElementById(promolink).setAttribute('class', 'cppinactive');
	    //document.getElementById(promolink).setAttribute('className', 'cppinactive');
	    //}
	    //else {
	    //document.getElementById(promolink).setAttribute('class', 'menubuttoninactive');
	    //document.getElementById(promolink).setAttribute('className', 'menubuttoninactive');
	    //}
	}

	// close layer when click-out
	document.onclick = psmclose;


	var smclosetimer = 0;
	var smidold = 0;
	var smlink = 0;
	var smitem = 0;

	// open hidden layer
	function smmopen(smid, smmenuid) {

	    // cancel close timer
	    smmcancelclosetime();


	    // close old layer
	    if (smitem) smitem.style.visibility = 'hidden';

	    if (smidold != smmenuid) {
	        if (smidold != 0) {
	            if (smlink == ('smLink1')) {
	                document.getElementById(smidold).setAttribute('class', 'sminactivefirst');
	                document.getElementById(smidold).setAttribute('className', 'sminactivefirst');
	            }
	            else if (smlink == ('smLink2')) {
	                document.getElementById(smlink).setAttribute('class', 'sminactivesecond');
	                document.getElementById(smlink).setAttribute('className', 'sminactivesecond');
	            }
	            else if (smlink == ('smLink3')) {
	                document.getElementById(smlink).setAttribute('class', 'sminactivethird');
	                document.getElementById(smlink).setAttribute('className', 'sminactivethird');
	            }
	            else if (smlink == ('smLink4')) {
	                document.getElementById(smidold).setAttribute('class', 'sminactivefirst');
	                document.getElementById(smidold).setAttribute('className', 'sminactivefirst');
	            }
	            else if (smlink == ('smLink5')) {
	                document.getElementById(smlink).setAttribute('class', 'sminactivesecond');
	                document.getElementById(smlink).setAttribute('className', 'sminactivesecond');
	            }
	            else if (smlink == ('smLink6')) {
	                document.getElementById(smlink).setAttribute('class', 'sminactivethird');
	                document.getElementById(smlink).setAttribute('className', 'sminactivethird');
	            }
	            sm1.style.visibility = 'hidden';
	        }

	    }
	    smidold = smmenuid;


	    // get new layer and show it
	    smitem = document.getElementById(smid);
	    smitem.style.visibility = 'visible';


	}

	// open hidden layer
	function smmover(smmenuid) {

	    // cancel close timer
	    smmcancelclosetime();


	    // close old layer
	    if (smitem) smitem.style.visibility = 'hidden';

	    if (smidold != smmenuid) {
	        if (psidold != 0) {
	            if (smlink == ('smLink1')) {
	                document.getElementById(smidold).setAttribute('class', 'sminactivefirst');
	                document.getElementById(smidold).setAttribute('className', 'sminactivefirst');
	            }
	            else if (smlink == ('smLink2')) {
	                document.getElementById(smlink).setAttribute('class', 'smactivesecond');
	                document.getElementById(smlink).setAttribute('className', 'smactivesecond');
	            }
	            else if (smlink == ('smLink3')) {
	                document.getElementById(smlink).setAttribute('class', 'smactivethird');
	                document.getElementById(smlink).setAttribute('className', 'smactivethird');
	            }
	            else if (smlink == ('smLink4')) {
	                document.getElementById(smidold).setAttribute('class', 'sminactivefirst');
	                document.getElementById(smidold).setAttribute('className', 'sminactivefirst');
	            }
	            else if (smlink == ('smLink5')) {
	                document.getElementById(smlink).setAttribute('class', 'smactivesecond');
	                document.getElementById(smlink).setAttribute('className', 'smactivesecond');
	            }
	            else if (smlink == ('smLink6')) {
	                document.getElementById(smlink).setAttribute('class', 'smactivethird');
	                document.getElementById(smlink).setAttribute('className', 'smactivethird');
	            }
	        }

	    }
	    smidold = smmenuid;




	}


	// close showed layer
	function smmclose() {
	    if (smitem) smitem.style.visibility = 'hidden';
	    document.getElementById('smLink1').setAttribute('class', 'sminactivefirst');
	    document.getElementById('smLink1').setAttribute('className', 'sminactivefirst');
	    document.getElementById('smLink2').setAttribute('class', 'sminactivesecond');
	    document.getElementById('smLink2').setAttribute('className', 'sminactivesecond');
	    document.getElementById('smLink3').setAttribute('class', 'sminactivethird');
	    document.getElementById('smLink3').setAttribute('className', 'sminactivethird');
	    document.getElementById('smLink4').setAttribute('class', 'sminactivefirst');
	    document.getElementById('smLink4').setAttribute('className', 'sminactivefirst');
	    document.getElementById('smLink5').setAttribute('class', 'sminactivesecond');
	    document.getElementById('smLink5').setAttribute('className', 'sminactivesecond');
	    document.getElementById('smLink6').setAttribute('class', 'sminactivethird');
	    document.getElementById('smLink6').setAttribute('className', 'sminactivethird');
	   

	}

	// go close timer
	function smmclosetime(link) {

	    smclosetimer = window.setTimeout(smmclose, timeout);

	}

	// cancel close timer
	function smmcancelclosetime() {

	    if (smclosetimer) {
	        window.clearTimeout(smclosetimer);
	        smclosetimer = null;
	    }

	}

	function smmenuchange(smlink) {
	    document.getElementById('smLink1').setAttribute('class', 'sminactivefirst');
	    document.getElementById('smLink1').setAttribute('className', 'sminactivefirst');
	    document.getElementById('smLink2').setAttribute('class', 'sminactivesecond');
	    document.getElementById('smLink2').setAttribute('className', 'sminactivesecond');
	    document.getElementById('smLink3').setAttribute('class', 'sminactivethird');
	    document.getElementById('smLink3').setAttribute('className', 'sminactivethird');
	    document.getElementById('smLink4').setAttribute('class', 'sminactivefirst');
	    document.getElementById('smLink4').setAttribute('className', 'sminactivefirst');
	    document.getElementById('smLink5').setAttribute('class', 'sminactivesecond');
	    document.getElementById('smLink5').setAttribute('className', 'sminactivesecond');
	    document.getElementById('smLink6').setAttribute('class', 'sminactivethird');
	    document.getElementById('smLink6').setAttribute('className', 'sminactivethird');
	   

	    if (smlink == ('smLink1')) {
	        document.getElementById(smlink).setAttribute('class', 'smactivefirst');
	        document.getElementById(smlink).setAttribute('className', 'smactivefirst');
	    }
	    else if (smlink == ('smLink2')) {
	        document.getElementById(smlink).setAttribute('class', 'smactivesecond');
	        document.getElementById(smlink).setAttribute('className', 'smactivesecond');
	    }
	    else if (smlink == ('smLink3')) {
	        document.getElementById(smlink).setAttribute('class', 'smactivethird');
	        document.getElementById(smlink).setAttribute('className', 'smactivethird');
	    }
	    else if (smlink == ('smLink4')) {
	        document.getElementById(smlink).setAttribute('class', 'smactivefirst');
	        document.getElementById(smlink).setAttribute('className', 'smactivefirst');
	    }
	    else if (smlink == ('smLink5')) {
	        document.getElementById(smlink).setAttribute('class', 'smactivesecond');
	        document.getElementById(smlink).setAttribute('className', 'smactivesecond');
	    }
	    else if (smlink == ('smLink6')) {
	        document.getElementById(smlink).setAttribute('class', 'smactivethird');
	        document.getElementById(smlink).setAttribute('className', 'smactivethird');
	    }
       

	    //if (promolink == ('mainLink2') || promolink == ('mainLink3') || promolink == ('mainLink4')) {
	    //document.getElementById(promolink).setAttribute('class', 'menubuttonactivediv');
	    //document.getElementById(promolink).setAttribute('className', 'menubuttonactivediv');
	    //}
	    //else if (promolink == ('mainLink8')) {
	    //document.getElementById(promolink).setAttribute('class', 'cppactive');
	    //document.getElementById(promolink).setAttribute('className', 'cppactive');
	    //}
	    //else {
	    //document.getElementById(promolink).setAttribute('class', 'menubuttonactive');
	    //document.getElementById(promolink).setAttribute('className', 'menubuttonactive');
	    //}

	}




	function smmenuchangemain(smlink) {

	    if (smlink == ('smLink1')) {
	        document.getElementById(smlink).setAttribute('class', 'sminactivefirst');
	        document.getElementById(smlink).setAttribute('className', 'sminactivefirst');
	    } else if (smlink == ('smLink2')) {
	        document.getElementById(smlink).setAttribute('class', 'sminactivesecond');
	        document.getElementById(smlink).setAttribute('className', 'sminactivesecond');
	    }
	    else if (smlink == ('smLink3')) {
	        document.getElementById(smlink).setAttribute('class', 'sminactivethird');
	        document.getElementById(smlink).setAttribute('className', 'sminactivethird');
	    }
	    else if (smlink == ('smLink4')) {
	        document.getElementById(smlink).setAttribute('class', 'sminactivefirst');
	        document.getElementById(smlink).setAttribute('className', 'sminactivefirst');
	    } else if (smlink == ('smLink5')) {
	        document.getElementById(smlink).setAttribute('class', 'sminactivesecond');
	        document.getElementById(smlink).setAttribute('className', 'sminactivesecond');
	    }
	    else if (smlink == ('smLink6')) {
	        document.getElementById(smlink).setAttribute('class', 'sminactivethird');
	        document.getElementById(smlink).setAttribute('className', 'sminactivethird');
	    }
	    //if (promolink == ('mainLink8')) {
	    //document.getElementById(promolink).setAttribute('class', 'cppinactive');
	    //document.getElementById(promolink).setAttribute('className', 'cppinactive');
	    //}
	    //else {
	    //document.getElementById(promolink).setAttribute('class', 'menubuttoninactive');
	    //document.getElementById(promolink).setAttribute('className', 'menubuttoninactive');
	    //}
	}

	// close layer when click-out
	document.onclick = smmclose;


var iscontactopen = 0;
	function contactdivshow() {
	    
        if (iscontactopen == ('0')) {
            morecontact.style.visibility = 'visible';
            iscontactopen = '1';
        } else {
        morecontact.style.visibility = 'hidden';
        iscontactopen = '0';
    }

}


var ismoreopen = 0;
function moredivshow() {

    if (ismoreopen == ('0')) {
        moreinfo.style.display = 'inherit';
        document.getElementById('ContentPlaceHolder1_moreinfobutton').innerHTML="+ SEE LESS";
        ismoreopen = '1';
    } else {
        moreinfo.style.display = 'none';
        document.getElementById('ContentPlaceHolder1_moreinfobutton').innerHTML="+ SEE MORE";
        ismoreopen = '0';
    }

}
