$(document).ready(function(){
	setExternalLinks()
	imageBorderRadius()
	weatherHeader()
});
function imageBorderRadius() {
	$(".image-border-radius").each(function(i){
		var img=$(this).children('img')[0]
		$(this).css('background-image',"url('"+$(img).attr('src')+"')");
		$(this).css('width',$(img).attr('width')+'px');
		$(this).css('height',$(img).attr('height')+'px');
		$(img).hide();
	});
}
function setExternalLinks() {
	$(".external-link, #content .feed a").click(function(){
		$(this).attr('target','_blank');
	});
}
function weatherHeader() {
	$("#weather-button").click(function(){
		$("#weather-button").hide();
		$("#weather").animate({left: 0},1000,'easeOutCubic');
	});
}
