<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[17286] trunk:
  Recompress some JS scripts that were done without YUI munging.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17286">17286</a></dd>
<dt>Author</dt> <dd>markjaquith</dd>
<dt>Date</dt> <dd>2011-01-13 08:04:58 +0000 (Thu, 13 Jan 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Recompress some JS scripts that were done without YUI munging.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjsdashboardjs">trunk/wp-admin/js/dashboard.js</a></li>
<li><a href="#trunkwpadminjsmediauploadjs">trunk/wp-admin/js/media-upload.js</a></li>
<li><a href="#trunkwpadminjsplugininstalljs">trunk/wp-admin/js/plugin-install.js</a></li>
<li><a href="#trunkwpadminjsuserprofilejs">trunk/wp-admin/js/user-profile.js</a></li>
<li><a href="#trunkwpincludesjsimgareaselectjqueryimgareaselectjs">trunk/wp-includes/js/imgareaselect/jquery.imgareaselect.js</a></li>
<li><a href="#trunkwpincludesjsjcropjqueryJcropjs">trunk/wp-includes/js/jcrop/jquery.Jcrop.js</a></li>
<li><a href="#trunkwpincludesjsjquerysuggestjs">trunk/wp-includes/js/jquery/suggest.js</a></li>
<li><a href="#trunkwpincludesjsjson2js">trunk/wp-includes/js/json2.js</a></li>
<li><a href="#trunkwpincludesjsswfuploadhandlersjs">trunk/wp-includes/js/swfupload/handlers.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjsdashboardjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/dashboard.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/dashboard.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-admin/js/dashboard.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function($){ajaxWidgets=[&quot;dashboard_incoming_links&quot;,&quot;dashboard_primary&quot;,&quot;dashboard_secondary&quot;,&quot;dashboard_plugins&quot;,&quot;dashboard_quick_press&quot;];ajaxPopulateWidgets=function(el){show=function(id,i){var p,e=$(&quot;#&quot;+id+&quot; div.inside:visible&quot;).find(&quot;.widget-loading&quot;);if(e.length){p=e.parent();setTimeout(function(){p.load(ajaxurl.replace(&quot;/admin-ajax.php&quot;,&quot;&quot;)+&quot;/index-extra.php?jax=&quot;+id,&quot;&quot;,function(){p.hide().slideDown(&quot;normal&quot;,function(){$(this).css(&quot;display&quot;,&quot;&quot;);if(&quot;dashboard_quick_press&quot;==id){quickPressLoad()}})})},i*500)}};if(el){el=el.toString();if($.inArray(el,ajaxWidgets)!=-1){show(el,0)}}else{$.each(ajaxWidgets,function(i){show(this,i)})}};ajaxPopulateWidgets();postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets});quickPressLoad=function(){var act=$(&quot;#quickpost-action&quot;),t;t=$(&quot;#quick-press&quot;).submit(function(){$(&quot;#dashboard_quick_press #publishing-action img.waiting&quot;).css(&quot;visibility&quot;,&quot;visible&quot;);$('#quick-press .submit input[type=&quot;submit&quot;], #quick-press .submit input[type=&quot;reset&quot;]').attr(&quot;disabled&quot;,&quot;disabled&quot;);if(&quot;post&quot;==act.val()){act.val(&quot;post-quickpress-publish&quot;)}$(&quot;#dashboard_quick_press div.inside&quot;).load(t.attr(&quot;action&quot;),t.serializeArray(),function(){$(&quot;#dashboard_quick_press #publishing-action img.waiting&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;);$('#quick-press .submit input[type=&quot;submit&quot;], #quick-press .submit input[type=&quot;reset&quot;]').attr(&quot;disabled&quot;,&quot;&quot;);$(&quot;#dashboard_quick_press ul&quot;).next(&quot;p&quot;).remove();$(&quot;#dashboard_quick_press ul&quot;).find(&quot;li&quot;).each(function(){$(&quot;#dashboard_recent_drafts ul&quot;).prepend(this)}).end().remove();quickPressLoad()});return false});$(&quot;#publish&quot;).click(function(){act.val(&quot;post-quickpress-publish&quot;)})}});
</del><span class="cx">\ No newline at end of file
</span><ins>+var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function(a){ajaxWidgets=[&quot;dashboard_incoming_links&quot;,&quot;dashboard_primary&quot;,&quot;dashboard_secondary&quot;,&quot;dashboard_plugins&quot;,&quot;dashboard_quick_press&quot;];ajaxPopulateWidgets=function(b){show=function(g,c){var f,d=a(&quot;#&quot;+g+&quot; div.inside:visible&quot;).find(&quot;.widget-loading&quot;);if(d.length){f=d.parent();setTimeout(function(){f.load(ajaxurl.replace(&quot;/admin-ajax.php&quot;,&quot;&quot;)+&quot;/index-extra.php?jax=&quot;+g,&quot;&quot;,function(){f.hide().slideDown(&quot;normal&quot;,function(){a(this).css(&quot;display&quot;,&quot;&quot;);if(&quot;dashboard_quick_press&quot;==g){quickPressLoad()}})})},c*500)}};if(b){b=b.toString();if(a.inArray(b,ajaxWidgets)!=-1){show(b,0)}}else{a.each(ajaxWidgets,function(c){show(this,c)})}};ajaxPopulateWidgets();postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets});quickPressLoad=function(){var b=a(&quot;#quickpost-action&quot;),c;c=a(&quot;#quick-press&quot;).submit(function(){a(&quot;#dashboard_quick_press #publishing-action img.waiting&quot;).css(&quot;visibility&quot;,&quot;visible&quot;);a('#quick-press .submit input[type=&quot;submit&quot;], #quick-press .submit input[type=&quot;reset&quot;]').attr(&quot;disabled&quot;,&quot;disabled&quot;);if(&quot;post&quot;==b.val()){b.val(&quot;post-quickpress-publish&quot;)}a(&quot;#dashboard_quick_press div.inside&quot;).load(c.attr(&quot;action&quot;),c.serializeArray(),function(){a(&quot;#dashboard_quick_press #publishing-action img.waiting&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;);a('#quick-press .submit input[type=&quot;submit&quot;], #quick-press .submit input[type=&quot;reset&quot;]').attr(&quot;disabled&quot;,&quot;&quot;);a(&quot;#dashboard_quick_press ul&quot;).next(&quot;p&quot;).remove();a(&quot;#dashboard_quick_press ul&quot;).find(&quot;li&quot;).each(function(){a(&quot;#dashboard_recent_drafts ul&quot;).prepend(this)}).end().remove();quickPressLoad()});return false});a(&quot;#publish&quot;).click(function(){b.val(&quot;post-quickpress-publish&quot;)})}});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsmediauploadjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/media-upload.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/media-upload.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-admin/js/media-upload.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1 +1 @@
</span><del>-function send_to_editor(h){var ed;if(typeof tinyMCE!=&quot;undefined&quot;&amp;&amp;(ed=tinyMCE.activeEditor)&amp;&amp;!ed.isHidden()){ed.focus();if(tinymce.isIE){ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark)}if(h.indexOf(&quot;[caption&quot;)===0){if(ed.plugins.wpeditimage){h=ed.plugins.wpeditimage._do_shcode(h)}}else{if(h.indexOf(&quot;[gallery&quot;)===0){if(ed.plugins.wpgallery){h=ed.plugins.wpgallery._do_gallery(h)}}else{if(h.indexOf(&quot;[embed&quot;)===0){if(ed.plugins.wordpress){h=ed.plugins.wordpress._setEmbed(h)}}}}ed.execCommand(&quot;mceInsertContent&quot;,false,h)}else{if(typeof edInsertContent==&quot;function&quot;){edInsertContent(edCanvas,h)}else{jQuery(edCanvas).val(jQuery(edCanvas).val()+h)}}tb_remove()}var tb_position;(function($){tb_position=function(){var tbWindow=$(&quot;#TB_window&quot;),width=$(window).width(),H=$(window).height(),W=(720&lt;width)?720:width,adminbar_height=0;if($(&quot;body.admin-bar&quot;).length){adminbar_height=28}if(tbWindow.size()){tbWindow.width(W-50).height(H-45-adminbar_height);$(&quot;#TB_iframeContent&quot;).width(W-50).height(H-75-adminbar_height);tbWindow.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((W-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){tbWindow.css({top:20+adminbar_height+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return $(&quot;a.thickbox&quot;).each(function(){var href=$(this).attr(&quot;href&quot;);if(!href){return}href=href.replace(/&amp;width=[0-9]+/g,&quot;&quot;);href=href.replace(/&amp;height=[0-9]+/g,&quot;&quot;);$(this).attr(&quot;href&quot;,href+&quot;&amp;width=&quot;+(W-80)+&quot;&amp;height=&quot;+(H-85-adminbar_height))})};$(window).resize(function(){tb_position()})})(jQuery);jQuery(document).ready(function($){$(&quot;a.thickbox&quot;).click(function(){if(typeof tinyMCE!=&quot;undefined&quot;&amp;&amp;tinyMCE.activeEditor){tinyMCE.get(&quot;content&quot;).focus();tinyMCE.activeEditor.windowManager.bookmark=tinyMCE.activeEditor.selection.getBookmark(&quot;simple&quot;)}})});
</del><span class="cx">\ No newline at end of file
</span><ins>+function send_to_editor(b){var a;if(typeof tinyMCE!=&quot;undefined&quot;&amp;&amp;(a=tinyMCE.activeEditor)&amp;&amp;!a.isHidden()){a.focus();if(tinymce.isIE){a.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark)}if(b.indexOf(&quot;[caption&quot;)===0){if(a.plugins.wpeditimage){b=a.plugins.wpeditimage._do_shcode(b)}}else{if(b.indexOf(&quot;[gallery&quot;)===0){if(a.plugins.wpgallery){b=a.plugins.wpgallery._do_gallery(b)}}else{if(b.indexOf(&quot;[embed&quot;)===0){if(a.plugins.wordpress){b=a.plugins.wordpress._setEmbed(b)}}}}a.execCommand(&quot;mceInsertContent&quot;,false,b)}else{if(typeof edInsertContent==&quot;function&quot;){edInsertContent(edCanvas,b)}else{jQuery(edCanvas).val(jQuery(edCanvas).val()+b)}}tb_remove()}var tb_position;(function(a){tb_position=function(){var f=a(&quot;#TB_window&quot;),e=a(window).width(),d=a(window).height(),c=(720&lt;e)?720:e,b=0;if(a(&quot;body.admin-bar&quot;).length){b=28}if(f.size()){f.width(c-50).height(d-45-b);a(&quot;#TB_iframeContent&quot;).width(c-50).height(d-75-b);f.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((c-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){f.css({top:20+b+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return a(&quot;a.thickbox&quot;).each(function(){var g=a(this).attr(&quot;href&quot;);if(!g){return}g=g.replace(/&amp;width=[0-9]+/g,&quot;&quot;);g=g.replace(/&amp;height=[0-9]+/g,&quot;&quot;);a(this).attr(&quot;href&quot;,g+&quot;&amp;width=&quot;+(c-80)+&quot;&amp;height=&quot;+(d-85-b))})};a(window).resize(function(){tb_position()})})(jQuery);jQuery(document).ready(function(a){a(&quot;a.thickbox&quot;).click(function(){if(typeof tinyMCE!=&quot;undefined&quot;&amp;&amp;tinyMCE.activeEditor){tinyMCE.get(&quot;content&quot;).focus();tinyMCE.activeEditor.windowManager.bookmark=tinyMCE.activeEditor.selection.getBookmark(&quot;simple&quot;)}})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsplugininstalljs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/plugin-install.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/plugin-install.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-admin/js/plugin-install.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var tb_position;jQuery(document).ready(function($){tb_position=function(){var tbWindow=$(&quot;#TB_window&quot;),width=$(window).width(),H=$(window).height(),W=(720&lt;width)?720:width,adminbar_height=0;if($(&quot;body.admin-bar&quot;).length){adminbar_height=28}if(tbWindow.size()){tbWindow.width(W-50).height(H-45-adminbar_height);$(&quot;#TB_iframeContent&quot;).width(W-50).height(H-75-adminbar_height);tbWindow.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((W-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){tbWindow.css({top:20+adminbar_height+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return $(&quot;a.thickbox&quot;).each(function(){var href=$(this).attr(&quot;href&quot;);if(!href){return}href=href.replace(/&amp;width=[0-9]+/g,&quot;&quot;);href=href.replace(/&amp;height=[0-9]+/g,&quot;&quot;);$(this).attr(&quot;href&quot;,href+&quot;&amp;width=&quot;+(W-80)+&quot;&amp;height=&quot;+(H-85-adminbar_height))})};$(window).resize(function(){tb_position()});$(&quot;#dashboard_plugins a.thickbox, .plugins a.thickbox&quot;).click(function(){tb_click.call(this);$(&quot;#TB_title&quot;).css({&quot;background-color&quot;:&quot;#222&quot;,color:&quot;#cfcfcf&quot;});$(&quot;#TB_ajaxWindowTitle&quot;).html(&quot;&lt;strong&gt;&quot;+plugininstallL10n.plugin_information+&quot;&lt;/strong&gt;&amp;nbsp;&quot;+$(this).attr(&quot;title&quot;));return false});$(&quot;#plugin-information #sidemenu a&quot;).click(function(){var tab=$(this).attr(&quot;name&quot;);$(&quot;#plugin-information-header a.current&quot;).removeClass(&quot;current&quot;);$(this).addClass(&quot;current&quot;);$(&quot;#section-holder div.section&quot;).hide();$(&quot;#section-&quot;+tab).show();return false});$(&quot;a.install-now&quot;).click(function(){return confirm(plugininstallL10n.ays)})});
</del><span class="cx">\ No newline at end of file
</span><ins>+var tb_position;jQuery(document).ready(function(a){tb_position=function(){var f=a(&quot;#TB_window&quot;),e=a(window).width(),d=a(window).height(),c=(720&lt;e)?720:e,b=0;if(a(&quot;body.admin-bar&quot;).length){b=28}if(f.size()){f.width(c-50).height(d-45-b);a(&quot;#TB_iframeContent&quot;).width(c-50).height(d-75-b);f.css({&quot;margin-left&quot;:&quot;-&quot;+parseInt(((c-50)/2),10)+&quot;px&quot;});if(typeof document.body.style.maxWidth!=&quot;undefined&quot;){f.css({top:20+b+&quot;px&quot;,&quot;margin-top&quot;:&quot;0&quot;})}}return a(&quot;a.thickbox&quot;).each(function(){var g=a(this).attr(&quot;href&quot;);if(!g){return}g=g.replace(/&amp;width=[0-9]+/g,&quot;&quot;);g=g.replace(/&amp;height=[0-9]+/g,&quot;&quot;);a(this).attr(&quot;href&quot;,g+&quot;&amp;width=&quot;+(c-80)+&quot;&amp;height=&quot;+(d-85-b))})};a(window).resize(function(){tb_position()});a(&quot;#dashboard_plugins a.thickbox, .plugins a.thickbox&quot;).click(function(){tb_click.call(this);a(&quot;#TB_title&quot;).css({&quot;background-color&quot;:&quot;#222&quot;,color:&quot;#cfcfcf&quot;});a(&quot;#TB_ajaxWindowTitle&quot;).html(&quot;&lt;strong&gt;&quot;+plugininstallL10n.plugin_information+&quot;&lt;/strong&gt;&amp;nbsp;&quot;+a(this).attr(&quot;title&quot;));return false});a(&quot;#plugin-information #sidemenu a&quot;).click(function(){var b=a(this).attr(&quot;name&quot;);a(&quot;#plugin-information-header a.current&quot;).removeClass(&quot;current&quot;);a(this).addClass(&quot;current&quot;);a(&quot;#section-holder div.section&quot;).hide();a(&quot;#section-&quot;+b).show();return false});a(&quot;a.install-now&quot;).click(function(){return confirm(plugininstallL10n.ays)})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsuserprofilejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/user-profile.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/user-profile.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-admin/js/user-profile.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function($){function check_pass_strength(){var pass1=$(&quot;#pass1&quot;).val(),user=$(&quot;#user_login&quot;).val(),pass2=$(&quot;#pass2&quot;).val(),strength;$(&quot;#pass-strength-result&quot;).removeClass(&quot;short bad good strong&quot;);if(!pass1){$(&quot;#pass-strength-result&quot;).html(pwsL10n.empty);return}strength=passwordStrength(pass1,user,pass2);switch(strength){case 2:$(&quot;#pass-strength-result&quot;).addClass(&quot;bad&quot;).html(pwsL10n.bad);break;case 3:$(&quot;#pass-strength-result&quot;).addClass(&quot;good&quot;).html(pwsL10n.good);break;case 4:$(&quot;#pass-strength-result&quot;).addClass(&quot;strong&quot;).html(pwsL10n.strong);break;case 5:$(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n.mismatch);break;default:$(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n[&quot;short&quot;])}}$(document).ready(function(){$(&quot;#pass1&quot;).val(&quot;&quot;).keyup(check_pass_strength);$(&quot;#pass2&quot;).val(&quot;&quot;).keyup(check_pass_strength);$(&quot;#pass-strength-result&quot;).show();$(&quot;.color-palette&quot;).click(function(){$(this).siblings(&quot;input[name=admin_color]&quot;).attr(&quot;checked&quot;,&quot;checked&quot;)});$(&quot;#nickname&quot;).blur(function(){var str=$(this).val()||$(&quot;#user_login&quot;).val();var select=$(&quot;#display_name&quot;);var sel=select.children(&quot;option:selected&quot;).attr(&quot;id&quot;);select.children(&quot;#display_nickname&quot;).remove();if(!select.children(&quot;option[value=&quot;+str+&quot;]&quot;).length){select.append('&lt;option id=&quot;display_nickname&quot; value=&quot;'+str+'&quot;&gt;'+str+&quot;&lt;/option&gt;&quot;)}$(&quot;#&quot;+sel).attr(&quot;selected&quot;,&quot;selected&quot;)});$(&quot;#first_name, #last_name&quot;).blur(function(){var select=$(&quot;#display_name&quot;);var first=$(&quot;#first_name&quot;).val(),last=$(&quot;#last_name&quot;).val();var sel=select.children(&quot;option:selected&quot;).attr(&quot;id&quot;);$(&quot;#display_firstname, #display_lastname, #display_firstlast, #display_lastfirst&quot;).remove();if(first&amp;&amp;!select.children(&quot;option[value=&quot;+first+&quot;]&quot;).length){select.append('&lt;option id=&quot;display_firstname&quot; value=&quot;'+first+'&quot;&gt;'+first+&quot;&lt;/option&gt;&quot;)}if(last&amp;&amp;!select.children(&quot;option[value=&quot;+last+&quot;]&quot;).length){select.append('&lt;option id=&quot;display_lastname&quot; value=&quot;'+last+'&quot;&gt;'+last+&quot;&lt;/option&gt;&quot;)}if(first&amp;&amp;last){if(!select.children(&quot;option[value=&quot;+first+&quot; &quot;+last+&quot;]&quot;).length){select.append('&lt;option id=&quot;display_firstlast&quot; value=&quot;'+first+&quot; &quot;+last+'&quot;&gt;'+first+&quot; &quot;+last+&quot;&lt;/option&gt;&quot;)}if(!select.children(&quot;option[value=&quot;+last+&quot; &quot;+first+&quot;]&quot;).length){select.append('&lt;option id=&quot;display_lastfirst&quot; value=&quot;'+last+&quot; &quot;+first+'&quot;&gt;'+last+&quot; &quot;+first+&quot;&lt;/option&gt;&quot;)}}$(&quot;#&quot;+sel).attr(&quot;selected&quot;,&quot;selected&quot;)})})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){function b(){var e=a(&quot;#pass1&quot;).val(),d=a(&quot;#user_login&quot;).val(),c=a(&quot;#pass2&quot;).val(),f;a(&quot;#pass-strength-result&quot;).removeClass(&quot;short bad good strong&quot;);if(!e){a(&quot;#pass-strength-result&quot;).html(pwsL10n.empty);return}f=passwordStrength(e,d,c);switch(f){case 2:a(&quot;#pass-strength-result&quot;).addClass(&quot;bad&quot;).html(pwsL10n.bad);break;case 3:a(&quot;#pass-strength-result&quot;).addClass(&quot;good&quot;).html(pwsL10n.good);break;case 4:a(&quot;#pass-strength-result&quot;).addClass(&quot;strong&quot;).html(pwsL10n.strong);break;case 5:a(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n.mismatch);break;default:a(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n[&quot;short&quot;])}}a(document).ready(function(){a(&quot;#pass1&quot;).val(&quot;&quot;).keyup(b);a(&quot;#pass2&quot;).val(&quot;&quot;).keyup(b);a(&quot;#pass-strength-result&quot;).show();a(&quot;.color-palette&quot;).click(function(){a(this).siblings(&quot;input[name=admin_color]&quot;).attr(&quot;checked&quot;,&quot;checked&quot;)});a(&quot;#nickname&quot;).blur(function(){var e=a(this).val()||a(&quot;#user_login&quot;).val();var c=a(&quot;#display_name&quot;);var d=c.children(&quot;option:selected&quot;).attr(&quot;id&quot;);c.children(&quot;#display_nickname&quot;).remove();if(!c.children(&quot;option[value=&quot;+e+&quot;]&quot;).length){c.append('&lt;option id=&quot;display_nickname&quot; value=&quot;'+e+'&quot;&gt;'+e+&quot;&lt;/option&gt;&quot;)}a(&quot;#&quot;+d).attr(&quot;selected&quot;,&quot;selected&quot;)});a(&quot;#first_name, #last_name&quot;).blur(function(){var c=a(&quot;#display_name&quot;);var f=a(&quot;#first_name&quot;).val(),d=a(&quot;#last_name&quot;).val();var e=c.children(&quot;option:selected&quot;).attr(&quot;id&quot;);a(&quot;#display_firstname, #display_lastname, #display_firstlast, #display_lastfirst&quot;).remove();if(f&amp;&amp;!c.children(&quot;option[value=&quot;+f+&quot;]&quot;).length){c.append('&lt;option id=&quot;display_firstname&quot; value=&quot;'+f+'&quot;&gt;'+f+&quot;&lt;/option&gt;&quot;)}if(d&amp;&amp;!c.children(&quot;option[value=&quot;+d+&quot;]&quot;).length){c.append('&lt;option id=&quot;display_lastname&quot; value=&quot;'+d+'&quot;&gt;'+d+&quot;&lt;/option&gt;&quot;)}if(f&amp;&amp;d){if(!c.children(&quot;option[value=&quot;+f+&quot; &quot;+d+&quot;]&quot;).length){c.append('&lt;option id=&quot;display_firstlast&quot; value=&quot;'+f+&quot; &quot;+d+'&quot;&gt;'+f+&quot; &quot;+d+&quot;&lt;/option&gt;&quot;)}if(!c.children(&quot;option[value=&quot;+d+&quot; &quot;+f+&quot;]&quot;).length){c.append('&lt;option id=&quot;display_lastfirst&quot; value=&quot;'+d+&quot; &quot;+f+'&quot;&gt;'+d+&quot; &quot;+f+&quot;&lt;/option&gt;&quot;)}}a(&quot;#&quot;+e).attr(&quot;selected&quot;,&quot;selected&quot;)})})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsimgareaselectjqueryimgareaselectjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/imgareaselect/jquery.imgareaselect.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/imgareaselect/jquery.imgareaselect.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-includes/js/imgareaselect/jquery.imgareaselect.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function($){var abs=Math.abs,max=Math.max,min=Math.min,round=Math.round;function div(){return $('&lt;div/&gt;')}$.imgAreaSelect=function(img,options){var $img=$(img),imgLoaded,$box=div(),$area=div(),$border=div().add(div()).add(div()).add(div()),$outer=div().add(div()).add(div()).add(div()),$handles=$([]),$areaOpera,left,top,imgOfs,imgWidth,imgHeight,$parent,parOfs,zIndex=0,position='absolute',startX,startY,scaleX,scaleY,resizeMargin=10,resize,aspectRatio,shown,x1,y1,x2,y2,selection={x1:0,y1:0,x2:0,y2:0,width:0,height:0},$p,d,i,o,w,h,adjusted;function viewX(x){return x+imgOfs.left-parOfs.left}function viewY(y){return y+imgOfs.top-parOfs.top}function selX(x){return x-imgOfs.left+parOfs.left}function selY(y){return y-imgOfs.top+parOfs.top}function evX(event){return event.pageX-parOfs.left}function evY(event){return event.pageY-parOfs.top}function getSelection(noScale){var sx=noScale||scaleX,sy=noScale||scaleY;return{x1:round(selection.x1*sx),y1:round(selection.y1*sy),x2:round(selection.x2*sx),y2:round(selection.y2*sy),width:round(selection.x2*sx)-round(selection.x1*sx),height:round(selection.y2*sy)-round(selection.y1*sy)}}function setSelection(x1,y1,x2,y2,noScale){var sx=noScale||scaleX,sy=noScale||scaleY;selection={x1:round(x1/sx),y1:round(y1/sy),x2:round(x2/sx),y2:round(y2/sy)};selection.width=(x2=viewX(selection.x2))-(x1=viewX(selection.x1));selection.height=(y2=viewX(selection.y2))-(y1=viewX(selection.y1))}function adjust(){if(!$img.width())return;imgOfs={left:round($img.offset().left),top:round($img.offset().top)};imgWidth=$img.width();imgHeight=$img.height();if($().jquery=='1.3.2'&amp;&amp;$.browser.safari&amp;&amp;position=='fixed'){imgOfs.top+=max(document.documentElement.scrollTop,$('body').scrollTop());imgOfs.left+=max(document.documentElement.scrollLeft,$('body').scrollLeft())}parOfs=$.inArray($parent.css('position'),['absolute','relative'])+1?{left:round($parent.offset().left)-$parent.scrollLeft(),top:round($parent.offset().top)-$parent.scrollTop()}:position=='fixed'?{left:$(document).scrollLeft(),top:$(document).scrollTop()}:{left:0,top:0};left=viewX(0);top=viewY(0)}function update(resetKeyPress){if(!shown)return;$box.css({left:viewX(selection.x1),top:viewY(selection.y1)}).add($area).width(w=selection.width).height(h=selection.height);$area.add($border).add($handles).css({left:0,top:0});$border.width(max(w-$border.outerWidth()+$border.innerWidth(),0)).height(max(h-$border.outerHeight()+$border.innerHeight(),0));$($outer[0]).css({left:left,top:top,width:selection.x1,height:imgHeight});$($outer[1]).css({left:left+selection.x1,top:top,width:w,height:selection.y1});$($outer[2]).css({left:left+selection.x2,top:top,width:imgWidth-selection.x2,height:imgHeight});$($outer[3]).css({left:left+selection.x1,top:top+selection.y2,width:w,height:imgHeight-selection.y2});w-=$handles.outerWidth();h-=$handles.outerHeight();switch($handles.length){case 8:$($handles[4]).css({left:w/2});$($handles[5]).css({left:w,top:h/2});$($handles[6]).css({left:w/2,top:h});$($handles[7]).css({top:h/2});case 4:$handles.slice(1,3).css({left:w});$handles.slice(2,4).css({top:h})}if(resetKeyPress!==false){if($.imgAreaSelect.keyPress!=docKeyPress)$(document).unbind($.imgAreaSelect.keyPress,$.imgAreaSelect.onKeyPress);if(options.keys)$(document)[$.imgAreaSelect.keyPress]($.imgAreaSelect.onKeyPress=docKeyPress)}if($.browser.msie&amp;&amp;$border.outerWidth()-$border.innerWidth()==2){$border.css('margin',0);setTimeout(function(){$border.css('margin','auto')},0)}}function doUpdate(resetKeyPress){adjust();update(resetKeyPress);x1=viewX(selection.x1);y1=viewY(selection.y1);x2=viewX(selection.x2);y2=viewY(selection.y2)}function hide($elem,fn){options.fadeSpeed?$elem.fadeOut(options.fadeSpeed,fn):$elem.hide()}function areaMouseMove(event){var x=selX(evX(event))-selection.x1,y=selY(evY(event))-selection.y1;if(!adjusted){adjust();adjusted=true;$box.one('mouseout',function(){adjusted=false})}resize='';if(options.resizable){if(y&lt;=resizeMargin)resize='n';else if(y&gt;=selection.height-resizeMargin)resize='s';if(x&lt;=resizeMargin)resize+='w';else if(x&gt;=selection.width-resizeMargin)resize+='e'}$box.css('cursor',resize?resize+'-resize':options.movable?'move':'');if($areaOpera)$areaOpera.toggle()}function docMouseUp(event){$('body').css('cursor','');if(options.autoHide||selection.width*selection.height==0)hide($box.add($outer),function(){$(this).hide()});options.onSelectEnd(img,getSelection());$(document).unbind('mousemove',selectingMouseMove);$box.mousemove(areaMouseMove)}function areaMouseDown(event){if(event.which!=1)return false;adjust();if(resize){$('body').css('cursor',resize+'-resize');x1=viewX(selection[/w/.test(resize)?'x2':'x1']);y1=viewY(selection[/n/.test(resize)?'y2':'y1']);$(document).mousemove(selectingMouseMove).one('mouseup',docMouseUp);$box.unbind('mousemove',areaMouseMove)}else if(options.movable){startX=left+selection.x1-evX(event);startY=top+selection.y1-evY(event);$box.unbind('mousemove',areaMouseMove);$(document).mousemove(movingMouseMove).one('mouseup',function(){options.onSelectEnd(img,getSelection());$(document).unbind('mousemove',movingMouseMove);$box.mousemove(areaMouseMove)})}else $img.mousedown(event);return false}function aspectRatioXY(){x2=max(left,min(left+imgWidth,x1+abs(y2-y1)*aspectRatio*(x2&gt;x1||-1)));y2=round(max(top,min(top+imgHeight,y1+abs(x2-x1)/aspectRatio*(y2&gt;y1||-1))));x2=round(x2)}function aspectRatioYX(){y2=max(top,min(top+imgHeight,y1+abs(x2-x1)/aspectRatio*(y2&gt;y1||-1)));x2=round(max(left,min(left+imgWidth,x1+abs(y2-y1)*aspectRatio*(x2&gt;x1||-1))));y2=round(y2)}function doResize(){if(abs(x2-x1)&lt;options.minWidth){x2=x1-options.minWidth*(x2&lt;x1||-1);if(x2&lt;left)x1=left+options.minWidth;else if(x2&gt;left+imgWidth)x1=left+imgWidth-options.minWidth}if(abs(y2-y1)&lt;options.minHeight){y2=y1-options.minHeight*(y2&lt;y1||-1);if(y2&lt;top)y1=top+options.minHeight;else if(y2&gt;top+imgHeight)y1=top+imgHeight-options.minHeight}x2=max(left,min(x2,left+imgWidth));y2=max(top,min(y2,top+imgHeight));if(aspectRatio)if(abs(x2-x1)/aspectRatio&gt;abs(y2-y1))aspectRatioYX();else aspectRatioXY();if(abs(x2-x1)&gt;options.maxWidth){x2=x1-options.maxWidth*(x2&lt;x1||-1);if(aspectRatio)aspectRatioYX()}if(abs(y2-y1)&gt;options.maxHeight){y2=y1-options.maxHeight*(y2&lt;y1||-1);if(aspectRatio)aspectRatioXY()}selection={x1:selX(min(x1,x2)),x2:selX(max(x1,x2)),y1:selY(min(y1,y2)),y2:selY(max(y1,y2)),width:abs(x2-x1),height:abs(y2-y1)};update();options.onSelectChange(img,getSelection())}function selectingMouseMove(event){x2=resize==''||/w|e/.test(resize)||aspectRatio?evX(event):viewX(selection.x2);y2=resize==''||/n|s/.test(resize)||aspectRatio?evY(event):viewY(selection.y2);doResize();return false}function doMove(newX1,newY1){x2=(x1=newX1)+selection.width;y2=(y1=newY1)+selection.height;selection=$.extend(selection,{x1:selX(x1),y1:selY(y1),x2:selX(x2),y2:selY(y2)});update();options.onSelectChange(img,getSelection())}function movingMouseMove(event){x1=max(left,min(startX+evX(event),left+imgWidth-selection.width));y1=max(top,min(startY+evY(event),top+imgHeight-selection.height));doMove(x1,y1);event.preventDefault();return false}function startSelection(){adjust();x2=x1;y2=y1;doResize();resize='';if($outer.is(':not(:visible)'))$box.add($outer).hide().fadeIn(options.fadeSpeed||0);shown=true;$(document).unbind('mouseup',cancelSelection).mousemove(selectingMouseMove).one('mouseup',docMouseUp);$box.unbind('mousemove',areaMouseMove);options.onSelectStart(img,getSelection())}function cancelSelection(){$(document).unbind('mousemove',startSelection);hide($box.add($outer));selection={x1:selX(x1),y1:selY(y1),x2:selX(x1),y2:selY(y1),width:0,height:0};options.onSelectChange(img,getSelection());options.onSelectEnd(img,getSelection())}function imgMouseDown(event){if(event.which!=1||$outer.is(':animated'))return false;adjust();startX=x1=evX(event);startY=y1=evY(event);$(document).one('mousemove',startSelection).one('mouseup',cancelSelection);return false}function parentScroll(){doUpdate(false)}function imgLoad(){imgLoaded=true;setOptions(options=$.extend({classPrefix:'imgareaselect',movable:true,resizable:true,parent:'body',onInit:function(){},onSelectStart:function(){},onSelectChange:function(){},onSelectEnd:function(){}},options));$box.add($outer).css({visibility:''});if(options.show){shown=true;adjust();update();$box.add($outer).hide().fadeIn(options.fadeSpeed||0)}setTimeout(function(){options.onInit(img,getSelection())},0)}var docKeyPress=function(event){var k=options.keys,d,t,key=event.keyCode||event.which;d=!isNaN(k.alt)&amp;&amp;(event.altKey||event.originalEvent.altKey)?k.alt:!isNaN(k.ctrl)&amp;&amp;event.ctrlKey?k.ctrl:!isNaN(k.shift)&amp;&amp;event.shiftKey?k.shift:!isNaN(k.arrows)?k.arrows:10;if(k.arrows=='resize'||(k.shift=='resize'&amp;&amp;event.shiftKey)||(k.ctrl=='resize'&amp;&amp;event.ctrlKey)||(k.alt=='resize'&amp;&amp;(event.altKey||event.originalEvent.altKey))){switch(key){case 37:d=-d;case 39:t=max(x1,x2);x1=min(x1,x2);x2=max(t+d,x1);if(aspectRatio)aspectRatioYX();break;case 38:d=-d;case 40:t=max(y1,y2);y1=min(y1,y2);y2=max(t+d,y1);if(aspectRatio)aspectRatioXY();break;default:return}doResize()}else{x1=min(x1,x2);y1=min(y1,y2);switch(key){case 37:doMove(max(x1-d,left),y1);break;case 38:doMove(x1,max(y1-d,top));break;case 39:doMove(x1+min(d,imgWidth-selX(x2)),y1);break;case 40:doMove(x1,y1+min(d,imgHeight-selY(y2)));break;default:return}}return false};function styleOptions($elem,props){for(option in props)if(options[option]!==undefined)$elem.css(props[option],options[option])}function setOptions(newOptions){if(newOptions.parent)($parent=$(newOptions.parent)).append($box.add($outer));options=$.extend(options,newOptions);adjust();if(newOptions.handles!=null){$handles.remove();$handles=$([]);i=newOptions.handles?newOptions.handles=='corners'?4:8:0;while(i--)$handles=$handles.add(div());$handles.addClass(options.classPrefix+'-handle').css({position:'absolute',fontSize:0,zIndex:zIndex+1||1});if(!parseInt($handles.css('width')))$handles.width(5).height(5);if(o=options.borderWidth)$handles.css({borderWidth:o,borderStyle:'solid'});styleOptions($handles,{borderColor1:'border-color',borderColor2:'background-color',borderOpacity:'opacity'})}scaleX=options.imageWidth/imgWidth||1;scaleY=options.imageHeight/imgHeight||1;if(newOptions.x1!=null){setSelection(newOptions.x1,newOptions.y1,newOptions.x2,newOptions.y2);newOptions.show=!newOptions.hide}if(newOptions.keys)options.keys=$.extend({shift:1,ctrl:'resize'},newOptions.keys);$outer.addClass(options.classPrefix+'-outer');$area.addClass(options.classPrefix+'-selection');for(i=0;i++&lt;4;)$($border[i-1]).addClass(options.classPrefix+'-border'+i);styleOptions($area,{selectionColor:'background-color',selectionOpacity:'opacity'});styleOptions($border,{borderOpacity:'opacity',borderWidth:'border-width'});styleOptions($outer,{outerColor:'background-color',outerOpacity:'opacity'});if(o=options.borderColor1)$($border[0]).css({borderStyle:'solid',borderColor:o});if(o=options.borderColor2)$($border[1]).css({borderStyle:'dashed',borderColor:o});$box.append($area.add($border).add($handles).add($areaOpera));if($.browser.msie){if(o=$outer.css('filter').match(/opacity=([0-9]+)/))$outer.css('opacity',o[1]/100);if(o=$border.css('filter').match(/opacity=([0-9]+)/))$border.css('opacity',o[1]/100)}if(newOptions.hide)hide($box.add($outer));else if(newOptions.show&amp;&amp;imgLoaded){shown=true;$box.add($outer).fadeIn(options.fadeSpeed||0);doUpdate()}aspectRatio=(d=(options.aspectRatio||'').split(/:/))[0]/d[1];if(options.disable||options.enable===false){$box.unbind('mousemove',areaMouseMove).unbind('mousedown',areaMouseDown);$img.add($outer).unbind('mousedown',imgMouseDown);$(window).unbind('resize',parentScroll);$img.add($img.parents()).unbind('scroll',parentScroll)}else if(options.enable||options.disable===false){if(options.resizable||options.movable)$box.mousemove(areaMouseMove).mousedown(areaMouseDown);if(!options.persistent)$img.add($outer).mousedown(imgMouseDown);$(window).resize(parentScroll);$img.add($img.parents()).scroll(parentScroll)}options.enable=options.disable=undefined}this.getOptions=function(){return options};this.setOptions=setOptions;this.getSelection=getSelection;this.setSelection=setSelection;this.update=doUpdate;$p=$img;while($p.length&amp;&amp;!$p.is('body')){if(!isNaN($p.css('z-index'))&amp;&amp;$p.css('z-index')&gt;zIndex)zIndex=$p.css('z-index');if($p.css('position')=='fixed')position='fixed';$p=$p.parent()}if(!isNaN(options.zIndex))zIndex=options.zIndex;if($.browser.msie)$img.attr('unselectable','on');$.imgAreaSelect.keyPress=$.browser.msie||$.browser.safari?'keydown':'keypress';if($.browser.opera)$areaOpera=div().css({width:'100%',height:'100%',position:'absolute',zIndex:zIndex+2||2});$box.add($outer).css({visibility:'hidden',position:position,overflow:'hidden',zIndex:zIndex||'0'});$box.css({zIndex:zIndex+2||2});$area.add($border).css({position:'absolute'});img.complete||img.readyState=='complete'||!$img.is('img')?imgLoad():$img.one('load',imgLoad)};$.fn.imgAreaSelect=function(options){options=options||{};this.each(function(){if($(this).data('imgAreaSelect'))$(this).data('imgAreaSelect').setOptions(options);else{if(options.enable===undefined&amp;&amp;options.disable===undefined)options.enable=true;$(this).data('imgAreaSelect',new $.imgAreaSelect(this,options))}});if(options.instance)return $(this).data('imgAreaSelect');return this}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(e){var b=Math.abs,a=Math.max,d=Math.min,c=Math.round;function f(){return e(&quot;&lt;div/&gt;&quot;)}e.imgAreaSelect=function(q,S){var aw=e(q),U,ar=f(),af=f(),H=f().add(f()).add(f()).add(f()),Y=f().add(f()).add(f()).add(f()),L=e([]),R,n,p,az,N,j,A,M,B=0,ad=&quot;absolute&quot;,Q,P,aa,Z,V=10,I,T,K,y,aA,x,ay,v={x1:0,y1:0,x2:0,y2:0,width:0,height:0},l,aq,am,ag,ac,an,u;function G(h){return h+az.left-M.left}function F(h){return h+az.top-M.top}function E(h){return h-az.left+M.left}function z(h){return h-az.top+M.top}function ak(h){return h.pageX-M.left}function ai(h){return h.pageY-M.top}function D(h){var o=h||aa,i=h||Z;return{x1:c(v.x1*o),y1:c(v.y1*i),x2:c(v.x2*o),y2:c(v.y2*i),width:c(v.x2*o)-c(v.x1*o),height:c(v.y2*i)-c(v.y1*i)}}function ae(i,w,h,o,aB){var aD=aB||aa,aC=aB||Z;v={x1:c(i/aD),y1:c(w/aC),x2:c(h/aD),y2:c(o/aC)};v.width=(h=G(v.x2))-(i=G(v.x1));v.height=(o=G(v.y2))-(w=G(v.y1))}function ao(){if(!aw.width()){return}az={left:c(aw.offset().left),top:c(aw.offset().top)};N=aw.width();j=aw.height();if(e().jquery==&quot;1.3.2&quot;&amp;&amp;e.browser.safari&amp;&amp;ad==&quot;fixed&quot;){az.top+=a(document.documentElement.scrollTop,e(&quot;body&quot;).scrollTop());az.left+=a(document.documentElement.scrollLeft,e(&quot;body&quot;).scrollLeft())}M=e.inArray(A.css(&quot;position&quot;),[&quot;absolute&quot;,&quot;relative&quot;])+1?{left:c(A.offset().left)-A.scrollLeft(),top:c(A.offset().top)-A.scrollTop()}:ad==&quot;fixed&quot;?{left:e(document).scrollLeft(),top:e(document).scrollTop()}:{left:0,top:0};n=G(0);p=F(0)}function X(h){if(!K){return}ar.css({left:G(v.x1),top:F(v.y1)}).add(af).width(ac=v.width).height(an=v.height);af.add(H).add(L).css({left:0,top:0});H.width(a(ac-H.outerWidth()+H.innerWidth(),0)).height(a(an-H.outerHeight()+H.innerHeight(),0));e(Y[0]).css({left:n,top:p,width:v.x1,height:j});e(Y[1]).css({left:n+v.x1,top:p,width:ac,height:v.y1});e(Y[2]).css({left:n+v.x2,top:p,width:N-v.x2,height:j});e(Y[3]).css({left:n+v.x1,top:p+v.y2,width:ac,height:j-v.y2});ac-=L.outerWidth();an-=L.outerHeight();switch(L.length){case 8:e(L[4]).css({left:ac/2});e(L[5]).css({left:ac,top:an/2});e(L[6]).css({left:ac/2,top:an});e(L[7]).css({top:an/2});case 4:L.slice(1,3).css({left:ac});L.slice(2,4).css({top:an})}if(h!==false){if(e.imgAreaSelect.keyPress!=at){e(document).unbind(e.imgAreaSelect.keyPress,e.imgAreaSelect.onKeyPress)}if(S.keys){e(document)[e.imgAreaSelect.keyPress](e.imgAreaSelect.onKeyPress=at)}}if(e.browser.msie&amp;&amp;H.outerWidth()-H.innerWidth()==2){H.css(&quot;margin&quot;,0);setTimeout(function(){H.css(&quot;margin&quot;,&quot;auto&quot;)},0)}}function t(h){ao();X(h);y=G(v.x1);aA=F(v.y1);x=G(v.x2);ay=F(v.y2)}function ah(h,i){S.fadeSpeed?h.fadeOut(S.fadeSpeed,i):h.hide()}function C(i){var h=E(ak(i))-v.x1,o=z(ai(i))-v.y1;if(!u){ao();u=true;ar.one(&quot;mouseout&quot;,function(){u=false})}I=&quot;&quot;;if(S.resizable){if(o&lt;=V){I=&quot;n&quot;}else{if(o&gt;=v.height-V){I=&quot;s&quot;}}if(h&lt;=V){I+=&quot;w&quot;}else{if(h&gt;=v.width-V){I+=&quot;e&quot;}}}ar.css(&quot;cursor&quot;,I?I+&quot;-resize&quot;:S.movable?&quot;move&quot;:&quot;&quot;);if(R){R.toggle()}}function aj(h){e(&quot;body&quot;).css(&quot;cursor&quot;,&quot;&quot;);if(S.autoHide||v.width*v.height==0){ah(ar.add(Y),function(){e(this).hide()})}S.onSelectEnd(q,D());e(document).unbind(&quot;mousemove&quot;,ab);ar.mousemove(C)}function s(h){if(h.which!=1){return false}ao();if(I){e(&quot;body&quot;).css(&quot;cursor&quot;,I+&quot;-resize&quot;);y=G(v[/w/.test(I)?&quot;x2&quot;:&quot;x1&quot;]);aA=F(v[/n/.test(I)?&quot;y2&quot;:&quot;y1&quot;]);e(document).mousemove(ab).one(&quot;mouseup&quot;,aj);ar.unbind(&quot;mousemove&quot;,C)}else{if(S.movable){Q=n+v.x1-ak(h);P=p+v.y1-ai(h);ar.unbind(&quot;mousemove&quot;,C);e(document).mousemove(g).one(&quot;mouseup&quot;,function(){S.onSelectEnd(q,D());e(document).unbind(&quot;mousemove&quot;,g);ar.mousemove(C)})}else{aw.mousedown(h)}}return false}function r(){x=a(n,d(n+N,y+b(ay-aA)*T*(x&gt;y||-1)));ay=c(a(p,d(p+j,aA+b(x-y)/T*(ay&gt;aA||-1))));x=c(x)}function al(){ay=a(p,d(p+j,aA+b(x-y)/T*(ay&gt;aA||-1)));x=c(a(n,d(n+N,y+b(ay-aA)*T*(x&gt;y||-1))));ay=c(ay)}function av(){if(b(x-y)&lt;S.minWidth){x=y-S.minWidth*(x&lt;y||-1);if(x&lt;n){y=n+S.minWidth}else{if(x&gt;n+N){y=n+N-S.minWidth}}}if(b(ay-aA)&lt;S.minHeight){ay=aA-S.minHeight*(ay&lt;aA||-1);if(ay&lt;p){aA=p+S.minHeight}else{if(ay&gt;p+j){aA=p+j-S.minHeight}}}x=a(n,d(x,n+N));ay=a(p,d(ay,p+j));if(T){if(b(x-y)/T&gt;b(ay-aA)){al()}else{r()}}if(b(x-y)&gt;S.maxWidth){x=y-S.maxWidth*(x&lt;y||-1);if(T){al()}}if(b(ay-aA)&gt;S.maxHeight){ay=aA-S.maxHeight*(ay&lt;aA||-1);if(T){r()}}v={x1:E(d(y,x)),x2:E(a(y,x)),y1:z(d(aA,ay)),y2:z(a(aA,ay)),width:b(x-y),height:b(ay-aA)};X();S.onSelectChange(q,D())}function ab(h){x=I==&quot;&quot;||/w|e/.test(I)||T?ak(h):G(v.x2);ay=I==&quot;&quot;||/n|s/.test(I)||T?ai(h):F(v.y2);av();return false}function O(h,i){x=(y=h)+v.width;ay=(aA=i)+v.height;v=e.extend(v,{x1:E(y),y1:z(aA),x2:E(x),y2:z(ay)});X();S.onSelectChange(q,D())}function g(h){y=a(n,d(Q+ak(h),n+N-v.width));aA=a(p,d(P+ai(h),p+j-v.height));O(y,aA);h.preventDefault();return false}function ax(){ao();x=y;ay=aA;av();I=&quot;&quot;;if(Y.is(&quot;:not(:visible)&quot;)){ar.add(Y).hide().fadeIn(S.fadeSpeed||0)}K=true;e(document).unbind(&quot;mouseup&quot;,ap).mousemove(ab).one(&quot;mouseup&quot;,aj);ar.unbind(&quot;mousemove&quot;,C);S.onSelectStart(q,D())}function ap(){e(document).unbind(&quot;mousemove&quot;,ax);ah(ar.add(Y));v={x1:E(y),y1:z(aA),x2:E(y),y2:z(aA),width:0,height:0};S.onSelectChange(q,D());S.onSelectEnd(q,D())}function m(h){if(h.which!=1||Y.is(&quot;:animated&quot;)){return false}ao();Q=y=ak(h);P=aA=ai(h);e(document).one(&quot;mousemove&quot;,ax).one(&quot;mouseup&quot;,ap);return false}function W(){t(false)}function au(){U=true;J(S=e.extend({classPrefix:&quot;imgareaselect&quot;,movable:true,resizable:true,parent:&quot;body&quot;,onInit:function(){},onSelectStart:function(){},onSelectChange:function(){},onSelectEnd:function(){}},S));ar.add(Y).css({visibility:&quot;&quot;});if(S.show){K=true;ao();X();ar.add(Y).hide().fadeIn(S.fadeSpeed||0)}setTimeout(function(){S.onInit(q,D())},0)}var at=function(w){var h=S.keys,aB,o,i=w.keyCode||w.which;aB=!isNaN(h.alt)&amp;&amp;(w.altKey||w.originalEvent.altKey)?h.alt:!isNaN(h.ctrl)&amp;&amp;w.ctrlKey?h.ctrl:!isNaN(h.shift)&amp;&amp;w.shiftKey?h.shift:!isNaN(h.arrows)?h.arrows:10;if(h.arrows==&quot;resize&quot;||(h.shift==&quot;resize&quot;&amp;&amp;w.shiftKey)||(h.ctrl==&quot;resize&quot;&amp;&amp;w.ctrlKey)||(h.alt==&quot;resize&quot;&amp;&amp;(w.altKey||w.originalEvent.altKey))){switch(i){case 37:aB=-aB;case 39:o=a(y,x);y=d(y,x);x=a(o+aB,y);if(T){al()}break;case 38:aB=-aB;case 40:o=a(aA,ay);aA=d(aA,ay);ay=a(o+aB,aA);if(T){r()}break;default:return}av()}else{y=d(y,x);aA=d(aA,ay);switch(i){case 37:O(a(y-aB,n),aA);break;case 38:O(y,a(aA-aB,p));break;case 39:O(y+d(aB,N-E(x)),aA);break;case 40:O(y,aA+d(aB,j-z(ay)));break;default:return}}return false};function k(h,i){for(option in i){if(S[option]!==undefined){h.css(i[option],S[option])}}}function J(h){if(h.parent){(A=e(h.parent)).append(ar.add(Y))}S=e.extend(S,h);ao();if(h.handles!=null){L.remove();L=e([]);am=h.handles?h.handles==&quot;corners&quot;?4:8:0;while(am--){L=L.add(f())}L.addClass(S.classPrefix+&quot;-handle&quot;).css({position:&quot;absolute&quot;,fontSize:0,zIndex:B+1||1});if(!parseInt(L.css(&quot;width&quot;))){L.width(5).height(5)}if(ag=S.borderWidth){L.css({borderWidth:ag,borderStyle:&quot;solid&quot;})}k(L,{borderColor1:&quot;border-color&quot;,borderColor2:&quot;background-color&quot;,borderOpacity:&quot;opacity&quot;})}aa=S.imageWidth/N||1;Z=S.imageHeight/j||1;if(h.x1!=null){ae(h.x1,h.y1,h.x2,h.y2);h.show=!h.hide}if(h.keys){S.keys=e.extend({shift:1,ctrl:&quot;resize&quot;},h.keys)}Y.addClass(S.classPrefix+&quot;-outer&quot;);af.addClass(S.classPrefix+&quot;-selection&quot;);for(am=0;am++&lt;4;){e(H[am-1]).addClass(S.classPrefix+&quot;-border&quot;+am)}k(af,{selectionColor:&quot;background-color&quot;,selectionOpacity:&quot;opacity&quot;});k(H,{borderOpacity:&quot;opacity&quot;,borderWidth:&quot;border-width&quot;});k(Y,{outerColor:&quot;background-color&quot;,outerOpacity:&quot;opacity&quot;});if(ag=S.borderColor1){e(H[0]).css({borderStyle:&quot;solid&quot;,borderColor:ag})}if(ag=S.borderColor2){e(H[1]).css({borderStyle:&quot;dashed&quot;,borderColor:ag})}ar.append(af.add(H).add(L).add(R));if(e.browser.msie){if(ag=Y.css(&quot;filter&quot;).match(/opacity=([0-9]+)/)){Y.css(&quot;opacity&quot;,ag[1]/100)}if(ag=H.css(&quot;filter&quot;).match(/opacity=([0-9]+)/)){H.css(&quot;opacity&quot;,ag[1]/100)}}if(h.hide){ah(ar.add(Y))}else{if(h.show&amp;&amp;U){K=true;ar.add(Y).fadeIn(S.fadeSpeed||0);t()}}T=(aq=(S.aspectRatio||&quot;&quot;).split(/:/))[0]/aq[1];if(S.disable||S.enable===false){ar.unbind(&quot;mousemove&quot;,C).unbind(&quot;mousedown&quot;,s);aw.add(Y).unbind(&quot;mousedown&quot;,m);e(window).unbind(&quot;resize&quot;,W);aw.add(aw.parents()).unbind(&quot;scroll&quot;,W)}else{if(S.enable||S.disable===false){if(S.resizable||S.movable){ar.mousemove(C).mousedown(s)}if(!S.persistent){aw.add(Y).mousedown(m)}e(window).resize(W);aw.add(aw.parents()).scroll(W)}}S.enable=S.disable=undefined}this.getOptions=function(){return S};this.setOptions=J;this.getSelection=D;this.setSelection=ae;this.update=t;l=aw;while(l.length&amp;&amp;!l.is(&quot;body&quot;)){if(!isNaN(l.css(&quot;z-index&quot;))&amp;&amp;l.css(&quot;z-index&quot;)&gt;B){B=l.css(&quot;z-index&quot;)}if(l.css(&quot;position&quot;)==&quot;fixed&quot;){ad=&quot;fixed&quot;}l=l.parent()}if(!isNaN(S.zIndex)){B=S.zIndex}if(e.browser.msie){aw.attr(&quot;unselectable&quot;,&quot;on&quot;)}e.imgAreaSelect.keyPress=e.browser.msie||e.browser.safari?&quot;keydown&quot;:&quot;keypress&quot;;if(e.browser.opera){R=f().css({width:&quot;100%&quot;,height:&quot;100%&quot;,position:&quot;absolute&quot;,zIndex:B+2||2})}ar.add(Y).css({visibility:&quot;hidden&quot;,position:ad,overflow:&quot;hidden&quot;,zIndex:B||&quot;0&quot;});ar.css({zIndex:B+2||2});af.add(H).css({position:&quot;absolute&quot;});q.complete||q.readyState==&quot;complete&quot;||!aw.is(&quot;img&quot;)?au():aw.one(&quot;load&quot;,au)};e.fn.imgAreaSelect=function(g){g=g||{};this.each(function(){if(e(this).data(&quot;imgAreaSelect&quot;)){e(this).data(&quot;imgAreaSelect&quot;).setOptions(g)}else{if(g.enable===undefined&amp;&amp;g.disable===undefined){g.enable=true}e(this).data(&quot;imgAreaSelect&quot;,new e.imgAreaSelect(this,g))}});if(g.instance){return e(this).data(&quot;imgAreaSelect&quot;)}return this}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjcropjqueryJcropjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jcrop/jquery.Jcrop.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jcrop/jquery.Jcrop.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-includes/js/jcrop/jquery.Jcrop.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1,163 +1 @@
</span><del>-/**
- * Jcrop v.0.9.8 (minimized)
- * (c) 2008 Kelly Hallman and DeepLiquid.com
- * More information: http://deepliquid.com/content/Jcrop.html
- * Released under MIT License - this header must remain with code
- */
-
-
-(function($){$.Jcrop=function(obj,opt)
-{var obj=obj,opt=opt;if(typeof(obj)!=='object')obj=$(obj)[0];if(typeof(opt)!=='object')opt={};if(!('trackDocument'in opt))
-{opt.trackDocument=$.browser.msie?false:true;if($.browser.msie&amp;&amp;$.browser.version.split('.')[0]=='8')
-opt.trackDocument=true;}
-if(!('keySupport'in opt))
-opt.keySupport=$.browser.msie?false:true;var defaults={trackDocument:false,baseClass:'jcrop',addClass:null,bgColor:'black',bgOpacity:.6,borderOpacity:.4,handleOpacity:.5,handlePad:5,handleSize:9,handleOffset:5,edgeMargin:14,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,boxWidth:0,boxHeight:0,boundary:8,animationDelay:20,swingSpeed:3,allowSelect:true,allowMove:true,allowResize:true,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){}};var options=defaults;setOptions(opt);var $origimg=$(obj);var $img=$origimg.clone().removeAttr('id').css({position:'absolute'});$img.width($origimg.width());$img.height($origimg.height());$origimg.after($img).hide();presize($img,options.boxWidth,options.boxHeight);var boundx=$img.width(),boundy=$img.height(),$div=$('&lt;div /&gt;').width(boundx).height(boundy).addClass(cssClass('holder')).css({position:'relative',backgroundColor:options.bgColor}).insertAfter($origimg).append($img);;if(options.addClass)$div.addClass(options.addClass);var $img2=$('&lt;img /&gt;').attr('src',$img.attr('src')).css('position','absolute').width(boundx).height(boundy);var $img_holder=$('&lt;div /&gt;').width(pct(100)).height(pct(100)).css({zIndex:310,position:'absolute',overflow:'hidden'}).append($img2);var $hdl_holder=$('&lt;div /&gt;').width(pct(100)).height(pct(100)).css('zIndex',320);var $sel=$('&lt;div /&gt;').css({position:'absolute',zIndex:300}).insertBefore($img).append($img_holder,$hdl_holder);var bound=options.boundary;var $trk=newTracker().width(boundx+(bound*2)).height(boundy+(bound*2)).css({position:'absolute',top:px(-bound),left:px(-bound),zIndex:290}).mousedown(newSelection);var xlimit,ylimit,xmin,ymin;var xscale,yscale,enabled=true;var docOffset=getPos($img),btndown,lastcurs,dimmed,animating,shift_down;var Coords=function()
-{var x1=0,y1=0,x2=0,y2=0,ox,oy;function setPressed(pos)
-{var pos=rebound(pos);x2=x1=pos[0];y2=y1=pos[1];};function setCurrent(pos)
-{var pos=rebound(pos);ox=pos[0]-x2;oy=pos[1]-y2;x2=pos[0];y2=pos[1];};function getOffset()
-{return[ox,oy];};function moveOffset(offset)
-{var ox=offset[0],oy=offset[1];if(0&gt;x1+ox)ox-=ox+x1;if(0&gt;y1+oy)oy-=oy+y1;if(boundy&lt;y2+oy)oy+=boundy-(y2+oy);if(boundx&lt;x2+ox)ox+=boundx-(x2+ox);x1+=ox;x2+=ox;y1+=oy;y2+=oy;};function getCorner(ord)
-{var c=getFixed();switch(ord)
-{case'ne':return[c.x2,c.y];case'nw':return[c.x,c.y];case'se':return[c.x2,c.y2];case'sw':return[c.x,c.y2];}};function getFixed()
-{if(!options.aspectRatio)return getRect();var aspect=options.aspectRatio,min_x=options.minSize[0]/xscale,min_y=options.minSize[1]/yscale,max_x=options.maxSize[0]/xscale,max_y=options.maxSize[1]/yscale,rw=x2-x1,rh=y2-y1,rwa=Math.abs(rw),rha=Math.abs(rh),real_ratio=rwa/rha,xx,yy;if(max_x==0){max_x=boundx*10}
-if(max_y==0){max_y=boundy*10}
-if(real_ratio&lt;aspect)
-{yy=y2;w=rha*aspect;xx=rw&lt;0?x1-w:w+x1;if(xx&lt;0)
-{xx=0;h=Math.abs((xx-x1)/aspect);yy=rh&lt;0?y1-h:h+y1;}
-else if(xx&gt;boundx)
-{xx=boundx;h=Math.abs((xx-x1)/aspect);yy=rh&lt;0?y1-h:h+y1;}}
-else
-{xx=x2;h=rwa/aspect;yy=rh&lt;0?y1-h:y1+h;if(yy&lt;0)
-{yy=0;w=Math.abs((yy-y1)*aspect);xx=rw&lt;0?x1-w:w+x1;}
-else if(yy&gt;boundy)
-{yy=boundy;w=Math.abs(yy-y1)*aspect;xx=rw&lt;0?x1-w:w+x1;}}
-if(xx&gt;x1){if(xx-x1&lt;min_x){xx=x1+min_x;}else if(xx-x1&gt;max_x){xx=x1+max_x;}
-if(yy&gt;y1){yy=y1+(xx-x1)/aspect;}else{yy=y1-(xx-x1)/aspect;}}else if(xx&lt;x1){if(x1-xx&lt;min_x){xx=x1-min_x}else if(x1-xx&gt;max_x){xx=x1-max_x;}
-if(yy&gt;y1){yy=y1+(x1-xx)/aspect;}else{yy=y1-(x1-xx)/aspect;}}
-if(xx&lt;0){x1-=xx;xx=0;}else if(xx&gt;boundx){x1-=xx-boundx;xx=boundx;}
-if(yy&lt;0){y1-=yy;yy=0;}else if(yy&gt;boundy){y1-=yy-boundy;yy=boundy;}
-return last=makeObj(flipCoords(x1,y1,xx,yy));};function rebound(p)
-{if(p[0]&lt;0)p[0]=0;if(p[1]&lt;0)p[1]=0;if(p[0]&gt;boundx)p[0]=boundx;if(p[1]&gt;boundy)p[1]=boundy;return[p[0],p[1]];};function flipCoords(x1,y1,x2,y2)
-{var xa=x1,xb=x2,ya=y1,yb=y2;if(x2&lt;x1)
-{xa=x2;xb=x1;}
-if(y2&lt;y1)
-{ya=y2;yb=y1;}
-return[Math.round(xa),Math.round(ya),Math.round(xb),Math.round(yb)];};function getRect()
-{var xsize=x2-x1;var ysize=y2-y1;if(xlimit&amp;&amp;(Math.abs(xsize)&gt;xlimit))
-x2=(xsize&gt;0)?(x1+xlimit):(x1-xlimit);if(ylimit&amp;&amp;(Math.abs(ysize)&gt;ylimit))
-y2=(ysize&gt;0)?(y1+ylimit):(y1-ylimit);if(ymin&amp;&amp;(Math.abs(ysize)&lt;ymin))
-y2=(ysize&gt;0)?(y1+ymin):(y1-ymin);if(xmin&amp;&amp;(Math.abs(xsize)&lt;xmin))
-x2=(xsize&gt;0)?(x1+xmin):(x1-xmin);if(x1&lt;0){x2-=x1;x1-=x1;}
-if(y1&lt;0){y2-=y1;y1-=y1;}
-if(x2&lt;0){x1-=x2;x2-=x2;}
-if(y2&lt;0){y1-=y2;y2-=y2;}
-if(x2&gt;boundx){var delta=x2-boundx;x1-=delta;x2-=delta;}
-if(y2&gt;boundy){var delta=y2-boundy;y1-=delta;y2-=delta;}
-if(x1&gt;boundx){var delta=x1-boundy;y2-=delta;y1-=delta;}
-if(y1&gt;boundy){var delta=y1-boundy;y2-=delta;y1-=delta;}
-return makeObj(flipCoords(x1,y1,x2,y2));};function makeObj(a)
-{return{x:a[0],y:a[1],x2:a[2],y2:a[3],w:a[2]-a[0],h:a[3]-a[1]};};return{flipCoords:flipCoords,setPressed:setPressed,setCurrent:setCurrent,getOffset:getOffset,moveOffset:moveOffset,getCorner:getCorner,getFixed:getFixed};}();var Selection=function()
-{var start,end,dragmode,awake,hdep=370;var borders={};var handle={};var seehandles=false;var hhs=options.handleOffset;if(options.drawBorders){borders={top:insertBorder('hline').css('top',$.browser.msie?px(-1):px(0)),bottom:insertBorder('hline'),left:insertBorder('vline'),right:insertBorder('vline')};}
-if(options.dragEdges){handle.t=insertDragbar('n');handle.b=insertDragbar('s');handle.r=insertDragbar('e');handle.l=insertDragbar('w');}
-options.sideHandles&amp;&amp;createHandles(['n','s','e','w']);options.cornerHandles&amp;&amp;createHandles(['sw','nw','ne','se']);function insertBorder(type)
-{var jq=$('&lt;div /&gt;').css({position:'absolute',opacity:options.borderOpacity}).addClass(cssClass(type));$img_holder.append(jq);return jq;};function dragDiv(ord,zi)
-{var jq=$('&lt;div /&gt;').mousedown(createDragger(ord)).css({cursor:ord+'-resize',position:'absolute',zIndex:zi});$hdl_holder.append(jq);return jq;};function insertHandle(ord)
-{return dragDiv(ord,hdep++).css({top:px(-hhs+1),left:px(-hhs+1),opacity:options.handleOpacity}).addClass(cssClass('handle'));};function insertDragbar(ord)
-{var s=options.handleSize,o=hhs,h=s,w=s,t=o,l=o;switch(ord)
-{case'n':case's':w=pct(100);break;case'e':case'w':h=pct(100);break;}
-return dragDiv(ord,hdep++).width(w).height(h).css({top:px(-t+1),left:px(-l+1)});};function createHandles(li)
-{for(i in li)handle[li[i]]=insertHandle(li[i]);};function moveHandles(c)
-{var midvert=Math.round((c.h/2)-hhs),midhoriz=Math.round((c.w/2)-hhs),north=west=-hhs+1,east=c.w-hhs,south=c.h-hhs,x,y;'e'in handle&amp;&amp;handle.e.css({top:px(midvert),left:px(east)})&amp;&amp;handle.w.css({top:px(midvert)})&amp;&amp;handle.s.css({top:px(south),left:px(midhoriz)})&amp;&amp;handle.n.css({left:px(midhoriz)});'ne'in handle&amp;&amp;handle.ne.css({left:px(east)})&amp;&amp;handle.se.css({top:px(south),left:px(east)})&amp;&amp;handle.sw.css({top:px(south)});'b'in handle&amp;&amp;handle.b.css({top:px(south)})&amp;&amp;handle.r.css({left:px(east)});};function moveto(x,y)
-{$img2.css({top:px(-y),left:px(-x)});$sel.css({top:px(y),left:px(x)});};function resize(w,h)
-{$sel.width(w).height(h);};function refresh()
-{var c=Coords.getFixed();Coords.setPressed([c.x,c.y]);Coords.setCurrent([c.x2,c.y2]);updateVisible();};function updateVisible()
-{if(awake)return update();};function update()
-{var c=Coords.getFixed();resize(c.w,c.h);moveto(c.x,c.y);options.drawBorders&amp;&amp;borders['right'].css({left:px(c.w-1)})&amp;&amp;borders['bottom'].css({top:px(c.h-1)});seehandles&amp;&amp;moveHandles(c);awake||show();options.onChange(unscale(c));};function show()
-{$sel.show();$img.css('opacity',options.bgOpacity);awake=true;};function release()
-{disableHandles();$sel.hide();$img.css('opacity',1);awake=false;};function showHandles()
-{if(seehandles)
-{moveHandles(Coords.getFixed());$hdl_holder.show();}};function enableHandles()
-{seehandles=true;if(options.allowResize)
-{moveHandles(Coords.getFixed());$hdl_holder.show();return true;}};function disableHandles()
-{seehandles=false;$hdl_holder.hide();};function animMode(v)
-{(animating=v)?disableHandles():enableHandles();};function done()
-{animMode(false);refresh();};var $track=newTracker().mousedown(createDragger('move')).css({cursor:'move',position:'absolute',zIndex:360})
-$img_holder.append($track);disableHandles();return{updateVisible:updateVisible,update:update,release:release,refresh:refresh,setCursor:function(cursor){$track.css('cursor',cursor);},enableHandles:enableHandles,enableOnly:function(){seehandles=true;},showHandles:showHandles,disableHandles:disableHandles,animMode:animMode,done:done};}();var Tracker=function()
-{var onMove=function(){},onDone=function(){},trackDoc=options.trackDocument;if(!trackDoc)
-{$trk.mousemove(trackMove).mouseup(trackUp).mouseout(trackUp);}
-function toFront()
-{$trk.css({zIndex:450});if(trackDoc)
-{$(document).mousemove(trackMove).mouseup(trackUp);}}
-function toBack()
-{$trk.css({zIndex:290});if(trackDoc)
-{$(document).unbind('mousemove',trackMove).unbind('mouseup',trackUp);}}
-function trackMove(e)
-{onMove(mouseAbs(e));};function trackUp(e)
-{e.preventDefault();e.stopPropagation();if(btndown)
-{btndown=false;onDone(mouseAbs(e));options.onSelect(unscale(Coords.getFixed()));toBack();onMove=function(){};onDone=function(){};}
-return false;};function activateHandlers(move,done)
-{btndown=true;onMove=move;onDone=done;toFront();return false;};function setCursor(t){$trk.css('cursor',t);};$img.before($trk);return{activateHandlers:activateHandlers,setCursor:setCursor};}();var KeyManager=function()
-{var $keymgr=$('&lt;input type=&quot;radio&quot; /&gt;').css({position:'absolute',left:'-30px'}).keypress(parseKey).blur(onBlur),$keywrap=$('&lt;div /&gt;').css({position:'absolute',overflow:'hidden'}).append($keymgr);function watchKeys()
-{if(options.keySupport)
-{$keymgr.show();$keymgr.focus();}};function onBlur(e)
-{$keymgr.hide();};function doNudge(e,x,y)
-{if(options.allowMove){Coords.moveOffset([x,y]);Selection.updateVisible();};e.preventDefault();e.stopPropagation();};function parseKey(e)
-{if(e.ctrlKey)return true;shift_down=e.shiftKey?true:false;var nudge=shift_down?10:1;switch(e.keyCode)
-{case 37:doNudge(e,-nudge,0);break;case 39:doNudge(e,nudge,0);break;case 38:doNudge(e,0,-nudge);break;case 40:doNudge(e,0,nudge);break;case 27:Selection.release();break;case 9:return true;}
-return nothing(e);};if(options.keySupport)$keywrap.insertBefore($img);return{watchKeys:watchKeys};}();function px(n){return''+parseInt(n)+'px';};function pct(n){return''+parseInt(n)+'%';};function cssClass(cl){return options.baseClass+'-'+cl;};function getPos(obj)
-{var pos=$(obj).offset();return[pos.left,pos.top];};function mouseAbs(e)
-{return[(e.pageX-docOffset[0]),(e.pageY-docOffset[1])];};function myCursor(type)
-{if(type!=lastcurs)
-{Tracker.setCursor(type);lastcurs=type;}};function startDragMode(mode,pos)
-{docOffset=getPos($img);Tracker.setCursor(mode=='move'?mode:mode+'-resize');if(mode=='move')
-return Tracker.activateHandlers(createMover(pos),doneSelect);var fc=Coords.getFixed();var opp=oppLockCorner(mode);var opc=Coords.getCorner(oppLockCorner(opp));Coords.setPressed(Coords.getCorner(opp));Coords.setCurrent(opc);Tracker.activateHandlers(dragmodeHandler(mode,fc),doneSelect);};function dragmodeHandler(mode,f)
-{return function(pos){if(!options.aspectRatio)switch(mode)
-{case'e':pos[1]=f.y2;break;case'w':pos[1]=f.y2;break;case'n':pos[0]=f.x2;break;case's':pos[0]=f.x2;break;}
-else switch(mode)
-{case'e':pos[1]=f.y+1;break;case'w':pos[1]=f.y+1;break;case'n':pos[0]=f.x+1;break;case's':pos[0]=f.x+1;break;}
-Coords.setCurrent(pos);Selection.update();};};function createMover(pos)
-{var lloc=pos;KeyManager.watchKeys();return function(pos)
-{Coords.moveOffset([pos[0]-lloc[0],pos[1]-lloc[1]]);lloc=pos;Selection.update();};};function oppLockCorner(ord)
-{switch(ord)
-{case'n':return'sw';case's':return'nw';case'e':return'nw';case'w':return'ne';case'ne':return'sw';case'nw':return'se';case'se':return'nw';case'sw':return'ne';};};function createDragger(ord)
-{return function(e){if(options.disabled)return false;if((ord=='move')&amp;&amp;!options.allowMove)return false;btndown=true;startDragMode(ord,mouseAbs(e));e.stopPropagation();e.preventDefault();return false;};};function presize($obj,w,h)
-{var nw=$obj.width(),nh=$obj.height();if((nw&gt;w)&amp;&amp;w&gt;0)
-{nw=w;nh=(w/$obj.width())*$obj.height();}
-if((nh&gt;h)&amp;&amp;h&gt;0)
-{nh=h;nw=(h/$obj.height())*$obj.width();}
-xscale=$obj.width()/nw;yscale=$obj.height()/nh;$obj.width(nw).height(nh);};function unscale(c)
-{return{x:parseInt(c.x*xscale),y:parseInt(c.y*yscale),x2:parseInt(c.x2*xscale),y2:parseInt(c.y2*yscale),w:parseInt(c.w*xscale),h:parseInt(c.h*yscale)};};function doneSelect(pos)
-{var c=Coords.getFixed();if(c.w&gt;options.minSelect[0]&amp;&amp;c.h&gt;options.minSelect[1])
-{Selection.enableHandles();Selection.done();}
-else
-{Selection.release();}
-Tracker.setCursor(options.allowSelect?'crosshair':'default');};function newSelection(e)
-{if(options.disabled)return false;if(!options.allowSelect)return false;btndown=true;docOffset=getPos($img);Selection.disableHandles();myCursor('crosshair');var pos=mouseAbs(e);Coords.setPressed(pos);Tracker.activateHandlers(selectDrag,doneSelect);KeyManager.watchKeys();Selection.update();e.stopPropagation();e.preventDefault();return false;};function selectDrag(pos)
-{Coords.setCurrent(pos);Selection.update();};function newTracker()
-{var trk=$('&lt;div&gt;&lt;/div&gt;').addClass(cssClass('tracker'));$.browser.msie&amp;&amp;trk.css({opacity:0,backgroundColor:'white'});return trk;};function animateTo(a)
-{var x1=a[0]/xscale,y1=a[1]/yscale,x2=a[2]/xscale,y2=a[3]/yscale;if(animating)return;var animto=Coords.flipCoords(x1,y1,x2,y2);var c=Coords.getFixed();var animat=initcr=[c.x,c.y,c.x2,c.y2];var interv=options.animationDelay;var x=animat[0];var y=animat[1];var x2=animat[2];var y2=animat[3];var ix1=animto[0]-initcr[0];var iy1=animto[1]-initcr[1];var ix2=animto[2]-initcr[2];var iy2=animto[3]-initcr[3];var pcent=0;var velocity=options.swingSpeed;Selection.animMode(true);var animator=function()
-{return function()
-{pcent+=(100-pcent)/velocity;animat[0]=x+((pcent/100)*ix1);animat[1]=y+((pcent/100)*iy1);animat[2]=x2+((pcent/100)*ix2);animat[3]=y2+((pcent/100)*iy2);if(pcent&lt;100)animateStart();else Selection.done();if(pcent&gt;=99.8)pcent=100;setSelectRaw(animat);};}();function animateStart()
-{window.setTimeout(animator,interv);};animateStart();};function setSelect(rect)
-{setSelectRaw([rect[0]/xscale,rect[1]/yscale,rect[2]/xscale,rect[3]/yscale]);};function setSelectRaw(l)
-{Coords.setPressed([l[0],l[1]]);Coords.setCurrent([l[2],l[3]]);Selection.update();};function setOptions(opt)
-{if(typeof(opt)!='object')opt={};options=$.extend(options,opt);if(typeof(options.onChange)!=='function')
-options.onChange=function(){};if(typeof(options.onSelect)!=='function')
-options.onSelect=function(){};};function tellSelect()
-{return unscale(Coords.getFixed());};function tellScaled()
-{return Coords.getFixed();};function setOptionsNew(opt)
-{setOptions(opt);interfaceUpdate();};function disableCrop()
-{options.disabled=true;Selection.disableHandles();Selection.setCursor('default');Tracker.setCursor('default');};function enableCrop()
-{options.disabled=false;interfaceUpdate();};function cancelCrop()
-{Selection.done();Tracker.activateHandlers(null,null);};function destroy()
-{$div.remove();$origimg.show();};function interfaceUpdate(alt)
-{options.allowResize?alt?Selection.enableOnly():Selection.enableHandles():Selection.disableHandles();Tracker.setCursor(options.allowSelect?'crosshair':'default');Selection.setCursor(options.allowMove?'move':'default');$div.css('backgroundColor',options.bgColor);if('setSelect'in options){setSelect(opt.setSelect);Selection.done();delete(options.setSelect);}
-if('trueSize'in options){xscale=options.trueSize[0]/boundx;yscale=options.trueSize[1]/boundy;}
-xlimit=options.maxSize[0]||0;ylimit=options.maxSize[1]||0;xmin=options.minSize[0]||0;ymin=options.minSize[1]||0;if('outerImage'in options)
-{$img.attr('src',options.outerImage);delete(options.outerImage);}
-Selection.refresh();};$hdl_holder.hide();interfaceUpdate(true);var api={animateTo:animateTo,setSelect:setSelect,setOptions:setOptionsNew,tellSelect:tellSelect,tellScaled:tellScaled,disable:disableCrop,enable:enableCrop,cancel:cancelCrop,focus:KeyManager.watchKeys,getBounds:function(){return[boundx*xscale,boundy*yscale];},getWidgetSize:function(){return[boundx,boundy];},release:Selection.release,destroy:destroy};$origimg.data('Jcrop',api);return api;};$.fn.Jcrop=function(options)
-{function attachWhenDone(from)
-{var loadsrc=options.useImg||from.src;var img=new Image();img.onload=function(){$.Jcrop(from,options);};img.src=loadsrc;};if(typeof(options)!=='object')options={};this.each(function()
-{if($(this).data('Jcrop'))
-{if(options=='api')return $(this).data('Jcrop');else $(this).data('Jcrop').setOptions(options);}
-else attachWhenDone(this);});return this;};})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){a.Jcrop=function(d,A){var d=d,A=A;if(typeof(d)!==&quot;object&quot;){d=a(d)[0]}if(typeof(A)!==&quot;object&quot;){A={}}if(!(&quot;trackDocument&quot; in A)){A.trackDocument=a.browser.msie?false:true;if(a.browser.msie&amp;&amp;a.browser.version.split(&quot;.&quot;)[0]==&quot;8&quot;){A.trackDocument=true}}if(!(&quot;keySupport&quot; in A)){A.keySupport=a.browser.msie?false:true}var U={trackDocument:false,baseClass:&quot;jcrop&quot;,addClass:null,bgColor:&quot;black&quot;,bgOpacity:0.6,borderOpacity:0.4,handleOpacity:0.5,handlePad:5,handleSize:9,handleOffset:5,edgeMargin:14,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,boxWidth:0,boxHeight:0,boundary:8,animationDelay:20,swingSpeed:3,allowSelect:true,allowMove:true,allowResize:true,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){}};var H=U;z(A);var W=a(d);var al=W.clone().removeAttr(&quot;id&quot;).css({position:&quot;absolute&quot;});al.width(W.width());al.height(W.height());W.after(al).hide();T(al,H.boxWidth,H.boxHeight);var Q=al.width(),O=al.height(),Z=a(&quot;&lt;div /&gt;&quot;).width(Q).height(O).addClass(C(&quot;holder&quot;)).css({position:&quot;relative&quot;,backgroundColor:H.bgColor}).insertAfter(W).append(al);if(H.addClass){Z.addClass(H.addClass)}var I=a(&quot;&lt;img /&gt;&quot;).attr(&quot;src&quot;,al.attr(&quot;src&quot;)).css(&quot;position&quot;,&quot;absolute&quot;).width(Q).height(O);var k=a(&quot;&lt;div /&gt;&quot;).width(K(100)).height(K(100)).css({zIndex:310,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;}).append(I);var L=a(&quot;&lt;div /&gt;&quot;).width(K(100)).height(K(100)).css(&quot;zIndex&quot;,320);var y=a(&quot;&lt;div /&gt;&quot;).css({position:&quot;absolute&quot;,zIndex:300}).insertBefore(al).append(k,L);var t=H.boundary;var b=ae().width(Q+(t*2)).height(O+(t*2)).css({position:&quot;absolute&quot;,top:l(-t),left:l(-t),zIndex:290}).mousedown(ac);var x,ah,p,S;var M,e,n=true;var ad=D(al),r,an,am,B,ab;var aa=function(){var aq=0,aC=0,ap=0,aB=0,au,ar;function aw(aF){var aF=at(aF);ap=aq=aF[0];aB=aC=aF[1]}function av(aF){var aF=at(aF);au=aF[0]-ap;ar=aF[1]-aB;ap=aF[0];aB=aF[1]}function aE(){return[au,ar]}function ao(aH){var aG=aH[0],aF=aH[1];if(0&gt;aq+aG){aG-=aG+aq}if(0&gt;aC+aF){aF-=aF+aC}if(O&lt;aB+aF){aF+=O-(aB+aF)}if(Q&lt;ap+aG){aG+=Q-(ap+aG)}aq+=aG;ap+=aG;aC+=aF;aB+=aF}function ax(aF){var aG=aD();switch(aF){case&quot;ne&quot;:return[aG.x2,aG.y];case&quot;nw&quot;:return[aG.x,aG.y];case&quot;se&quot;:return[aG.x2,aG.y2];case&quot;sw&quot;:return[aG.x,aG.y2]}}function aD(){if(!H.aspectRatio){return aA()}var aH=H.aspectRatio,aO=H.minSize[0]/M,aN=H.minSize[1]/e,aG=H.maxSize[0]/M,aQ=H.maxSize[1]/e,aI=ap-aq,aP=aB-aC,aJ=Math.abs(aI),aK=Math.abs(aP),aL=aJ/aK,aF,aM;if(aG==0){aG=Q*10}if(aQ==0){aQ=O*10}if(aL&lt;aH){aM=aB;w=aK*aH;aF=aI&lt;0?aq-w:w+aq;if(aF&lt;0){aF=0;h=Math.abs((aF-aq)/aH);aM=aP&lt;0?aC-h:h+aC}else{if(aF&gt;Q){aF=Q;h=Math.abs((aF-aq)/aH);aM=aP&lt;0?aC-h:h+aC}}}else{aF=ap;h=aJ/aH;aM=aP&lt;0?aC-h:aC+h;if(aM&lt;0){aM=0;w=Math.abs((aM-aC)*aH);aF=aI&lt;0?aq-w:w+aq}else{if(aM&gt;O){aM=O;w=Math.abs(aM-aC)*aH;aF=aI&lt;0?aq-w:w+aq}}}if(aF&gt;aq){if(aF-aq&lt;aO){aF=aq+aO}else{if(aF-aq&gt;aG){aF=aq+aG}}if(aM&gt;aC){aM=aC+(aF-aq)/aH}else{aM=aC-(aF-aq)/aH}}else{if(aF&lt;aq){if(aq-aF&lt;aO){aF=aq-aO}else{if(aq-aF&gt;aG){aF=aq-aG}}if(aM&gt;aC){aM=aC+(aq-aF)/aH}else{aM=aC-(aq-aF)/aH}}}if(aF&lt;0){aq-=aF;aF=0}else{if(aF&gt;Q){aq-=aF-Q;aF=Q}}if(aM&lt;0){aC-=aM;aM=0}else{if(aM&gt;O){aC-=aM-O;aM=O}}return last=az(ay(aq,aC,aF,aM))}function at(aF){if(aF[0]&lt;0){aF[0]=0}if(aF[1]&lt;0){aF[1]=0}if(aF[0]&gt;Q){aF[0]=Q}if(aF[1]&gt;O){aF[1]=O}return[aF[0],aF[1]]}function ay(aI,aK,aH,aJ){var aM=aI,aL=aH,aG=aK,aF=aJ;if(aH&lt;aI){aM=aH;aL=aI}if(aJ&lt;aK){aG=aJ;aF=aK}return[Math.round(aM),Math.round(aG),Math.round(aL),Math.round(aF)]}function aA(){var aG=ap-aq;var aF=aB-aC;if(x&amp;&amp;(Math.abs(aG)&gt;x)){ap=(aG&gt;0)?(aq+x):(aq-x)}if(ah&amp;&amp;(Math.abs(aF)&gt;ah)){aB=(aF&gt;0)?(aC+ah):(aC-ah)}if(S&amp;&amp;(Math.abs(aF)&lt;S)){aB=(aF&gt;0)?(aC+S):(aC-S)}if(p&amp;&amp;(Math.abs(aG)&lt;p)){ap=(aG&gt;0)?(aq+p):(aq-p)}if(aq&lt;0){ap-=aq;aq-=aq}if(aC&lt;0){aB-=aC;aC-=aC}if(ap&lt;0){aq-=ap;ap-=ap}if(aB&lt;0){aC-=aB;aB-=aB}if(ap&gt;Q){var aH=ap-Q;aq-=aH;ap-=aH}if(aB&gt;O){var aH=aB-O;aC-=aH;aB-=aH}if(aq&gt;Q){var aH=aq-O;aB-=aH;aC-=aH}if(aC&gt;O){var aH=aC-O;aB-=aH;aC-=aH}return az(ay(aq,aC,ap,aB))}function az(aF){return{x:aF[0],y:aF[1],x2:aF[2],y2:aF[3],w:aF[2]-aF[0],h:aF[3]-aF[1]}}return{flipCoords:ay,setPressed:aw,setCurrent:av,getOffset:aE,moveOffset:ao,getCorner:ax,getFixed:aD}}();var X=function(){var aw,ar,aC,aB,aK=370;var av={};var aO={};var aq=false;var aA=H.handleOffset;if(H.drawBorders){av={top:ax(&quot;hline&quot;).css(&quot;top&quot;,a.browser.msie?l(-1):l(0)),bottom:ax(&quot;hline&quot;),left:ax(&quot;vline&quot;),right:ax(&quot;vline&quot;)}}if(H.dragEdges){aO.t=aJ(&quot;n&quot;);aO.b=aJ(&quot;s&quot;);aO.r=aJ(&quot;e&quot;);aO.l=aJ(&quot;w&quot;)}H.sideHandles&amp;&amp;aF([&quot;n&quot;,&quot;s&quot;,&quot;e&quot;,&quot;w&quot;]);H.cornerHandles&amp;&amp;aF([&quot;sw&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;]);function ax(aR){var aS=a(&quot;&lt;div /&gt;&quot;).css({position:&quot;absolute&quot;,opacity:H.borderOpacity}).addClass(C(aR));k.append(aS);return aS}function ap(aR,aS){var aT=a(&quot;&lt;div /&gt;&quot;).mousedown(c(aR)).css({cursor:aR+&quot;-resize&quot;,position:&quot;absolute&quot;,zIndex:aS});L.append(aT);return aT}function aD(aR){return ap(aR,aK++).css({top:l(-aA+1),left:l(-aA+1),opacity:H.handleOpacity}).addClass(C(&quot;handle&quot;))}function aJ(aT){var aW=H.handleSize,aX=aA,aV=aW,aS=aW,aU=aX,aR=aX;switch(aT){case&quot;n&quot;:case&quot;s&quot;:aS=K(100);break;case&quot;e&quot;:case&quot;w&quot;:aV=K(100);break}return ap(aT,aK++).width(aS).height(aV).css({top:l(-aU+1),left:l(-aR+1)})}function aF(aR){for(i in aR){aO[aR[i]]=aD(aR[i])}}function aH(aY){var aT=Math.round((aY.h/2)-aA),aS=Math.round((aY.w/2)-aA),aW=west=-aA+1,aV=aY.w-aA,aU=aY.h-aA,aR,aX;&quot;e&quot; in aO&amp;&amp;aO.e.css({top:l(aT),left:l(aV)})&amp;&amp;aO.w.css({top:l(aT)})&amp;&amp;aO.s.css({top:l(aU),left:l(aS)})&amp;&amp;aO.n.css({left:l(aS)});&quot;ne&quot; in aO&amp;&amp;aO.ne.css({left:l(aV)})&amp;&amp;aO.se.css({top:l(aU),left:l(aV)})&amp;&amp;aO.sw.css({top:l(aU)});&quot;b&quot; in aO&amp;&amp;aO.b.css({top:l(aU)})&amp;&amp;aO.r.css({left:l(aV)})}function az(aR,aS){I.css({top:l(-aS),left:l(-aR)});y.css({top:l(aS),left:l(aR)})}function aQ(aR,aS){y.width(aR).height(aS)}function at(){var aR=aa.getFixed();aa.setPressed([aR.x,aR.y]);aa.setCurrent([aR.x2,aR.y2]);aN()}function aN(){if(aB){return ay()}}function ay(){var aR=aa.getFixed();aQ(aR.w,aR.h);az(aR.x,aR.y);H.drawBorders&amp;&amp;av.right.css({left:l(aR.w-1)})&amp;&amp;av.bottom.css({top:l(aR.h-1)});aq&amp;&amp;aH(aR);aB||aP();H.onChange(Y(aR))}function aP(){y.show();al.css(&quot;opacity&quot;,H.bgOpacity);aB=true}function aL(){aM();y.hide();al.css(&quot;opacity&quot;,1);aB=false}function ao(){if(aq){aH(aa.getFixed());L.show()}}function aG(){aq=true;if(H.allowResize){aH(aa.getFixed());L.show();return true}}function aM(){aq=false;L.hide()}function aI(aR){(B=aR)?aM():aG()}function aE(){aI(false);at()}var au=ae().mousedown(c(&quot;move&quot;)).css({cursor:&quot;move&quot;,position:&quot;absolute&quot;,zIndex:360});k.append(au);aM();return{updateVisible:aN,update:ay,release:aL,refresh:at,setCursor:function(aR){au.css(&quot;cursor&quot;,aR)},enableHandles:aG,enableOnly:function(){aq=true},showHandles:ao,disableHandles:aM,animMode:aI,done:aE}}();var P=function(){var ap=function(){},ar=function(){},aq=H.trackDocument;if(!aq){b.mousemove(ao).mouseup(at).mouseout(at)}function ax(){b.css({zIndex:450});if(aq){a(document).mousemove(ao).mouseup(at)}}function aw(){b.css({zIndex:290});if(aq){a(document).unbind(&quot;mousemove&quot;,ao).unbind(&quot;mouseup&quot;,at)}}function ao(ay){ap(F(ay))}function at(ay){ay.preventDefault();ay.stopPropagation();if(r){r=false;ar(F(ay));H.onSelect(Y(aa.getFixed()));aw();ap=function(){};ar=function(){}}return false}function au(az,ay){r=true;ap=az;ar=ay;ax();return false}function av(ay){b.css(&quot;cursor&quot;,ay)}al.before(b);return{activateHandlers:au,setCursor:av}}();var ak=function(){var ar=a('&lt;input type=&quot;radio&quot; /&gt;').css({position:&quot;absolute&quot;,left:&quot;-30px&quot;}).keypress(ao).blur(at),au=a(&quot;&lt;div /&gt;&quot;).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;}).append(ar);function ap(){if(H.keySupport){ar.show();ar.focus()}}function at(av){ar.hide()}function aq(aw,av,ax){if(H.allowMove){aa.moveOffset([av,ax]);X.updateVisible()}aw.preventDefault();aw.stopPropagation()}function ao(aw){if(aw.ctrlKey){return true}ab=aw.shiftKey?true:false;var av=ab?10:1;switch(aw.keyCode){case 37:aq(aw,-av,0);break;case 39:aq(aw,av,0);break;case 38:aq(aw,0,-av);break;case 40:aq(aw,0,av);break;case 27:X.release();break;case 9:return true}return nothing(aw)}if(H.keySupport){au.insertBefore(al)}return{watchKeys:ap}}();function l(ao){return&quot;&quot;+parseInt(ao)+&quot;px&quot;}function K(ao){return&quot;&quot;+parseInt(ao)+&quot;%&quot;}function C(ao){return H.baseClass+&quot;-&quot;+ao}function D(ao){var ap=a(ao).offset();return[ap.left,ap.top]}function F(ao){return[(ao.pageX-ad[0]),(ao.pageY-ad[1])]}function E(ao){if(ao!=an){P.setCursor(ao);an=ao}}function f(aq,at){ad=D(al);P.setCursor(aq==&quot;move&quot;?aq:aq+&quot;-resize&quot;);if(aq==&quot;move&quot;){return P.activateHandlers(R(at),o)}var ao=aa.getFixed();var ap=q(aq);var ar=aa.getCorner(q(ap));aa.setPressed(aa.getCorner(ap));aa.setCurrent(ar);P.activateHandlers(G(aq,ao),o)}function G(ap,ao){return function(aq){if(!H.aspectRatio){switch(ap){case&quot;e&quot;:aq[1]=ao.y2;break;case&quot;w&quot;:aq[1]=ao.y2;break;case&quot;n&quot;:aq[0]=ao.x2;break;case&quot;s&quot;:aq[0]=ao.x2;break}}else{switch(ap){case&quot;e&quot;:aq[1]=ao.y+1;break;case&quot;w&quot;:aq[1]=ao.y+1;break;case&quot;n&quot;:aq[0]=ao.x+1;break;case&quot;s&quot;:aq[0]=ao.x+1;break}}aa.setCurrent(aq);X.update()}}function R(ap){var ao=ap;ak.watchKeys();return function(aq){aa.moveOffset([aq[0]-ao[0],aq[1]-ao[1]]);ao=aq;X.update()}}function q(ao){switch(ao){case&quot;n&quot;:return&quot;sw&quot;;case&quot;s&quot;:return&quot;nw&quot;;case&quot;e&quot;:return&quot;nw&quot;;case&quot;w&quot;:return&quot;ne&quot;;case&quot;ne&quot;:return&quot;sw&quot;;case&quot;nw&quot;:return&quot;se&quot;;case&quot;se&quot;:return&quot;nw&quot;;case&quot;sw&quot;:return&quot;ne&quot;}}function c(ao){return function(ap){if(H.disabled){return false}if((ao==&quot;move&quot;)&amp;&amp;!H.allowMove){return false}r=true;f(ao,F(ap));ap.stopPropagation();ap.preventDefault();return false}}function T(at,ap,ar){var ao=at.width(),aq=at.height();if((ao&gt;ap)&amp;&amp;ap&gt;0){ao=ap;aq=(ap/at.width())*at.height()}if((aq&gt;ar)&amp;&amp;ar&gt;0){aq=ar;ao=(ar/at.height())*at.width()}M=at.width()/ao;e=at.height()/aq;at.width(ao).height(aq)}function Y(ao){return{x:parseInt(ao.x*M),y:parseInt(ao.y*e),x2:parseInt(ao.x2*M),y2:parseInt(ao.y2*e),w:parseInt(ao.w*M),h:parseInt(ao.h*e)}}function o(ap){var ao=aa.getFixed();if(ao.w&gt;H.minSelect[0]&amp;&amp;ao.h&gt;H.minSelect[1]){X.enableHandles();X.done()}else{X.release()}P.setCursor(H.allowSelect?&quot;crosshair&quot;:&quot;default&quot;)}function ac(ao){if(H.disabled){return false}if(!H.allowSelect){return false}r=true;ad=D(al);X.disableHandles();E(&quot;crosshair&quot;);var ap=F(ao);aa.setPressed(ap);P.activateHandlers(aj,o);ak.watchKeys();X.update();ao.stopPropagation();ao.preventDefault();return false}function aj(ao){aa.setCurrent(ao);X.update()}function ae(){var ao=a(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(C(&quot;tracker&quot;));a.browser.msie&amp;&amp;ao.css({opacity:0,backgroundColor:&quot;white&quot;});return ao}function s(aG){var aB=aG[0]/M,ap=aG[1]/e,aA=aG[2]/M,ao=aG[3]/e;if(B){return}var az=aa.flipCoords(aB,ap,aA,ao);var aE=aa.getFixed();var ar=initcr=[aE.x,aE.y,aE.x2,aE.y2];var aq=H.animationDelay;var ax=ar[0];var aw=ar[1];var aA=ar[2];var ao=ar[3];var aD=az[0]-initcr[0];var au=az[1]-initcr[1];var aC=az[2]-initcr[2];var at=az[3]-initcr[3];var ay=0;var av=H.swingSpeed;X.animMode(true);var aF=function(){return function(){ay+=(100-ay)/av;ar[0]=ax+((ay/100)*aD);ar[1]=aw+((ay/100)*au);ar[2]=aA+((ay/100)*aC);ar[3]=ao+((ay/100)*at);if(ay&lt;100){aH()}else{X.done()}if(ay&gt;=99.8){ay=100}ai(ar)}}();function aH(){window.setTimeout(aF,aq)}aH()}function J(ao){ai([ao[0]/M,ao[1]/e,ao[2]/M,ao[3]/e])}function ai(ao){aa.setPressed([ao[0],ao[1]]);aa.setCurrent([ao[2],ao[3]]);X.update()}function z(ao){if(typeof(ao)!=&quot;object&quot;){ao={}}H=a.extend(H,ao);if(typeof(H.onChange)!==&quot;function&quot;){H.onChange=function(){}}if(typeof(H.onSelect)!==&quot;function&quot;){H.onSelect=function(){}}}function j(){return Y(aa.getFixed())}function ag(){return aa.getFixed()}function u(ao){z(ao);N()}function v(){H.disabled=true;X.disableHandles();X.setCursor(&quot;default&quot;);P.setCursor(&quot;default&quot;)}function V(){H.disabled=false;N()}function m(){X.done();P.activateHandlers(null,null)}function af(){Z.remove();W.show()}function N(ao){H.allowResize?ao?X.enableOnly():X.enableHandles():X.disableHandles();P.setCursor(H.allowSelect?&quot;crosshair&quot;:&quot;default&quot;);X.setCursor(H.allowMove?&quot;move&quot;:&quot;default&quot;);Z.css(&quot;backgroundColor&quot;,H.bgColor);if(&quot;setSelect&quot; in H){J(A.setSelect);X.done();delete (H.setSelect)}if(&quot;trueSize&quot; in H){M=H.trueSize[0]/Q;e=H.trueSize[1]/O}x=H.maxSize[0]||0;ah=H.maxSize[1]||0;p=H.minSize[0]||0;S=H.minSize[1]||0;if(&quot;outerImage&quot; in H){al.attr(&quot;src&quot;,H.outerImage);delete (H.outerImage)}X.refresh()}L.hide();N(true);var g={animateTo:s,setSelect:J,setOptions:u,tellSelect:j,tellScaled:ag,disable:v,enable:V,cancel:m,focus:ak.watchKeys,getBounds:function(){return[Q*M,O*e]},getWidgetSize:function(){return[Q,O]},release:X.release,destroy:af};W.data(&quot;Jcrop&quot;,g);return g};a.fn.Jcrop=function(c){function b(f){var e=c.useImg||f.src;var d=new Image();d.onload=function(){a.Jcrop(f,c)};d.src=e}if(typeof(c)!==&quot;object&quot;){c={}}this.each(function(){if(a(this).data(&quot;Jcrop&quot;)){if(c==&quot;api&quot;){return a(this).data(&quot;Jcrop&quot;)}else{a(this).data(&quot;Jcrop&quot;).setOptions(c)}}else{b(this)}});return this}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjquerysuggestjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/suggest.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/suggest.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-includes/js/jquery/suggest.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function($){$.suggest=function(input,options){var $input,$results,timeout,prevLength,cache,cacheSize;$input=$(input).attr(&quot;autocomplete&quot;,&quot;off&quot;);$results=$(document.createElement(&quot;ul&quot;));timeout=false;prevLength=0;cache=[];cacheSize=0;$results.addClass(options.resultsClass).appendTo(&quot;body&quot;);resetPosition();$(window).load(resetPosition).resize(resetPosition);$input.blur(function(){setTimeout(function(){$results.hide()},200)});if($.browser.msie){try{$results.bgiframe()}catch(e){}}if($.browser.mozilla){$input.keypress(processKey)}else{$input.keydown(processKey)}function resetPosition(){var offset=$input.offset();$results.css({top:(offset.top+input.offsetHeight)+&quot;px&quot;,left:offset.left+&quot;px&quot;})}function processKey(e){if((/27$|38$|40$/.test(e.keyCode)&amp;&amp;$results.is(&quot;:visible&quot;))||(/^13$|^9$/.test(e.keyCode)&amp;&amp;getCurrentResult())){if(e.preventDefault){e.preventDefault()}if(e.stopPropagation){e.stopPropagation()}e.cancelBubble=true;e.returnValue=false;switch(e.keyCode){case 38:prevResult();break;case 40:nextResult();break;case 9:case 13:selectCurrentResult();break;case 27:$results.hide();break}}else{if($input.val().length!=prevLength){if(timeout){clearTimeout(timeout)}timeout=setTimeout(suggest,options.delay);prevLength=$input.val().length}}}function suggest(){var q=$.trim($input.val()),multipleSepPos,items;if(options.multiple){multipleSepPos=q.lastIndexOf(options.multipleSep);if(multipleSepPos!=-1){q=$.trim(q.substr(multipleSepPos+options.multipleSep.length))}}if(q.length&gt;=options.minchars){cached=checkCache(q);if(cached){displayItems(cached.items)}else{$.get(options.source,{q:q},function(txt){$results.hide();items=parseTxt(txt,q);displayItems(items);addToCache(q,items,txt.length)})}}else{$results.hide()}}function checkCache(q){var i;for(i=0;i&lt;cache.length;i++){if(cache[i][&quot;q&quot;]==q){cache.unshift(cache.splice(i,1)[0]);return cache[0]}}return false}function addToCache(q,items,size){var cached;while(cache.length&amp;&amp;(cacheSize+size&gt;options.maxCacheSize)){cached=cache.pop();cacheSize-=cached.size}cache.push({q:q,size:size,items:items});cacheSize+=size}function displayItems(items){var html=&quot;&quot;,i;if(!items){return}if(!items.length){$results.hide();return}resetPosition();for(i=0;i&lt;items.length;i++){html+=&quot;&lt;li&gt;&quot;+items[i]+&quot;&lt;/li&gt;&quot;}$results.html(html).show();$results.children(&quot;li&quot;).mouseover(function(){$results.children(&quot;li&quot;).removeClass(options.selectClass);$(this).addClass(options.selectClass)}).click(function(e){e.preventDefault();e.stopPropagation();selectCurrentResult()})}function parseTxt(txt,q){var items=[],tokens=txt.split(options.delimiter),i,token;for(i=0;i&lt;tokens.length;i++){token=$.trim(tokens[i]);if(token){token=token.replace(new RegExp(q,&quot;ig&quot;),function(q){return'&lt;span class=&quot;'+options.matchClass+'&quot;&gt;'+q+&quot;&lt;/span&gt;&quot;});items[items.length]=token}}return items}function getCurrentResult(){var $currentResult;if(!$results.is(&quot;:visible&quot;)){return false}$currentResult=$results.children(&quot;li.&quot;+options.selectClass);if(!$currentResult.length){$currentResult=false}return $currentResult}function selectCurrentResult(){$currentResult=getCurrentResult();if($currentResult){if(options.multiple){if($input.val().indexOf(options.multipleSep)!=-1){$currentVal=$input.val().substr(0,($input.val().lastIndexOf(options.multipleSep)+options.multipleSep.length))}else{$currentVal=&quot;&quot;}$input.val($currentVal+$currentResult.text()+options.multipleSep);$input.focus()}else{$input.val($currentResult.text())}$results.hide();if(options.onSelect){options.onSelect.apply($input[0])}}}function nextResult(){$currentResult=getCurrentResult();if($currentResult){$currentResult.removeClass(options.selectClass).next().addClass(options.selectClass)}else{$results.children(&quot;li:first-child&quot;).addClass(options.selectClass)}}function prevResult(){var $currentResult=getCurrentResult();if($currentResult){$currentResult.removeClass(options.selectClass).prev().addClass(options.selectClass)}else{$results.children(&quot;li:last-child&quot;).addClass(options.selectClass)}}};$.fn.suggest=function(source,options){if(!source){return}options=options||{};options.multiple=options.multiple||false;options.multipleSep=options.multipleSep||&quot;, &quot;;options.source=source;options.delay=options.delay||100;options.resultsClass=options.resultsClass||&quot;ac_results&quot;;options.selectClass=options.selectClass||&quot;ac_over&quot;;options.matchClass=options.matchClass||&quot;ac_match&quot;;options.minchars=options.minchars||2;options.delimiter=options.delimiter||&quot;\n&quot;;options.onSelect=options.onSelect||false;options.maxCacheSize=options.maxCacheSize||65536;this.each(function(){new $.suggest(this,options)});return this}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){a.suggest=function(o,g){var c,f,n,d,q,p;c=a(o).attr(&quot;autocomplete&quot;,&quot;off&quot;);f=a(document.createElement(&quot;ul&quot;));n=false;d=0;q=[];p=0;f.addClass(g.resultsClass).appendTo(&quot;body&quot;);j();a(window).load(j).resize(j);c.blur(function(){setTimeout(function(){f.hide()},200)});if(a.browser.msie){try{f.bgiframe()}catch(s){}}if(a.browser.mozilla){c.keypress(m)}else{c.keydown(m)}function j(){var e=c.offset();f.css({top:(e.top+o.offsetHeight)+&quot;px&quot;,left:e.left+&quot;px&quot;})}function m(w){if((/27$|38$|40$/.test(w.keyCode)&amp;&amp;f.is(&quot;:visible&quot;))||(/^13$|^9$/.test(w.keyCode)&amp;&amp;u())){if(w.preventDefault){w.preventDefault()}if(w.stopPropagation){w.stopPropagation()}w.cancelBubble=true;w.returnValue=false;switch(w.keyCode){case 38:k();break;case 40:t();break;case 9:case 13:r();break;case 27:f.hide();break}}else{if(c.val().length!=d){if(n){clearTimeout(n)}n=setTimeout(l,g.delay);d=c.val().length}}}function l(){var x=a.trim(c.val()),w,e;if(g.multiple){w=x.lastIndexOf(g.multipleSep);if(w!=-1){x=a.trim(x.substr(w+g.multipleSep.length))}}if(x.length&gt;=g.minchars){cached=v(x);if(cached){i(cached.items)}else{a.get(g.source,{q:x},function(y){f.hide();e=b(y,x);i(e);h(x,e,y.length)})}}else{f.hide()}}function v(w){var e;for(e=0;e&lt;q.length;e++){if(q[e][&quot;q&quot;]==w){q.unshift(q.splice(e,1)[0]);return q[0]}}return false}function h(y,e,w){var x;while(q.length&amp;&amp;(p+w&gt;g.maxCacheSize)){x=q.pop();p-=x.size}q.push({q:y,size:w,items:e});p+=w}function i(e){var x=&quot;&quot;,w;if(!e){return}if(!e.length){f.hide();return}j();for(w=0;w&lt;e.length;w++){x+=&quot;&lt;li&gt;&quot;+e[w]+&quot;&lt;/li&gt;&quot;}f.html(x).show();f.children(&quot;li&quot;).mouseover(function(){f.children(&quot;li&quot;).removeClass(g.selectClass);a(this).addClass(g.selectClass)}).click(function(y){y.preventDefault();y.stopPropagation();r()})}function b(e,z){var w=[],A=e.split(g.delimiter),y,x;for(y=0;y&lt;A.length;y++){x=a.trim(A[y]);if(x){x=x.replace(new RegExp(z,&quot;ig&quot;),function(B){return'&lt;span class=&quot;'+g.matchClass+'&quot;&gt;'+B+&quot;&lt;/span&gt;&quot;});w[w.length]=x}}return w}function u(){var e;if(!f.is(&quot;:visible&quot;)){return false}e=f.children(&quot;li.&quot;+g.selectClass);if(!e.length){e=false}return e}function r(){$currentResult=u();if($currentResult){if(g.multiple){if(c.val().indexOf(g.multipleSep)!=-1){$currentVal=c.val().substr(0,(c.val().lastIndexOf(g.multipleSep)+g.multipleSep.length))}else{$currentVal=&quot;&quot;}c.val($currentVal+$currentResult.text()+g.multipleSep);c.focus()}else{c.val($currentResult.text())}f.hide();if(g.onSelect){g.onSelect.apply(c[0])}}}function t(){$currentResult=u();if($currentResult){$currentResult.removeClass(g.selectClass).next().addClass(g.selectClass)}else{f.children(&quot;li:first-child&quot;).addClass(g.selectClass)}}function k(){var e=u();if(e){e.removeClass(g.selectClass).prev().addClass(g.selectClass)}else{f.children(&quot;li:last-child&quot;).addClass(g.selectClass)}}};a.fn.suggest=function(c,b){if(!c){return}b=b||{};b.multiple=b.multiple||false;b.multipleSep=b.multipleSep||&quot;, &quot;;b.source=c;b.delay=b.delay||100;b.resultsClass=b.resultsClass||&quot;ac_results&quot;;b.selectClass=b.selectClass||&quot;ac_over&quot;;b.matchClass=b.matchClass||&quot;ac_match&quot;;b.minchars=b.minchars||2;b.delimiter=b.delimiter||&quot;\n&quot;;b.onSelect=b.onSelect||false;b.maxCacheSize=b.maxCacheSize||65536;this.each(function(){new a.suggest(this,b)});return this}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjson2js"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/json2.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/json2.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-includes/js/json2.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1,11 +1 @@
</span><del>-/*
-    http://www.JSON.org/json2.js
-    2009-08-17
-
-    Public Domain.
-
-    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-
-    See http://www.JSON.org/js.html
-*/
-if(!this.JSON){this.JSON={}}(function(){function f(n){return n&lt;10?&quot;0&quot;+n:n}if(typeof Date.prototype.toJSON!==&quot;function&quot;){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+&quot;-&quot;+f(this.getUTCMonth()+1)+&quot;-&quot;+f(this.getUTCDate())+&quot;T&quot;+f(this.getUTCHours())+&quot;:&quot;+f(this.getUTCMinutes())+&quot;:&quot;+f(this.getUTCSeconds())+&quot;Z&quot;:null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\&quot;\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={&quot;\b&quot;:&quot;\\b&quot;,&quot;\t&quot;:&quot;\\t&quot;,&quot;\n&quot;:&quot;\\n&quot;,&quot;\f&quot;:&quot;\\f&quot;,&quot;\r&quot;:&quot;\\r&quot;,'&quot;':'\\&quot;',&quot;\\&quot;:&quot;\\\\&quot;},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'&quot;'+string.replace(escapable,function(a){var c=meta[a];return typeof c===&quot;string&quot;?c:&quot;\\u&quot;+(&quot;0000&quot;+a.charCodeAt(0).toString(16)).slice(-4)})+'&quot;':'&quot;'+string+'&quot;'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&amp;&amp;typeof value===&quot;object&quot;&amp;&amp;typeof value.toJSON===&quot;function&quot;){value=value.toJSON(key)}if(typeof rep===&quot;function&quot;){value=rep.call(holder,key,value)}switch(typeof value){case&quot;string&quot;:return quote(value);case&quot;number&quot;:return isFinite(value)?String(value):&quot;null&quot;;case&quot;boolean&quot;:case&quot;null&quot;:return String(value);case&quot;object&quot;:if(!value){return&quot;null&quot;}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)===&quot;[object Array]&quot;){length=value.length;for(i=0;i&lt;length;i+=1){partial[i]=str(i,value)||&quot;null&quot;}v=partial.length===0?&quot;[]&quot;:gap?&quot;[\n&quot;+gap+partial.join(&quot;,\n&quot;+gap)+&quot;\n&quot;+mind+&quot;]&quot;:&quot;[&quot;+partial.join(&quot;,&quot;)+&quot;]&quot;;gap=mind;return v}if(rep&amp;&amp;typeof rep===&quot;object&quot;){length=rep.length;for(i=0;i&lt;length;i+=1){k=rep[i];if(typeof k===&quot;string&quot;){v=str(k,value);if(v){partial.push(quote(k)+(gap?&quot;: &quot;:&quot;:&quot;)+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?&quot;: &quot;:&quot;:&quot;)+v)}}}}v=partial.length===0?&quot;{}&quot;:gap?&quot;{\n&quot;+gap+partial.join(&quot;,\n&quot;+gap)+&quot;\n&quot;+mind+&quot;}&quot;:&quot;{&quot;+partial.join(&quot;,&quot;)+&quot;}&quot;;gap=mind;return v}}if(typeof JSON.stringify!==&quot;function&quot;){JSON.stringify=function(value,replacer,space){var i;gap=&quot;&quot;;indent=&quot;&quot;;if(typeof space===&quot;number&quot;){for(i=0;i&lt;space;i+=1){indent+=&quot; &quot;}}else{if(typeof space===&quot;string&quot;){indent=space}}rep=replacer;if(replacer&amp;&amp;typeof replacer!==&quot;function&quot;&amp;&amp;(typeof replacer!==&quot;object&quot;||typeof replacer.length!==&quot;number&quot;)){throw new Error(&quot;JSON.stringify&quot;)}return str(&quot;&quot;,{&quot;&quot;:value})}}if(typeof JSON.parse!==&quot;function&quot;){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&amp;&amp;typeof value===&quot;object&quot;){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return&quot;\\u&quot;+(&quot;0000&quot;+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:[&quot;\\\/bfnrt]|u[0-9a-fA-F]{4})/g,&quot;@&quot;).replace(/&quot;[^&quot;\\\n\r]*&quot;|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,&quot;]&quot;).replace(/(?:^|:|,)(?:\s*\[)+/g,&quot;&quot;))){j=eval(&quot;(&quot;+text+&quot;)&quot;);return typeof reviver===&quot;function&quot;?walk({&quot;&quot;:j},&quot;&quot;):j}throw new SyntaxError(&quot;JSON.parse&quot;)}}}());
</del><ins>+&quot;use strict&quot;;if(!this.JSON){this.JSON={}}(function(){function f(n){return n&lt;10?&quot;0&quot;+n:n}if(typeof Date.prototype.toJSON!==&quot;function&quot;){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+&quot;-&quot;+f(this.getUTCMonth()+1)+&quot;-&quot;+f(this.getUTCDate())+&quot;T&quot;+f(this.getUTCHours())+&quot;:&quot;+f(this.getUTCMinutes())+&quot;:&quot;+f(this.getUTCSeconds())+&quot;Z&quot;:null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\&quot;\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={&quot;\b&quot;:&quot;\\b&quot;,&quot;\t&quot;:&quot;\\t&quot;,&quot;\n&quot;:&quot;\\n&quot;,&quot;\f&quot;:&quot;\\f&quot;,&quot;\r&quot;:&quot;\\r&quot;,'&quot;':'\\&quot;',&quot;\\&quot;:&quot;\\\\&quot;},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'&quot;'+string.replace(escapable,function(a){var c=meta[a];return typeof c===&quot;string&quot;?c:&quot;\\u&quot;+(&quot;0000&quot;+a.charCodeAt(0).toString(16)).slice(-4)})+'&quot;':'&quot;'+string+'&quot;'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&amp;&amp;typeof value===&quot;object&quot;&amp;&amp;typeof value.toJSON===&quot;function&quot;){value=value.toJSON(key)}if(typeof rep===&quot;function&quot;){value=rep.call(holder,key,value)}switch(typeof value){case&quot;string&quot;:return quote(value);case&quot;number&quot;:return isFinite(value)?String(value):&quot;null&quot;;case&quot;boolean&quot;:case&quot;null&quot;:return String(value);case&quot;object&quot;:if(!value){return&quot;null&quot;}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)===&quot;[object Array]&quot;){length=value.length;for(i=0;i&lt;length;i+=1){partial[i]=str(i,value)||&quot;null&quot;}v=partial.length===0?&quot;[]&quot;:gap?&quot;[\n&quot;+gap+partial.join(&quot;,\n&quot;+gap)+&quot;\n&quot;+mind+&quot;]&quot;:&quot;[&quot;+partial.join(&quot;,&quot;)+&quot;]&quot;;gap=mind;return v}if(rep&amp;&amp;typeof rep===&quot;object&quot;){length=rep.length;for(i=0;i&lt;length;i+=1){k=rep[i];if(typeof k===&quot;string&quot;){v=str(k,value);if(v){partial.push(quote(k)+(gap?&quot;: &quot;:&quot;:&quot;)+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?&quot;: &quot;:&quot;:&quot;)+v)}}}}v=partial.length===0?&quot;{}&quot;:gap?&quot;{\n&quot;+gap+partial.join(&quot;,\n&quot;+gap)+&quot;\n&quot;+mind+&quot;}&quot;:&quot;{&quot;+partial.join(&quot;,&quot;)+&quot;}&quot;;gap=mind;return v}}if(typeof JSON.stringify!==&quot;function&quot;){JSON.stringify=function(value,replacer,space){var i;gap=&quot;&quot;;indent=&quot;&quot;;if(typeof space===&quot;number&quot;){for(i=0;i&lt;space;i+=1){indent+=&quot; &quot;}}else{if(typeof space===&quot;string&quot;){indent=space}}rep=replacer;if(replacer&amp;&amp;typeof replacer!==&quot;function&quot;&amp;&amp;(typeof replacer!==&quot;object&quot;||typeof replacer.length!==&quot;number&quot;)){throw new Error(&quot;JSON.stringify&quot;)}return str(&quot;&quot;,{&quot;&quot;:value})}}if(typeof JSON.parse!==&quot;function&quot;){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&amp;&amp;typeof value===&quot;object&quot;){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return&quot;\\u&quot;+(&quot;0000&quot;+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:[&quot;\\\/bfnrt]|u[0-9a-fA-F]{4})/g,&quot;@&quot;).replace(/&quot;[^&quot;\\\n\r]*&quot;|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,&quot;]&quot;).replace(/(?:^|:|,)(?:\s*\[)+/g,&quot;&quot;))){j=eval(&quot;(&quot;+text+&quot;)&quot;);return typeof reviver===&quot;function&quot;?walk({&quot;&quot;:j},&quot;&quot;):j}throw new SyntaxError(&quot;JSON.parse&quot;)}}}());
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsswfuploadhandlersjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/swfupload/handlers.js (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/swfupload/handlers.js        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-includes/js/swfupload/handlers.js        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var topWin=window.dialogArguments||opener||parent||top;function fileDialogStart(){jQuery(&quot;#media-upload-error&quot;).empty()}function fileQueued(fileObj){jQuery(&quot;.media-blank&quot;).remove();if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.describe-toggle-on&quot;).show();jQuery(&quot;.describe-toggle-off&quot;).hide();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings().removeClass(&quot;hidden&quot;)}jQuery(&quot;#media-items&quot;).append('&lt;div id=&quot;media-item-'+fileObj.id+'&quot; class=&quot;media-item child-of-'+post_id+'&quot;&gt;&lt;div class=&quot;progress&quot;&gt;&lt;div class=&quot;bar&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;filename original&quot;&gt;&lt;span class=&quot;percent&quot;&gt;&lt;/span&gt; '+fileObj.name+&quot;&lt;/div&gt;&lt;/div&gt;&quot;);jQuery(&quot;.progress&quot;,&quot;#media-item-&quot;+fileObj.id).show();jQuery(&quot;#insert-gallery&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);jQuery(&quot;#cancel-upload&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}function uploadStart(fileObj){try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overlay&quot;).unbind(&quot;click&quot;,topWin.tb_remove)}}catch(e){}return true}function uploadProgress(fileObj,bytesDone,bytesTotal){var w=jQuery(&quot;#media-items&quot;).width()-2,item=jQuery(&quot;#media-item-&quot;+fileObj.id);jQuery(&quot;.bar&quot;,item).width(w*bytesDone/bytesTotal);jQuery(&quot;.percent&quot;,item).html(Math.ceil(bytesDone/bytesTotal*100)+&quot;%&quot;);if(bytesDone==bytesTotal){jQuery(&quot;.bar&quot;,item).html('&lt;strong class=&quot;crunching&quot;&gt;'+swfuploadL10n.crunching+&quot;&lt;/strong&gt;&quot;)}}function prepareMediaItem(fileObj,serverData){var f=(typeof shortform==&quot;undefined&quot;)?1:2,item=jQuery(&quot;#media-item-&quot;+fileObj.id);jQuery(&quot;.bar&quot;,item).remove();jQuery(&quot;.progress&quot;,item).hide();try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overlay&quot;).click(topWin.tb_remove)}}catch(e){}if(isNaN(serverData)||!serverData){item.append(serverData);prepareMediaItemInit(fileObj)}else{item.load(&quot;async-upload.php&quot;,{attachment_id:serverData,fetch:f},function(){prepareMediaItemInit(fileObj);updateMediaForm()})}}function prepareMediaItemInit(fileObj){var item=jQuery(&quot;#media-item-&quot;+fileObj.id);jQuery(&quot;.thumbnail&quot;,item).clone().attr(&quot;className&quot;,&quot;pinkynail toggle&quot;).prependTo(item);jQuery(&quot;.filename.original&quot;,item).replaceWith(jQuery(&quot;.filename.new&quot;,item));jQuery(&quot;a.toggle&quot;,item).click(function(){jQuery(this).siblings(&quot;.slidetoggle&quot;).slideToggle(350,function(){var w=jQuery(window).height(),t=jQuery(this).offset().top,h=jQuery(this).height(),b;if(w&amp;&amp;t&amp;&amp;h){b=t+h;if(b&gt;w&amp;&amp;(h+48)&lt;w){window.scrollBy(0,b-w+13)}else{if(b&gt;w){window.scrollTo(0,t-36)}}}});jQuery(this).siblings(&quot;.toggle&quot;).andSelf().toggle();jQuery(this).siblings(&quot;a.toggle&quot;).focus();return false});jQuery(&quot;a.delete&quot;,item).click(function(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,success:deleteSuccess,error:deleteError,id:fileObj.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;trash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)}});return false});jQuery(&quot;a.undo&quot;,item).click(function(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,id:fileObj.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;untrash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)},success:function(data,textStatus){var item=jQuery(&quot;#media-item-&quot;+fileObj.id);if(type=jQuery(&quot;#type-of-&quot;+fileObj.id).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-0+1)}if(item.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-0+1)}jQuery(&quot;.filename .trashnotice&quot;,item).remove();jQuery(&quot;.filename .title&quot;,item).css(&quot;font-weight&quot;,&quot;normal&quot;);jQuery(&quot;a.undo&quot;,item).addClass(&quot;hidden&quot;);jQuery(&quot;a.describe-toggle-on, .menu_order_input&quot;,item).show();item.css({backgroundColor:&quot;#ceb&quot;}).animate({backgroundColor:&quot;#fff&quot;},{queue:false,duration:500,complete:function(){jQuery(this).css({backgroundColor:&quot;&quot;})}}).removeClass(&quot;undo&quot;)}});return false});jQuery(&quot;#media-item-&quot;+fileObj.id+&quot;.startopen&quot;).removeClass(&quot;startopen&quot;).slideToggle(500).siblings(&quot;.toggle&quot;).toggle()}function itemAjaxError(id,html){var item=jQuery(&quot;#media-item-&quot;+id);var filename=jQuery(&quot;.filename&quot;,item).text();item.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,filename)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+html+&quot;&lt;/div&gt;&quot;);item.find(&quot;a.dismiss&quot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function deleteSuccess(data,textStatus){if(data==&quot;-1&quot;){return itemAjaxError(this.id,&quot;You do not have permission. Has your session expired?&quot;)}if(data==&quot;0&quot;){return itemAjaxError(this.id,&quot;Could not be deleted. Has it been deleted already?&quot;)}var id=this.id,item=jQuery(&quot;#media-item-&quot;+id);if(type=jQuery(&quot;#type-of-&quot;+id).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-1)}if(item.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-1)}if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.toggle&quot;).toggle();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings().removeClass(&quot;hidden&quot;)}jQuery(&quot;.toggle&quot;,item).toggle();jQuery(&quot;.slidetoggle&quot;,item).slideUp(200).siblings().removeClass(&quot;hidden&quot;);item.css({backgroundColor:&quot;#faa&quot;}).animate({backgroundColor:&quot;#f4f4f4&quot;},{queue:false,duration:500}).addClass(&quot;undo&quot;);jQuery(&quot;.filename:empty&quot;,item).remove();jQuery(&quot;.filename .title&quot;,item).css(&quot;font-weight&quot;,&quot;bold&quot;);jQuery(&quot;.filename&quot;,item).append('&lt;span class=&quot;trashnotice&quot;&gt; '+swfuploadL10n.deleted+&quot; &lt;/span&gt;&quot;).siblings(&quot;a.toggle&quot;).hide();jQuery(&quot;.filename&quot;,item).append(jQuery(&quot;a.undo&quot;,item).removeClass(&quot;hidden&quot;));jQuery(&quot;.menu_order_input&quot;,item).hide();return}function deleteError(X,textStatus,errorThrown){}function updateMediaForm(){var one=jQuery(&quot;form.type-form #media-items&quot;).children(),items=jQuery(&quot;#media-items&quot;).children();if(one.length==1){jQuery(&quot;.slidetoggle&quot;,one).slideDown(500).siblings().addClass(&quot;hidden&quot;).filter(&quot;.toggle&quot;).toggle()}if(items.not(&quot;.media-blank&quot;).length&gt;0){jQuery(&quot;.savebutton&quot;).show()}else{jQuery(&quot;.savebutton&quot;).hide()}if(items.length&gt;1){jQuery(&quot;.insert-gallery&quot;).show()}else{jQuery(&quot;.insert-gallery&quot;).hide()}}function uploadSuccess(fileObj,serverData){if(serverData.match(&quot;media-upload-error&quot;)){jQuery(&quot;#media-item-&quot;+fileObj.id).html(serverData);return}prepareMediaItem(fileObj,serverData);updateMediaForm();if(jQuery(&quot;#media-item-&quot;+fileObj.id).hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(1*jQuery(&quot;#attachments-count&quot;).text()+1)}}function uploadComplete(fileObj){if(swfu.getStats().files_queued==0){jQuery(&quot;#cancel-upload&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);jQuery(&quot;#insert-gallery&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}}function wpQueueError(message){jQuery(&quot;#media-upload-error&quot;).show().text(message)}function wpFileError(fileObj,message){var item=jQuery(&quot;#media-item-&quot;+fileObj.id);var filename=jQuery(&quot;.filename&quot;,item).text();item.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,filename)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+message+&quot;&lt;/div&gt;&quot;);item.find(&quot;a.dismiss&quot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function fileQueueError(fileObj,error_code,message){if(error_code==SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){wpQueueError(swfuploadL10n.queue_limit_exceeded)}else{if(error_code==SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT){fileQueued(fileObj);wpFileError(fileObj,swfuploadL10n.file_exceeds_size_limit)}else{if(error_code==SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE){fileQueued(fileObj);wpFileError(fileObj,swfuploadL10n.zero_byte_file)}else{if(error_code==SWFUpload.QUEUE_ERROR.INVALID_FILETYPE){fileQueued(fileObj);wpFileError(fileObj,swfuploadL10n.invalid_filetype)}else{wpQueueError(swfuploadL10n.default_error)}}}}}function fileDialogComplete(num_files_queued){try{if(num_files_queued&gt;0){this.startUpload()}}catch(ex){this.debug(ex)}}function switchUploader(s){var f=document.getElementById(swfu.customSettings.swfupload_element_id),h=document.getElementById(swfu.customSettings.degraded_element_id);if(s){f.style.display=&quot;block&quot;;h.style.display=&quot;none&quot;}else{f.style.display=&quot;none&quot;;h.style.display=&quot;block&quot;}}function swfuploadPreLoad(){if(!uploaderMode){switchUploader(1)}else{switchUploader(0)}}function swfuploadLoadFailed(){switchUploader(0);jQuery(&quot;.upload-html-bypass&quot;).hide()}function uploadError(fileObj,errorCode,message){switch(errorCode){case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:wpFileError(fileObj,swfuploadL10n.missing_upload_url);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:wpFileError(fileObj,swfuploadL10n.upload_limit_exceeded);break;case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:wpQueueError(swfuploadL10n.http_error);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:wpQueueError(swfuploadL10n.upload_failed);break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:wpQueueError(swfuploadL10n.io_error);break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:wpQueueError(swfuploadL10n.security_error);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:jQuery(&quot;#media-item-&quot;+fileObj.id).remove();break;default:wpFileError(fileObj,swfuploadL10n.default_error)}}function cancelUpload(){swfu.cancelQueue()}jQuery(document).ready(function($){$('input[type=&quot;radio&quot;]',&quot;#media-items&quot;).live(&quot;click&quot;,function(){var tr=$(this).closest(&quot;tr&quot;);if($(tr).hasClass(&quot;align&quot;)){setUserSetting(&quot;align&quot;,$(this).val())}else{if($(tr).hasClass(&quot;image-size&quot;)){setUserSetting(&quot;imgsize&quot;,$(this).val())}}});$(&quot;button.button&quot;,&quot;#media-items&quot;).live(&quot;click&quot;,function(){var c=this.className||&quot;&quot;;c=c.match(/url([^ '&quot;]+)/);if(c&amp;&amp;c[1]){setUserSetting(&quot;urlbutton&quot;,c[1]);$(this).siblings(&quot;.urlfield&quot;).val($(this).attr(&quot;title&quot;))}})});
</del><span class="cx">\ No newline at end of file
</span><ins>+var topWin=window.dialogArguments||opener||parent||top;function fileDialogStart(){jQuery(&quot;#media-upload-error&quot;).empty()}function fileQueued(a){jQuery(&quot;.media-blank&quot;).remove();if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.describe-toggle-on&quot;).show();jQuery(&quot;.describe-toggle-off&quot;).hide();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings().removeClass(&quot;hidden&quot;)}jQuery(&quot;#media-items&quot;).append('&lt;div id=&quot;media-item-'+a.id+'&quot; class=&quot;media-item child-of-'+post_id+'&quot;&gt;&lt;div class=&quot;progress&quot;&gt;&lt;div class=&quot;bar&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;filename original&quot;&gt;&lt;span class=&quot;percent&quot;&gt;&lt;/span&gt; '+a.name+&quot;&lt;/div&gt;&lt;/div&gt;&quot;);jQuery(&quot;.progress&quot;,&quot;#media-item-&quot;+a.id).show();jQuery(&quot;#insert-gallery&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);jQuery(&quot;#cancel-upload&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}function uploadStart(a){try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overlay&quot;).unbind(&quot;click&quot;,topWin.tb_remove)}}catch(b){}return true}function uploadProgress(e,b,d){var a=jQuery(&quot;#media-items&quot;).width()-2,c=jQuery(&quot;#media-item-&quot;+e.id);jQuery(&quot;.bar&quot;,c).width(a*b/d);jQuery(&quot;.percent&quot;,c).html(Math.ceil(b/d*100)+&quot;%&quot;);if(b==d){jQuery(&quot;.bar&quot;,c).html('&lt;strong class=&quot;crunching&quot;&gt;'+swfuploadL10n.crunching+&quot;&lt;/strong&gt;&quot;)}}function prepareMediaItem(c,a){var d=(typeof shortform==&quot;undefined&quot;)?1:2,b=jQuery(&quot;#media-item-&quot;+c.id);jQuery(&quot;.bar&quot;,b).remove();jQuery(&quot;.progress&quot;,b).hide();try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overlay&quot;).click(topWin.tb_remove)}}catch(g){}if(isNaN(a)||!a){b.append(a);prepareMediaItemInit(c)}else{b.load(&quot;async-upload.php&quot;,{attachment_id:a,fetch:d},function(){prepareMediaItemInit(c);updateMediaForm()})}}function prepareMediaItemInit(b){var a=jQuery(&quot;#media-item-&quot;+b.id);jQuery(&quot;.thumbnail&quot;,a).clone().attr(&quot;className&quot;,&quot;pinkynail toggle&quot;).prependTo(a);jQuery(&quot;.filename.original&quot;,a).replaceWith(jQuery(&quot;.filename.new&quot;,a));jQuery(&quot;a.toggle&quot;,a).click(function(){jQuery(this).siblings(&quot;.slidetoggle&quot;).slideToggle(350,function(){var d=jQuery(window).height(),e=jQuery(this).offset().top,f=jQuery(this).height(),c;if(d&amp;&amp;e&amp;&amp;f){c=e+f;if(c&gt;d&amp;&amp;(f+48)&lt;d){window.scrollBy(0,c-d+13)}else{if(c&gt;d){window.scrollTo(0,e-36)}}}});jQuery(this).siblings(&quot;.toggle&quot;).andSelf().toggle();jQuery(this).siblings(&quot;a.toggle&quot;).focus();return false});jQuery(&quot;a.delete&quot;,a).click(function(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,success:deleteSuccess,error:deleteError,id:b.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;trash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)}});return false});jQuery(&quot;a.undo&quot;,a).click(function(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,id:b.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;untrash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)},success:function(d,e){var c=jQuery(&quot;#media-item-&quot;+b.id);if(type=jQuery(&quot;#type-of-&quot;+b.id).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-0+1)}if(c.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-0+1)}jQuery(&quot;.filename .trashnotice&quot;,c).remove();jQuery(&quot;.filename .title&quot;,c).css(&quot;font-weight&quot;,&quot;normal&quot;);jQuery(&quot;a.undo&quot;,c).addClass(&quot;hidden&quot;);jQuery(&quot;a.describe-toggle-on, .menu_order_input&quot;,c).show();c.css({backgroundColor:&quot;#ceb&quot;}).animate({backgroundColor:&quot;#fff&quot;},{queue:false,duration:500,complete:function(){jQuery(this).css({backgroundColor:&quot;&quot;})}}).removeClass(&quot;undo&quot;)}});return false});jQuery(&quot;#media-item-&quot;+b.id+&quot;.startopen&quot;).removeClass(&quot;startopen&quot;).slideToggle(500).siblings(&quot;.toggle&quot;).toggle()}function itemAjaxError(d,b){var c=jQuery(&quot;#media-item-&quot;+d);var a=jQuery(&quot;.filename&quot;,c).text();c.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,a)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+b+&quot;&lt;/div&gt;&quot;);c.find(&quot;a.dismiss&quot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function deleteSuccess(b,d){if(b==&quot;-1&quot;){return itemAjaxError(this.id,&quot;You do not have permission. Has your session expired?&quot;)}if(b==&quot;0&quot;){return itemAjaxError(this.id,&quot;Could not be deleted. Has it been deleted already?&quot;)}var c=this.id,a=jQuery(&quot;#media-item-&quot;+c);if(type=jQuery(&quot;#type-of-&quot;+c).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-1)}if(a.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-1)}if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.toggle&quot;).toggle();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings().removeClass(&quot;hidden&quot;)}jQuery(&quot;.toggle&quot;,a).toggle();jQuery(&quot;.slidetoggle&quot;,a).slideUp(200).siblings().removeClass(&quot;hidden&quot;);a.css({backgroundColor:&quot;#faa&quot;}).animate({backgroundColor:&quot;#f4f4f4&quot;},{queue:false,duration:500}).addClass(&quot;undo&quot;);jQuery(&quot;.filename:empty&quot;,a).remove();jQuery(&quot;.filename .title&quot;,a).css(&quot;font-weight&quot;,&quot;bold&quot;);jQuery(&quot;.filename&quot;,a).append('&lt;span class=&quot;trashnotice&quot;&gt; '+swfuploadL10n.deleted+&quot; &lt;/span&gt;&quot;).siblings(&quot;a.toggle&quot;).hide();jQuery(&quot;.filename&quot;,a).append(jQuery(&quot;a.undo&quot;,a).removeClass(&quot;hidden&quot;));jQuery(&quot;.menu_order_input&quot;,a).hide();return}function deleteError(c,b,a){}function updateMediaForm(){var b=jQuery(&quot;form.type-form #media-items&quot;).children(),a=jQuery(&quot;#media-items&quot;).children();if(b.length==1){jQuery(&quot;.slidetoggle&quot;,b).slideDown(500).siblings().addClass(&quot;hidden&quot;).filter(&quot;.toggle&quot;).toggle()}if(a.not(&quot;.media-blank&quot;).length&gt;0){jQuery(&quot;.savebutton&quot;).show()}else{jQuery(&quot;.savebutton&quot;).hide()}if(a.length&gt;1){jQuery(&quot;.insert-gallery&quot;).show()}else{jQuery(&quot;.insert-gallery&quot;).hide()}}function uploadSuccess(b,a){if(a.match(&quot;media-upload-error&quot;)){jQuery(&quot;#media-item-&quot;+b.id).html(a);return}prepareMediaItem(b,a);updateMediaForm();if(jQuery(&quot;#media-item-&quot;+b.id).hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(1*jQuery(&quot;#attachments-count&quot;).text()+1)}}function uploadComplete(a){if(swfu.getStats().files_queued==0){jQuery(&quot;#cancel-upload&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);jQuery(&quot;#insert-gallery&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}}function wpQueueError(a){jQuery(&quot;#media-upload-error&quot;).show().text(a)}function wpFileError(d,c){var b=jQuery(&quot;#media-item-&quot;+d.id);var a=jQuery(&quot;.filename&quot;,b).text();b.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,a)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+c+&quot;&lt;/div&gt;&quot;);b.find(&quot;a.dismiss&quot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function fileQueueError(c,a,b){if(a==SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){wpQueueError(swfuploadL10n.queue_limit_exceeded)}else{if(a==SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT){fileQueued(c);wpFileError(c,swfuploadL10n.file_exceeds_size_limit)}else{if(a==SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE){fileQueued(c);wpFileError(c,swfuploadL10n.zero_byte_file)}else{if(a==SWFUpload.QUEUE_ERROR.INVALID_FILETYPE){fileQueued(c);wpFileError(c,swfuploadL10n.invalid_filetype)}else{wpQueueError(swfuploadL10n.default_error)}}}}}function fileDialogComplete(b){try{if(b&gt;0){this.startUpload()}}catch(a){this.debug(a)}}function switchUploader(b){var c=document.getElementById(swfu.customSettings.swfupload_element_id),a=document.getElementById(swfu.customSettings.degraded_element_id);if(b){c.style.display=&quot;block&quot;;a.style.display=&quot;none&quot;}else{c.style.display=&quot;none&quot;;a.style.display=&quot;block&quot;}}function swfuploadPreLoad(){if(!uploaderMode){switchUploader(1)}else{switchUploader(0)}}function swfuploadLoadFailed(){switchUploader(0);jQuery(&quot;.upload-html-bypass&quot;).hide()}function uploadError(b,c,a){switch(c){case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:wpFileError(b,swfuploadL10n.missing_upload_url);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:wpFileError(b,swfuploadL10n.upload_limit_exceeded);break;case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:wpQueueError(swfuploadL10n.http_error);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:wpQueueError(swfuploadL10n.upload_failed);break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:wpQueueError(swfuploadL10n.io_error);break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:wpQueueError(swfuploadL10n.security_error);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:jQuery(&quot;#media-item-&quot;+b.id).remove();break;default:wpFileError(b,swfuploadL10n.default_error)}}function cancelUpload(){swfu.cancelQueue()}jQuery(document).ready(function(a){a('input[type=&quot;radio&quot;]',&quot;#media-items&quot;).live(&quot;click&quot;,function(){var b=a(this).closest(&quot;tr&quot;);if(a(b).hasClass(&quot;align&quot;)){setUserSetting(&quot;align&quot;,a(this).val())}else{if(a(b).hasClass(&quot;image-size&quot;)){setUserSetting(&quot;imgsize&quot;,a(this).val())}}});a(&quot;button.button&quot;,&quot;#media-items&quot;).live(&quot;click&quot;,function(){var b=this.className||&quot;&quot;;b=b.match(/url([^ '&quot;]+)/);if(b&amp;&amp;b[1]){setUserSetting(&quot;urlbutton&quot;,b[1]);a(this).siblings(&quot;.urlfield&quot;).val(a(this).attr(&quot;title&quot;))}})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (17285 => 17286)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-01-13 07:17:22 UTC (rev 17285)
+++ trunk/wp-includes/script-loader.php        2011-01-13 08:04:58 UTC (rev 17286)
</span><span class="lines">@@ -166,7 +166,7 @@
</span><span class="cx">         $scripts-&gt;add( 'jquery-color', &quot;/wp-includes/js/jquery/jquery.color$suffix.js&quot;, array('jquery'), '2.0-4561m');
</span><span class="cx">         $scripts-&gt;add_data( 'jquery-color', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'suggest', &quot;/wp-includes/js/jquery/suggest$suffix.js&quot;, array('jquery'), '1.1-20090125');
</del><ins>+        $scripts-&gt;add( 'suggest', &quot;/wp-includes/js/jquery/suggest$suffix.js&quot;, array('jquery'), '1.1-20110113');
</ins><span class="cx">         $scripts-&gt;add_data( 'suggest', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20m');
</span><span class="lines">@@ -197,11 +197,11 @@
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jcrop', &quot;/wp-includes/js/jcrop/jquery.Jcrop$suffix.js&quot;, array('jquery'), '0.9.8');
</del><ins>+        $scripts-&gt;add( 'jcrop', &quot;/wp-includes/js/jcrop/jquery.Jcrop$suffix.js&quot;, array('jquery'), '0.9.8-20110113');
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'swfobject', &quot;/wp-includes/js/swfobject.js&quot;, false, '2.2');
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2201');
</del><ins>+        $scripts-&gt;add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2201-20110113');
</ins><span class="cx">         $scripts-&gt;add( 'swfupload-swfobject', '/wp-includes/js/swfupload/plugins/swfupload.swfobject.js', array('swfupload', 'swfobject'), '2201');
</span><span class="cx">         $scripts-&gt;add( 'swfupload-queue', '/wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2201');
</span><span class="cx">         $scripts-&gt;add( 'swfupload-speed', '/wp-includes/js/swfupload/plugins/swfupload.speed.js', array('swfupload'), '2201');
</span><span class="lines">@@ -241,9 +241,9 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'comment-reply', &quot;/wp-includes/js/comment-reply$suffix.js&quot;, false, '20090102');
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'json2', &quot;/wp-includes/js/json2$suffix.js&quot;, false, '20090817');
</del><ins>+        $scripts-&gt;add( 'json2', &quot;/wp-includes/js/json2$suffix.js&quot;, false, '20110113');
</ins><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'imgareaselect', &quot;/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js&quot;, array('jquery'), '0.9.1' );
</del><ins>+        $scripts-&gt;add( 'imgareaselect', &quot;/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js&quot;, array('jquery'), '0.9.1-20110113' );
</ins><span class="cx">         $scripts-&gt;add_data( 'imgareaselect', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'password-strength-meter', &quot;/wp-admin/js/password-strength-meter$suffix.js&quot;, array('jquery'), '20101027' );
</span><span class="lines">@@ -259,7 +259,7 @@
</span><span class="cx">                 'l10n_print_after' =&gt; 'try{convertEntities(pwsL10n);}catch(e){};'
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'user-profile', &quot;/wp-admin/js/user-profile$suffix.js&quot;, array( 'jquery', 'password-strength-meter' ), '20100925' );
</del><ins>+        $scripts-&gt;add( 'user-profile', &quot;/wp-admin/js/user-profile$suffix.js&quot;, array( 'jquery', 'password-strength-meter' ), '20110113' );
</ins><span class="cx">         $scripts-&gt;add_data( 'user-profile', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'admin-bar', &quot;/wp-includes/js/admin-bar$suffix.js&quot;, false, '20110112a' );
</span><span class="lines">@@ -366,7 +366,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'admin-gallery', &quot;/wp-admin/js/gallery$suffix.js&quot;, array( 'jquery-ui-sortable' ), '20090516' );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'media-upload', &quot;/wp-admin/js/media-upload$suffix.js&quot;, array( 'thickbox' ), '20101201' );
</del><ins>+                $scripts-&gt;add( 'media-upload', &quot;/wp-admin/js/media-upload$suffix.js&quot;, array( 'thickbox' ), '20110113' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'media-upload', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'admin-widgets', &quot;/wp-admin/js/widgets$suffix.js&quot;, array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), '20101007' );
</span><span class="lines">@@ -401,7 +401,7 @@
</span><span class="cx">                         'l10n_print_after' =&gt; 'try{convertEntities(inlineEditL10n);}catch(e){};'
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'plugin-install', &quot;/wp-admin/js/plugin-install$suffix.js&quot;, array( 'jquery', 'thickbox' ), '20101230' );
</del><ins>+                $scripts-&gt;add( 'plugin-install', &quot;/wp-admin/js/plugin-install$suffix.js&quot;, array( 'jquery', 'thickbox' ), '20110113' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'plugin-install', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'plugin-install', 'plugininstallL10n', array(
</span><span class="cx">                         'plugin_information' =&gt; __('Plugin Information:'),
</span><span class="lines">@@ -411,7 +411,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'dashboard', &quot;/wp-admin/js/dashboard$suffix.js&quot;, array( 'jquery', 'admin-comments', 'postbox' ), '20101201' );
</del><ins>+                $scripts-&gt;add( 'dashboard', &quot;/wp-admin/js/dashboard$suffix.js&quot;, array( 'jquery', 'admin-comments', 'postbox' ), '20110113' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'dashboard', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'hoverIntent', &quot;/wp-includes/js/hoverIntent$suffix.js&quot;, array('jquery'), '20090102' );
</span></span></pre>
</div>
</div>

</body>
</html>