function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

RUZEE.Borders.add({
	'.kowhai1_red': { borderType:'shadow', cornerRadius:8, shadowWidth:3 },
	'.kowhai1_red2': { borderType:'simple', cornerRadius:8},
	'.round_grey': { borderType:'shadow', cornerRadius:8, shadowWidth:3 },
	'.round_grey2': { borderType:'simple', cornerRadius:8},
	'.round_clear': { borderType:'simple', cornerRadius:8}
});

addLoadEvent(function() {	
	try{ 
		RUZEE.Borders.render();	
	}
	catch(ex) { 
		// nothing hapens. Doesn't matter if they don't have rounded corners
	}
});