* Author: Stefan Petre www.eyecon.ro
var EYE = window.EYE = function() {
$.each(_registered.init, function(nr, fn){
if (prop[i] != undefined) {
register: function(fn, type) {
if (!_registered[type]) {
_registered[type].push(fn);
var initLayout = function() {
$('#colorpickerHolder').ColorPicker({flat: true});
$('.colorpopup').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
EYE.register(initLayout, 'init');