var thermo = null;

function createDiv(value){
	
	var div_val = parseInt( $('.thermometer').attr('id') );
	var getal = value;
	
	if(div_val){	
		getal = div_val;
	}	
	
	var delen = (getal/30);

	var heightt = parseInt(document.getElementById('thermo').style.top);
	var heighttt = parseInt(document.getElementById('thermo').style.height);
	
	if(heighttt <= delen)
	{
		var nieuwepos = heightt - 10;
		var nieuwepos2 = heighttt + 10;
		
		document.getElementById('thermo').style.height = nieuwepos2 + 'px';
		document.getElementById('thermo').style.top = nieuwepos + 'px';
	}else{
		clearInterval(thermo);
	}
}

$(document).ready(function($){
	// start interval;	
	thermo = setInterval('createDiv(3450)', 100);
});


