var xmlhttp;
		$(function()
		{	
			$("#offers").easySlider(
			{
				continuous: true,
				numeric: true,
				numericId : "osNumeric"
			});
			$("#news").easySlider(
			{
				continuous: true,
				numeric: true,
				numericId : "nsNumeric"
			});
			$("#views").easySlider(
			{
				continuous: true,
				nextId: "vsNext",
				prevId: "vsPrev"
			});
		});
	function vacatures(str){
		xmlhttp=GetXmlHttpObject();
		var url= "jobs.php?jobsview=on";
		loadng = '_jobs'
		$('a.linktoajax').addClass('current');
		$('a.linktoajaxnews').removeClass('current');
		document.getElementById("load").innerHTML = '<div class="loading"></div>';
		xmlhttp.onreadystatechange=stateChanged;
		xmlhttp.open("GET",url,true);
		xmlhttp.send(null);
	}
	
	function nieuws(rs){
		xmlhttp=GetXmlHttpObject();
		var url= "jobs.php?news=on";
		loadng = '_jobs'
		$('a.linktoajaxnews').addClass('current');
		$('a.linktoajax').removeClass('current');
		document.getElementById("load").innerHTML = '<div class="loading"></div>';
		xmlhttp.onreadystatechange=stateChanged;
		xmlhttp.open("GET",url,true);
		xmlhttp.send(null);

	}
	
	function stateChanged(){
		if (xmlhttp.readyState==4){
			document.getElementById("change_div"+loadng).innerHTML=xmlhttp.responseText;
			document.getElementById("load").innerHTML = '';
			$("#news").easySlider(
			{
				continuous: true,
				numeric: true,
				numericId : "nsNumeric"
			});
		}
	}
	
	function GetXmlHttpObject(){
		if (window.XMLHttpRequest){
		  // code for IE7+, Firefox, Chrome, Opera, Safari
		  return new XMLHttpRequest();
		}
		if (window.ActiveXObject){
		  // code for IE6, IE5
		  return new ActiveXObject("Microsoft.XMLHTTP");
		}
		return null;
	}
