jQuery.noConflict();

function pagebrons(pagina)
{
	var xmlHttp = check();
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState == 4)
		{
			document.getElementById('bedrijven').innerHTML = xmlHttp.responseText;
		}
	}
	
	if(pagina == "")
	{
		pagina = "0";
	}
	
	xmlHttp.open("GET", "modules/bedrijf.php?id="+pagina, true);	
	
	xmlHttp.send(null);
}

function pagevacatuur(pagina)
{
	var xmlHttp = check();
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState == 4)
		{
			document.getElementById('bedrijven').innerHTML = xmlHttp.responseText;
		}
	}
	
	if(pagina == "")
	{
		pagina = "1";
	}
	
	xmlHttp.open("GET", "modules/vacatuur.php?id="+pagina, true);	
	
	xmlHttp.send(null);
}


function check()
{
	var xmlHttp;
	try
	{
	// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}


function mouseoverbedrijf(id)
{
	pagebrons(id);
	jQuery("#bedrijven").show();
}

function mouseoutbedrijf()
{
	jQuery("#bedrijven").hide();
}

function mouseoverbedrijf2(id)
{
	pagevacatuur(id);
	jQuery("#bedrijven").show();
}
