
(function($){var initLayout=function(){var hash=window.location.hash.replace('#','');var currentTab=$('ul.navigationTabs a').bind('click',showTab).filter('a[rel='+hash+']');if(currentTab.size()==0){currentTab=$('ul.navigationTabs a:first');}
$('#colorpickerHolder').ColorPicker({flat:true});$('#colorpickerHolder2').ColorPicker({flat:true,color:'#00ff00',onSubmit:function(hsb,hex,rgb){$('#colorSelector2 div').css('backgroundColor','#'+hex);}});$('#colorpickerHolder2>div').css('position','absolute');var widt=false;$('#colorSelector2').bind('click',function(){$('#colorpickerHolder2').stop().animate({height:widt?0:173},500);widt=!widt;});$('#headBorderColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#headBorderColor_picker').val(hex);updateSample('headBorderColor_picker',hex);updateHeader();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#headerTitleFontColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#headerTitleFontColor_picker').val(hex);updateSample('headerTitleFontColor_picker',hex);updateHeader();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#headerDescFontColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#headerDescFontColor_picker').val(hex);updateSample('headerDescFontColor_picker',hex);updateHeader();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#headGbColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#headGbColor_picker').val(hex);updateSample('headGbColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#bgColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#bgColor_picker').val(hex);updateSample('bgColor_picker',hex);updateBgColor();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#contTitleColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#contTitleColor_picker').val(hex);updateSample('contTitleColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#contFontColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#contFontColor_picker').val(hex);updateSample('contFontColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#contLinksColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#contLinksColor_picker').val(hex);updateSample('contLinksColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#contBgColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#contBgColor_picker').val(hex);updateSample('contBgColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#contentBorderColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#contentBorderColor_picker').val(hex);updateSample('contentBorderColor_picker',hex);updateContent();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#contImgBgColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#contImgBgColor_picker').val(hex);updateSample('contImgBgColor_picker',hex);updateContentImg();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#contImgBorderColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#contImgBorderColor_picker').val(hex);updateSample('contImgBorderColor_picker',hex);updateContentImg();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#sideBarTitleColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#sideBarTitleColor_picker').val(hex);updateSample('sideBarTitleColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#sideBarFontColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#sideBarFontColor_picker').val(hex);updateSample('sideBarFontColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#sideBarLinksColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#sideBarLinksColor_picker').val(hex);updateSample('sideBarLinksColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#sideBarBgColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#sideBarBgColor_picker').val(hex);updateSample('sideBarBgColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#sidebarBorderColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#sidebarBorderColor_picker').val(hex);updateSample('sidebarBorderColor_picker',hex);updateSidebar();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#footerFontColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#footerFontColor_picker').val(hex);updateSample('footerFontColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#footerLinksColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#footerLinksColor_picker').val(hex);updateSample('footerLinksColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#footerBgColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#footerBgColor_picker').val(hex);updateSample('footerBgColor_picker',hex);},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#footerBorderColor_picker').ColorPicker({onSubmit:function(hsb,hex,rgb){$('#footerBorderColor_picker').val(hex);updateSample('footerBorderColor_picker',hex);updateFooter();},onBeforeShow:function(){$(this).ColorPickerSetColor(this.value);}}).bind('keyup',function(){$(this).ColorPickerSetColor(this.value);});$('#colorSelector').ColorPicker({color:'#0000ff',onShow:function(colpkr){$(colpkr).fadeIn(500);return false;},onHide:function(colpkr){$(colpkr).fadeOut(500);return false;},onChange:function(hsb,hex,rgb){$('#colorSelector div').css('backgroundColor','#'+hex);}});};var showTab=function(e){var tabIndex=$('ul.navigationTabs a').removeClass('active').index(this);$(this).addClass('active').blur();$('div.tab').hide().eq(tabIndex).show();};EYE.register(initLayout,'init');})(jQuery)