function renderRandom(){
	
	var randomRender;
	
	var intervall = function(uniqid, pageId, contentUid, randomBox, intervallTime){
		clearInterval ( randomRender );
		
		$.ajax({
				type: 'post',
				url: 'index.php?eID=leonhardt_randombox_random_content',
				data: 'pageId=' + pageId + '&contentUid=' + contentUid + '&randomBox=' + randomBox,
				beforeSend: function(){
				},
				complete: function(){
				},
				success: function(html){
					$('#' + uniqid).append(html);
					headlineHeight = $('#' + uniqid + ' .boxWrap').eq(1).find('.headline').height();
					imageHeight = $('#' + uniqid + ' .boxWrap').eq(1).find('.image').height();
					imageHeightRel = parseInt($('#' + uniqid + ' .boxWrap').eq(1).find('.image img').attr('rel'));
			        statementHeight = $('#' + uniqid + ' .boxWrap').eq(1).find('.statement').height();
			        nameHeight = $('#' + uniqid + ' .boxWrap').eq(1).find('.name').height();
					sumHeight = headlineHeight + statementHeight + nameHeight + 57 + imageHeightRel;

					$('#' + uniqid).eq(0).animate({
						"height" : sumHeight
					}, {duration: 500, queue: false, complete: function(){}});					
					$('#' + uniqid + ' .boxWrap').eq(0).animate({
						"opacity" : "0"
					}, {duration: 500, queue: false, complete: function(){
						if(jQuery.browser.msie){
							$(this).get(0).style.removeAttribute('filter');
						}
						$(this).remove();
					}});					
					$('#' + uniqid + ' .boxWrap').eq(1).animate({
						"opacity" : "1"
					}, {duration: 500, queue: false, complete: function(){
						if(jQuery.browser.msie){
							$(this).get(0).style.removeAttribute('filter');
						}
						randomRender = setInterval(function(){
							intervall(uniqid, pageId, contentUid, randomBox, intervallTime);
						}, intervallTime);
					}});
					
					
				}
			});
	};
	
	this.render = function(uniqid, pageId, contentUid, randomBox, intervallTime){
		
		$('#' + uniqid).css({
			"position" : "relative",
			"overflow" : "hidden",
			"height" : $('#' + uniqid).height()
		});
		$('#' + uniqid + ' .boxWrap').css({
			"position" : "absolute",
			"top" : "0",
			"left" : "0"
		});
		
		randomRender = setInterval(function(){
			intervall(uniqid, pageId, contentUid, randomBox, intervallTime);
		}, intervallTime);		
	};
}
