var initLayout = function() {
var hash = window.location.hash.replace('#', '');
var currentTab = $('ul.navigationTabs a')
.filter('a[rel=' + hash + ']');
if (currentTab.size() == 0) {
currentTab = $('ul.navigationTabs a:first');
showTab.apply(currentTab.get(0));
$('#colorpickerHolder').ColorPicker({flat: true});
$('.colorpopup').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
var showTab = function(e) {
var tabIndex = $('ul.navigationTabs a')
EYE.register(initLayout, 'init');