reportSite = function(site_id)
{
	$.ajax({
		type: "POST",
		url:  ADORABLE.homepageUrl + 'async/user_websites/report_site.php',
		data: 'site_id=' + site_id,
		success: function(msg){
			var color = $("#report").css('color');
			$("#report").html(msg).css('color', 'red').fadeOut(4000, 
				function()
				{ $(this).css('color', color).show(); }
			);
		  }		
	});	

}

restore = function()
{
	this.fadeIn();
}


styleCaptions = function()
{
	var iw = $('img#singleImage').width();
	$("#imageWrapper").width(parseInt(iw + 6));
	if(parseInt(iw) > 400) {
		$('#imageWrapper').css('float', 'none');
	} else {
		$(".caption").css('width', iw + 'px');
	}
}


$(document).ready(function() {
	styleCaptions();
});