// Flash header Script
// Hopital Vétérinaire de l'Est

if(window.attachEvent) //IE
{
	window.attachEvent("onload", _initPageFunction);
}
else if(window.addEventListener) //DOM
{
	window.addEventListener("load", _initPageFunction, false);
}

// Function used to initialize all functions used in page
function _initPageFunction()
{
}

function changeCulture() {
  if (document.getElementById("topSection")) {
    if (document.getElementById("topSection").innerHTML.indexOf("Fran") == -1) {

            window.location = _skCMSCurrentPage_enus;
        }
        else {
            window.location = _skCMSCurrentPage_frca;
        }
    }
}

function _openSection(idSection)
{
	if(document.getElementById(idSection))
	{
		var currentElement = document.getElementById(idSection);
		var currentDisplay = currentElement.style.display;
		if((currentDisplay) == "block")
		{
			currentElement.style.display = "none";
		}
		else
		{
			currentElement.style.display = "block";
		}
	}
}

