var IMG = {
	
	init : function() {
		if(document.getElementById('entry'))
		{
			var p = document.getElementById('entry').getElementsByTagName('a');
			for(var i=0;i<p.length;i++)
			{
				var enlaces = p[i].getElementsByTagName('img');
				if(enlaces.length == 0)
				{
					p[i].className = 'noflotada';
				}
			}
		}
		if(document.getElementById('featured'))
		{
			var p = document.getElementById('featured').getElementsByTagName('a');
			for(var i=0;i<p.length;i++)
			{
				var enlaces = p[i].getElementsByTagName('img');
				if(enlaces.length == 0)
				{
					p[i].className = 'noflotada';
				}
			}
		}	
	}
}




function addLoadEvent(fn) {
	var old = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = fn;
	} else {
		window.onload = function() {
			old();
			fn();
		}
	}
}


addLoadEvent(function() {
	IMG.init();
});

