$(document).ready(function() 
{
	if ($('#content').height() > $('#rightSmall').height()) 
	{
		$('#rightSmall').css('height', $('#content').height() + 'px');
	}
	
	window.setInterval("upclock()",1000); 
	
	$('.blogContent').find('img').each(function() 
	{
		$(this).attr('rel', 'foto');
		
		$(this).click(function() 
		{
			var t = $(this).attr('alt');
			var a = $(this).attr('src');
			var g = $(this).attr('rel');
			tb_show(t,a,g);
			this.blur();
			return false;
		});
	});
});
	
function upclock() 
{ 
	var dte = new Date(); 
	var hrs = dte.getHours(); 
	var min = dte.getMinutes();
	var col = ":"; 
	if (hrs == 0) hrs=12; 
	if (min<=9) min="0"+min; 
	
	$.ajax(
	{
		type: "GET",
		url: "/User/10/buienradar.xml",
		dataType: "xml",
		success: function(xml) 
		{
			$(xml).find('weerstation[id="6278"]').each(function() 
			{
				var temperatuur = $(this).find('temperatuurGC').text();
				$('.temperatuurEnTijd').html(hrs+col+min + '&nbsp;&nbsp;&nbsp;' + temperatuur + ' &deg;C');
			});
		}
	});
} 
