﻿var mouseX = 0;
var mouseY = 0;
$(document).ready(function() {
	$(document).mousemove(function(e){
      mouseX = e.pageX + 10;
	  mouseY = e.pageY + 10;
	}); 
});
function ShowToolTip() {
	$('#genuineTooltip').css('left', mouseX + 'px').css('top', mouseY + 'px' ).show();
}
function HideToolTip()
{
	window.setTimeout(function(){$('#genuineTooltip').hide();}, 4000 );
}

function initMDATooltip(lang) {
    var someText = "";
    if (lang == "en") {
        someText = "Genuine Windows® software is published by Microsoft and licensed and supported by Microsoft or an authorized licensor. Genuine software helps protect you from the risks of counterfeit software, provides you with special benefits and the experience and support you expect. Learn more by visiting www.microsoft.com/genuine.";
    } else if (lang == "tw") {
        someText = "正版 Windows® 是由 Microsoft 發行的軟體，且受到 Microsoft 與其認可授權人的支援與授權。正版軟體協助您避免仿冒軟體的風險，並提供您獨享權益以及所需的支援與經驗。若要深入瞭解，請造訪 www.microsoft.com/genuine。";
    } else if (lang == "cn") {
        someText = "正版 Windows® 软件由 Microsoft 发布，Microsoft 或授权许可方对该软件提供许可和支持。使用正版软件您可免受盗版软件带来的风险，还可享受特殊好处，获得良好的使用体验并使您的期望获得满足。要了解相关详细信息，请访问 www.microsoft.com/genuine。";
    }
    var elm = document.createElement("div");
    $(elm).attr('id', 'genuineTooltip').addClass('genuineLayer').html(someText);
    $('body').append(elm);
}
