
function switch_background(element, state) {
	
	
	
	if (state == 'on') {
		document.getElementById(element).style.backgroundPosition = '0pt 7pt';
	}
	
	if (state == 'off') {
		document.getElementById(element).style.backgroundPosition = '0 0';
	}
	
}


var tekma_id;
var timeout = 4000;

function init_livecomments(id) {
	tekma_id = id;
	set_livecomments();
}

function set_livecomments() {
	$.get('data.livecomments.php', {TEKMAID:tekma_id}, function(data){
		$('#commenting').html(data);
	});
	setTimeout("set_livecomments()",timeout);
}



