function getRandom() {

	$("#newspreviewinner").fadeOut("normal");
	$("#productpreviewinner").fadeOut("normal");
	$("#featurepreviewinner").fadeOut("normal", getRandomNews);
}

function getRandomNews() {
	// Reload random
	$.ajax({
  		url: "/randomnews.php?zlang="+zlang,
  		cache: false,
  		success: function(html){
    		$("#newspreviewinner").html(html);
			$("#newspreviewinner").fadeIn("normal");			
			getRandomProduct();
  		}
	});
}


function getRandomProduct() {
	// Reload random
	$.ajax({
  		url: "/randomproduct.php?zlang="+zlang,
  		cache: false,
  		success: function(html){
    		$("#productpreviewinner").html(html);
			$("#productpreviewinner").fadeIn("normal");						
			getRandomFeature();
  		}
	});
}

function getRandomFeature() {
	// Reload random
	$.ajax({
  		url: "/randomfeature.php?zlang="+zlang,
  		cache: false,
  		success: function(html){
    		$("#featurepreviewinner").html(html);
			$("#featurepreviewinner").fadeIn("normal");		
			initcursor();
			callback();
  		}
	});
}

function callback() {
	setTimeout("getRandom();", 8000);
}

$(document).ready(getRandom);

/*
function getRandom() {
$("#productpreviewinner").fadeOut("fast", callbackhide);

}
function callbackhide() {
$("#productpreviewinner").load("http://www.zanier.com/randomproduct.php?zlang=de", '', callbackshow);
}
function callbackshow() {
	$("#productpreviewinner").fadeIn("fast");
setTimeout("getRandom();", 5000);
}

$(document).ready(getRandom);
*/
