﻿

var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=30 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

function ietruebody(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext){
	$('#dhtmltooltip').css('width', "520px");
	if(thetext == "career"){
	positiontip1();
		thetext = '        <a href="javascript: hideddrivetip();"><div class="layer_content" style="text-decoration: none" align="right">關閉</div></a><br><b>重要啟示!</b><br><b>題為「Home Employment Available」之虛假招聘電郵</b><br><br>'
	             +'        近日，信德集團收到多宗查詢，涉及不明來歷人士以本集團名義，利用電郵方式向電郵用戶發出招聘通知。電郵題目為「Home Employment Available」，內容指集團有意聘請 Payment Officer 於家中遙距工作，並以高薪作招攬，進而要求求職者提供個人及戶口資料。<br><br>'
	             +'        本集團現嚴正聲明，本公司<u><b>並沒有提供上述職位空缺</b></u>，亦不會以電郵方式作招募員工之途徑。敬希市民提高警覺，以免被不法之徒利用。<br><br>'
	             +'        本集團所提供之職位空缺已列於本網址"招聘"項下。如對以上事件有任何查詢，請以電郵方式聯絡本公司：<span class="layer_link"><a href="mailto:enquiry@shuntakgroup.com">enquiry@shuntakgroup.com</a></span>。<br><br>';

	}else if(thetext == "career_e"){
	positiontip1();
		thetext = '        <a href="javascript: hideddrivetip();"><div class="layer_content" style="text-decoration: none" align="right">Close</div></a><br><b>Important Warning!</b><br><b>Fraudulent Recruitment Emails Titled "Home Employment Available"</b><br><br>'
	              +'        The Company has recently received a number of reports pertaining to recruitment messages delivered to email-users with the subject title "Home Employment Available". It has brought to our attention that third parties alleging to be representatives of the Company are seeking candidates for the position of "Payment Officer" to work remotely from home and using attractive monthly salaries as appeal. It is also known that perpetrators will further seek contact information and account details from interested candidates.<br><br>'
	              +'        The Company solemnly states that it is <u><b>not offering the aforementioned job opening</b></u>, and will not, under any circumstance, conduct recruitment via email broadcasts. The public is advised to remain vigilant in order not to become involved with any criminal activities.<br><br>'
	              +'        Employment opportunities currently offered by Shun Tak are posted in this website under the "Career" section. Should you have any queries regarding the matter, please contact us via email at <span class="layer_link"><a href="mailto:enquiry@shuntakgroup.com">enquiry@shuntakgroup.com</a></span>.<br><br>';

	}else if(thetext == "career_s"){
	positiontip1();
		thetext = '        <a href="javascript: hideddrivetip();"><div class="layer_content" style="text-decoration: none" align="right">关闭</div></a><br><b>重要启示!</b><br><b>题为「Home Employment Available」之虚假招聘电邮</b><br><br>'
	             +'        近日，信德集团收到多宗查询，涉及不明来历人士以本集团名义，利用电邮方式向电邮用户发出招聘通知。电邮题目为「Home Employment Available」，内容指集团有意聘请 Payment Officer 于家中遥距工作，并以高薪作招揽，进而要求求职者提供个人及户口资料。<br><br>'
	             +'        本集团现严正声明，本公司<u><b>并没有提供上述职位空缺</b></u>，亦不会以电邮方式作招募员工之途径。敬希市民提高警觉，以免被不法之徒利用。<br><br>'
	             +'        本集团所提供之职位空缺已列于本网址"招聘"项下。如对以上事件有任何查询，请以电邮方式联络本公司：<span class="layer_link"><a href="mailto:enquiry@shuntakgroup.com">enquiry@shuntakgroup.com</a></span>。<br><br>';
	}
	$('#dhtmltooltip').html(thetext);
}

function positiontip(){
	$('#dhtmltooltip').css('top', $('#Image122').offset().top - $('#dhtmltooltip').height() - $('#Image122').height());
	$('#dhtmltooltip').css('left', $('#Image122').offset().left + $('#Image122').width() - $('#dhtmltooltip').width()- 5);
	$('#dhtmltooltip').css('visibility', 'visible');
}

function positiontip1(){
	$('#dhtmltooltip').css('top', $('#career').offset().top + $('#career').height());
	$('#dhtmltooltip').css('left', $('#career').offset().left);
	$('#dhtmltooltip').css('visibility', 'visible');
	$('#dhtmltooltip').css('display', 'inline');
}

function hideddrivetip(){
	$('#dhtmltooltip').css('visibility', 'hidden');
}

$(document).ready(function() {
	$('#Image122').mouseover(positiontip);
	$('#Image122').mouseout(hideddrivetip);
});