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_ash': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_blue': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_green': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_mustard': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_orange': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_yellow': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_red': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_brown': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_aqua': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'.kowhai1_purple': { borderType:'shadow', cornerRadius:4, shadowWidth:3 },
	'#wrapper': { borderType:'simple', cornerRadius:15 }
});

addLoadEvent(function() {	
	try{ 
		RUZEE.Borders.render();	
	}
	catch(ex) { 
		// nothing hapens. Doesn't matter if they don't have rounded corners
	}
});
