$(document).ready(function(){
	var active = 1;
	$("#teaser li.one").mouseenter(function(){
		if(!(active == 1)) {
			$("#teasercontent").fadeOut(300, function() { 
				$("#teasercontent span").text("Business Process Automation (BPA)");
				$("#teasercontent a").attr("href", "/en/services/business-process-automation")
				$("#teasercontent p").text("Provides faster service delivery with fewer errors and benefits any enterprise where systems, departments and tasks need to be coordinated to deliver services supported by IT.");
				$("#teasercontent img").attr("src", "/images/banner-business-process.jpg")
				$("#teasercontent").fadeIn(300);
				active = 1;
			});
		}
		$("#teaser li").removeClass("hover");
		$(this).addClass("hover");
	});
	
	$("#teaser li.two").mouseenter(function(){
		if(!(active == 2)) {
			$("#teasercontent").fadeOut(300, function() { 
				$("#teasercontent span").text("IT Process Automation (ITPA)");
				$("#teasercontent a").attr("href", "/en/services/it-process-automation")
				$("#teasercontent p").text("The ability to orchestrate tasks across systems without manual intervention, also referred to as Run Book Automation (RBA).");
				$("#teasercontent img").attr("src", "/images/banner-it-process.jpg")
				$("#teasercontent").fadeIn(300);
				active = 2;
			});
		}
		$("#teaser li").removeClass("hover");
		$(this).addClass("hover");
	});
	
	$("#teaser li.three").mouseenter(function(){
		if(!(active == 3)) {
			$("#teasercontent").fadeOut(300, function() { 
				$("#teasercontent span").text("Data Center Automation (DCA)");
				$("#teasercontent a").attr("href", "/en/services/data-center-automation")
				$("#teasercontent p").text("Automation by working with your existing data center tools, with no rip and replace or vendor lock-in. Provision server, storage, or network resources across physical, virtual or cloud environments.");
				$("#teasercontent img").attr("src", "/images/banner-datacenter-automation.jpg")
				$("#teasercontent").fadeIn(300);
				active = 3;
			});
		}
		$("#teaser li").removeClass("hover");
		$(this).addClass("hover");
	});
	
	$("#teaser li.four").mouseenter(function(){
		if(!(active == 1)) {
			$("#teasercontent").fadeOut(300, function() { 
				$("#teasercontent span").text("Business Process Automation (BPA)");
				$("#teasercontent a").attr("href", "/nl/services/business-process-automation")
				$("#teasercontent p").text("Business Process Automation (BPA) is het automatiseren van bedrijfsprocessen om efficiënter en effectiever bedrijfsdoelen te concretiseren.");
				$("#teasercontent img").attr("src", "/images/banner-business-process.jpg")
				$("#teasercontent").fadeIn(300);
				active = 1;
			});
		}
		$("#teaser li").removeClass("hover");
		$(this).addClass("hover");
	});
	
	$("#teaser li.five").mouseenter(function(){
		if(!(active == 2)) {
			$("#teasercontent").fadeOut(300, function() { 
				$("#teasercontent span").text("IT Process Automation (ITPA)");
				$("#teasercontent a").attr("href", "/nl/services/it-process-automation")
				$("#teasercontent p").text("IT Process Automation (ITPA) maakt het automatiseren van complexe IT processen mogelijk waardoor het menselijk handelen tot het minimum beperkt wordt.");
				$("#teasercontent img").attr("src", "/images/banner-it-process.jpg")
				$("#teasercontent").fadeIn(300);
				active = 2;
			});
		}
		$("#teaser li").removeClass("hover");
		$(this).addClass("hover");
	});
	
	$("#teaser li.six").mouseenter(function(){
		if(!(active == 3)) {
			$("#teasercontent").fadeOut(300, function() { 
				$("#teasercontent span").text("Data Center (DCA)");
				$("#teasercontent a").attr("href", "/nl/services/data-center-automation")
				$("#teasercontent p").text("Data Center Automation (DCA) integreert data center processen binnen fysieke, virtuele en cloud omgevingen zonder menselijke interventie.");
				$("#teasercontent img").attr("src", "/images/banner-datacenter-automation.jpg")
				$("#teasercontent").fadeIn(300);
				active = 3;
			});
		}
		$("#teaser li").removeClass("hover");
		$(this).addClass("hover");
	});
}); 
