(function(e){optionsframeworkMLU={removeFile:function(){e(".mlu_remove").live("click",function(t){e(this).hide();e(this).parents().siblings(".input-append").children(".upload").attr("value","");e(this).parents(".screenshot").slideUp();e(this).parents(".screenshot").siblings(".of-background-properties").hide();return false});e("a.delete-inline","#option-1").hide()},recreateFileField:function(){e("input.file").each(function(){var t='';e(this).wrap('
');e(this).addClass("file").css("opacity",0);e(this).parent().append(e('').append(e('').attr("id",e(this).attr("id")+"_file")).val(e(this).val()).append(t));e(this).bind("change",function(){e("#"+e(this).attr("id")+"_file").val(e(this).val())});e(this).bind("mouseout",function(){e("#"+e(this).attr("id")+"_file").val(e(this).val())})})},mediaUpload:function(){jQuery.noConflict();e("input.upload_button").removeAttr("style");var t,n,r=true,i;e("input.upload_button").live("click",function(){t=e(this).prev("input").attr("id");n=e(this).attr("rel");i=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val("Use This Image")},2e3);var r="";if(e(this).parents(".section").find(".heading")){r=e(this).parents(".section").find(".heading").text()}tb_show(r,"media-upload.php?post_id="+n+"&TB_iframe=1");return false});window.original_send_to_editor=window.send_to_editor;window.send_to_editor=function(n){if(t){clearInterval(i);if(e(n).html(n).find("img").length>0){itemurl=e(n).html(n).find("img").attr("src")}else{var s=n.split("'");itemurl=s[1];var o=s[2];o=o.replace(">","");o=o.replace("","")}var u=/(^.*\.jpg|jpeg|png|gif|ico*)/gi;var f=/(^.*\.pdf|doc|docx|ppt|pptx|odt*)/gi;var l=/(^.*\.mp3|m4a|ogg|wav*)/gi;var h=/(^.*\.mp4|m4v|mov|wmv|avi|mpg|ogv|3gp|3g2*)/gi;if(itemurl.match(u)){r='