			function h() {
			alert('hello');
			}
			
			function Help(id, text) {
				this.id		= id;
				this.text	= text;
			}

			var helpArr = new Array();
			
			helpArr[helpArr.length] = new Help("FAM", "<h4>Family member</h4><p>For the purposes of working, you are the family member of an EEA or Swiss national who is a student in the UK if you are that person's:</p><ul><li>spouse</li><li>civil partner</li><li>dependent child.</li></ul><p>You are the family member of an EEA or Swiss national who is working or self-sufficient in the UK if you are that person's:<ul><li>spouse</li><li>civil partner</li><li>direct descendant, eg child or grandchild and you are under 21 or dependent on your parent or on your parent's spouse or civil partner</li><li>dependent direct relative in the ascending line, eg parent or grandparent.</li></ul> You might also qualify if you are in the UK as the unmarried partner of an EEA or Swiss national.</p>");
			
			
			
			helpArr[helpArr.length] = new Help("HIGH", "<h4>Highly skilled person</h4><p>You are a highly skilled person if you meet one of these sets of requirements:</p><ul><li>you have a degree, postgraduate certificate or postgraduate diploma in any subject awarded by an institution anywhere in the UK and, within 12 months of being awarded the qualification, you apply for a registration certificate.</li><li>you have an HND awarded by an institution in Scotland and, within 12 months of being awarded the qualification, you apply for a registration certificate</li><li>you meet the criteria of the Highly Skilled Migrant Programme EXCEPT the criterion requiring proficiency in English, as applying on 1 January 2007 (see form BR2 for full details)</li></ul><p>If you studied in the UK, your institution must have been financed from public funds or included on the Register of Education and Training Providers on 1 January 2007 (see http://www.dfes.gov.uk/providersregister)");
			
			
			helpArr[helpArr.length] = new Help("LEGAL", "<h4>Working legally in the UK for a 12-month period</h4><p>You have worked legally in the UK for 12 months if:</p><ul><li>you had immigration permission to work</li><li>you worked in accordance with your work conditions, for example, if you were in the UK as a student you did not work more than 20 hours a week in term time</li><li>you were working legally in the UK on day 1 and on day 365</li><li>you do not have to work for the same employer for 12 months, but you must not have a break from legal work of more than 30 days during those 12 months</li><li>time off work for holidays and sick leave do not count towards the 30-day break.</li></ul>");

            helpArr[helpArr.length] = new Help("POST", "<h4>Posted worker</h4><p>You are a posted worker if you usually work in a member state of the EU other than the UK and, for a limited period, your employer has sent you to work in the UK. Check with your employer if you come within the terms of the Posting of Workers Directive 96/71/EC.</p>");

			helpArr[helpArr.length] = new Help("RESTRICT", "<h4>No work restrictions</h4><p>This applies to you if your permission to work was not limited to a particular employer or type of work. If you had immigration permission as, for example, a student, work permit holder or au pair, your permission to work was restricted. If you had immigration permission as, for example, the dependant of a student (and you were allowed to work), or as the dependant of a work permit holder, or as a Highly Skilled Migrant your permission to work was not subject to any conditions, and you are exempt. Usually, your immigration conditions will say No recourse to public funds, and not mention work or employment.</p>");
			
			
			
			helpArr[helpArr.length] = new Help("RIGHTPERM", "<h4>Right of permanent residence</h4><p>You acquire a right of permanent residence in the UK if you reside here legally for a continuous period of five years. You can apply for a document certifying your right of permanent residence, but this is not obligatory.</p><p>If you have not acquired the right of permanent residence as the family member of an EEA or Swiss national, the UK Government has decided that you cannot acquire the right of permanent residence in your own right until 1 January 2012, in other words five years after your country joined the EU. The European Commission does not agree with this, and says you can acquire the right of permanent residence any time on or after 1 January 2007, as long as you had lived legally in the UK for five years before then. Seek legal advice if you want to challenge the UK Government's position.</p>");
			
			helpArr[helpArr.length] = new Help("SELFSUFF", "<h4>Self-sufficient</h4><p>Self-sufficient people have &ldquo;sufficient resources for themselves and their family members not to become a burden on the social assistance system of the host Member State during their period of residence and have comprehensive sickness insurance cover in the host Member State&rdquo; (Article 7(1)(b) of Directive 2004/38/EC).</p>");
			
			helpArr[helpArr.length] = new Help("SETTLED", "<h4>Settled status</h4><p>People who have settled status in the UK are: British citizens; people with Indefinite Leave to Enter or Remain; people with a Certificate of Entitlement to the Right of Abode in their passport; people with the right of permanent residence in the UK; serving members of the British armed forces (but not their family members); nationals of the Republic of Ireland.</p>");
			
			helpArr[helpArr.length] = new Help("STUDENT", "<h4>Student</h4><p>The European Economic Area Regulations 2006 regulation 4(1)(d) define a student as a person who<ol><li>is enrolled at a private or public establishment, included on the Register of Education and Training Providers or financed from public funds, for the principal purpose of following a course of study, including vocational training;</li><li>has comprehensive sickness insurance cover in the UK; and</li><li>assures the Secretary of State, by means of a declaration, or by such equivalent means as the person may choose, that he has sufficient resources not to become a burden on the social assistance system of the UK during his period of residence.</li></ol><p>You can check the Register of Education and Training Providers at http://www.dfes.gov.uk/providersregister.</p>");
			
			
			
			
			
		
			
		

			function balloonText(helpId, aObj, e) {
				var balloonObj = document.getElementById("balloonHelp");
				var balloonContentObj = document.getElementById("balloonText");
				
				var helpText = "";
				
				for(i=0; i< helpArr.length; i++) {
					if ( helpArr[i].id == helpId ) {
						helpText = helpArr[i].text;
						break;
					}
				}
				
				
				tmpObj = aObj;
				var curleft = 0;
				var curtop = 0;
				if (tmpObj.offsetParent){
					while (tmpObj.offsetParent)	{
						curtop += tmpObj.offsetTop;
						curleft += tmpObj.offsetLeft;
						tmpObj = tmpObj.offsetParent;
					}
				}
				else if ( tmpObj.x ) {
					curtop += tmpObj.y;
					curleft += tmpObj.x;
				}
				
			
				
				balloonObj.style.display = "block";
				balloonObj.style.position = "absolute";
				balloonObj.style.left = (curleft-200) + "px";
				balloonObj.style.top = (curtop-15) + "px";
				
				balloonContentObj.innerHTML = helpText;
				
				
				
				//IE bug workarround, stop for 350 milisecs, otherwise images are not shown.
				if(document.all){
					d = new Date() //today's date
					while (1){
						mill=new Date() // Date Now
						diff = mill-d //difference in milliseconds
						if( diff > 350 ){
							break;
						}
					}
				}
			}
			
			function closeBalloonText() {
				document.getElementById("balloonHelp").style.display = "none";
			}