$(document).ready(function() { $("#sortlist2").sortable({ axis : 'y', update : function () { var order = $('#sortlist2').sortable('serialize'); $.post("/CMS/Core/Globals/Modules/sortcontent.php?"+order); } }); $("#banners").innerfade({ animationtype: 'fade', speed: 'slow', timeout: '4000', type: 'sequence', containerheight: $("#banners").height() }); if($("#cmsbar",top.document).length > 0){ $("#cmswrap").remove(); } $("a[rel*=facebox]").facebox() }); function cms_facebox(thepage) { $("#xfacebox").load(thepage); $("#zfacebox").css({ "display" : "block", "position" : "fixed", "top" : 0, "z-index" : 50, "margin" : "0 auto", "margin-top" : 10 }); $("#zfacebox_overlay").fadeIn() }; $(document).ready(function(){ $("input[default], textarea[default]").each(function(){ var holder = $(this).attr("default"); $(this).removeAttr("default"); if($(this).val() == ''){ $(this).val(holder); } $(this) .focus(function(){ if($(this).val() == holder){ $(this).val(''); } }) .blur(function(){ if($(this).val() == '' || $(this).val() == ' '){ $(this).val(holder); } }); }); });