var to; var showToolbar = false; var tool抖淫视频Anchor; var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true; script.src = "https://wcms.signet.international.gc.ca/iw-cc/customer/toolbar.js"; script.onload = init; document.getElementsByTagName('head')[0].appendChild(script); function init() { var isIE = /*@cc_on!@*/false || !!document.documentMode; if (showToolbar && isIE) { 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 toolbarPath = "/wcmglobal/utilities/toolbar" var editUrl = toolbarPath + "/page_checker.aspx?l=" + lang + "&u=" + thisURL; var linkUrl = toolbarPath + "/link_checker.aspx?l=" + lang + "&PageType=3&u=" + thisURL; var html = ""; html += ""; var tool抖淫视频 = document.createElement('div'); tool抖淫视频.id = "toolbar抖淫视频"; tool抖淫视频.innerHTML = html.trim(); tool抖淫视频.onmouseover = sustainToolbar; tool抖淫视频.onmouseout = hidetoolbar; tool抖淫视频.style.backgroundColor = "white"; tool抖淫视频.style.position = "absolute"; tool抖淫视频.style.display = "none"; tool抖淫视频.style.zIndex = "1000"; tool抖淫视频.style.border = "solid silver 1px"; tool抖淫视频.style.padding = "2px"; document.body.insertBefore(tool抖淫视频, document.body.firstChild); // id="cn-sig" (CLF) // id="gcwu-sig" (WET3, WET4 Intranet) // class="brand" (WET4) tool抖淫视频Anchor = document.getElementsByClassName('brand')[0] || document.getElementById('gcwu-sig') || document.getElementById('cn-sig'); if (tool抖淫视频Anchor != null) { tool抖淫视频Anchor.onmouseover = showtoolbar; tool抖淫视频Anchor.onmouseout = hidetoolbar; } } } function showtoolbar() { toolbarCtrl("on", 2000); } function hidetoolbar() { toolbarCtrl("off", 1000); } function sustainToolbar() { toolbarCtrl("on", 0); } function toolbarCtrl(disp, ms) { var tool抖淫视频 = document.getElementById('toolbar抖淫视频'); var viewportOffset = tool抖淫视频Anchor.getBoundingClientRect(); if (disp == "on") { clearTimeout(to); to = setTimeout(function() { tool抖淫视频.style.top = (viewportOffset.top + 10) + 'px'; tool抖淫视频.style.left = (viewportOffset.left + tool抖淫视频Anchor.offsetWidth) + 'px'; tool抖淫视频.style.display = "block"; }, ms); } else { clearTimeout(to); to = setTimeout(function(){ tool抖淫视频.style.display = "none"; }, ms); } }