jQuery.noConflict();jQuery(document).ready(function(){jQuery("#style-profile-button").click(function(a){jQuery("#style-profile").toggle();return false});jQuery("#pd-bgcolor").change(function(){jQuery("#profile-container").css("background","#"+jQuery(this).val())});jQuery("#pd-bgcolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container").css("background","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-bgimage").change(function(){jQuery("#profile-container").css("background-image","url("+jQuery(this).val()+")")});jQuery("#pd-borderstyle").change(function(){jQuery("#profile-container").css("border-style",jQuery(this).val())});jQuery("#pd-bordersize").change(function(){jQuery("#profile-container").css("border-width",jQuery(this).val())});jQuery("#pd-bordercolor").change(function(){jQuery("#profile-container").css("border-color",jQuery(this).val())});jQuery("#pd-bordercolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container").css("border-color","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-fontcolor").change(function(){jQuery("#profile-container").css("color",jQuery(this).val())});jQuery("#pd-fontcolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container, .trow1, .trow2").css("color","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-linkcolor").change(function(){jQuery("#profile-container a:link, #profile-container a:hover, #profile-container a:active, #profile-container a:visited").css("color",jQuery(this).val())});jQuery("#pd-linkcolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container a:link, #profile-container a:hover, #profile-container a:active, #profile-container a:visited").css("color","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-tableheadbgcolor").change(function(){jQuery("#profile-container .thead").css("background",jQuery(this).val())});jQuery("#pd-tableheadbgcolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container .thead").css("background","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-tableheadfontcolor").change(function(){jQuery("#profile-container .thead").css("color",jQuery(this).val())});jQuery("#pd-tableheadfontcolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container .thead").css("color","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-row1bgcolor").change(function(){jQuery("#profile-container .trow1").css("background",jQuery(this).val())});jQuery("#pd-row1bgcolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container .trow1").css("background","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-row2bgcolor").change(function(){jQuery("#profile-container .trow2").css("background",jQuery(this).val())});jQuery("#pd-row2bgcolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container .trow2").css("background","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-tableborderstyle").change(function(){jQuery("#profile-container .tborder").css("border-style",jQuery(this).val())});jQuery("#pd-tablebordersize").change(function(){jQuery("#profile-container .tborder").css("border-width",jQuery(this).val())});jQuery("#pd-tablebordercolor").change(function(){jQuery("#profile-container .tborder").css("border-color",jQuery(this).val())});jQuery("#pd-tablebordercolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container .tborder").css("border-color","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)});jQuery("#pd-innertablebordercolor").change(function(){jQuery("#profile-container .tborder").css("background",jQuery(this).val())});jQuery("#pd-innertablebordercolor").ColorPicker({onSubmit:function(a,d,b,c){jQuery(c).val(d);jQuery(c).ColorPickerHide();jQuery("#profile-container .tborder").css("background","#"+d)},onBeforeShow:function(){jQuery(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){jQuery(this).ColorPickerSetColor(this.value)})});
