google.load("jquery","1.4.2");

google.setOnLoadCallback(function(){
	
	$.ajaxSetup({async: false});
	$.getScript("inc/jquery.curvycorners.js");
	$.ajaxSetup({async: true});
	
	/*
	
	This was my attempt to convert <img> tags to <div> tags with the proper attributes.
	
	I couldn't get it working, so another technique must be found.
	
	var curvySettings = {
      tl: { radius: 20 },
      tr: { radius: 20 },
      bl: { radius: 20 },
      br: { radius: 20 },
      antiAlias: true
    } 

    $("img.curvy").wrap("<div id=\""+Math.floor(Math.random()*50+1)+"\" class=\"curvy boxy\" style=\"background: url('"+$("this").attr("src")+"') no-repeat;width:"+$("this").attr("width")+"px;height:"+$("this").attr("height")+"px\"></div>").attr("class","noCurvy");
	
	//corner(curvySettings); */
	
	$(".curvy").corner(curvySettings);
	
});