<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19105</bug_id>
          
          <creation_ts>2012-09-28 10:13:15 +0000</creation_ts>
          <short_desc>jQuery.cookie = function(name, value, options) {      if (typeof value != &apos;undefined&apos;) { // name and value given, set cookie          options = options || {};          if (value === null) {              value = &apos;&apos;;              options.expires = -1;</short_desc>
          <delta_ts>2012-09-28 19:53:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74769</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-09-28 10:13:15 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/workers/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
jQuery.cookie = function(name, value, options) {
     if (typeof value != &apos;undefined&apos;) { // name and value given, set cookie
	 options = options || {};
	 if (value === null) {
	     value = &apos;&apos;;
	     options.expires = -1;
	 }
	 var expires = &apos;&apos;;
	 if (options.expires &amp;&amp; (typeof options.expires == &apos;number&apos; ||
options.expires.toUTCString)) {
	     var date;
	     if (typeof options.expires == &apos;number&apos;) {
		 date = new Date();
		 date.setTime(date.getTime() + (options.expires * 24 * 60 * 60
* 1000));
	     } else {
		 date = options.expires;
	     }
	     expires = &apos;; expires=&apos; + date.toUTCString(); // use expires
attribute, max-age is not supported by IE
	 }
	 // CAUTION: Needed to parenthesize options.path and options.domain
	 // in the following expressions, otherwise they evaluate to undefined

	 // in the packed version for some reason...
	 var path = options.path ? &apos;; path=&apos; + (options.path) : &apos;&apos;;
	 var domain = options.domain ? &apos;; domain=&apos; + (options.domain) : &apos;&apos;;
	 var secure = options.secure ? &apos;; secure&apos; : &apos;&apos;;
	 document.cookie = [name, &apos;=&apos;, encodeURIComponent(value), expires,
path, domain, secure].join(&apos;&apos;);
     } else { // only name given, get cookie
	 var cookieValue = null;
	 if (document.cookie &amp;&amp; document.cookie != &apos;&apos;) {
	     var cookies = document.cookie.split(&apos;;&apos;);
	     for (var i = 0; i &lt; cookies.length; i++) {
		 var cookie = jQuery.trim(cookies[i]);
		 // Does this cookie string begin with the name we want?
		 if (cookie.substring(0, name.length + 1) == (name + &apos;=&apos;)) {
		     cookieValue =
decodeURIComponent(cookie.substring(name.length + 1));
		     break;
		 }
	     }
	 }
	 return cookieValue;
     }
 };
 
 /*Infinite Scroll*/

(function(h,d,e){d.infinitescroll=function(a,c,b){this.element=d(b);this._crea
te(a,c)||(this.failed=!0)};d.infinitescroll.defaults={loading:{finished:e,fini
shedMsg:&quot;&lt;em&gt;Congratulations, you&apos;ve reached the end of the
internet.&lt;/em&gt;&quot;,img:&quot;http://www.infinite-scroll.com/loading.gif&quot;,msg:null,msgT
ext:&quot;&lt;em&gt;Loading the next set of
posts...&lt;/em&gt;&quot;,selector:null,speed:&quot;fast&quot;,start:e},state:{isDuringAjax:!1,isIn
validPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,currPage:1},callback:e,debug
:!1,behavior:e,binder:d(h),
 nextSelector:&quot;div.navigation
a:first&quot;,navSelector:&quot;div.navigation&quot;,contentSelector:null,extraScrollPx:150,i
temSelector:&quot;div.post&quot;,animate:!1,pathParse:e,dataType:&quot;html&quot;,appendCallback:!
0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:e,path:
e};d.infinitescroll.prototype={_binding:function(a){var
c=this,b=c.options;b.v=&quot;2.0b2.111027&quot;;if(b.behavior&amp;&amp;this[&quot;_binding_&quot;+b.behavi
or]!==e)this[&quot;_binding_&quot;+b.behavior].call(this);else{if(&quot;bind&quot;!==a&amp;&amp;&quot;unbind&quot;!=
=a)return this._debug(&quot;Binding value  &quot;+
 a+&quot; not
valid&quot;),!1;if(&quot;unbind&quot;==a)this.options.binder.unbind(&quot;smartscroll.infscr.&quot;+c.o
ptions.infid);else
this.options.binder[a](&quot;smartscroll.infscr.&quot;+c.options.infid,function(){c.scro
ll()});this._debug(&quot;Binding&quot;,a)}},_create:function(a,c){var
b=d.extend(!0,{},d.infinitescroll.defaults,a);if(!this._validate(a))return!1;t
his.options=b;var g=d(b.nextSelector).attr(&quot;href&quot;);if(!g)return
this._debug(&quot;Navigation selector not
found&quot;),!1;b.path=this._determinepath(g);b.contentSelector=b.contentSelector||
this.element;

b.loading.selector=b.loading.selector||b.contentSelector;b.loading.msg=d(&apos;&lt;div
id=&quot;infscr-loading&quot;&gt;&lt;img alt=&quot;Loading...&quot; src=&quot;&apos;+b.loading.img+&apos;&quot;
/&gt;&lt;div&gt;&apos;+b.loading.msgText+&quot;&lt;/div&gt;&lt;/div&gt;&quot;);(new
Image).src=b.loading.img;b.pixelsFromNavToBottom=d(document).height()-d(b.navS
elector).offset().top;b.loading.start=b.loading.start||function(){d(b.navSelec
tor).hide();b.loading.msg.appendTo(b.loading.selector).show(b.loading.speed,fu
nction(){beginAjax(b)})};b.loading.finished=b.loading.finished||function(){b.l
oading.msg.fadeOut(&quot;normal&quot;)};

b.callback=function(a,g){b.behavior&amp;&amp;a[&quot;_callback_&quot;+b.behavior]!==e&amp;&amp;a[&quot;_callb
ack_&quot;+b.behavior].call(d(b.contentSelector)[0],g);c&amp;&amp;c.call(d(b.contentSelecto
r)[0],g,b)};this._setup();return!0},_debug:function(){if(this.options&amp;&amp;this.op
tions.debug)return
h.console&amp;&amp;console.log.call(console,arguments)},_determinepath:function(a){var
c=this.options;if(c.behavior&amp;&amp;this[&quot;_determinepath_&quot;+c.behavior]!==e)this[&quot;_de
terminepath_&quot;+c.behavior].call(this,a);else{if(c.pathParse)return
this._debug(&quot;pathParse manual&quot;),

c.pathParse(a,this.options.state.currPage+1);if(a.match(/^(.*?)\b2\b(.*?$)/))a
=a.match(/^(.*?)\b2\b(.*?$)/).slice(1);else
if(a.match(/^(.*?)2(.*?$)/)){if(a.match(/^(.*?page=)2(\/.*|$)/))return
a=a.match(/^(.*?page=)2(\/.*|$)/).slice(1);a=a.match(/^(.*?)2(.*?$)/).slice(1)
}else{if(a.match(/^(.*?page=)1(\/.*|$)/))return
a=a.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug(&quot;Sorry, we couldn&apos;t
parse your Next (Previous Posts) URL. Verify your the css selector points to
the correct A tag. If you still get this error: yell, scream, and kindly ask
for help at infinite-scroll.com.&quot;);
 c.state.isInvalidPage=!0}this._debug(&quot;determinePath&quot;,a);return
a}},_error:function(a){var
c=this.options;c.behavior&amp;&amp;this[&quot;_error_&quot;+c.behavior]!==e?this[&quot;_error_&quot;+c.beh
avior].call(this,a):(&quot;destroy&quot;!==a&amp;&amp;&quot;end&quot;!==a&amp;&amp;(a=&quot;unknown&quot;),this._debug(&quot;Erro
r&quot;,a),&quot;end&quot;==a&amp;&amp;this._showdonemsg(),c.state.isDone=!0,c.state.currPage=1,c.sta
te.isPaused=!1,this._binding(&quot;unbind&quot;))},_loadcallback:function(a,c){var
b=this.options,g=this.options.callback,f=b.state.isDone?&quot;done&quot;:!b.appendCallba
ck?&quot;no-append&quot;:&quot;append&quot;;if(b.behavior&amp;&amp;

this[&quot;_loadcallback_&quot;+b.behavior]!==e)this[&quot;_loadcallback_&quot;+b.behavior].call(t
his,a,c);else{switch(f){case &quot;done&quot;:return this._showdonemsg(),!1;case
&quot;no-append&quot;:&quot;html&quot;==b.dataType&amp;&amp;(c=d(&quot;&lt;div&gt;&quot;+c+&quot;&lt;/div&gt;&quot;).find(b.itemSelector))
;break;case &quot;append&quot;:var i=a.children();if(0==i.length)return
this._error(&quot;end&quot;);for(f=document.createDocumentFragment();a[0].firstChild;)f.
appendChild(a[0].firstChild);this._debug(&quot;contentSelector&quot;,d(b.contentSelector
)[0]);d(b.contentSelector)[0].appendChild(f);c=i.get()}b.loading.finished.call
(d(b.contentSelector)[0],

b);b.animate&amp;&amp;(f=d(h).scrollTop()+d(&quot;#infscr-loading&quot;).height()+b.extraScrollP
x+&quot;px&quot;,d(&quot;html,body&quot;).animate({scrollTop:f},800,function(){b.state.isDuringAja
x=!1}));b.animate||(b.state.isDuringAjax=!1);g(this,c)}},_nearbottom:function(
){var
a=this.options,c=0+d(document).height()-a.binder.scrollTop()-d(h).height();if(
a.behavior&amp;&amp;this[&quot;_nearbottom_&quot;+a.behavior]!==e)return
this[&quot;_nearbottom_&quot;+a.behavior].call(this);this._debug(&quot;math:&quot;,c,a.pixelsFromN
avToBottom);return c-a.bufferPx&lt;a.pixelsFromNavToBottom},
 _pausing:function(a){var
c=this.options;if(c.behavior&amp;&amp;this[&quot;_pausing_&quot;+c.behavior]!==e)this[&quot;_pausing_
&quot;+c.behavior].call(this,a);else{&quot;pause&quot;!==a&amp;&amp;(&quot;resume&quot;!==a&amp;&amp;null!==a)&amp;&amp;this._d
ebug(&quot;Invalid argument. Toggling pause value
instead&quot;);switch(a&amp;&amp;(&quot;pause&quot;==a||&quot;resume&quot;==a)?a:&quot;toggle&quot;){case
&quot;pause&quot;:c.state.isPaused=!0;break;case &quot;resume&quot;:c.state.isPaused=!1;break;case
&quot;toggle&quot;:c.state.isPaused=!c.state.isPaused}this._debug(&quot;Paused&quot;,c.state.isPau
sed);return!1}},_setup:function(){var a=this.options;if(a.behavior&amp;&amp;
 this[&quot;_setup_&quot;+a.behavior]!==e)this[&quot;_setup_&quot;+a.behavior].call(this);else
return this._binding(&quot;bind&quot;),!1},_showdonemsg:function(){var
a=this.options;a.behavior&amp;&amp;this[&quot;_showdonemsg_&quot;+a.behavior]!==e?this[&quot;_showdon
emsg_&quot;+a.behavior].call(this):(a.loading.msg.find(&quot;img&quot;).hide().parent().find(
&quot;div&quot;).html(a.loading.finishedMsg).animate({opacity:1},2E3,function(){d(this).
parent().fadeOut(&quot;normal&quot;)}),a.errorCallback.call(d(a.contentSelector)[0],&quot;don
e&quot;))},_validate:function(a){for(var c in a)if(c.indexOf&amp;&amp;
 -1&lt;c.indexOf(&quot;Selector&quot;)&amp;&amp;0===d(a[c]).length)return this._debug(&quot;Your &quot;+c+&quot;
found no
elements.&quot;),!1;return!0},bind:function(){this._binding(&quot;bind&quot;)},destroy:functi
on(){this.options.state.isDestroyed=!0;return
this._error(&quot;destroy&quot;)},pause:function(){this._pausing(&quot;pause&quot;)},resume:functi
on(){this._pausing(&quot;resume&quot;)},retrieve:function(a){var
c=this,b=c.options,g=b.path,f,i,j,h,a=a||null;beginAjax=function(a){a.state.cu
rrPage++;c._debug(&quot;heading into
ajax&quot;,g);f=d(a.contentSelector).is(&quot;table&quot;)?d(&quot;&lt;tbody/&gt;&quot;):

d(&quot;&lt;div/&gt;&quot;);i=g.join(a.state.currPage);j=&quot;html&quot;==a.dataType||&quot;json&quot;==a.dataTyp
e?a.dataType:&quot;html+callback&quot;;a.appendCallback&amp;&amp;&quot;html&quot;==a.dataType&amp;&amp;(j+=&quot;+callb
ack&quot;);switch(j){case &quot;html+callback&quot;:c._debug(&quot;Using HTML via .load()
method&quot;);f.load(i+&quot;
&quot;+a.itemSelector,null,function(a){c._loadcallback(f,a)});break;case
&quot;html&quot;:c._debug(&quot;Using &quot;+j.toUpperCase()+&quot; via $.ajax()
method&quot;);d.ajax({url:i,dataType:a.dataType,complete:function(a,b){(h=&quot;undefine
d&quot;!==typeof a.isResolved?a.isResolved():&quot;success&quot;===b||

&quot;notmodified&quot;===b)?c._loadcallback(f,a.responseText):c._error(&quot;end&quot;)}});break;
case &quot;json&quot;:c._debug(&quot;Using &quot;+j.toUpperCase()+&quot; via $.ajax()
method&quot;),d.ajax({dataType:&quot;json&quot;,type:&quot;GET&quot;,url:i,success:function(b,d,g){h=&quot;u
ndefined&quot;!==typeof
g.isResolved?g.isResolved():&quot;success&quot;===d||&quot;notmodified&quot;===d;a.appendCallback?
a.template!=e?(b=a.template(b),f.append(b),h?c._loadcallback(f,b):c._error(&quot;en
d&quot;)):(c._debug(&quot;template must be
defined.&quot;),c._error(&quot;end&quot;)):h?c._loadcallback(f,b):c._error(&quot;end&quot;)},error:func
tion(){c._debug(&quot;JSON ajax request failed.&quot;);

c._error(&quot;end&quot;)}})}};if(b.behavior&amp;&amp;this[&quot;retrieve_&quot;+b.behavior]!==e)this[&quot;ret
rieve_&quot;+b.behavior].call(this,a);else{if(b.state.isDestroyed)return
this._debug(&quot;Instance is
destroyed&quot;),!1;b.state.isDuringAjax=!0;b.loading.start.call(d(b.contentSelecto
r)[0],b)}},scroll:function(){var
a=this.options,c=a.state;a.behavior&amp;&amp;this[&quot;scroll_&quot;+a.behavior]!==e?this[&quot;scro
ll_&quot;+a.behavior].call(this):!c.isDuringAjax&amp;&amp;!c.isInvalidPage&amp;&amp;!c.isDone&amp;&amp;!c.i
sDestroyed&amp;&amp;!c.isPaused&amp;&amp;this._nearbottom()&amp;&amp;this.retrieve()},toggle:function(
){this._pausing()},

unbind:function(){this._binding(&quot;unbind&quot;)},update:function(a){d.isPlainObject(
a)&amp;&amp;(this.options=d.extend(!0,this.options,a))}};d.fn.infinitescroll=function(
a,c){switch(typeof a){case &quot;string&quot;:var
b=Array.prototype.slice.call(arguments,1);this.each(function(){var
c=d.data(this,&quot;infinitescroll&quot;);if(!c||!d.isFunction(c[a])||&quot;_&quot;===a.charAt(0))
return!1;c[a].apply(c,b)});break;case &quot;object&quot;:this.each(function(){var
b=d.data(this,&quot;infinitescroll&quot;);b?b.update(a):(b=new
d.infinitescroll(a,c,this),b.failed||
 d.data(this,&quot;infinitescroll&quot;,b))})}return this};var
k=d.event,l;k.special.smartscroll={setup:function(){d(this).bind(&quot;scroll&quot;,k.sp
ecial.smartscroll.handler)},teardown:function(){d(this).unbind(&quot;scroll&quot;,k.spec
ial.smartscroll.handler)},handler:function(a,c){var
b=this,e=arguments;a.type=&quot;smartscroll&quot;;l&amp;&amp;clearTimeout(l);l=setTimeout(functi
on(){d.event.handle.apply(b,e)},&quot;execAsap&quot;===c?0:100)}};d.fn.smartscroll=funct
ion(a){return
a?this.bind(&quot;smartscroll&quot;,a):this.trigger(&quot;smartscroll&quot;,[&quot;execAsap&quot;])}})(windo
w,
 jQuery);
 
 /*jQuery Masonry v2.1.0*/
 (function(a,b,c){var
d=b.event,e;d.special.smartresize={setup:function(){b(this).bind(&quot;resize&quot;,d.sp
ecial.smartresize.handler)},teardown:function(){b(this).unbind(&quot;resize&quot;,d.spec
ial.smartresize.handler)},handler:function(a,b){var
c=this,d=arguments;a.type=&quot;smartresize&quot;,e&amp;&amp;clearTimeout(e),e=setTimeout(functi
on(){jQuery.event.handle.apply(c,d)},b===&quot;execAsap&quot;?0:100)}},b.fn.smartresize=
function(a){return
a?this.bind(&quot;smartresize&quot;,a):this.trigger(&quot;smartresize&quot;,[&quot;execAsap&quot;])},b.Mason
=function(a,c){this.element=b(c),this._create(a),this._init()};var
f=[&quot;position&quot;,&quot;height&quot;];b.Mason.settings={isResizable:!0,isAnimated:!1,animati
onOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1},b.Maso
n.prototype={_filterFindBricks:function(a){var
b=this.options.itemSelector;return
b?a.filter(b).add(a.find(b)):a},_getBricks:function(a){var
b=this._filterFindBricks(a).css({position:&quot;absolute&quot;}).addClass(&quot;masonry-brick
&quot;);return
b},_create:function(c){this.options=b.extend(!0,{},b.Mason.settings,c),this.st
yleQueue=[],this.reloadItems();var
d=this.element[0].style;this.originalStyle={};for(var
e=0,g=f.length;e&lt;g;e++){var
h=f[e];this.originalStyle[h]=d[h]||&quot;&quot;}this.element.css({position:&quot;relative&quot;}),
this.horizontalDirection=this.options.isRTL?&quot;right&quot;:&quot;left&quot;,this.offset={x:pars
eInt(this.element.css(&quot;padding-&quot;+this.horizontalDirection),10),y:parseInt(this
.element.css(&quot;padding-top&quot;),10)},this.isFluid=this.options.columnWidth&amp;&amp;typeof
this.options.columnWidth==&quot;function&quot;;var
i=this;setTimeout(function(){i.element.addClass(&quot;masonry&quot;)},0),this.options.is
Resizable&amp;&amp;b(a).bind(&quot;smartresize.masonry&quot;,function(){i.resize()})},_init:func
tion(a){this._getColumns(),this._reLayout(a)},option:function(a,c){b.isPlainOb
ject(a)&amp;&amp;(this.options=b.extend(!0,this.options,a))},layout:function(a,b){for(
var c=0,d=a.length;c&lt;d;c++)this._placeBrick(a[c]);var
e={};e.height=Math.max.apply(Math,this.colYs);if(this.options.isFitWidth){var
f=0,c=this.cols;while(--c){if(this.colYs[c]!==0)break;f++}e.width=(this.cols-f
)*this.columnWidth-this.options.gutterWidth}this.styleQueue.push({$el:this.ele
ment,style:e});var
g=this.isLaidOut?this.options.isAnimated?&quot;animate&quot;:&quot;css&quot;:&quot;css&quot;,h=this.options.
animationOptions,i;for(c=0,d=this.styleQueue.length;c&lt;d;c++)i=this.styleQueue[
c],i.$el[g](i.style,h);this.styleQueue=[],b&amp;&amp;b.call(a),this.isLaidOut=!0},_get
Columns:function(){var
a=this.options.isFitWidth?this.element.parent():this.element,b=a.width();this.
columnWidth=this.isFluid?this.options.columnWidth(b):this.options.columnWidth|
|this.$bricks.outerWidth(!0)||b,this.columnWidth+=this.options.gutterWidth,thi
s.cols=Math.floor((b+this.options.gutterWidth)/this.columnWidth),this.cols=Mat
h.max(this.cols,1)},_placeBrick:function(a){var
c=b(a),d,e,f,g,h;d=Math.ceil(c.outerWidth(!0)/(this.columnWidth+this.options.g
utterWidth)),d=Math.min(d,this.cols);if(d===1)f=this.colYs;else{e=this.cols+1-
d,f=[];for(h=0;h&lt;e;h++)g=this.colYs.slice(h,h+d),f[h]=Math.max.apply(Math,g)}v
ar i=Math.min.apply(Math,f),j=0;for(var
k=0,l=f.length;k&lt;l;k++)if(f[k]===i){j=k;break}var
m={top:i+this.offset.y};m[this.horizontalDirection]=this.columnWidth*j+this.of
fset.x,this.styleQueue.push({$el:c,style:m});var
n=i+c.outerHeight(!0),o=this.cols+1-l;for(k=0;k&lt;o;k++)this.colYs[j+k]=n},resiz
e:function(){var
a=this.cols;this._getColumns(),(this.isFluid||this.cols!==a)&amp;&amp;this._reLayout()
},_reLayout:function(a){var
b=this.cols;this.colYs=[];while(b--)this.colYs.push(0);this.layout(this.$brick
s,a)},reloadItems:function(){this.$bricks=this._getBricks(this.element.childre
n())},reload:function(a){this.reloadItems(),this._init(a)},appended:function(a
,b,c){if(b){this._filterFindBricks(a).css({top:this.element.height()});var
d=this;setTimeout(function(){d._appended(a,c)},1)}else
this._appended(a,c)},_appended:function(a,b){var
c=this._getBricks(a);this.$bricks=this.$bricks.add(c),this.layout(c,b)},remove
:function(a){this.$bricks=this.$bricks.not(a),a.remove()},destroy:function(){t
his.$bricks.removeClass(&quot;masonry-brick&quot;).each(function(){this.style.position=&quot;
&quot;,this.style.top=&quot;&quot;,this.style.left=&quot;&quot;});var c=this.element[0].style;for(var
d=0,e=f.length;d&lt;e;d++){var
g=f[d];c[g]=this.originalStyle[g]}this.element.unbind(&quot;.masonry&quot;).removeClass(
&quot;masonry&quot;).removeData(&quot;masonry&quot;),b(a).unbind(&quot;.masonry&quot;)}},b.fn.imagesLoaded=f
unction(a){function h(){--e&lt;=0&amp;&amp;this.src!==f&amp;&amp;(setTimeout(g),d.unbind(&quot;load
error&quot;,h))}function g(){a.call(b,d)}var
b=this,d=b.find(&quot;img&quot;).add(b.filter(&quot;img&quot;)),e=d.length,f=&quot;data:image/gif;base6
4,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==&quot;;e||g(),d.bind(&quot;load
error&quot;,h).each(function(){if(this.complete||this.complete===c){var
a=this.src;this.src=f,this.src=a}});return b};var
g=function(a){this.console&amp;&amp;console.error(a)};b.fn.masonry=function(a){if(type
of a==&quot;string&quot;){var
c=Array.prototype.slice.call(arguments,1);this.each(function(){var
d=b.data(this,&quot;masonry&quot;);if(!d)g(&quot;cannot call methods on masonry prior to
initialization; attempted to call method
&apos;&quot;+a+&quot;&apos;&quot;);else{if(!b.isFunction(d[a])||a.charAt(0)===&quot;_&quot;){g(&quot;no such method
&apos;&quot;+a+&quot;&apos; for masonry instance&quot;);return}d[a].apply(d,c)}})}else
this.each(function(){var
c=b.data(this,&quot;masonry&quot;);c?(c.option(a||{}),c._init()):b.data(this,&quot;masonry&quot;,n
ew b.Mason(a,this))});return this}})(window,jQuery);
 
 /*
  * JQuery URL Parser plugin
  * Developed and maintanined by Mark Perkins, mark@allmarkedup.com
  * Source repository: https://github.com/allmarkedup/jQuery-URL-Parser
  * Licensed under an MIT-style license. See
https://github.com/allmarkedup/jQuery-URL-Parser/blob/master/LICENSE for
details.
  */ 
 ;(function($, undefined) {
     
     var tag2attr = {
	 a	 : &apos;href&apos;,
	 img	 : &apos;src&apos;,
	 form	 : &apos;action&apos;,
	 base	 : &apos;href&apos;,
	 script  : &apos;src&apos;,
	 iframe  : &apos;src&apos;,
	 link	 : &apos;href&apos;
     },
     
	key =
[&quot;source&quot;,&quot;protocol&quot;,&quot;authority&quot;,&quot;userInfo&quot;,&quot;user&quot;,&quot;password&quot;,&quot;host&quot;,&quot;port&quot;,&quot;r
elative&quot;,&quot;path&quot;,&quot;directory&quot;,&quot;file&quot;,&quot;query&quot;,&quot;fragment&quot;], // keys available to
query
	
	aliases = { &quot;anchor&quot; : &quot;fragment&quot; }, // aliases for backwards
compatability
 
	parser = {
		strict	:
/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))
?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,  //less intuitive,
more accurate to the specs
		loose	: 
/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?(
[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^
?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths
and deviates from specs
	},
	
	querystring_parser = /(?:^|&amp;|;)([^&amp;=;]*)=?([^&amp;;]*)/g, // supports both
ampersand and semicolon-delimted query string key/value pairs
	
	fragment_parser = /(?:^|&amp;|;)([^&amp;=;]*)=?([^&amp;;]*)/g; // supports both
ampersand and semicolon-delimted fragment key/value pairs
	
	function parseUri( url, strictMode )
	{
		var str = decodeURI( url ),
		    res   = parser[ strictMode || false ? &quot;strict&quot; : &quot;loose&quot;
].exec( str ),
		    uri = { attr : {}, param : {}, seg : {} },
		    i	= 14;
		
		while ( i-- )
		{
			uri.attr[ key[i] ] = res[i] || &quot;&quot;;
		}
		
		// build query and fragment parameters
		
		uri.param[&apos;query&apos;] = {};
		uri.param[&apos;fragment&apos;] = {};
		
		uri.attr[&apos;query&apos;].replace( querystring_parser, function ( $0,
$1, $2 ){
			if ($1)
			{
				uri.param[&apos;query&apos;][$1] = $2;
			}
		});
		
		uri.attr[&apos;fragment&apos;].replace( fragment_parser, function ( $0,
$1, $2 ){
			if ($1)
			{
				uri.param[&apos;fragment&apos;][$1] = $2;
			}
		});
				
		// split path and fragement into segments
		
	 uri.seg[&apos;path&apos;] = uri.attr.path.replace(/^\/+|\/+$/g,&apos;&apos;).split(&apos;/&apos;);
	 
	 uri.seg[&apos;fragment&apos;] =
uri.attr.fragment.replace(/^\/+|\/+$/g,&apos;&apos;).split(&apos;/&apos;);
	 
	 // compile a &apos;base&apos; domain attribute
	 
	 uri.attr[&apos;base&apos;] = uri.attr.host ?
uri.attr.protocol+&quot;://&quot;+uri.attr.host + (uri.attr.port ? &quot;:&quot;+uri.attr.port :
&apos;&apos;) : &apos;&apos;;
	 
		return uri;
	};
	
	function getAttrName( elm )
	{
		var tn = elm.tagName;
		if ( tn !== undefined ) return tag2attr[tn.toLowerCase()];
		return tn;
	}
	
	$.fn.url = function( strictMode )
	{
	    var url = &apos;&apos;;
	    
	    if ( this.length )
	    {
		url = $(this).attr( getAttrName(this[0]) ) || &apos;&apos;;
	    }
	    
	 return $.url( url, strictMode );
	};
	
	$.url = function( url, strictMode )
	{
	    if ( arguments.length === 1 &amp;&amp; url === true )
	 {
	     strictMode = true;
	     url = undefined;
	 }
	 
	 strictMode = strictMode || false;
	 url = url || window.location.toString();
				    
	 return {
	     
	     data : parseUri(url, strictMode),
	     
	     // get various attributes from the URI
	     attr : function( attr )
	     {
		 attr = aliases[attr] || attr;
		 return attr !== undefined ? this.data.attr[attr] :
this.data.attr;
	     },
	     
	     // return query string parameters
	     param : function( param )
	     {
		 return param !== undefined ? this.data.param.query[param] :
this.data.param.query;
	     },
	     
	     // return fragment parameters
	     fparam : function( param )
	     {
		 return param !== undefined ? this.data.param.fragment[param]
: this.data.param.fragment;
	     },
	     
	     // return path segments
	     segment : function( seg )
	     {
		 if ( seg === undefined )
		 {
		     return this.data.seg.path; 		   
		 }
		 else
		 {
		     seg = seg &lt; 0 ? this.data.seg.path.length + seg : seg -
1; // negative segments count from the end
		     return this.data.seg.path[seg];			
		 }
	     },
	     
	     // return fragment segments
	     fsegment : function( seg )
	     {
		 if ( seg === undefined )
		 {
		     return this.data.seg.fragment;		       
		 }
		 else
		 {
		     seg = seg &lt; 0 ? this.data.seg.fragment.length + seg : seg
- 1; // negative segments count from the end
		     return this.data.seg.fragment[seg];		    
		 }
	     }	
	 };  
	};
 })(jQuery);
 
 /* artDialog 5 | (c) 2009-2012 TangBin | http://code.google.com/p/artdialog/
*/
 (function(g,h){function i(a){var
c=f.expando,d=a===g?0:a[c];d===h&amp;&amp;(a[c]=d=++f.uuid);return d}var
f=g.art=function(a,c){return new
f.fn.constructor(a,c)},p=/^(?:[^&lt;]*(&lt;[\w\W]+&gt;)[^&gt;]*$|#([\w\-]+)$)/,o=/[\n\t]/g
;if(g.$===h)g.$=f;f.fn=f.prototype={constructor:function(a,c){var
d,c=c||document;if(!a)return this;if(a.nodeType)return
this[0]=a,this;if(&quot;string&quot;===typeof
a&amp;&amp;(d=p.exec(a))&amp;&amp;d[2])return(d=c.getElementById(d[2]))&amp;&amp;d.parentNode&amp;&amp;(this[0
]=d),this;this[0]=a;return this},hasClass:function(a){return-1&lt;
 (&quot; &quot;+this[0].className+&quot; &quot;).replace(o,&quot; &quot;).indexOf(&quot; &quot;+a+&quot;
&quot;)?!0:!1},addClass:function(a){this.hasClass(a)||(this[0].className+=&quot;
&quot;+a);return this},removeClass:function(a){var
c=this[0];if(a){if(this.hasClass(a))c.className=c.className.replace(a,&quot;
&quot;)}else c.className=&quot;&quot;;return this},css:function(a,c){var
d,e=this[0];if(&quot;string&quot;===typeof a){if(c===h)return
f.css(e,a);e.style[a]=c}else for(d in a)e.style[d]=a[d];return
this},show:function(){return
this.css(&quot;display&quot;,&quot;block&quot;)},hide:function(){return this.css(&quot;display&quot;,
 &quot;none&quot;)},offset:function(){var
a=this[0],c=a.getBoundingClientRect(),d=a.ownerDocument,a=d.body,d=d.documentE
lement;return{left:c.left+(self.pageXOffset||d.scrollLeft)-(d.clientLeft||a.cl
ientLeft||0),top:c.top+(self.pageYOffset||d.scrollTop)-(d.clientTop||a.clientT
op||0)}},html:function(a){var c=this[0];if(a===h)return
c.innerHTML;f.cleanData(c.getElementsByTagName(&quot;*&quot;));c.innerHTML=a;return
this},remove:function(){var
a=this[0];f.cleanData(a.getElementsByTagName(&quot;*&quot;));f.cleanData([a]);a.parentNo
de.removeChild(a);
 return this},bind:function(a,c){f.event.add(this[0],a,c);return
this},unbind:function(a,c){f.event.remove(this[0],a,c);return
this}};f.fn.constructor.prototype=f.fn;f.isWindow=function(a){return
a&amp;&amp;&quot;object&quot;===typeof a&amp;&amp;&quot;setInterval&quot;in a};f.fn.find=function(a){var
c=this[0],d=a.split(&quot;.&quot;)[1];if(d)if(document.getElementsByClassName)d=c.getEle
mentsByClassName(d);else{for(var
e=a=0,b=[],c=(c||document).getElementsByTagName(&quot;*&quot;),m=c.length,d=RegExp(&quot;(^|\
\s)&quot;+d+&quot;(\\s|$)&quot;);a&lt;m;a++)d.test(c[a].className)&amp;&amp;
 (b[e]=c[a],e++);d=b}else d=c.getElementsByTagName(a);return
f(d[0])};f.each=function(a,c){var d,e=0,b=a.length;if(b===h)for(d in
a){if(!1===c.call(a[d],d,a[d]))break}else
for(d=a[0];e&lt;b&amp;&amp;!1!==c.call(d,e,d);d=a[++e]);return
a};f.data=function(a,c,d){var e=f.cache,a=i(a);if(c===h)return
e[a];e[a]||(e[a]={});d!==h&amp;&amp;(e[a][c]=d);return
e[a][c]};f.removeData=function(a,c){var
d=!0,e=f.expando,b=f.cache,m=i(a),n=m&amp;&amp;b[m];if(n)if(c){delete n[c];for(var k
in n)d=!1;d&amp;&amp;delete f.cache[m]}else delete b[m],a.removeAttribute?
 a.removeAttribute(e):a[e]=null};f.uuid=0;f.cache={};f.expando=&quot;@cache&quot;+ +new
Date;f.event={add:function(a,c,d){var j;var
e,b=f.event;e=f.data(a,&quot;@events&quot;)||f.data(a,&quot;@events&quot;,{});j=e[c]=e[c]||{},e=j;
(e.listeners=e.listeners||[]).push(d);if(!e.handler)e.elem=a,e.handler=b.handl
er(e),a.addEventListener?a.addEventListener(c,e.handler,!1):a.attachEvent(&quot;on&quot;
+c,e.handler)},remove:function(a,c,d){var e,b,m;b=f.event;var
n=!0,k=f.data(a,&quot;@events&quot;);if(k)if(c){if(b=k[c]){m=b.listeners;if(d)for(e=0;e&lt;
m.length;e++)m[e]===
 d&amp;&amp;m.splice(e--,1);else
b.listeners=[];if(0===b.listeners.length){a.removeEventListener?a.removeEventL
istener(c,b.handler,!1):a.detachEvent(&quot;on&quot;+c,b.handler);delete
k[c];b=f.data(a,&quot;@events&quot;);for(var r in
b)n=!1;n&amp;&amp;f.removeData(a,&quot;@events&quot;)}}}else for(e in
k)b.remove(a,e)},handler:function(a){return function(c){for(var
c=f.event.fix(c||g.event),d=0,e=a.listeners,b;b=e[d++];)!1===b.call(a.elem,c)&amp;
&amp;(c.preventDefault(),c.stopPropagation())}},fix:function(a){if(a.target)return
a;var c={target:a.srcElement||

document,preventDefault:function(){a.returnValue=!1},stopPropagation:function(
){a.cancelBubble=!0}},d;for(d in a)c[d]=a[d];return
c}};f.cleanData=function(a){for(var
c=0,d,e=a.length,b=f.event.remove,m=f.removeData;c&lt;e;c++)d=a[c],b(d),m(d)};f.c
ss=&quot;defaultView&quot;in document&amp;&amp;&quot;getComputedStyle&quot;in
document.defaultView?function(a,c){return
document.defaultView.getComputedStyle(a,!1)[c]}:function(a,c){return
a.currentStyle[c]||&quot;&quot;};f.each([&quot;Left&quot;,&quot;Top&quot;],function(a,c){var
d=&quot;scroll&quot;+c;f.fn[d]=function(){var c=

this[0],b;return(b=f.isWindow(c)?c:9===c.nodeType?c.defaultView||c.parentWindo
w:!1)?&quot;pageXOffset&quot;in
b?b[a?&quot;pageYOffset&quot;:&quot;pageXOffset&quot;]:b.document.documentElement[d]||b.document.b
ody[d]:c[d]}});f.each([&quot;Height&quot;,&quot;Width&quot;],function(a,c){var
d=c.toLowerCase();f.fn[d]=function(a){var
b=this[0];return!b?null==a?null:this:f.isWindow(b)?b.document.documentElement[
&quot;client&quot;+c]||b.document.body[&quot;client&quot;+c]:9===b.nodeType?Math.max(b.documentEle
ment[&quot;client&quot;+c],b.body[&quot;scroll&quot;+c],b.documentElement[&quot;scroll&quot;+c],
 b.body[&quot;offset&quot;+c],b.documentElement[&quot;offset&quot;+c]):null}});return f})(window);

 (function(g,h,i){if(&quot;BackCompat&quot;===document.compatMode)throw
Error(&quot;artDialog: Document types require more than xhtml1.0&quot;);var
f,p=0,o=&quot;artDialog&quot;+ +new
Date,a=h.VBArray&amp;&amp;!h.XMLHttpRequest,c=&quot;createTouch&quot;in
document&amp;&amp;!(&quot;onmousemove&quot;in
document)||/(iPhone|iPad|iPod)/i.test(navigator.userAgent),d=!a&amp;&amp;!c,e=function
(b,a,n){b=b||{};if(&quot;string&quot;===typeof
b||1===b.nodeType)b={content:b,fixed:!c};var k;k=e.defaults;var
r=b.follow=1===this.nodeType&amp;&amp;this||b.follow,t;for(t in
k)b[t]===i&amp;&amp;(b[t]=k[t]);b.id=r&amp;&amp;
 r[o+&quot;follow&quot;]||b.id||o+p;if(k=e.list[b.id])return
r&amp;&amp;k.follow(r),k.zIndex().focus(),k;if(!d)b.fixed=!1;if(!b.button||!b.button.p
ush)b.button=[];if(a!==i)b.ok=a;b.ok&amp;&amp;b.button.push({id:&quot;ok&quot;,value:b.okValue,c
allback:b.ok,focus:!0});if(n!==i)b.cancel=n;b.cancel&amp;&amp;b.button.push({id:&quot;cance
l&quot;,value:b.cancelValue,callback:b.cancel});e.defaults.zIndex=b.zIndex;p++;retu
rn e.list[b.id]=f?f.constructor(b):new
e.fn.constructor(b)};e.version=&quot;5.0&quot;;e.fn=e.prototype={constructor:function(b)
{var a;this.closed=!1;

this.config=b;this.dom=a=this.dom||this._getDom();b.skin&amp;&amp;a.wrap.addClass(b.sk
in);a.wrap.css(&quot;position&quot;,b.fixed?&quot;fixed&quot;:&quot;absolute&quot;);a.close[!1===b.cancel?&quot;h
ide&quot;:&quot;show&quot;]();a.content.css(&quot;padding&quot;,b.padding);this.button.apply(this,b.but
ton);this.title(b.title).content(b.content).size(b.width,b.height).time(b.time
);b.follow?this.follow(b.follow):this.position();this.zIndex();b.lock&amp;&amp;this.lo
ck();this._addEvent();this[b.visible?&quot;visible&quot;:&quot;hidden&quot;]().focus();f=null;b.in
itialize&amp;&amp;b.initialize.call(this);
 return this},content:function(b){var
a,c,e,d,f=this,v=this.dom.content,l=v[0];this._elemBack&amp;&amp;(this._elemBack(),del
ete this._elemBack);if(&quot;string&quot;===typeof b)v.html(b);else
if(b&amp;&amp;1===b.nodeType)d=b.style.display,a=b.previousSibling,c=b.nextSibling,e=b
.parentNode,this._elemBack=function(){a&amp;&amp;a.parentNode?a.parentNode.insertBefor
e(b,a.nextSibling):c&amp;&amp;c.parentNode?c.parentNode.insertBefore(b,c):e&amp;&amp;e.appendC
hild(b);b.style.display=d;f._elemBack=null},v.html(&quot;&quot;),l.appendChild(b),g(b).s
how();return this.position()},
 title:function(b){var
a=this.dom,c=a.outer,a=a.title;!1===b?(a.hide().html(&quot;&quot;),c.addClass(&quot;d-state-n
oTitle&quot;)):(a.show().html(b),c.removeClass(&quot;d-state-noTitle&quot;));return
this},position:function(){var
b=this.dom,a=b.wrap[0],c=b.window,e=b.document,d=this.config.fixed,b=d?0:e.scr
ollLeft(),e=d?0:e.scrollTop(),d=c.width(),f=c.height(),g=a.offsetHeight,c=(d-a
.offsetWidth)/2+b,d=d=(g&lt;4*f/7?0.382*f-g/2:(f-g)/2)+e,a=a.style;a.left=Math.ma
x(c,b)+&quot;px&quot;;a.top=Math.max(d,e)+&quot;px&quot;;return this},size:function(b,a){var c=
 this.dom.main[0].style;&quot;number&quot;===typeof b&amp;&amp;(b+=&quot;px&quot;);&quot;number&quot;===typeof
a&amp;&amp;(a+=&quot;px&quot;);c.width=b;c.height=a;return this},follow:function(b){var
a=g(b),c=this.config;if(!b||!b.offsetWidth&amp;&amp;!b.offsetHeight)return
this.position(this._left,this._top);var
d=c.fixed,e=o+&quot;follow&quot;,f=this.dom,h=f.window,l=f.document,f=h.width(),h=h.heig
ht(),s=l.scrollLeft(),l=l.scrollTop(),j=a.offset(),a=b.offsetWidth,i=d?j.left-
s:j.left,j=d?j.top-l:j.top,q=this.dom.wrap[0],p=q.style,u=q.offsetWidth,q=q.of
fsetHeight,w=i-(u-

a)/2,x=j+b.offsetHeight,s=d?0:s,d=d?0:l;p.left=(w&lt;s?i:w+u&gt;f&amp;&amp;i-u&gt;s?i-u+a:w)+&quot;p
x&quot;;p.top=(x+q&gt;h+d&amp;&amp;j-q&gt;d?j-q:x)+&quot;px&quot;;this._follow&amp;&amp;this._follow.removeAttribut
e(e);this._follow=b;b[e]=c.id;return this},button:function(){for(var
b=this.dom.buttons,a=b[0],c=this._listeners=this._listeners||{},d=[].slice.cal
l(arguments),e=0,f,h,l,i,j;e&lt;d.length;e++){f=d[e];h=f.value;l=f.id||h;i=!c[l];
j=!i?c[l].elem:document.createElement(&quot;input&quot;);j.type=&quot;button&quot;;j.className=&quot;d-
button&quot;;c[l]||(c[l]={});if(h)j.value=h;if(f.width)j.style.width=

f.width;if(f.callback)c[l].callback=f.callback;if(f.focus)this._focus&amp;&amp;this._f
ocus.removeClass(&quot;d-state-highlight&quot;),this._focus=g(j).addClass(&quot;d-state-highl
ight&quot;),this.focus();j[o+&quot;callback&quot;]=l;j.disabled=!!f.disabled;if(i)c[l].elem=j
,a.appendChild(j)}b[0].style.display=d.length?&quot;&quot;:&quot;none&quot;;return
this},visible:function(){this.dom.wrap.css(&quot;visibility&quot;,&quot;visible&quot;);this.dom.ou
ter.addClass(&quot;d-state-visible&quot;);this._isLock&amp;&amp;this._lockMask.show();return
this},hidden:function(){this.dom.wrap.css(&quot;visibility&quot;,

&quot;hidden&quot;);this.dom.outer.removeClass(&quot;d-state-visible&quot;);this._isLock&amp;&amp;this._lo
ckMask.hide();return this},close:function(){if(this.closed)return this;var
b=this.dom,a=b.wrap,c=e.list,k=this.config.beforeunload,g=this.config.follow;i
f(k&amp;&amp;!1===k.call(this))return
this;if(e.focus===this)e.focus=null;g&amp;&amp;g.removeAttribute(o+&quot;follow&quot;);this._ele
mBack&amp;&amp;this._elemBack();this.time();this.unlock();this._removeEvent();delete
c[this.config.id];if(f)a.remove();else{f=this;b.title.html(&quot;&quot;);b.content.html(
&quot;&quot;);b.buttons.html(&quot;&quot;);

a[0].className=a[0].style.cssText=&quot;&quot;;b.outer[0].className=&quot;d-outer&quot;;a.css({lef
t:0,top:0,position:d?&quot;fixed&quot;:&quot;absolute&quot;});for(var h in
this)this.hasOwnProperty(h)&amp;&amp;&quot;dom&quot;!==h&amp;&amp;delete
this[h];this.hidden()}this.closed=!0;return this},time:function(b){var
a=this,c=this._timer;c&amp;&amp;clearTimeout(c);if(b)this._timer=setTimeout(function()
{a._click(&quot;cancel&quot;)},b);return
this},focus:function(){if(this.config.focus)try{var
b=this._focus&amp;&amp;this._focus[0]||this.dom.close[0];b&amp;&amp;b.focus()}catch(a){}return
this},zIndex:function(){var b=

this.dom,a=e.focus,c=e.defaults.zIndex++;b.wrap.css(&quot;zIndex&quot;,c);this._lockMask
&amp;&amp;this._lockMask.css(&quot;zIndex&quot;,c-1);a&amp;&amp;a.dom.outer.removeClass(&quot;d-state-focus&quot;)
;e.focus=this;b.outer.addClass(&quot;d-state-focus&quot;);return
this},lock:function(){if(this._isLock)return this;var
b=this,a=this.dom,c=document.createElement(&quot;div&quot;),f=g(c),i=e.defaults.zIndex-1
;this.zIndex();a.outer.addClass(&quot;d-state-lock&quot;);f.css({zIndex:i,position:&quot;fixe
d&quot;,left:0,top:0,width:&quot;100%&quot;,height:&quot;100%&quot;,overflow:&quot;hidden&quot;}).addClass(&quot;d-mas
k&quot;);

d||f.css({position:&quot;absolute&quot;,width:g(h).width()+&quot;px&quot;,height:g(document).heigh
t()+&quot;px&quot;});f.bind(&quot;click&quot;,function(){b._reset()}).bind(&quot;dblclick&quot;,function(){b
._click(&quot;cancel&quot;)});document.body.appendChild(c);this._lockMask=f;this._isLock
=!0;return this},unlock:function(){if(!this._isLock)return
this;this._lockMask.unbind();this._lockMask.hide();this._lockMask.remove();thi
s.dom.outer.removeClass(&quot;d-state-lock&quot;);this._isLock=!1;return
this},_getDom:function(){var b=document.body;if(!b)throw Error(&apos;artDialog:
&quot;documents.body&quot; not ready&apos;);
 var
a=document.createElement(&quot;div&quot;);a.style.cssText=&quot;position:absolute;left:0;top:
0&quot;;a.innerHTML=e._templates;b.insertBefore(a,b.firstChild);for(var
c=0,d={},f=a.getElementsByTagName(&quot;*&quot;),i=f.length;c&lt;i;c++)(b=f[c].className.sp
lit(&quot;d-&quot;)[1])&amp;&amp;(d[b]=g(f[c]));d.window=g(h);d.document=g(document);d.wrap=g(a)
;return
d},_click:function(b){b=this._listeners[b]&amp;&amp;this._listeners[b].callback;return
&quot;function&quot;!==typeof
b||!1!==b.call(this)?this.close():this},_reset:function(){var
b=this.config.follow;b?this.follow(b):
 this.position()},_addEvent:function(){var
b=this,a=this.dom;a.wrap.bind(&quot;click&quot;,function(c){c=c.target;if(c.disabled)ret
urn!1;if(c===a.close[0])return
b._click(&quot;cancel&quot;),!1;(c=c[o+&quot;callback&quot;])&amp;&amp;b._click(c)}).bind(&quot;mousedown&quot;,func
tion(){b.zIndex()})},_removeEvent:function(){this.dom.wrap.unbind()}};e.fn.con
structor.prototype=e.fn;g.fn.dialog=g.fn.artDialog=function(){var
b=arguments;this[this.live?&quot;live&quot;:&quot;bind&quot;](&quot;click&quot;,function(){e.apply(this,b);r
eturn!1});return this};e.focus=null;e.get=function(b){return b===
 i?e.list:e.list[b]};e.list={};g(document).bind(&quot;keydown&quot;,function(b){var
a=b.target,c=a.nodeName,d=/^input|textarea$/i,f=e.focus,b=b.keyCode;f&amp;&amp;f.confi
g.esc&amp;&amp;!(d.test(c)&amp;&amp;&quot;button&quot;!==a.type)&amp;&amp;27===b&amp;&amp;f._click(&quot;cancel&quot;)});g(h).bind
(&quot;resize&quot;,function(){var b=e.list,a;for(a in
b)b[a]._reset()});e._templates=&apos;&lt;div class=&quot;d-outer&quot;&gt;&lt;table
class=&quot;d-border&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;d-nw&quot;&gt;&lt;/td&gt;&lt;td class=&quot;d-n&quot;&gt;&lt;/td&gt;&lt;td
class=&quot;d-ne&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;d-w&quot;&gt;&lt;/td&gt;&lt;td class=&quot;d-c&quot;&gt;&lt;div
class=&quot;d-inner&quot;&gt;&lt;table class=&quot;d-dialog&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;d-header&quot;&gt;&lt;div
class=&quot;d-titleBar&quot;&gt;&lt;div class=&quot;d-title&quot;&gt;&lt;/div&gt;&lt;a class=&quot;d-close&quot;
href=&quot;javascript:/*artDialog*/;&quot;&gt;\u00d7&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
class=&quot;d-main&quot;&gt;&lt;div class=&quot;d-content&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
class=&quot;d-footer&quot;&gt;&lt;div
class=&quot;d-buttons&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/td&gt;&lt;td
class=&quot;d-e&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;d-sw&quot;&gt;&lt;/td&gt;&lt;td class=&quot;d-s&quot;&gt;&lt;/td&gt;&lt;td
class=&quot;d-se&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&apos;;
 e.defaults={content:&apos;&lt;div
class=&quot;d-loading&quot;&gt;&lt;span&gt;loading..&lt;/span&gt;&lt;/div&gt;&apos;,title:&quot;message&quot;,button:null,ok
:null,cancel:null,initialize:null,beforeunload:null,okValue:&quot;ok&quot;,cancelValue:&quot;
cancel&quot;,width:&quot;auto&quot;,height:&quot;auto&quot;,padding:&quot;20px
25px&quot;,skin:null,time:null,esc:!0,focus:!0,visible:!0,follow:null,lock:!1,fixed
:!1,zIndex:1987};this.artDialog=g.dialog=g.artDialog=e})(this.art||this.jQuery
,this);
 
 (function(c){c.alert=c.dialog.alert=function(b,a){return
c.dialog({id:&quot;Alert&quot;,fixed:!0,lock:!0,content:b,ok:!0,beforeunload:a})};c.conf
irm=c.dialog.confirm=function(b,a,m){return
c.dialog({id:&quot;Confirm&quot;,fixed:!0,lock:!0,content:b,ok:a,cancel:m})};c.prompt=c.
dialog.prompt=function(b,a,m){var d;return
c.dialog({id:&quot;Prompt&quot;,fixed:!0,lock:!0,content:[&apos;&lt;div
style=&quot;margin-bottom:5px;font-size:12px&quot;&gt;&apos;,b,&apos;&lt;/div&gt;&lt;div&gt;&lt;input type=&quot;text&quot;
class=&quot;d-input-text&quot; value=&quot;&apos;,m||&quot;&quot;,&apos;&quot; style=&quot;width:18em;padding:6px 4px&quot;
/&gt;&lt;/div&gt;&apos;].join(&quot;&quot;),

initialize:function(){d=this.dom.content.find(&quot;.d-input-text&quot;)[0];d.select();d
.focus()},ok:function(){return
a&amp;&amp;a.call(this,d.value)},cancel:function(){}})};c.dialog.prototype.shake=funct
ion(){var b=function(a,b,c){var h=+new Date,e=setInterval(function(){var
f=(+new
Date-h)/c;1&lt;=f?(clearInterval(e),b(f)):a(f)},13)},a=function(c,d,g,h){var
e=h;void 0===e&amp;&amp;(e=6,g/=e);var
f=parseInt(c.style.marginLeft)||0;b(function(a){c.style.marginLeft=f+(d-f)*a+&quot;
px&quot;},function(){0!==e&amp;&amp;a(c,1===e?0:1.3*(d/e-d),g,--e)},
 g)};return function(){a(this.dom.wrap[0],40,600);return this}}();var
o=function(){var b=this,a=function(a){var c=b[a];b[a]=function(){return
c.apply(b,arguments)}};a(&quot;start&quot;);a(&quot;over&quot;);a(&quot;end&quot;)};o.prototype={start:funct
ion(b){c(document).bind(&quot;mousemove&quot;,this.over).bind(&quot;mouseup&quot;,this.end);this._
sClientX=b.clientX;this._sClientY=b.clientY;this.onstart(b.clientX,b.clientY);
return!1},over:function(b){this._mClientX=b.clientX;this._mClientY=b.clientY;t
his.onover(b.clientX-this._sClientX,b.clientY-this._sClientY);

return!1},end:function(b){c(document).unbind(&quot;mousemove&quot;,this.over).unbind(&quot;mo
useup&quot;,this.end);this.onend(b.clientX,b.clientY);return!1}};var
j=c(window),k=c(document),i=document.documentElement,p=!!(&quot;minWidth&quot;in
i.style)&amp;&amp;&quot;onlosecapture&quot;in i,q=&quot;setCapture&quot;in
i,r=function(){return!1},n=function(b){var a=new
o,c=artDialog.focus,d=c.dom,g=d.wrap,h=d.title,e=g[0],f=h[0],i=d.main[0],l=e.s
tyle,s=i.style,t=b.target===d.se[0]?!0:!1,u=(d=&quot;fixed&quot;===e.style.position)?0:k
.scrollLeft(),v=d?0:k.scrollTop(),n=

j.width()-e.offsetWidth+u,A=j.height()-e.offsetHeight+v,w,x,y,z;a.onstart=func
tion(){t?(w=i.offsetWidth,x=i.offsetHeight):(y=e.offsetLeft,z=e.offsetTop);k.b
ind(&quot;dblclick&quot;,a.end).bind(&quot;dragstart&quot;,r);p?h.bind(&quot;losecapture&quot;,a.end):j.bind
(&quot;blur&quot;,a.end);q&amp;&amp;f.setCapture();g.addClass(&quot;d-state-drag&quot;);c.focus()};a.onove
r=function(a,b){if(t){var
c=a+w,d=b+x;l.width=&quot;auto&quot;;s.width=Math.max(0,c)+&quot;px&quot;;l.width=e.offsetWidth+&quot;p
x&quot;;s.height=Math.max(0,d)+&quot;px&quot;}else
c=Math.max(u,Math.min(n,a+y)),d=Math.max(v,Math.min(A,

b+z)),l.left=c+&quot;px&quot;,l.top=d+&quot;px&quot;};a.onend=function(){k.unbind(&quot;dblclick&quot;,a.end
).unbind(&quot;dragstart&quot;,r);p?h.unbind(&quot;losecapture&quot;,a.end):j.unbind(&quot;blur&quot;,a.end)
;q&amp;&amp;f.releaseCapture();g.removeClass(&quot;d-state-drag&quot;)};a.start(b)};c(document).
bind(&quot;mousedown&quot;,function(b){var a=artDialog.focus;if(a){var
c=b.target,d=a.config,a=a.dom;if(!1!==d.drag&amp;&amp;c===a.title[0]||!1!==d.resize&amp;&amp;c
===a.se[0])return n(b),!1}})})(this.art||this.jQuery);


Posted from: 118.186.58.49
User agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.84 Safari/535.11 LBBROWSER</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>