function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}


function getPage(page)
{
	var xmlhttp=false;
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
			} 
			catch (e) 
			{
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP');
					}
				catch (E) 
					{
						xmlhttp = false;
					}
			}
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
			{
                xmlhttp = new XMLHttpRequest();
			}
		xmlhttp.open('GET', page, true);
		xmlhttp.onreadystatechange=function() 
			{
			if (xmlhttp.readyState==4) 
				{ //Check if it is ready to recieve data
					var content = xmlhttp.responseText; //The content data which has been retrieved ***
					if( content )
						{ 
						  document.getElementById('content').innerHTML = content; 
						}
				}
			}
		xmlhttp.send(null) 
	return;
}

function Show(negeri)
    {
		if (negeri == 'sarawak')
		{        
			/* get the mouse left position */
			x = event.clientX + document.body.scrollLeft;
			/* get the mouse top position  */
			y = event.clientY + document.body.scrollTop + 35;
			/* display the pop-up */
			Popupsarawak.style.display="block";
			/* set the pop-up's left */
			Popupsarawak.style.left = x;
			/* set the pop-up's top */
			Popupsarawak.style.top = y;
		}
		else if (negeri == 'sabah')
		{        
			/* get the mouse left position */
			x =  document.body.scrollLeft;
			/* get the mouse top position  */
			y = event.clientY + document.body.scrollTop + 35;
			/* display the pop-up */
			Popupsabah.style.display="block";
			/* set the pop-up's left */
			Popupsabah.style.right = x;
			/* set the pop-up's top */
			Popupsabah.style.top = y;
		}
		else if (negeri == 'penang')
		{        
			/* get the mouse left position */
			x = event.clientX + document.body.scrollLeft;
			/* get the mouse top position  */
			y = event.clientY + document.body.scrollTop + 35;
			/* display the pop-up */
			Popuppenang.style.display="block";
			/* set the pop-up's left */
			Popuppenang.style.left = x;
			/* set the pop-up's top */
			Popuppenang.style.top = y;
		}
		else if (negeri == 'kelantan')
		{        
			/* get the mouse left position */
			x = event.clientX + document.body.scrollLeft;
			/* get the mouse top position  */
			y = event.clientY + document.body.scrollTop + 35;
			/* display the pop-up */
			Popupkelantan.style.display="block";
			/* set the pop-up's left */
			Popupkelantan.style.left = x;
			/* set the pop-up's top */
			Popupkelantan.style.top = y;
		}
		else if (negeri == 'pahang')
		{        
			/* get the mouse left position */
			x = event.clientX + document.body.scrollLeft;
			/* get the mouse top position  */
			y = event.clientY + document.body.scrollTop + 35;
			/* display the pop-up */
			Popuppahang.style.display="block";
			/* set the pop-up's left */
			Popuppahang.style.left = x;
			/* set the pop-up's top */
			Popuppahang.style.top = y;
		}
		else if (negeri == 'johor')
		{        
			/* get the mouse left position */
			x = event.clientX + document.body.scrollLeft;
			/* get the mouse top position  */
			y = event.clientY + document.body.scrollTop + 35;
			/* display the pop-up */
			Popupjohor.style.display="block";
			/* set the pop-up's left */
			Popupjohor.style.left = x;
			/* set the pop-up's top */
			Popupjohor.style.top = y;
		}

    }
    /* this function hides the pop-up when
     user moves the mouse out of the link */

function Hide()
    {
        /* hide the pop-up */
        Popupsarawak.style.display="none";
		Popuppenang.style.display="none";
		Popupsabah.style.display="none";
		Popupkelantan.style.display="none";
		Popuppahang.style.display="none";
		Popupjohor.style.display="none";
	}
