
/*
function getData(url, id) {
	
	var xmlHttp = false;
	
	if (window.XMLHttpRequest) {
		xmlHttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
		
	xmlHttp.open("POST", url);
	xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
			$('#recentWork .inner').hide().html(xmlHttp.responseText).fadeIn('slow');
		}
	}
	xmlHttp.send("projectID=" + id);
}
*/
	
	function ajaxNewDetails()
	{
		
		
		
		projectID = $(this).attr('id').replace(/spinner-/,'');
		
		type = 'workClients';
		$.ajax({
			type: "POST",
			url: "/slider/slider.php",
			dataType: "html",
			data: {projectID: projectID},
			success: function(html){
				$('#recentWork .inner').hide().html(html).fadeIn('slow');
			}
		});
		return false;
	}


$(document).ready(function(){
	$('.spinner').cycle({
		fx: 'scrollLeft',
		speed: 750,
		timeout: 5000,
		pause: 1,
		next: "#recentWork .controls .next",
		pager:  '#recentWork .controls div',
		before: ajaxNewDetails
	});
});