// Navigation menu

function doHome() {
parent.location.href="home.html";
return false;
}
function doOurProducts() {
parent.location.href="OurProducts.html";
return false;
}
function doGlucernaScience() {
parent.location.href="TheGlucernaScience-Drinks.html";
return false;
}
function doDCFL() {
window.open("http://www.diabetescontrolforlife.ca");
// parent.location.href="http://www.diabetescontrolforlife.ca";
return false;
}
function doDiabetes101() {
parent.location.href="Diabetes101.html";
return false;
}
function doLivingWithDiabetes() {
parent.location.href="LivingWithDiabetes.html";
return false;
}

function doHomeF() {
parent.location.href="accueil.html";
return false;
}
function doOurProductsF() {
parent.location.href="NosProduits.html";
return false;
}
function doGlucernaScienceF() {
parent.location.href="LaScienceDeGlucerna-Boissons.html";
return false;
}
function doDCFLF() {
window.open("http://www.maitrisedudiabete.ca");
// parent.href="http://www.maitrisedudiabete.ca";
return false;
}
function doDiabetes101F() {
parent.location.href="Diabete101.html";
return false;
}
function doLivingWithDiabetesF() {
parent.location.href="VivreAvecLeDiabete.html";
return false;
}

// End - Navigation Menu

// Floating Tooltips
function getLayer(SRC){
	var tDIV = document.getElementById(SRC)             
    tDIV.style.cursor = "hand"
	tDIV.style.visibility = "visible"
}
function floatLayer(SRC){
	var tDIV = document.getElementById(SRC)
    tDIV.style.top = window.event.clientY + 20
	if(window.event.clientX+200>document.body.clientWidth)
	{
		tDIV.style.left = document.body.clientWidth - 200
	}
	else
	{
		tDIV.style.left = window.event.clientX// + 15
	}
}	
function hideLayer(SRC){
	var tDIV = document.getElementById(SRC)
    tDIV.style.visibility='hidden'
}
// End Floating Tooltips

// Exit Notice (English)
function ExitNoticeE(url) 
{
    var msg = "You are about to leave an Abbott Canada site, a Web site maintained by Abbott Laboratories, Limited.\n\n"
            + "This link is provided for your convenience only. Abbott Laboratories, Limited takes no responsibility for the content of any Web site maintained by any third party and makes no representation as to the accuracy or completeness of any information contained on this or any subsequent link.\n\n\n"
            + "Do you wish to leave this site?\n\n";
    if ( ! confirm( msg ) ) return false;

    window.open( url );
    return true;
} 

// Exit Notice (French)
function ExitNoticeF(url) 
{
    var msg = "Vous êtes sur le point de quitter un site Web d’Abbott Canada dont la maintenance est assurée par Laboratoires Abbott, Limitée.\n\n"
            + "Ce lien vous a été fourni uniquement pour plus de commodité. Laboratoires Abbott, Limitée n’assume aucune responsabilité pour ce qui est du contenu de tout site Web offert par un tiers et ne fait aucune déclaration pour ce qui est de l’exactitude ou de l’intégralité des renseignements contenus sur ce site ou d’autres sites.\n\n\n"
            + "Désirez-vous continuer?\n\n";
    if ( ! confirm( msg ) ) return false;

    window.open( url );
    return true;
} 

// Code pour Collapsable
function unhide(divID)
{
   var item = document.getElementById(divID);
   if (item) {
     item.style.display=(item.style.display=='none')?'block':'none';
   }
}

function unhideDay(divID)
{
   var item = document.getElementById(divID);
   if (item) {
     item.style.display='block';
   }
}
function hideDay(divID)
{
   var item = document.getElementById(divID);
   if (item) {
     item.style.display='none';
   }
}

