<!-- HIDE SCRIPT FROM OLD BROWSERS
var IE, timer;
IE = (document.all) ? 1 : 0;
var blnReady = false;

function imgover(imgname)
{
//	alert(imgname.name);
	if (blnReady){
		imgname.src = 'images/home/'+imgname.name+'_ro.gif';
		showMenu1(imgname.name);
		clearTimeout(timer);
	}
}

function imgout(imgname)
{
	if (blnReady){
		imgname.src = "images/home/"+imgname.name+".gif";
		timer = setTimeout('hideMenu1()', 500);
	//	window.status = '';
	}
}
		

function showMenu1(imgname)
{
	switch (imgname)
	{
	case "option01":
		menu1text = "<b>How do I ...?</b><br><b>What do I need? Where do I go?</b><br><img src='images/white1x1t.gif' width=1 height=5 border=0><br>For answers, information and instructions about all the services offered to citizens and foreigners, click here.";
	//	alert(menu1text);
		newPosx=3;
		newPosy=84;
		break;
	case "option02":
		menu1text = "Looking for Home Affairs?<br><img src='images/white1x1t.gif' width=1 height=5 border=0><br>The Contact section contains details of all the Department's <b>offices</b>, <b>border posts</b> and <b>missions abroad</b>.<br><img src='images/white1x1t.gif' width=1 height=5 border=0><br>You can also send messages to the department on the '<b>Talk to us</b>' page.";
		newPosx=-1;
		newPosy=86;
		break;
	case "option03":
		menu1text = "A complete collection of all the <b>documents</b> and <b>forms</b> that support the functions of the Department.";
		newPosx=-6;
		newPosy=168;
		break;
	case "option04":
		menu1text = "The Department of Home Affairs is an organisation with diverse mandates and functions.<br><img src='images/white1x1t.gif' width=1 height=5 border=0><br>This section contains information about those <b>functions</b>, the Department's <b>structure</b>, its <b>vision</b>, its <b>people</b>, <b>vacancies</b>, etc.";
		newPosx=-16;
		newPosy=132;
		break;
	case "option05":
		menu1text = "The Department is involved in a number of internal and government projects. Click for more information.";
		newPosx=-26;
		newPosy=208;
		break;
	case "option06":
		menu1text = "Visit the Information section to find answers to questions you might have about the Department, related topics, as well as this web site.<br><img src='images/white1x1t.gif' width=1 height=5 border=0><br>The section includes links to <b>FAQ</b>s, the <b>search</b> page, <b>site map</b> and <b>disclaimer</b>.";
		newPosx=-40;
		newPosy=171;
		break;
	case "option07":
		menu1text = "The Communication section contains department <b>news</b> and <b>media releases</b>, as well as links to <b>speeches</b> by Home Affairs officials.";
		newPosx=-54;
		newPosy=234;
		break;
	}
	if (document.all['menu1'])
	{
	document.all['menu1'].style.left=""+newPosx+"px";
	document.all['menu1'].style.top=""+newPosy+"px";
	document.all['menu1'].innerHTML="<table border='0' width='100%' cellpadding='3' cellspacing='0' bordercolor='black'><tr><td style='color:black;' align='right'><img src='images/white1x1t.gif' width=1 height=3 border=0><br>"+menu1text+"<br><img src='images/white1x1t.gif' width=1 height=5 border=0></td><td><img src='images/white1x1t.gif' width=1 height=1 border=0></td><td width=12 align='right' valign='bottom' bgcolor='#d0d0d0'><img src='images/home/home_arrow.gif' width='8' height='8' border='0'></td></tr></table>";
	document.all['menu1'].style.visibility="visible";
	}
}
// <div style='width:1; filter:blur(add=1, direction=135, strength=3)'></div>

function hideMenu1()
{
//	alert('Hiding menu');
	switch (IE)
	{
	case 1:
		document.all['menu1'].style.visibility="hidden";
		break;
	case 0:
		document.menu1.visibility="hide";
		break;
	}

}

function doSearch(canReturn)
{
	var canSubmit = 0;
	var fieldVal = new String("" + document.forms['search'].elements['keywords'].value);
	if (fieldVal == "")
	{
		alert('Please enter a term or phrase to search for.\r\n\r\nTip: Enclose phrases in quotation marks, e.g. \"identity document\".');
		document.forms['search'].elements['keywords'].focus();
		if (canReturn == 1)
		{
			return false;
		} 
	}
	else { canSubmit = 1; }
	
	if (canSubmit == 1)
	{
		document.forms['search'].submit();
	}
}

// END HIDING FROM OLD BROWSERS -->
