//Pop up information box II (Mike McGrath (mike_mcgrath@lineone.net,  http://website.lineone.net/~mike_mcgrath))

Xoffset= -250;    // modify these values to ...
Yoffset= -77;    // change the popup position.

var old,skn,iex=(document.all),yyy=-1000;

var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all

if (ns4)
skn=document.dek
else if (ns6)
skn=document.getElementById("dek").style
else if (ie4)
skn=document.all.dek.style
if(ns4)document.captureEvents(Event.MOUSEMOVE);
else{
skn.visibility="visible"
skn.display="none"
}
document.onmousemove=get_mouse;

function popup(msg,bak){
var content="<TABLE BORDER=1 BORDERCOLOR=#6A98BC CELLPADDING=1 CELLSPACING=1 "+
"BGCOLOR="+bak+"><TD CLASS=popup_text ALIGN=left nowrap bordercolor=#6A98BC>"+msg+"</TD></TABLE>";
yyy=Yoffset;
 if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(ns6){document.getElementById("dek").innerHTML=content;skn.display=''}
 if(ie4){document.all("dek").innerHTML=content;skn.display=''}
}

function get_mouse(e){
var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
skn.left=x+Xoffset;
var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
skn.top=y+yyy;
}

function kill(){
yyy=-1000;
if(ns4){skn.visibility="hidden";}
else if (ns6||ie4)
skn.display="none"
}

function hp(textkey) {
	switch(textkey) {
	case "age":
		title='<DIV class="popup_title"><b>Select your age range</b></div>'
		text='Your age is important when applying for the following visas;<br> - General Skilled Migration -> applicants must be under 45';
		break;
	case "english":
		title='<DIV class="popup_title"><b>How well do you speak the English language?</b></div>'
		text='Your level of English is important when applying for the following visas;<br> - General Skilled Migration -> must have vocational level or better';
		break;
	case "education":
		title='<DIV class="popup_title"><b>What is your highest level of education?</b></div>'
		text='Your education is important when applying for the following visas;<br> - General Skilled Migration -> must have post secondary education';
		break;
	case "occupation":
		title='<DIV class="popup_title"><b>Is your occupation listed on the Skilled Occupations List?</b></div>'
		text='Your occupation is important when applying for the following visas;<br> - General Skilled Migration -> must be listed in the SOL';
		break;
	case "work_experience":
		title='<DIV class="popup_title"><b>How much RECENT work experience do you have in your occupation?</b></div>'
		text='Your work experience is important when applying for the following visas;<br> - General Skilled Migration -> best to have 2-3 years experience';
		break;
	case "sponsor":
		title='<DIV class="popup_title"><b>Do you have any relatives in Australia who are willing to sponsor you?</b></div>'
		text='Sponsorship is important when applying for the following visas;<br> - General Skilled Migration';
		break;
	case "regional":
		title='<DIV class="popup_title"><b>Would you consider living in low-population areas of Australia?</b></div>'
		text='Your willingness to live in regional Australia may help your application for;<br> - General Skilled Migration';
		break;
	case "education_in_australia":
		title='<DIV class="popup_title"><b>Have you completed any education in Australia?</b></div>'
		text='Educational experience in Australia may help your application for;<br> - General Skilled Migration';
		break;
	case "worked_in_australia":
		title='<DIV class="popup_title"><b>Have you has any occupational experience in Australia?</b></div>'
		text='Occupational experience in Australia may help your application for;<br> - General Skilled Migration';
		break;
	case "personal_assets":
		title='<DIV class="popup_title"><b>Net personal asset</b></div>'
		text='What is your total net personal asset value (including your spouse)?<br>Your answer must be NUMERIC (numbers ONLY). Example: 50000';
		break;
	case "net_income":
		title='<DIV class="popup_title"><b>Net annual income stream (including your spouse)</b></div>'
		text='What is your net annual income stream - including spouse?<br>Your answer must be NUMERIC (numbers ONLY). Example: 50000';
		break;
	default:
		title='<DIV class="popup_title"><b>X Web Development</b></div>'
		text='www.xpl.net.au';
		break;
	}
	text=title+text;
	popup(text,'#ffffff');
}
