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

google.setOnLoadCallback(function(){
	
	$.ajaxSetup({async: false});
	$.getScript("inc/curvycorners.js");
	$.ajaxSetup({async: true});
	
	$.ajaxSetup({async: false});
	$.getScript("inc/jquery.colorbox.js");
	$.ajaxSetup({async: true});
		
	curveIt("button1",15);
	curveIt("button2",15);

	$("#content .container").html("<div id=\"ieFix\">"+$("#content .container").html()+"</div>");
	
	$("a[href*='images']").attr({rel: "allPagePhotos"}).colorbox();
	
});

function curveIt(elementID,theRadius) {

	var settings = {
      tl: { radius: theRadius },
      tr: { radius: theRadius },
      bl: { radius: theRadius },
      br: { radius: theRadius },
      antiAlias: true
    }

    var divObj = document.getElementById(elementID);

    curvyCorners(settings, divObj);
	
}