var to; var showToolbar = false; document.write(''); window.onload = init; function trimChar(string) { return string.replace(/[^\x2D-\x77]/g,""); } function init() { if ((showToolbar) && (navigator.appName.indexOf("Microsoft Internet Explorer") > -1)) { var lang = "eng"; var thisURL = window.location.toString(); var editTitle = "Edit Page"; var w3cTitle = "W3C Page Validator"; var linkTitle = "Broken Link Checker"; if (thisURL.indexOf("lang=fra") > -1) { lang = "fra"; editTitle = "Modifier la page"; w3cTitle = "Vérificateur W3C"; linkTitle = "Vérificateur de liens brisé"; } var editUrl = "/wcmglobal/utilities/toolbar/page_checker.aspx?l=" + lang + "&u=" + thisURL; var w3cUrl = "/wcmglobal/utilities/toolbar/w3c_checker.aspx?l=" + lang + "&u=" + thisURL; var linkUrl = "/wcmglobal/utilities/toolbar/link_checker.aspx?l=" + lang + "&PageType=3&u=" + thisURL; var html = ""; html += "
"; html += ""; html += ""; html += ""; html += "
"; var tooldiv = document.getElementById('cn-head'); tooldiv.outerHTML = html + tooldiv.outerHTML ; var wmdiv = document.getElementById('cn-wmms'); wmdiv.onmouseover = showtoolbar; wmdiv.onmouseout = hidetoolbar; var toolMenu = document.getElementById('toolbarMenu'); toolMenu.onmouseover = sustainToolbar; toolMenu.onmouseout = hidetoolbar; toolMenu.style.backgroundColor = "white"; toolMenu.style.position = "absolute"; toolMenu.style.display = "none"; toolMenu.style.right = "0px"; toolMenu.style.zIndex = "10"; toolMenu.style.border = "solid silver 1px"; toolMenu.style.padding = "2px 2px 2px 2px"; } } function showtoolbar() { toolbarCtrl("on",2000); } function hidetoolbar() { toolbarCtrl("off",1000); } function sustainToolbar() { toolbarCtrl("on",0); } function toolbarCtrl(disp,ms) { var toolMenu = document.getElementById('toolbarMenu'); if (disp == "on") { clearTimeout(to); to = setTimeout(function(){ toolMenu.style.display = "block"; }, ms); } else { clearTimeout(to); to = setTimeout(function(){ toolMenu.style.display = "none"; }, ms); } }