<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>tests/opensocial-jquery-1.0.4.test.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 /**
- * opensocial-jquery 1.0.3
+ * opensocial-jquery 1.0.4 RC1
  * http://code.google.com/p/opensocial-jquery/
  *
  * Enhancing of jQuery.ajax with JSDeferred
@@ -2320,7 +2320,7 @@ jQuery.fn.extend({
 		// Attach the listeners
 		bindReady();
 
-		var data = gadgets.views &amp;&amp; gadgets.views.getParams() || {};
+		var data = window.gadgets &amp;&amp; gadgets.views &amp;&amp; gadgets.views.getParams() || {};
 
 		// If the DOM is already ready
 		if ( jQuery.isReady )
@@ -2330,7 +2330,7 @@ jQuery.fn.extend({
 		// Otherwise, remember the function for later
 		else
 			// Add the function to the wait list
-//			jQuery.readyList.push( function() { return fn.call(this, jQuery); } );
+//		jQuery.readyList.push( function() { return fn.call(this, jQuery); } );
 			jQuery.readyList.push( function() { return fn.call( this, jQuery, data ); } );
 
 		return this;
@@ -2374,61 +2374,6 @@ function bindReady(){
 
 	readyBound = true;
 
-//	// Mozilla, Opera (see further below for it) and webkit nightlies currently support this event
-//	if ( document.addEventListener &amp;&amp; !jQuery.browser.opera)
-//		// Use the handy event callback
-//		document.addEventListener( &quot;DOMContentLoaded&quot;, jQuery.ready, false );
-//
-//	// If IE is used and is not in a frame
-//	// Continually check to see if the document is ready
-//	if ( jQuery.browser.msie &amp;&amp; window == top ) (function(){
-//		if (jQuery.isReady) return;
-//		try {
-//			// If IE is used, use the trick by Diego Perini
-//			// http://javascript.nwbox.com/IEContentLoaded/
-//			document.documentElement.doScroll(&quot;left&quot;);
-//		} catch( error ) {
-//			setTimeout( arguments.callee, 0 );
-//			return;
-//		}
-//		// and execute any waiting functions
-//		jQuery.ready();
-//	})();
-//
-//	if ( jQuery.browser.opera )
-//		document.addEventListener( &quot;DOMContentLoaded&quot;, function () {
-//			if (jQuery.isReady) return;
-//			for (var i = 0; i &lt; document.styleSheets.length; i++)
-//				if (document.styleSheets[i].disabled) {
-//					setTimeout( arguments.callee, 0 );
-//					return;
-//				}
-//			// and execute any waiting functions
-//			jQuery.ready();
-//		}, false);
-//
-//	if ( jQuery.browser.safari ) {
-//		var numStyles;
-//		(function(){
-//			if (jQuery.isReady) return;
-//			if ( document.readyState != &quot;loaded&quot; &amp;&amp; document.readyState != &quot;complete&quot; ) {
-//				setTimeout( arguments.callee, 0 );
-//				return;
-//			}
-//			if ( numStyles === undefined )
-//				numStyles = jQuery(&quot;style, link[rel=stylesheet]&quot;).length;
-//			if ( document.styleSheets.length != numStyles ) {
-//				setTimeout( arguments.callee, 0 );
-//				return;
-//			}
-//			// and execute any waiting functions
-//			jQuery.ready();
-//		})();
-//	}
-//
-//	// A fallback to window.onload, that will always work
-//	jQuery.event.add( window, &quot;load&quot;, jQuery.ready );
-
 	if (window.google &amp;&amp; google.friendconnect) {
 		if (jQuery.container.parentUrl)
 			google.friendconnect.container.setParentUrl(jQuery.container.parentUrl);
@@ -2441,8 +2386,66 @@ function bindReady(){
 				jQuery.signList[''].apply(document);
 			}
 		});
-	}	else
+	} else if (window.gadgets) {
 		gadgets.util.registerOnLoadHandler(jQuery.ready);
+	} else {
+
+	// Mozilla, Opera (see further below for it) and webkit nightlies currently support this event
+	if ( document.addEventListener &amp;&amp; !jQuery.browser.opera)
+		// Use the handy event callback
+		document.addEventListener( &quot;DOMContentLoaded&quot;, jQuery.ready, false );
+
+	// If IE is used and is not in a frame
+	// Continually check to see if the document is ready
+	if ( jQuery.browser.msie &amp;&amp; window == top ) (function(){
+		if (jQuery.isReady) return;
+		try {
+			// If IE is used, use the trick by Diego Perini
+			// http://javascript.nwbox.com/IEContentLoaded/
+			document.documentElement.doScroll(&quot;left&quot;);
+		} catch( error ) {
+			setTimeout( arguments.callee, 0 );
+			return;
+		}
+		// and execute any waiting functions
+		jQuery.ready();
+	})();
+
+	if ( jQuery.browser.opera )
+		document.addEventListener( &quot;DOMContentLoaded&quot;, function () {
+			if (jQuery.isReady) return;
+			for (var i = 0; i &lt; document.styleSheets.length; i++)
+				if (document.styleSheets[i].disabled) {
+					setTimeout( arguments.callee, 0 );
+					return;
+				}
+			// and execute any waiting functions
+			jQuery.ready();
+		}, false);
+
+	if ( jQuery.browser.safari ) {
+		var numStyles;
+		(function(){
+			if (jQuery.isReady) return;
+			if ( document.readyState != &quot;loaded&quot; &amp;&amp; document.readyState != &quot;complete&quot; ) {
+				setTimeout( arguments.callee, 0 );
+				return;
+			}
+			if ( numStyles === undefined )
+				numStyles = jQuery(&quot;style, link[rel=stylesheet]&quot;).length;
+			if ( document.styleSheets.length != numStyles ) {
+				setTimeout( arguments.callee, 0 );
+				return;
+			}
+			// and execute any waiting functions
+			jQuery.ready();
+		})();
+	}
+
+	// A fallback to window.onload, that will always work
+	jQuery.event.add( window, &quot;load&quot;, jQuery.ready );
+
+  }
 }
 
 jQuery.extend({
@@ -2814,7 +2817,7 @@ jQuery.extend({
 		if ( s.global &amp;&amp; ! jQuery.active++ )
 			jQuery.event.trigger( &quot;ajaxStart&quot; );
 
-if (window.google &amp;&amp; google.friendconnect) {
+		if (window.google &amp;&amp; google.friendconnect || !window.gadgets) {
 
 		// Matches an absolute URL, and saves the domain
 		var remote = /^(?:\w+:)?\/\/([^\/?#]+)/;
@@ -2850,7 +2853,8 @@ if (window.google &amp;&amp; google.friendconnect) {
 			// We handle everything using the script element injection
 			return undefined;
 		}
-}
+
+		}
 
 		var requestDone = false;
 
@@ -3923,7 +3927,7 @@ jQuery.each([ &quot;Height&quot;, &quot;Width&quot; ], function(i, name){
    * Environment
    */
 
-  var params = gadgets.util.getUrlParameters();
+  var params = window.gadgets &amp;&amp; gadgets.util.getUrlParameters() || {};
   var synd = params['synd'] || params['container'] || '';
   var parent = params['parent'] || '';
   var v = params['v'] || '';
@@ -4049,32 +4053,25 @@ jQuery.each([ &quot;Height&quot;, &quot;Width&quot; ], function(i, name){
   /**
    * Flash
    */
-if (gadgets.flash) {
-  var version = gadgets.flash.getMajorVersion();
-  if (version) {
 
-    $.flash = {
-      version: version
-    };
-
-    $.fn.flash = function(url, data) {
-      data = $.extend(true, {}, data);
-      for (var key in data)
-        if (key.toLowerCase() == 'flashvars' &amp;&amp; data[key] &amp;&amp; typeof(data[key]) != 'string')
-           data[key] = jQuery.param(data[key]);
-      var fn = $.container.cache ? 'embedCachedFlash' : 'embedFlash';
-      return this.each(function() {
-        gadgets.flash[fn](url, this, $.flash.version, data);
-      });
-    };
-
-  }
-}
+  var flash = window.gadgets &amp;&amp; gadgets.flash &amp;&amp; gadgets.flash.getMajorVersion();
+  if (flash)
+    $.flash = { version: flash };
+
+  $.fn.flash = function(url, data) {
+    data = $.extend(true, {}, data);
+    for (var key in data)
+      if (key.toLowerCase() == 'flashvars' &amp;&amp; data[key] &amp;&amp; typeof(data[key]) != 'string')
+         data[key] = jQuery.param(data[key]);
+    var fn = $.container.cache ? 'embedCachedFlash' : 'embedFlash';
+    return this.each(function() {
+      gadgets.flash[fn](url, this, $.flash.version, data);
+    });
+  };
 
   /**
    * MiniMessage
    */
-if (gadgets.MiniMessage) {
 
   $.fn.minimessage = function(fn) {
     return this.each(function(i, n) {
@@ -4087,13 +4084,10 @@ if (gadgets.MiniMessage) {
     });
   };
 
-} // if (gadgets.MiniMessage) {
-
   /**
    * Tabs
    */
-if (gadgets.TabSet) {
-
+
   $.fn.tabs = function(fn) {
     return this.each(function() {
       var tabset = new gadgets.TabSet(null, null, this);
@@ -4114,13 +4108,10 @@ if (gadgets.TabSet) {
       .remove();
     });
   };
-
-} // if (gadgets.TabSet) {
 
   /**
    * PubSub
    */
-if (gadgets.pubsub) {
 
   $.pub = function(channel, data) {
     gadgets.pubsub.publish(channel, data);
@@ -4130,14 +4121,9 @@ if (gadgets.pubsub) {
     gadgets.pubsub.subscribe(channel, fn);
   };
 
-} // if (gadgets.pubsub) {
-
   /**
    * Skins
    */
-if (gadgets.skins) {
-
-} // if (gadgets.skins) {
 
 })(jQuery);
 (function($) {
@@ -4269,7 +4255,7 @@ if (gadgets.skins) {
     for (route in routes)
       if ((type + ' ' + url).indexOf(route) == 0)
         return new routes[route];
-    if (!(window.google &amp;&amp; google.friendconnect)) {
+    if (!(window.google &amp;&amp; google.friendconnect || !window.gadgets)) {
       var remote = /^(?:\w+:)?\/\/([^\/?#]+)/;
       if (remote.test(url) &amp;&amp; remote.exec(url)[1] != location.host)
         return new $._xhr(s);
@@ -4291,20 +4277,15 @@ if (gadgets.skins) {
 })(jQuery);
 (function($) {
   
-  if (window.opensocial === undefined)
-    return;
-
   /**
    * Environment
    */
-if (opensocial) {
 
   $(function() {
-    $.container.domain = opensocial.getEnvironment().getDomain();
+    if (window.opensocial)
+      $.container.domain = opensocial.getEnvironment().getDomain();
   });
 
-} // if (opensocial) {
-
   /**
    * DataRequest
    */
@@ -4643,7 +4624,6 @@ if (opensocial) {
   /**
    * getActivity
    */
-if (opensocial) {
   
   $._xhr.getActivity = function() {
     this.initialize();
@@ -4689,12 +4669,9 @@ if (opensocial) {
 
   $.ajaxSettings.xhr.addRoute('GET', '/activities/', $._xhr.getActivity);
 
-} // if (opensocial) {
-
   /**
    * postActivity
    */
-if (opensocial) {
   
   $._xhr.postActivity = function() {
     this.initialize();
@@ -4738,12 +4715,9 @@ if (opensocial) {
 
   $.ajaxSettings.xhr.addRoute('POST', '/activities/', $._xhr.postActivity);
 
-} // if (opensocial) {
-
   /**
    * postMessage
    */
-if (opensocial) {
   
   $._xhr.postMessage = function() {
     this.initialize();
@@ -4793,6 +4767,4 @@ if (opensocial) {
 
   $.ajaxSettings.xhr.addRoute('POST', '/messages/', $._xhr.postMessage);
 
-} // if (opensocial) {
-
 })(jQuery);</diff>
      <filename>features/opensocial-jquery/opensocial-jquery.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 /**
- * opensocial-jquery 1.0.3
+ * opensocial-jquery 1.0.4 RC1
  * http://code.google.com/p/opensocial-jquery/
  *
  * Enhancing of jQuery.ajax with JSDeferred
@@ -35,4 +35,4 @@
  * License:: MIT
  */
 
-(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^&lt;]*(&lt;(.|\s)+&gt;)[^&gt;]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector==&quot;string&quot;){var match=quickExpr.exec(selector);if(match&amp;&amp;(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?&quot;ready&quot;:&quot;load&quot;](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:&quot;1.2.6&quot;,size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&amp;&amp;elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&amp;&amp;jQuery[type||&quot;attr&quot;](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key==&quot;width&quot;||key==&quot;height&quot;)&amp;&amp;parseFloat(value)&lt;0){value=undefined}return this.attr(key,value,&quot;curCSS&quot;)},text:function(text){if(typeof text!=&quot;object&quot;&amp;&amp;text!=null){return this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||document).createTextNode(text))}var ret=&quot;&quot;;jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+&gt;] [^+&gt;]/.test(selector)||selector.indexOf(&quot;..&quot;)&gt;-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&amp;&amp;!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement(&quot;div&quot;);container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find(&quot;*&quot;).andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find(&quot;*&quot;).andSelf().each(function(i){if(this.nodeType==3){return}var events=jQuery.data(this,&quot;events&quot;);for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&amp;&amp;jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&amp;&amp;selector[selector.length-1]!==undefined&amp;&amp;!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)&lt;0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector==&quot;string&quot;?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&amp;&amp;jQuery.multiFilter(selector,this).length&gt;0},hasClass:function(selector){return this.is(&quot;.&quot;+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,&quot;select&quot;)){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type==&quot;select-one&quot;;if(index&lt;0){return null}for(var i=one?index:0,max=one?index+1:options.length;i&lt;max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&amp;&amp;!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||&quot;&quot;).replace(/\r/g,&quot;&quot;)}}return undefined}if(value.constructor==Number){value+=&quot;&quot;}return this.each(function(){if(this.nodeType!=1){return}if(value.constructor==Array&amp;&amp;/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)&gt;=0||jQuery.inArray(this.name,value)&gt;=0)}else{if(jQuery.nodeName(this,&quot;select&quot;)){var values=jQuery.makeArray(value);jQuery(&quot;option&quot;,this).each(function(){this.selected=(jQuery.inArray(this.value,values)&gt;=0||jQuery.inArray(this.text,values)&gt;=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(&quot;.&quot;);parts[1]=parts[1]?&quot;.&quot;+parts[1]:&quot;&quot;;if(value===undefined){var data=this.triggerHandler(&quot;getData&quot;+parts[1]+&quot;!&quot;,[parts[0]]);if(data===undefined&amp;&amp;this.length){data=jQuery.data(this[0],key)}return data===undefined&amp;&amp;parts[1]?this.data(parts[0]):data}else{return this.trigger(&quot;setData&quot;+parts[1]+&quot;!&quot;,[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length&gt;1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&amp;&amp;jQuery.nodeName(this,&quot;table&quot;)&amp;&amp;jQuery.nodeName(elems[0],&quot;tr&quot;)){obj=this.getElementsByTagName(&quot;tbody&quot;)[0]||this.appendChild(this.ownerDocument.createElement(&quot;tbody&quot;))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,&quot;script&quot;)){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery(&quot;script&quot;,elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:&quot;script&quot;})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||&quot;&quot;)}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!=&quot;object&quot;&amp;&amp;typeof target!=&quot;function&quot;){target={}}if(length==i){target=this;--i}for(;i&lt;length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&amp;&amp;copy&amp;&amp;typeof copy==&quot;object&quot;&amp;&amp;!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando=&quot;jQuery&quot;+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&amp;&amp;typeof fn!=&quot;string&quot;&amp;&amp;!fn.nodeName&amp;&amp;fn.constructor!=Array&amp;&amp;/^[\s[]?function/.test(fn+&quot;&quot;)},isXMLDoc:function(elem){return elem.documentElement&amp;&amp;!elem.body||elem.tagName&amp;&amp;elem.ownerDocument&amp;&amp;!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName(&quot;head&quot;)[0]||document.documentElement,script=document.createElement(&quot;script&quot;);script.type=&quot;text/javascript&quot;;if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&amp;&amp;elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&amp;&amp;!jQuery.cache[id]){jQuery.cache[id]={}}if(data!==undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name=&quot;&quot;;for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i&lt;length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i&lt;length&amp;&amp;callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&amp;&amp;value.constructor==Number&amp;&amp;type==&quot;curCSS&quot;&amp;&amp;!exclude.test(name)?value+&quot;px&quot;:value},className:{add:function(elem,classNames){jQuery.each((classNames||&quot;&quot;).split(/\s+/),function(i,className){if(elem.nodeType==1&amp;&amp;!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?&quot; &quot;:&quot;&quot;)+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(&quot; &quot;):&quot;&quot;}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))&gt;-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name==&quot;width&quot;||name==&quot;height&quot;){var val,props={position:&quot;absolute&quot;,visibility:&quot;hidden&quot;,display:&quot;block&quot;},which=name==&quot;width&quot;?[&quot;Left&quot;,&quot;Right&quot;]:[&quot;Top&quot;,&quot;Bottom&quot;];function getWH(){val=name==&quot;width&quot;?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,&quot;padding&quot;+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,&quot;border&quot;+this+&quot;Width&quot;,true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(&quot;:visible&quot;)){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue(&quot;color&quot;)==&quot;&quot;}if(name==&quot;opacity&quot;&amp;&amp;jQuery.browser.msie){ret=jQuery.attr(style,&quot;opacity&quot;);return ret==&quot;&quot;?&quot;1&quot;:ret}if(jQuery.browser.opera&amp;&amp;name==&quot;display&quot;){var save=style.outline;style.outline=&quot;0 solid black&quot;;style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&amp;&amp;style&amp;&amp;style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name=&quot;float&quot;}name=name.replace(/([A-Z])/g,&quot;-$1&quot;).toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&amp;&amp;!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&amp;&amp;color(a);a=a.parentNode){stack.unshift(a)}for(;i&lt;stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display=&quot;block&quot;}}ret=name==&quot;display&quot;&amp;&amp;swap[stack.length-1]!=null?&quot;none&quot;:(computedStyle&amp;&amp;computedStyle.getPropertyValue(name))||&quot;&quot;;for(i=0;i&lt;swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name==&quot;opacity&quot;&amp;&amp;ret==&quot;&quot;){ret=&quot;1&quot;}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&amp;&amp;/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+&quot;px&quot;;style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement==&quot;undefined&quot;){context=context.ownerDocument||context[0]&amp;&amp;context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return}if(elem.constructor==Number){elem+=&quot;&quot;}if(typeof elem==&quot;string&quot;){elem=elem.replace(/(&lt;(\w+)[^&gt;]*?)\/&gt;/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+&quot;&gt;&lt;/&quot;+tag+&quot;&gt;&quot;});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement(&quot;div&quot;);var wrap=!tags.indexOf(&quot;&lt;opt&quot;)&amp;&amp;[1,&quot;&lt;select multiple='multiple'&gt;&quot;,&quot;&lt;/select&gt;&quot;]||!tags.indexOf(&quot;&lt;leg&quot;)&amp;&amp;[1,&quot;&lt;fieldset&gt;&quot;,&quot;&lt;/fieldset&gt;&quot;]||tags.match(/^&lt;(thead|tbody|tfoot|colg|cap)/)&amp;&amp;[1,&quot;&lt;table&gt;&quot;,&quot;&lt;/table&gt;&quot;]||!tags.indexOf(&quot;&lt;tr&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&quot;,&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;]||(!tags.indexOf(&quot;&lt;td&quot;)||!tags.indexOf(&quot;&lt;th&quot;))&amp;&amp;[3,&quot;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&quot;,&quot;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&quot;]||!tags.indexOf(&quot;&lt;col&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;&quot;,&quot;&lt;/colgroup&gt;&lt;/table&gt;&quot;]||jQuery.browser.msie&amp;&amp;[1,&quot;div&lt;div&gt;&quot;,&quot;&lt;/div&gt;&quot;]||[0,&quot;&quot;,&quot;&quot;];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf(&quot;&lt;table&quot;)&amp;&amp;tags.indexOf(&quot;&lt;tbody&quot;)&lt;0?div.firstChild&amp;&amp;div.firstChild.childNodes:wrap[1]==&quot;&lt;table&gt;&quot;&amp;&amp;tags.indexOf(&quot;&lt;tbody&quot;)&lt;0?div.childNodes:[];for(var j=tbody.length-1;j&gt;=0;--j){if(jQuery.nodeName(tbody[j],&quot;tbody&quot;)&amp;&amp;!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&amp;&amp;(!jQuery.nodeName(elem,&quot;form&quot;)&amp;&amp;!jQuery.nodeName(elem,&quot;select&quot;))){return}if(elem[0]==undefined||jQuery.nodeName(elem,&quot;form&quot;)||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&amp;&amp;jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name==&quot;selected&quot;&amp;&amp;jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&amp;&amp;notxml&amp;&amp;!special){if(set){if(name==&quot;type&quot;&amp;&amp;jQuery.nodeName(elem,&quot;input&quot;)&amp;&amp;elem.parentNode){throw&quot;type property can't be changed&quot;}elem[name]=value}if(jQuery.nodeName(elem,&quot;form&quot;)&amp;&amp;elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&amp;&amp;notxml&amp;&amp;name==&quot;style&quot;){return jQuery.attr(elem.style,&quot;cssText&quot;,value)}if(set){elem.setAttribute(name,&quot;&quot;+value)}var attr=msie&amp;&amp;notxml&amp;&amp;special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&amp;&amp;name==&quot;opacity&quot;){if(set){elem.zoom=1;elem.filter=(elem.filter||&quot;&quot;).replace(/alpha\([^)]*\)/,&quot;&quot;)+(parseInt(value)+&quot;&quot;==&quot;NaN&quot;?&quot;&quot;:&quot;alpha(opacity=&quot;+value*100+&quot;)&quot;)}return elem.filter&amp;&amp;elem.filter.indexOf(&quot;opacity=&quot;)&gt;=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+&quot;&quot;:&quot;&quot;}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(text){return(text||&quot;&quot;).replace(/^\s+|\s+$/g,&quot;&quot;)},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i&lt;length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i&lt;length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i&lt;length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i&lt;length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&amp;&amp;!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&amp;&amp;!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?&quot;styleFloat&quot;:&quot;cssFloat&quot;;jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode==&quot;CSS1Compat&quot;,props:{&quot;for&quot;:&quot;htmlFor&quot;,&quot;class&quot;:&quot;className&quot;,&quot;float&quot;:styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:&quot;readOnly&quot;,maxlength:&quot;maxLength&quot;,cellspacing:&quot;cellSpacing&quot;}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,&quot;parentNode&quot;)},next:function(elem){return jQuery.nth(elem,2,&quot;nextSibling&quot;)},prev:function(elem){return jQuery.nth(elem,2,&quot;previousSibling&quot;)},nextAll:function(elem){return jQuery.dir(elem,&quot;nextSibling&quot;)},prevAll:function(elem){return jQuery.dir(elem,&quot;previousSibling&quot;)},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,&quot;iframe&quot;)?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&amp;&amp;typeof selector==&quot;string&quot;){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:&quot;append&quot;,prependTo:&quot;prepend&quot;,insertBefore:&quot;before&quot;,insertAfter:&quot;after&quot;,replaceAll:&quot;replaceWith&quot;},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i&lt;length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,&quot;&quot;);if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?&quot;remove&quot;:&quot;add&quot;](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery(&quot;*&quot;,this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(&quot;&gt;*&quot;,this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each([&quot;Height&quot;,&quot;Width&quot;],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&amp;&amp;document.body[&quot;client&quot;+name]||jQuery.browser.safari&amp;&amp;window[&quot;inner&quot;+name]||document.compatMode==&quot;CSS1Compat&quot;&amp;&amp;document.documentElement[&quot;client&quot;+name]||document.body[&quot;client&quot;+name]:this[0]==document?Math.max(Math.max(document.body[&quot;scroll&quot;+name],document.documentElement[&quot;scroll&quot;+name]),Math.max(document.body[&quot;offset&quot;+name],document.documentElement[&quot;offset&quot;+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+&quot;px&quot;)}});function num(elem,prop){return elem[0]&amp;&amp;parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&amp;&amp;parseInt(jQuery.browser.version)&lt;417?&quot;(?:[\\w*_-]|\\\\.)&quot;:&quot;(?:[\\w\u0128-\uFFFF*_-]|\\\\.)&quot;,quickChild=new RegExp(&quot;^&gt;\\s*(&quot;+chars+&quot;+)&quot;),quickID=new RegExp(&quot;^(&quot;+chars+&quot;+)(#)(&quot;+chars+&quot;+)&quot;),quickClass=new RegExp(&quot;^([#.]?)(&quot;+chars+&quot;*)&quot;);jQuery.extend({expr:{&quot;&quot;:function(a,i,m){return m[2]==&quot;*&quot;||jQuery.nodeName(a,m[2])},&quot;#&quot;:function(a,i,m){return a.getAttribute(&quot;id&quot;)==m[2]},&quot;:&quot;:{lt:function(a,i,m){return i&lt;m[3]-0},gt:function(a,i,m){return i&gt;m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},&quot;first-child&quot;:function(a){return a.parentNode.getElementsByTagName(&quot;*&quot;)[0]==a},&quot;last-child&quot;:function(a){return jQuery.nth(a.parentNode.lastChild,1,&quot;previousSibling&quot;)==a},&quot;only-child&quot;:function(a){return !jQuery.nth(a.parentNode.lastChild,2,&quot;previousSibling&quot;)},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||&quot;&quot;).indexOf(m[3])&gt;=0},visible:function(a){return&quot;hidden&quot;!=a.type&amp;&amp;jQuery.css(a,&quot;display&quot;)!=&quot;none&quot;&amp;&amp;jQuery.css(a,&quot;visibility&quot;)!=&quot;hidden&quot;},hidden:function(a){return&quot;hidden&quot;==a.type||jQuery.css(a,&quot;display&quot;)==&quot;none&quot;||jQuery.css(a,&quot;visibility&quot;)==&quot;hidden&quot;},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,&quot;selected&quot;)},text:function(a){return&quot;text&quot;==a.type},radio:function(a){return&quot;radio&quot;==a.type},checkbox:function(a){return&quot;checkbox&quot;==a.type},file:function(a){return&quot;file&quot;==a.type},password:function(a){return&quot;password&quot;==a.type},submit:function(a){return&quot;submit&quot;==a.type},image:function(a){return&quot;image&quot;==a.type},reset:function(a){return&quot;reset&quot;==a.type},button:function(a){return&quot;button&quot;==a.type||jQuery.nodeName(a,&quot;button&quot;)},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?&quot;?)(.*?)\4 *\]/,/^(:)([\w-]+)\(&quot;?'?(.*?(\(.*?\))?[^(]*?)&quot;?'?\)/,new RegExp(&quot;^([:.#]*)(&quot;+chars+&quot;+)&quot;)],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&amp;&amp;expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,&quot;&quot;);cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!=&quot;string&quot;){return[t]}if(context&amp;&amp;context.nodeType!=1&amp;&amp;context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&amp;&amp;last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&amp;&amp;(nodeName==&quot;*&quot;||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,&quot;&quot;);if(t.indexOf(&quot; &quot;)==0){continue}foundToken=true}else{re=/^([&gt;+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j&lt;rl;j++){var n=m==&quot;~&quot;||m==&quot;+&quot;?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m==&quot;~&quot;&amp;&amp;merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m==&quot;~&quot;){merge[id]=true}r.push(n)}if(m==&quot;+&quot;){break}}}}ret=r;t=jQuery.trim(t.replace(re,&quot;&quot;));foundToken=true}}if(t&amp;&amp;!foundToken){if(!t.indexOf(&quot;,&quot;)){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=&quot; &quot;+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,&quot;&quot;);var elem=ret[ret.length-1];if(m[1]==&quot;#&quot;&amp;&amp;elem&amp;&amp;elem.getElementById&amp;&amp;!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&amp;&amp;oid&amp;&amp;typeof oid.id==&quot;string&quot;&amp;&amp;oid.id!=m[2]){oid=jQuery('[@id=&quot;'+m[2]+'&quot;]',elem)[0]}ret=r=oid&amp;&amp;(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]==&quot;#&quot;&amp;&amp;m[3]?m[3]:m[1]!=&quot;&quot;||m[0]==&quot;&quot;?&quot;*&quot;:m[2];if(tag==&quot;*&quot;&amp;&amp;ret[i].nodeName.toLowerCase()==&quot;object&quot;){tag=&quot;param&quot;}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]==&quot;.&quot;){r=jQuery.classFilter(r,m[2])}if(m[1]==&quot;#&quot;){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute(&quot;id&quot;)==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,&quot;&quot;)}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&amp;&amp;context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=&quot; &quot;+m+&quot; &quot;;var tmp=[];for(var i=0;r[i];i++){var pass=(&quot; &quot;+r[i].className+&quot; &quot;).indexOf(m)&gt;=0;if(!not&amp;&amp;pass||not&amp;&amp;!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&amp;&amp;t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,&quot;&quot;);break}}if(!m){break}if(m[1]==&quot;:&quot;&amp;&amp;m[2]==&quot;not&quot;){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]==&quot;.&quot;){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]==&quot;[&quot;){var tmp=[],type=m[3];for(var i=0,rl=r.length;i&lt;rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||&quot;&quot;}if((type==&quot;&quot;&amp;&amp;!!z||type==&quot;=&quot;&amp;&amp;z==m[5]||type==&quot;!=&quot;&amp;&amp;z!=m[5]||type==&quot;^=&quot;&amp;&amp;z&amp;&amp;!z.indexOf(m[5])||type==&quot;$=&quot;&amp;&amp;z.substr(z.length-m[5].length)==m[5]||(type==&quot;*=&quot;||type==&quot;~=&quot;)&amp;&amp;z.indexOf(m[5])&gt;=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==&quot;:&quot;&amp;&amp;m[2]==&quot;nth-child&quot;){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]==&quot;even&quot;&amp;&amp;&quot;2n&quot;||m[3]==&quot;odd&quot;&amp;&amp;&quot;2n+1&quot;||!/\D/.test(m[3])&amp;&amp;&quot;0n+&quot;+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i&lt;rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&amp;&amp;(node.nodeIndex-last)/first&gt;=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn==&quot;object&quot;){fn=fn[m[2]]}if(typeof fn==&quot;string&quot;){fn=eval(&quot;false||function(a,i){return &quot;+fn+&quot;;}&quot;)}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&amp;&amp;cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&amp;&amp;++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&amp;&amp;n!=elem){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return}if(jQuery.browser.msie&amp;&amp;elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,&quot;events&quot;)||jQuery.data(elem,&quot;events&quot;,{}),handle=jQuery.data(elem,&quot;handle&quot;)||jQuery.data(elem,&quot;handle&quot;,function(){if(typeof jQuery!=&quot;undefined&quot;&amp;&amp;!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(&quot;.&quot;);type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent(&quot;on&quot;+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return}var events=jQuery.data(elem,&quot;events&quot;),ret,index;if(events){if(types==undefined||(typeof types==&quot;string&quot;&amp;&amp;types.charAt(0)==&quot;.&quot;)){for(var type in events){this.remove(elem,type+(types||&quot;&quot;))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(&quot;.&quot;);type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,&quot;handle&quot;),false)}else{if(elem.detachEvent){elem.detachEvent(&quot;on&quot;+type,jQuery.data(elem,&quot;handle&quot;))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,&quot;handle&quot;);if(handle){handle.elem=null}jQuery.removeData(elem,&quot;events&quot;);jQuery.removeData(elem,&quot;handle&quot;)}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf(&quot;!&quot;)&gt;=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery(&quot;*&quot;).add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,&quot;handle&quot;);if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,&quot;a&quot;)&amp;&amp;type==&quot;click&quot;))&amp;&amp;elem[&quot;on&quot;+type]&amp;&amp;elem[&quot;on&quot;+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&amp;&amp;jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&amp;&amp;donative!==false&amp;&amp;val!==false&amp;&amp;!(jQuery.nodeName(elem,&quot;a&quot;)&amp;&amp;type==&quot;click&quot;)){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(&quot;.&quot;);event.type=namespace[0];namespace=namespace[1];all=!namespace&amp;&amp;!event.exclusive;handlers=(jQuery.data(this,&quot;events&quot;)||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var props=&quot;altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which&quot;.split(&quot; &quot;);for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.target.parentNode}if(!event.relatedTarget&amp;&amp;event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&amp;&amp;event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&amp;&amp;doc.scrollLeft||body&amp;&amp;body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&amp;&amp;doc.scrollTop||body&amp;&amp;body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&amp;&amp;((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&amp;&amp;event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&amp;&amp;event.button){event.which=(event.button&amp;1?1:(event.button&amp;2?3:(event.button&amp;4?2:0)))}return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return},teardown:function(){return}},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind(&quot;mouseover&quot;,jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind(&quot;mouseover&quot;,jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type=&quot;mouseenter&quot;;return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind(&quot;mouseout&quot;,jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind(&quot;mouseout&quot;,jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type=&quot;mouseleave&quot;;return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type==&quot;unload&quot;?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&amp;&amp;data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&amp;&amp;data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&amp;&amp;jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i&lt;args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind(&quot;mouseenter&quot;,fnOver).bind(&quot;mouseleave&quot;,fnOut)},ready:function(fn){bindReady();var data=gadgets.views&amp;&amp;gadgets.views.getParams()||{};if(jQuery.isReady){fn.call(document,jQuery,data)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery,data)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler(&quot;ready&quot;)}}});var readyBound=false;function bindReady(){if(readyBound){return}if(window.google&amp;&amp;google.friendconnect){if(!jQuery.container.id){return}}readyBound=true;if(window.google&amp;&amp;google.friendconnect){if(jQuery.container.parentUrl){google.friendconnect.container.setParentUrl(jQuery.container.parentUrl)}google.friendconnect.container.setNoCache(jQuery.container.cache?0:1);google.friendconnect.container.loadOpenSocialApi({site:jQuery.container.id,onload:function(st){jQuery.anonymous=!(document.cookie&amp;&amp;/fcauth[0-9]+=/.test(document.cookie));if(!jQuery.isReady){return jQuery.ready()}jQuery.signList[&quot;&quot;].apply(document)}})}else{gadgets.util.registerOnLoadHandler(jQuery.ready)}}jQuery.extend({invite:function(message){google.friendconnect.requestInvite(message)},settings:function(fn){jQuery.signList[&quot;&quot;]=fn||function(){};google.friendconnect.requestSettings()},anonymous:true,signList:{},signIn:function(provider,fn){if(jQuery.isFunction(provider)){fn=provider;provider=null}if(provider){provider=provider.toUpperCase()}jQuery.signList[&quot;&quot;]=fn||function(){};google.friendconnect.requestSignIn(provider)},signOut:function(fn){jQuery.signList[&quot;&quot;]=fn||function(){};google.friendconnect.requestSignOut()}});jQuery.fn.extend({signIn:function(fn){var guid=now();this.each(function(){if(!this.id){this.id=&quot;signIn&quot;+guid++}var self=jQuery(this);google.friendconnect.renderSignInButton({id:this.id,text:self.text(),style:self.hasClass(&quot;text&quot;)&amp;&amp;&quot;text&quot;||self.hasClass(&quot;long&quot;)&amp;&amp;&quot;long&quot;||&quot;standard&quot;});self.children(&quot;div:first&quot;).click(function(){jQuery.signList[&quot;&quot;]=function(){self.each(fn||function(){})}})})},gadget:function(url,data){var guid=now();this.each(function(){if(!this.id){this.id=&quot;gadget&quot;+guid++}if(jQuery.container.parentUrl){google.friendconnect.container.setParentUrl(jQuery.container.parentUrl)}google.friendconnect.container.setNoCache(jQuery.container.cache?0:1);google.friendconnect.container.renderOpenSocialGadget({id:this.id,url:url,&quot;view-params&quot;:data,site:jQuery.container.id})})}});jQuery.each((&quot;blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error&quot;).split(&quot;,&quot;),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&amp;&amp;parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind(&quot;unload&quot;,function(){jQuery(&quot;*&quot;).add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!=&quot;string&quot;){return this._load(url)}var off=url.indexOf(&quot; &quot;);if(off&gt;=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type=&quot;GET&quot;;if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type=&quot;POST&quot;}}var self=this;jQuery.ajax({url:url,type:type,dataType:&quot;html&quot;,data:params,complete:function(res,status){if(status==&quot;success&quot;||status==&quot;notmodified&quot;){self.html(selector?jQuery(&quot;&lt;div/&gt;&quot;).append(res.responseText.replace(/&lt;script(.|\s)*?\/script&gt;/g,&quot;&quot;)).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,&quot;form&quot;)?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&amp;&amp;!this.disabled&amp;&amp;(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each(&quot;ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend&quot;.split(&quot;,&quot;),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){var off=url.indexOf(&quot; &quot;);if(off&gt;=0){var oauth=url.slice(off+1,url.length);url=url.slice(0,off)}if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:&quot;GET&quot;,url:url,data:data,success:callback,dataType:type,oauth:oauth})},getScript:function(url,callback){return jQuery.get(url,null,callback,&quot;script&quot;)},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,&quot;json&quot;)},getFeed:function(url,data,callback){return jQuery.get(url,data,callback,&quot;feed&quot;)},getData:function(url,data,callback){return jQuery.get(url,data,callback,&quot;data&quot;)},post:function(url,data,callback,type){var off=url.indexOf(&quot; &quot;);if(off&gt;=0){var oauth=url.slice(off+1,url.length);url=url.slice(0,off)}if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:&quot;POST&quot;,url:url,data:data,success:callback,dataType:type,oauth:oauth})},postData:function(url,data,callback){return jQuery.post(url,data,callback,&quot;data&quot;)},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:&quot;GET&quot;,timeout:0,contentType:&quot;application/x-www-form-urlencoded&quot;,processData:true,async:true,data:null,username:null,password:null,accepts:{xml:&quot;application/xml, text/xml&quot;,html:&quot;text/html&quot;,script:&quot;text/javascript, application/javascript&quot;,json:&quot;application/json, text/javascript&quot;,text:&quot;text/plain&quot;,_default:&quot;*/*&quot;}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&amp;|$)/g,status,data,type=s.type.toUpperCase();s.async=true;if(s.dataType==&quot;data&quot;&amp;&amp;type==&quot;POST&quot;){s.processData=false}if(s.data&amp;&amp;s.processData&amp;&amp;typeof s.data!=&quot;string&quot;){s.data=jQuery.param(s.data)}if(s.dataType==&quot;jsonp&quot;){if(type==&quot;GET&quot;){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+(s.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+&quot;&amp;&quot;:&quot;&quot;)+(s.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}s.dataType=&quot;json&quot;}if(s.dataType==&quot;json&quot;&amp;&amp;(s.data&amp;&amp;s.data.match(jsre)||s.url.match(jsre))){jsonp=&quot;jsonp&quot;+jsc++;if(s.data){s.data=(s.data+&quot;&quot;).replace(jsre,&quot;=&quot;+jsonp+&quot;$1&quot;)}s.url=s.url.replace(jsre,&quot;=&quot;+jsonp+&quot;$1&quot;);s.dataType=&quot;script&quot;;window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType==&quot;script&quot;&amp;&amp;s.cache==null){s.cache=false}if(s.cache===false&amp;&amp;type==&quot;GET&quot;){var ts=now();var ret=s.url.replace(/(\?|&amp;)_=.*?(&amp;|$)/,&quot;$1_=&quot;+ts+&quot;$2&quot;);s.url=ret+((ret==s.url)?(s.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+&quot;_=&quot;+ts:&quot;&quot;)}if(s.data&amp;&amp;type==&quot;GET&quot;){s.url+=(s.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+s.data;s.data=null}if(s.global&amp;&amp;!jQuery.active++){jQuery.event.trigger(&quot;ajaxStart&quot;)}if(window.google&amp;&amp;google.friendconnect){var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType==&quot;script&quot;&amp;&amp;type==&quot;GET&quot;&amp;&amp;remote.test(s.url)&amp;&amp;remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName(&quot;head&quot;)[0];var script=document.createElement(&quot;script&quot;);script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&amp;&amp;(!this.readyState||this.readyState==&quot;loaded&quot;||this.readyState==&quot;complete&quot;)){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}}var requestDone=false;var xhr=s.xhr(type,s.url,s);if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data){xhr.setRequestHeader(&quot;Content-Type&quot;,s.contentType)}if(s.ifModified){xhr.setRequestHeader(&quot;If-Modified-Since&quot;,jQuery.lastModified[s.url]||&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;)}xhr.setRequestHeader(&quot;X-Requested-With&quot;,&quot;XMLHttpRequest&quot;);xhr.setRequestHeader(&quot;Accept&quot;,s.dataType&amp;&amp;s.accepts[s.dataType]?s.accepts[s.dataType]+&quot;, */*&quot;:s.accepts._default)}catch(e){}if(s.beforeSend&amp;&amp;s.beforeSend(xhr,s)===false){s.global&amp;&amp;jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger(&quot;ajaxSend&quot;,[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&amp;&amp;xhr&amp;&amp;(xhr.readyState==4||isTimeout==&quot;timeout&quot;)){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout==&quot;timeout&quot;&amp;&amp;&quot;timeout&quot;||!jQuery.httpSuccess(xhr)&amp;&amp;&quot;error&quot;||s.ifModified&amp;&amp;jQuery.httpNotModified(xhr,s.url)&amp;&amp;&quot;notmodified&quot;||&quot;success&quot;;if(status==&quot;success&quot;){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status=&quot;parsererror&quot;}}if(status==&quot;success&quot;){var modRes;try{modRes=xhr.getResponseHeader(&quot;Last-Modified&quot;)}catch(e){}if(s.ifModified&amp;&amp;modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout&gt;0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange(&quot;timeout&quot;)}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger(&quot;ajaxSuccess&quot;,[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger(&quot;ajaxComplete&quot;,[xhr,s])}if(s.global&amp;&amp;!--jQuery.active){jQuery.event.trigger(&quot;ajaxStop&quot;)}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.event.trigger(&quot;ajaxError&quot;,[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&amp;&amp;location.protocol==&quot;file:&quot;||(xhr.status&gt;=200&amp;&amp;xhr.status&lt;300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&amp;&amp;xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader(&quot;Last-Modified&quot;);return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&amp;&amp;xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader(&quot;content-type&quot;),xml=type==&quot;xml&quot;||!type&amp;&amp;ct&amp;&amp;ct.indexOf(&quot;xml&quot;)&gt;=0,data=xml&amp;&amp;xhr.responseXML||type===&quot;feed&quot;&amp;&amp;xhr.responseFeed||type===&quot;data&quot;&amp;&amp;xhr.responseData||xhr.responseText;if(xml&amp;&amp;data.documentElement.tagName==&quot;parsererror&quot;){throw&quot;parsererror&quot;}if(type===&quot;feed&quot;&amp;&amp;!data){throw&quot;parsererror&quot;}if(filter){data=filter(data,type)}if(type==&quot;script&quot;){jQuery.globalEval(data)}if(type==&quot;json&quot;){data=eval(&quot;(&quot;+data+&quot;)&quot;)}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+&quot;=&quot;+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&amp;&amp;a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+&quot;=&quot;+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+&quot;=&quot;+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]))}}}return s.join(&quot;&amp;&quot;).replace(/%20/g,&quot;+&quot;)}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:&quot;show&quot;,width:&quot;show&quot;,opacity:&quot;show&quot;},speed,callback):this.filter(&quot;:hidden&quot;).each(function(){this.style.display=this.oldblock||&quot;&quot;;if(jQuery.css(this,&quot;display&quot;)==&quot;none&quot;){var elem=jQuery(&quot;&lt;&quot;+this.tagName+&quot; /&gt;&quot;).appendTo(&quot;body&quot;);this.style.display=elem.css(&quot;display&quot;);if(this.style.display==&quot;none&quot;){this.style.display=&quot;block&quot;}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:&quot;hide&quot;,width:&quot;hide&quot;,opacity:&quot;hide&quot;},speed,callback):this.filter(&quot;:visible&quot;).each(function(){this.oldblock=this.oldblock||jQuery.css(this,&quot;display&quot;);this.style.display=&quot;none&quot;}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&amp;&amp;jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:&quot;toggle&quot;,width:&quot;toggle&quot;,opacity:&quot;toggle&quot;},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(&quot;:hidden&quot;)?&quot;show&quot;:&quot;hide&quot;]()})},slideDown:function(speed,callback){return this.animate({height:&quot;show&quot;},speed,callback)},slideUp:function(speed,callback){return this.animate({height:&quot;hide&quot;},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:&quot;toggle&quot;},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:&quot;show&quot;},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:&quot;hide&quot;},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?&quot;each&quot;:&quot;queue&quot;](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(&quot;:hidden&quot;),self=this;for(p in prop){if(prop[p]==&quot;hide&quot;&amp;&amp;hidden||prop[p]==&quot;show&quot;&amp;&amp;!hidden){return opt.complete.call(this)}if(p==&quot;height&quot;||p==&quot;width&quot;){opt.display=jQuery.css(this,&quot;display&quot;);opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow=&quot;hidden&quot;}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val==&quot;toggle&quot;?hidden?&quot;show&quot;:&quot;hide&quot;:val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||&quot;px&quot;;if(unit!=&quot;px&quot;){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]==&quot;-=&quot;?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,&quot;&quot;)}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&amp;&amp;type.constructor==Array)){fn=type;type=&quot;fx&quot;}if(!type||(typeof type==&quot;string&quot;&amp;&amp;!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i&gt;=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||&quot;fx&quot;;var q=jQuery.data(elem,type+&quot;queue&quot;);if(!q||array){q=jQuery.data(elem,type+&quot;queue&quot;,jQuery.makeArray(array))}}return q};jQuery.fn.dequeue=function(type){type=type||&quot;fx&quot;;return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&amp;&amp;speed.constructor==Object?speed:{complete:fn||!fn&amp;&amp;easing||jQuery.isFunction(speed)&amp;&amp;speed,duration:speed,easing:fn&amp;&amp;easing||easing&amp;&amp;easing.constructor!=Function&amp;&amp;easing};opt.duration=(opt.duration&amp;&amp;opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop==&quot;height&quot;||this.prop==&quot;width&quot;){this.elem.style.display=&quot;block&quot;}},cur:function(force){if(this.elem[this.prop]!=null&amp;&amp;this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&amp;&amp;r&gt;-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||&quot;px&quot;;this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i&lt;timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop==&quot;width&quot;||this.prop==&quot;height&quot;){this.elem.style[this.prop]=&quot;1px&quot;}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now();if(gotoEnd||t&gt;this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,&quot;display&quot;)==&quot;none&quot;){this.elem.style.display=&quot;block&quot;}}if(this.options.hide){this.elem.style.display=&quot;none&quot;}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done){this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?&quot;swing&quot;:&quot;linear&quot;)](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,&quot;opacity&quot;,fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&amp;&amp;parseInt(version)&lt;522&amp;&amp;!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,&quot;position&quot;)==&quot;fixed&quot;;if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&amp;&amp;!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&amp;&amp;!safari2){border(offsetParent)}if(!fixed&amp;&amp;css(offsetParent,&quot;position&quot;)==&quot;fixed&quot;){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&amp;&amp;parent.tagName&amp;&amp;!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,&quot;display&quot;))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&amp;&amp;css(parent,&quot;overflow&quot;)!=&quot;visible&quot;){border(parent)}parent=parent.parentNode}if((safari2&amp;&amp;(fixed||css(offsetChild,&quot;position&quot;)==&quot;absolute&quot;))||(mozilla&amp;&amp;css(offsetChild,&quot;position&quot;)!=&quot;absolute&quot;)){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,&quot;borderLeftWidth&quot;,true),jQuery.curCSS(elem,&quot;borderTopWidth&quot;,true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,&quot;marginTop&quot;);offset.left-=num(this,&quot;marginLeft&quot;);parentOffset.top+=num(offsetParent,&quot;borderTopWidth&quot;);parentOffset.left+=num(offsetParent,&quot;borderLeftWidth&quot;);results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&amp;&amp;(!/^body|html$/i.test(offsetParent.tagName)&amp;&amp;jQuery.css(offsetParent,&quot;position&quot;)==&quot;static&quot;)){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each([&quot;Left&quot;,&quot;Top&quot;],function(i,name){var method=&quot;scroll&quot;+name;jQuery.fn[method]=function(val){if(!this[0]){return}return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?&quot;pageYOffset&quot;:&quot;pageXOffset&quot;]||jQuery.boxModel&amp;&amp;document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each([&quot;Height&quot;,&quot;Width&quot;],function(i,name){var tl=i?&quot;Left&quot;:&quot;Top&quot;,br=i?&quot;Right&quot;:&quot;Bottom&quot;;jQuery.fn[&quot;inner&quot;+name]=function(){return this[name.toLowerCase()]()+num(this,&quot;padding&quot;+tl)+num(this,&quot;padding&quot;+br)};jQuery.fn[&quot;outer&quot;+name]=function(margin){return this[&quot;inner&quot;+name]()+num(this,&quot;border&quot;+tl+&quot;Width&quot;)+num(this,&quot;border&quot;+br+&quot;Width&quot;)+(margin?num(this,&quot;margin&quot;+tl)+num(this,&quot;margin&quot;+br):0)}})})();(function(b){function a(){return(this instanceof a)?this.init():new a()}a.prototype={init:function(){this._next=null;this.callback={ok:function(c){return c},ng:function(c){throw c}};return this},next:function(c){return this._post(&quot;ok&quot;,c)},error:function(c){return this._post(&quot;ng&quot;,c)},call:function(c){return this._fire(&quot;ok&quot;,c)},fail:function(c){return this._fire(&quot;ng&quot;,c)},cancel:function(){(this.canceller||function(){})();return this.init()},_post:function(d,c){this._next=new a();this._next.callback[d]=c;return this._next},_fire:function(c,f){var d=&quot;ok&quot;;try{f=this.callback[c].call(this,f)}catch(g){d=&quot;ng&quot;;f=g}if(f instanceof a){f._next=this._next}else{if(this._next){this._next._fire(d,f)}}return this}};a.parallel=function(f){var e=new a(),c={},d=0;for(var g in f){if(f.hasOwnProperty(g)){(function(j,h){j.next(function(i){c[h]=i;if(--d&lt;=0){if(f instanceof Array){c.length=f.length;c=Array.prototype.slice.call(c,0)}e.call(c)}}).error(function(i){e.fail(i)});d++})(f[g],g)}}if(!d){a.next(function(){e.call()})}e.canceller=function(){for(var h in f){if(f.hasOwnProperty(h)){f[h].cancel()}}};return e};a.wait=function(g){var e=new a(),c=new Date();var f=setTimeout(function(){clearTimeout(f);e.call((new Date).getTime()-c.getTime())},g*1000);e.canceller=function(){try{clearTimeout(f)}catch(d){}};return e};a.next=function(c){var e=new a();var f=setTimeout(function(){clearTimeout(f);e.call()},0);if(c){e.callback.ok=c}e.canceller=function(){try{clearTimeout(f)}catch(d){}};return e};a.call=function(d,c){c=Array.prototype.slice.call(arguments);d=c.shift();return a.next(function(){return d.apply(this,c)})};a.register=function(d,c){this.prototype[d]=function(){return this.next(a.wrap(c).apply(null,arguments))}};a.wrap=function(c){return function(){var d=arguments;return function(){return c.apply(null,d)}}};a.register(&quot;wait&quot;,a.wait);b.deferred=function(){return new a()};b.each([&quot;parallel&quot;,&quot;wait&quot;,&quot;next&quot;,&quot;call&quot;],function(){b[this]=a[this]});b._ajax=b.ajax;b.ajax=function(d){var c=new a();b._ajax(b.extend(true,{},d,{success:function(e,f){if(d.success){d.success.apply(this,arguments)}c.call(e)},error:function(h,f,g){if(d.error){d.error.apply(this,arguments)}c.fail(f||g)}}));return c};b.each([&quot;ajax&quot;,&quot;get&quot;,&quot;getJSON&quot;,&quot;getFeed&quot;,&quot;getData&quot;,&quot;post&quot;,&quot;postData&quot;],function(){a.register(this,b[this])})})(jQuery);(function(g){var h=gadgets.util.getUrlParameters();var f=h.synd||h.container||&quot;&quot;;var e=h.parent||&quot;&quot;;var b=h.v||&quot;&quot;;var d=h.nocache||&quot;0&quot;;g.container={igoogle:/ig/.test(f),orkut:/orkut/.test(f),hi5:/hi5/.test(f),myspace:/msappspace/.test(location.host),goohome:/goohome/.test(f),friendconnect:/peoplesense/.test(f),mixi:/mixi/.test(location.host),sandbox:/sandbox/.test(f)||/sandbox/.test(e)||/sandbox/.test(location.host)||/msappspace/.test(location.host)&amp;&amp;/dev/.test(b),cache:d!=&quot;1&quot;};for(var c in g.container){if(g.container[c]){g(&quot;html&quot;).addClass(c)}}g.feature=function(i){return gadgets.util.getFeatureParameters(i)};g.pref=function(j,l){var i=new gadgets.Prefs();var k=j;if(j.constructor===String){if(l===undefined){return h[j]||gadgets.util.unescapeString(i.getString(j))}else{k={};k[j]=l}}for(j in k){l=k[j];if(l.constructor===Array){l=g.map(l,function(m){return(m+&quot;&quot;).replace(/\|/g,&quot;%7C&quot;)}).join(&quot;|&quot;)}i.set(j,l+&quot;&quot;)}};g.prefArray=function(i){var j=g.pref(i);if(j===&quot;&quot;){return[]}return g.map(j.split(&quot;|&quot;),function(k){return k.replace(/%7C/g,&quot;|&quot;)})};g.msg=function(i){return new gadgets.Prefs().getMsg(i)};g.fn.title=function(i){if(this[0]===window){gadgets.window.setTitle(gadgets.util.escapeString(i))}return this};g.fn.adjustHeight=function(i){if(this[0]===window){setTimeout(function(){gadgets.window.adjustHeight(i)},0)}return this};g.fn._height=g.fn.height;g.fn.height=function(i){return this[0]===window&amp;&amp;i!==undefined?this.adjustHeight(i):this._height(i)};g.view=function(k,m){if(k===undefined){return gadgets.views.getCurrentView().getName()}var j=gadgets.views.getSupportedViews();for(var l in j){var i=j[l];if(i.getName()===k){return gadgets.views.requestNavigateTo(i,m||{})}}};g.views=function(){var l=[];var i=gadgets.views.getSupportedViews();for(var k in i){var j=i[k].getName();if(jQuery.inArray(j,l)===-1){l.push(j)}}return l};if(gadgets.flash){var a=gadgets.flash.getMajorVersion();if(a){g.flash={version:a};g.fn.flash=function(i,l){l=g.extend(true,{},l);for(var j in l){if(j.toLowerCase()==&quot;flashvars&quot;&amp;&amp;l[j]&amp;&amp;typeof(l[j])!=&quot;string&quot;){l[j]=jQuery.param(l[j])}}var k=g.container.cache?&quot;embedCachedFlash&quot;:&quot;embedFlash&quot;;return this.each(function(){gadgets.flash[k](i,this,g.flash.version,l)})}}}if(gadgets.MiniMessage){g.fn.minimessage=function(i){return this.each(function(j,k){if(k.parentNode){k.parentNode.removeChild(k)}new gadgets.MiniMessage().createDismissibleMessage(k,function(){return(i||function(){}).apply(k)!==false})})}}if(gadgets.TabSet){g.fn.tabs=function(i){return this.each(function(){var j=new gadgets.TabSet(null,null,this);j.alignTabs(&quot;left&quot;);g(&quot;ul&quot;,this).find(&quot;li a&quot;).each(function(k){var l=g(&quot;#&quot;+this.href.split(&quot;#&quot;)[1]).get(0);j.addTab(g(this).html(),{tooltip:this.title,contentContainer:l,callback:function(){if(i){i.apply(l,[k,l])}}})}).end().remove()})}}if(gadgets.pubsub){g.pub=function(i,j){gadgets.pubsub.publish(i,j)};g.sub=function(j,i){gadgets.pubsub.subscribe(j,i)}}if(gadgets.skins){}})(jQuery);(function(b){b._xhr=function(){this.initialize.apply(this,arguments)};b._xhr.prototype={initialize:function(c){this.readyState=0;this.s=c},open:function(f,d,e,g,c){this.readyState=1;this.type=f;this.url=d;this.requestHeaders={};this.responseHeaders={}},send:function(h){var e=this;var f=e.url;var c=e.s.oauth;var d=e.s.dataType;var g=[];g[gadgets.io.RequestParameters.METHOD]=e.type;g[gadgets.io.RequestParameters.HEADERS]=e.requestHeaders;g[gadgets.io.RequestParameters.CONTENT_TYPE]=d===&quot;xml&quot;&amp;&amp;gadgets.io.ContentType.DOM||d===&quot;feed&quot;&amp;&amp;gadgets.io.ContentType.FEED||gadgets.io.ContentType.TEXT;if(h){g[gadgets.io.RequestParameters.POST_DATA]=h}if(c==&quot;signed&quot;){g[gadgets.io.RequestParameters.AUTHORIZATION]=gadgets.io.AuthorizationType.SIGNED}if(d==&quot;feed&quot;){g.NUM_ENTRIES=10}if(!b.container.cache){g[gadgets.io.RequestParameters.REFRESH_INTERVAL]=1}gadgets.io.makeRequest(f,function(i){e.readyState=4;if(b.container.myspace){if(i.errorCode){e.status=400;e.responseText=i.errorMessage}else{e.status=200;e.responseHeaders={};e.responseText=i.text;if(d==&quot;xml&quot;){e.responseXML=i.data}else{if(d==&quot;feed&quot;){i.data.URL=e.url;i.data.Link=i.data.link;i.data.Description=i.data.description;i.data.Author=&quot;&quot;;i.data.Entry=b.map(i.data.items,function(j){j.Link=j.link;j.Title=j.title;j.Date=new Date(j.pubDate).getTime();return j});e.responseFeed=i.data}}}}else{if(i.errors.length&gt;0){e.status=400;e.responseText=i.errors.join(&quot; &quot;)}else{e.status=i.rc||200;e.responseHeaders=i.headers||{};e.responseText=i.text;if(d==&quot;xml&quot;){e.responseXML=i.data}else{if(d==&quot;feed&quot;){if(i.data){b.each(i.data.Entry,function(j,k){if(k.Date&lt;Math.pow(2,32)){k.Date*=1000}})}e.responseFeed=i.data}}}}},g)},abort:function(){this.readyState=0},setRequestHeader:function(d,c){this.requestHeaders[d]=c},getResponseHeader:function(c){return this.responseHeaders[c]}};var a=[];b.ajaxSettings.xhr=function(e,c,d){for(route in a){if((e+&quot; &quot;+c).indexOf(route)==0){return new a[route]}}if(!(window.google&amp;&amp;google.friendconnect)){var f=/^(?:\w+:)?\/\/([^\/?#]+)/;if(f.test(c)&amp;&amp;f.exec(c)[1]!=location.host){return new b._xhr(d)}}return window.ActiveXObject?new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;):new XMLHttpRequest()};b.ajaxSettings.xhr.addRoute=function(d,c,e){a[d+&quot; &quot;+c]=e};b.proxy=function(c){var d={};if(!b.container.cache){d[gadgets.io.RequestParameters.REFRESH_INTERVAL]=1}return gadgets.io.getProxyUrl(c,d)}})(jQuery);(function(h){if(window.opensocial===undefined){return}if(opensocial){h(function(){h.container.domain=opensocial.getEnvironment().getDomain()})}var b={&quot;@me&quot;:&quot;VIEWER&quot;,&quot;@viewer&quot;:&quot;VIEWER&quot;,&quot;@owner&quot;:&quot;OWNER&quot;,&quot;@self&quot;:&quot;SELF&quot;,&quot;@friends&quot;:&quot;FRIENDS&quot;,&quot;@admins&quot;:&quot;ADMINS&quot;,&quot;@all&quot;:&quot;ALL&quot;,&quot;@me/@friends&quot;:&quot;VIEWER_FRIENDS&quot;,&quot;@viewer/@friends&quot;:&quot;VIEWER_FRIENDS&quot;,&quot;@owner/@friends&quot;:&quot;OWNER_FRIENDS&quot;};var d={&quot;@all&quot;:&quot;all&quot;,&quot;@app&quot;:&quot;hasApp&quot;};var e={ok:200,notImplemented:501,unauthorized:401,forbidden:403,badRequest:400,internalError:500,limitExceeded:417};var a=function(j){var i={},k=&quot;&quot;;var m=j.indexOf(&quot;?&quot;);if(m!=-1){k=j.substring(m+1);j=j.substring(0,m)}var j=j.split(&quot;/&quot;);if(j[2]){i.userId=j[2]}if(j[3]){i.groupId=j[3]}if(j[4]){i.appId=j[4]}var k=k.split(&quot;&amp;&quot;);var l={};h.each(k,function(o,q){var n=q.replace(/\+/g,&quot; &quot;),p=&quot;&quot;;var r=n.indexOf(&quot;=&quot;);if(r!=-1){p=n.substring(r+1);n=n.substring(0,r)}l[decodeURIComponent(n)]=decodeURIComponent(p)});if(l.fields){i.fields=l.fields.split(&quot;,&quot;);i.fields=h.grep(i.fields,function(n){return n!=&quot;&quot;})}if(l.startIndex){i.startIndex=parseInt(l.startIndex,10)}if(l.count){i.count=parseInt(l.count,10)}if(l.sortBy){i.sortBy=l.sortBy}if(l.filterBy){i.filterBy=l.filterBy}if(l.networkDistance){i.networkDistance=parseInt(l.networkDistance,10)}return i};var g=function(m){var k=m.userId||&quot;@me&quot;;k=b[k]||k;var j=m.groupId||&quot;@self&quot;;j=b[j]||j;var l=m.networkDistance;var n=k+(j==b[&quot;@self&quot;]?&quot;&quot;:&quot;_&quot;+j);var i=opensocial.newIdSpec({userId:k,groupId:j,networkDistance:l});i.userId=k;i.groupId=j;i.networkDistance=l;i.id=n;i.self=j==b[&quot;@self&quot;];return i};var f=function(j){var i={};if(j&amp;&amp;j.fields_){for(key in j.fields_){i[key]=f(j.fields_[key])}}else{if(j&amp;&amp;j.constructor===Array){i=h.map(j,function(k){return f(k)})}else{i=j}}return i};var c=function(k){if(!k.hadError()){return false}var i;var m;var l=k.getErrorMessage();var j=k.responseItems_;h.each(j,function(n,o){if(o.hadError()){i=e[o.getErrorCode()];m=o.getErrorCode();l=o.getErrorMessage()}});return{status:i||e.internalError,statusText:m||&quot;internalError&quot;,reason:l||&quot;&quot;}};h._xhr.getPeople=function(){this.initialize()};h.extend(h._xhr.getPeople.prototype,h._xhr.prototype,{send:function(m){var i=this,l=a(i.url);var j=g(l);var n={first:l.startIndex||0,max:l.count||20};if(l.appId){n.filter=d[l.appId]||l.appId}if(l.fields){n.profileDetail=l.fields}if(l.sortBy){n.sortOrder=l.sortBy}if(l.filterBy){n.filter=l.filterBy}if(h.container.myspace){n.first++}if(j.self){var k=opensocial.newDataRequest();k.add(k.newFetchPersonRequest(j.id,n),&quot;data&quot;);k.send(function(p){i.readyState=4;var o=c(p);if(o){i.status=o.status;i.statusText=o.statusText;i.responseText=o.reason}else{var r=p.get(&quot;data&quot;);var q=[f(r.getData())];q.startIndex=n.first;q.itemsPerPage=n.max;q.totalResults=q.length;if(h.container.myspace){q.startIndex--}i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=q}})}else{var k=opensocial.newDataRequest();k.add(k.newFetchPeopleRequest(j,n),&quot;data&quot;);k.send(function(p){i.readyState=4;var o=c(p);if(o){i.status=o.status;i.statusText=o.statusText;i.responseText=o.reason}else{var r=p.get(&quot;data&quot;);var s=r.getData();var q=h.map(s.asArray(),function(t){return f(t)});q.startIndex=n.first;q.itemsPerPage=n.max;q.totalResults=s.getTotalSize();if(h.container.myspace){q.startIndex--}i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=q}})}}});h.ajaxSettings.xhr.addRoute(&quot;GET&quot;,&quot;/people/&quot;,h._xhr.getPeople);h._xhr.getAppData=function(){this.initialize()};h.extend(h._xhr.getAppData.prototype,h._xhr.prototype,{send:function(n){var i=this,m=a(i.url);var j=g(m);var l=m.fields||[];var o={escapeType:&quot;none&quot;};if(h.container.myspace){if(l.length==0){l=&quot;*&quot;}}var k=opensocial.newDataRequest();k.add(k.newFetchPersonAppDataRequest(j,l,o),&quot;data&quot;);k.send(function(q){i.readyState=4;var p=c(q);if(p){i.status=p.status;i.statusText=p.statusText;i.responseText=p.reason}else{var r=q.get(&quot;data&quot;);var t=r.getData();for(userId in t){var s=t[userId];if(!h.container.myspace){for(key in s){s[key]=gadgets.json.parse(s[key])}}}i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=t}})}});h.ajaxSettings.xhr.addRoute(&quot;GET&quot;,&quot;/appdata/&quot;,h._xhr.getAppData);h._xhr.postAppData=function(){this.initialize()};h.extend(h._xhr.postAppData.prototype,h._xhr.prototype,{send:function(n){var i=this,m=a(i.url);var j=g(m);var l=m.fields||[];if(l.length==0){for(key in n){l.push(key)}}var k=opensocial.newDataRequest();h.each(l,function(p,o){k.add(k.newUpdatePersonAppDataRequest(j.id,o,gadgets.json.stringify(n[o])),o)});k.send(function(p){i.readyState=4;var o=c(p);if(o){i.status=o.status;i.statusText=o.statusText;i.responseText=o.reason}else{i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData={}}})}});h.ajaxSettings.xhr.addRoute(&quot;POST&quot;,&quot;/appdata/&quot;,h._xhr.postAppData);if(opensocial){h._xhr.getActivity=function(){this.initialize()};h.extend(h._xhr.getActivity.prototype,h._xhr.prototype,{send:function(m){var i=this,l=a(i.url);var j=g(l);var k=opensocial.newDataRequest();k.add(k.newFetchActivitiesRequest(j),&quot;data&quot;);k.send(function(o){i.readyState=4;var n=c(o);if(n){i.status=n.status;i.statusText=n.statusText;i.responseText=n.reason}else{var p=o.get(&quot;data&quot;);var r=p.getData();var q=h.map(r.asArray(),function(s){return f(s)});q.startIndex=0;q.itemsPerPage=20;q.totalResults=r.getTotalSize();i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=q}})}});h.ajaxSettings.xhr.addRoute(&quot;GET&quot;,&quot;/activities/&quot;,h._xhr.getActivity)}if(opensocial){h._xhr.postActivity=function(){this.initialize()};h.extend(h._xhr.postActivity.prototype,h._xhr.prototype,{send:function(j){var i=this;j.mediaItems=h.map(j.mediaItems||[],function(k){return opensocial.newMediaItem(k[opensocial.MediaItem.Field.MIME_TYPE],k[opensocial.MediaItem.Field.URL],k)});opensocial.requestCreateActivity(opensocial.newActivity(j),opensocial.CreateActivityPriority.HIGH,function(l){i.readyState=4;var k=c(new opensocial.DataResponse({data:l},l.hadError()));if(k){i.status=k.status;i.statusText=k.statusText;i.responseText=k.reason}else{i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=l.getData()||{}}})}});h.ajaxSettings.xhr.addRoute(&quot;POST&quot;,&quot;/activities/&quot;,h._xhr.postActivity)}if(opensocial){h._xhr.postMessage=function(){this.initialize()};h.extend(h._xhr.postMessage.prototype,h._xhr.prototype,{send:function(l){var j=this;var i=l.recipients;if(typeof(i)==&quot;string&quot;){i=i.split(&quot;,&quot;)}i=h.map(i,function(m){return b[m]||m});if(i.length&lt;=1){i=i[0]}var k=opensocial.newMessage(l[opensocial.Message.Field.BODY],l);opensocial.requestSendMessage(i,k,function(n){j.readyState=4;var m=c(new opensocial.DataResponse({data:n},n.hadError()));if(m){j.status=m.status;j.statusText=m.statusText;j.responseText=m.reason}else{j.status=e.ok;j.statusText=&quot;ok&quot;;j.responseData=n.getData()||{}}})}});h.ajaxSettings.xhr.addRoute(&quot;POST&quot;,&quot;/messages/&quot;,h._xhr.postMessage)}})(jQuery);
\ No newline at end of file
+(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^&lt;]*(&lt;(.|\s)+&gt;)[^&gt;]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector==&quot;string&quot;){var match=quickExpr.exec(selector);if(match&amp;&amp;(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?&quot;ready&quot;:&quot;load&quot;](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:&quot;1.2.6&quot;,size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&amp;&amp;elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&amp;&amp;jQuery[type||&quot;attr&quot;](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key==&quot;width&quot;||key==&quot;height&quot;)&amp;&amp;parseFloat(value)&lt;0){value=undefined}return this.attr(key,value,&quot;curCSS&quot;)},text:function(text){if(typeof text!=&quot;object&quot;&amp;&amp;text!=null){return this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||document).createTextNode(text))}var ret=&quot;&quot;;jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+&gt;] [^+&gt;]/.test(selector)||selector.indexOf(&quot;..&quot;)&gt;-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&amp;&amp;!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement(&quot;div&quot;);container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find(&quot;*&quot;).andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find(&quot;*&quot;).andSelf().each(function(i){if(this.nodeType==3){return}var events=jQuery.data(this,&quot;events&quot;);for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&amp;&amp;jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&amp;&amp;selector[selector.length-1]!==undefined&amp;&amp;!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)&lt;0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector==&quot;string&quot;?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&amp;&amp;jQuery.multiFilter(selector,this).length&gt;0},hasClass:function(selector){return this.is(&quot;.&quot;+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,&quot;select&quot;)){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type==&quot;select-one&quot;;if(index&lt;0){return null}for(var i=one?index:0,max=one?index+1:options.length;i&lt;max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&amp;&amp;!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||&quot;&quot;).replace(/\r/g,&quot;&quot;)}}return undefined}if(value.constructor==Number){value+=&quot;&quot;}return this.each(function(){if(this.nodeType!=1){return}if(value.constructor==Array&amp;&amp;/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)&gt;=0||jQuery.inArray(this.name,value)&gt;=0)}else{if(jQuery.nodeName(this,&quot;select&quot;)){var values=jQuery.makeArray(value);jQuery(&quot;option&quot;,this).each(function(){this.selected=(jQuery.inArray(this.value,values)&gt;=0||jQuery.inArray(this.text,values)&gt;=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(&quot;.&quot;);parts[1]=parts[1]?&quot;.&quot;+parts[1]:&quot;&quot;;if(value===undefined){var data=this.triggerHandler(&quot;getData&quot;+parts[1]+&quot;!&quot;,[parts[0]]);if(data===undefined&amp;&amp;this.length){data=jQuery.data(this[0],key)}return data===undefined&amp;&amp;parts[1]?this.data(parts[0]):data}else{return this.trigger(&quot;setData&quot;+parts[1]+&quot;!&quot;,[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length&gt;1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&amp;&amp;jQuery.nodeName(this,&quot;table&quot;)&amp;&amp;jQuery.nodeName(elems[0],&quot;tr&quot;)){obj=this.getElementsByTagName(&quot;tbody&quot;)[0]||this.appendChild(this.ownerDocument.createElement(&quot;tbody&quot;))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,&quot;script&quot;)){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery(&quot;script&quot;,elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:&quot;script&quot;})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||&quot;&quot;)}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!=&quot;object&quot;&amp;&amp;typeof target!=&quot;function&quot;){target={}}if(length==i){target=this;--i}for(;i&lt;length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&amp;&amp;copy&amp;&amp;typeof copy==&quot;object&quot;&amp;&amp;!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando=&quot;jQuery&quot;+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&amp;&amp;typeof fn!=&quot;string&quot;&amp;&amp;!fn.nodeName&amp;&amp;fn.constructor!=Array&amp;&amp;/^[\s[]?function/.test(fn+&quot;&quot;)},isXMLDoc:function(elem){return elem.documentElement&amp;&amp;!elem.body||elem.tagName&amp;&amp;elem.ownerDocument&amp;&amp;!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName(&quot;head&quot;)[0]||document.documentElement,script=document.createElement(&quot;script&quot;);script.type=&quot;text/javascript&quot;;if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&amp;&amp;elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&amp;&amp;!jQuery.cache[id]){jQuery.cache[id]={}}if(data!==undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name=&quot;&quot;;for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i&lt;length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i&lt;length&amp;&amp;callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&amp;&amp;value.constructor==Number&amp;&amp;type==&quot;curCSS&quot;&amp;&amp;!exclude.test(name)?value+&quot;px&quot;:value},className:{add:function(elem,classNames){jQuery.each((classNames||&quot;&quot;).split(/\s+/),function(i,className){if(elem.nodeType==1&amp;&amp;!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?&quot; &quot;:&quot;&quot;)+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(&quot; &quot;):&quot;&quot;}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))&gt;-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name==&quot;width&quot;||name==&quot;height&quot;){var val,props={position:&quot;absolute&quot;,visibility:&quot;hidden&quot;,display:&quot;block&quot;},which=name==&quot;width&quot;?[&quot;Left&quot;,&quot;Right&quot;]:[&quot;Top&quot;,&quot;Bottom&quot;];function getWH(){val=name==&quot;width&quot;?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,&quot;padding&quot;+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,&quot;border&quot;+this+&quot;Width&quot;,true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(&quot;:visible&quot;)){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue(&quot;color&quot;)==&quot;&quot;}if(name==&quot;opacity&quot;&amp;&amp;jQuery.browser.msie){ret=jQuery.attr(style,&quot;opacity&quot;);return ret==&quot;&quot;?&quot;1&quot;:ret}if(jQuery.browser.opera&amp;&amp;name==&quot;display&quot;){var save=style.outline;style.outline=&quot;0 solid black&quot;;style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&amp;&amp;style&amp;&amp;style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name=&quot;float&quot;}name=name.replace(/([A-Z])/g,&quot;-$1&quot;).toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&amp;&amp;!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&amp;&amp;color(a);a=a.parentNode){stack.unshift(a)}for(;i&lt;stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display=&quot;block&quot;}}ret=name==&quot;display&quot;&amp;&amp;swap[stack.length-1]!=null?&quot;none&quot;:(computedStyle&amp;&amp;computedStyle.getPropertyValue(name))||&quot;&quot;;for(i=0;i&lt;swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name==&quot;opacity&quot;&amp;&amp;ret==&quot;&quot;){ret=&quot;1&quot;}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&amp;&amp;/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+&quot;px&quot;;style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement==&quot;undefined&quot;){context=context.ownerDocument||context[0]&amp;&amp;context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return}if(elem.constructor==Number){elem+=&quot;&quot;}if(typeof elem==&quot;string&quot;){elem=elem.replace(/(&lt;(\w+)[^&gt;]*?)\/&gt;/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+&quot;&gt;&lt;/&quot;+tag+&quot;&gt;&quot;});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement(&quot;div&quot;);var wrap=!tags.indexOf(&quot;&lt;opt&quot;)&amp;&amp;[1,&quot;&lt;select multiple='multiple'&gt;&quot;,&quot;&lt;/select&gt;&quot;]||!tags.indexOf(&quot;&lt;leg&quot;)&amp;&amp;[1,&quot;&lt;fieldset&gt;&quot;,&quot;&lt;/fieldset&gt;&quot;]||tags.match(/^&lt;(thead|tbody|tfoot|colg|cap)/)&amp;&amp;[1,&quot;&lt;table&gt;&quot;,&quot;&lt;/table&gt;&quot;]||!tags.indexOf(&quot;&lt;tr&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&quot;,&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;]||(!tags.indexOf(&quot;&lt;td&quot;)||!tags.indexOf(&quot;&lt;th&quot;))&amp;&amp;[3,&quot;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&quot;,&quot;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&quot;]||!tags.indexOf(&quot;&lt;col&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;&quot;,&quot;&lt;/colgroup&gt;&lt;/table&gt;&quot;]||jQuery.browser.msie&amp;&amp;[1,&quot;div&lt;div&gt;&quot;,&quot;&lt;/div&gt;&quot;]||[0,&quot;&quot;,&quot;&quot;];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf(&quot;&lt;table&quot;)&amp;&amp;tags.indexOf(&quot;&lt;tbody&quot;)&lt;0?div.firstChild&amp;&amp;div.firstChild.childNodes:wrap[1]==&quot;&lt;table&gt;&quot;&amp;&amp;tags.indexOf(&quot;&lt;tbody&quot;)&lt;0?div.childNodes:[];for(var j=tbody.length-1;j&gt;=0;--j){if(jQuery.nodeName(tbody[j],&quot;tbody&quot;)&amp;&amp;!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&amp;&amp;(!jQuery.nodeName(elem,&quot;form&quot;)&amp;&amp;!jQuery.nodeName(elem,&quot;select&quot;))){return}if(elem[0]==undefined||jQuery.nodeName(elem,&quot;form&quot;)||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&amp;&amp;jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name==&quot;selected&quot;&amp;&amp;jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&amp;&amp;notxml&amp;&amp;!special){if(set){if(name==&quot;type&quot;&amp;&amp;jQuery.nodeName(elem,&quot;input&quot;)&amp;&amp;elem.parentNode){throw&quot;type property can't be changed&quot;}elem[name]=value}if(jQuery.nodeName(elem,&quot;form&quot;)&amp;&amp;elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&amp;&amp;notxml&amp;&amp;name==&quot;style&quot;){return jQuery.attr(elem.style,&quot;cssText&quot;,value)}if(set){elem.setAttribute(name,&quot;&quot;+value)}var attr=msie&amp;&amp;notxml&amp;&amp;special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&amp;&amp;name==&quot;opacity&quot;){if(set){elem.zoom=1;elem.filter=(elem.filter||&quot;&quot;).replace(/alpha\([^)]*\)/,&quot;&quot;)+(parseInt(value)+&quot;&quot;==&quot;NaN&quot;?&quot;&quot;:&quot;alpha(opacity=&quot;+value*100+&quot;)&quot;)}return elem.filter&amp;&amp;elem.filter.indexOf(&quot;opacity=&quot;)&gt;=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+&quot;&quot;:&quot;&quot;}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(text){return(text||&quot;&quot;).replace(/^\s+|\s+$/g,&quot;&quot;)},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i&lt;length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i&lt;length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i&lt;length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i&lt;length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&amp;&amp;!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&amp;&amp;!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?&quot;styleFloat&quot;:&quot;cssFloat&quot;;jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode==&quot;CSS1Compat&quot;,props:{&quot;for&quot;:&quot;htmlFor&quot;,&quot;class&quot;:&quot;className&quot;,&quot;float&quot;:styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:&quot;readOnly&quot;,maxlength:&quot;maxLength&quot;,cellspacing:&quot;cellSpacing&quot;}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,&quot;parentNode&quot;)},next:function(elem){return jQuery.nth(elem,2,&quot;nextSibling&quot;)},prev:function(elem){return jQuery.nth(elem,2,&quot;previousSibling&quot;)},nextAll:function(elem){return jQuery.dir(elem,&quot;nextSibling&quot;)},prevAll:function(elem){return jQuery.dir(elem,&quot;previousSibling&quot;)},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,&quot;iframe&quot;)?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&amp;&amp;typeof selector==&quot;string&quot;){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:&quot;append&quot;,prependTo:&quot;prepend&quot;,insertBefore:&quot;before&quot;,insertAfter:&quot;after&quot;,replaceAll:&quot;replaceWith&quot;},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i&lt;length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,&quot;&quot;);if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?&quot;remove&quot;:&quot;add&quot;](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery(&quot;*&quot;,this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(&quot;&gt;*&quot;,this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each([&quot;Height&quot;,&quot;Width&quot;],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&amp;&amp;document.body[&quot;client&quot;+name]||jQuery.browser.safari&amp;&amp;window[&quot;inner&quot;+name]||document.compatMode==&quot;CSS1Compat&quot;&amp;&amp;document.documentElement[&quot;client&quot;+name]||document.body[&quot;client&quot;+name]:this[0]==document?Math.max(Math.max(document.body[&quot;scroll&quot;+name],document.documentElement[&quot;scroll&quot;+name]),Math.max(document.body[&quot;offset&quot;+name],document.documentElement[&quot;offset&quot;+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+&quot;px&quot;)}});function num(elem,prop){return elem[0]&amp;&amp;parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&amp;&amp;parseInt(jQuery.browser.version)&lt;417?&quot;(?:[\\w*_-]|\\\\.)&quot;:&quot;(?:[\\w\u0128-\uFFFF*_-]|\\\\.)&quot;,quickChild=new RegExp(&quot;^&gt;\\s*(&quot;+chars+&quot;+)&quot;),quickID=new RegExp(&quot;^(&quot;+chars+&quot;+)(#)(&quot;+chars+&quot;+)&quot;),quickClass=new RegExp(&quot;^([#.]?)(&quot;+chars+&quot;*)&quot;);jQuery.extend({expr:{&quot;&quot;:function(a,i,m){return m[2]==&quot;*&quot;||jQuery.nodeName(a,m[2])},&quot;#&quot;:function(a,i,m){return a.getAttribute(&quot;id&quot;)==m[2]},&quot;:&quot;:{lt:function(a,i,m){return i&lt;m[3]-0},gt:function(a,i,m){return i&gt;m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},&quot;first-child&quot;:function(a){return a.parentNode.getElementsByTagName(&quot;*&quot;)[0]==a},&quot;last-child&quot;:function(a){return jQuery.nth(a.parentNode.lastChild,1,&quot;previousSibling&quot;)==a},&quot;only-child&quot;:function(a){return !jQuery.nth(a.parentNode.lastChild,2,&quot;previousSibling&quot;)},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||&quot;&quot;).indexOf(m[3])&gt;=0},visible:function(a){return&quot;hidden&quot;!=a.type&amp;&amp;jQuery.css(a,&quot;display&quot;)!=&quot;none&quot;&amp;&amp;jQuery.css(a,&quot;visibility&quot;)!=&quot;hidden&quot;},hidden:function(a){return&quot;hidden&quot;==a.type||jQuery.css(a,&quot;display&quot;)==&quot;none&quot;||jQuery.css(a,&quot;visibility&quot;)==&quot;hidden&quot;},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,&quot;selected&quot;)},text:function(a){return&quot;text&quot;==a.type},radio:function(a){return&quot;radio&quot;==a.type},checkbox:function(a){return&quot;checkbox&quot;==a.type},file:function(a){return&quot;file&quot;==a.type},password:function(a){return&quot;password&quot;==a.type},submit:function(a){return&quot;submit&quot;==a.type},image:function(a){return&quot;image&quot;==a.type},reset:function(a){return&quot;reset&quot;==a.type},button:function(a){return&quot;button&quot;==a.type||jQuery.nodeName(a,&quot;button&quot;)},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?&quot;?)(.*?)\4 *\]/,/^(:)([\w-]+)\(&quot;?'?(.*?(\(.*?\))?[^(]*?)&quot;?'?\)/,new RegExp(&quot;^([:.#]*)(&quot;+chars+&quot;+)&quot;)],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&amp;&amp;expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,&quot;&quot;);cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!=&quot;string&quot;){return[t]}if(context&amp;&amp;context.nodeType!=1&amp;&amp;context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&amp;&amp;last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&amp;&amp;(nodeName==&quot;*&quot;||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,&quot;&quot;);if(t.indexOf(&quot; &quot;)==0){continue}foundToken=true}else{re=/^([&gt;+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j&lt;rl;j++){var n=m==&quot;~&quot;||m==&quot;+&quot;?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m==&quot;~&quot;&amp;&amp;merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m==&quot;~&quot;){merge[id]=true}r.push(n)}if(m==&quot;+&quot;){break}}}}ret=r;t=jQuery.trim(t.replace(re,&quot;&quot;));foundToken=true}}if(t&amp;&amp;!foundToken){if(!t.indexOf(&quot;,&quot;)){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=&quot; &quot;+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,&quot;&quot;);var elem=ret[ret.length-1];if(m[1]==&quot;#&quot;&amp;&amp;elem&amp;&amp;elem.getElementById&amp;&amp;!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&amp;&amp;oid&amp;&amp;typeof oid.id==&quot;string&quot;&amp;&amp;oid.id!=m[2]){oid=jQuery('[@id=&quot;'+m[2]+'&quot;]',elem)[0]}ret=r=oid&amp;&amp;(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]==&quot;#&quot;&amp;&amp;m[3]?m[3]:m[1]!=&quot;&quot;||m[0]==&quot;&quot;?&quot;*&quot;:m[2];if(tag==&quot;*&quot;&amp;&amp;ret[i].nodeName.toLowerCase()==&quot;object&quot;){tag=&quot;param&quot;}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]==&quot;.&quot;){r=jQuery.classFilter(r,m[2])}if(m[1]==&quot;#&quot;){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute(&quot;id&quot;)==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,&quot;&quot;)}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&amp;&amp;context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=&quot; &quot;+m+&quot; &quot;;var tmp=[];for(var i=0;r[i];i++){var pass=(&quot; &quot;+r[i].className+&quot; &quot;).indexOf(m)&gt;=0;if(!not&amp;&amp;pass||not&amp;&amp;!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&amp;&amp;t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,&quot;&quot;);break}}if(!m){break}if(m[1]==&quot;:&quot;&amp;&amp;m[2]==&quot;not&quot;){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]==&quot;.&quot;){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]==&quot;[&quot;){var tmp=[],type=m[3];for(var i=0,rl=r.length;i&lt;rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||&quot;&quot;}if((type==&quot;&quot;&amp;&amp;!!z||type==&quot;=&quot;&amp;&amp;z==m[5]||type==&quot;!=&quot;&amp;&amp;z!=m[5]||type==&quot;^=&quot;&amp;&amp;z&amp;&amp;!z.indexOf(m[5])||type==&quot;$=&quot;&amp;&amp;z.substr(z.length-m[5].length)==m[5]||(type==&quot;*=&quot;||type==&quot;~=&quot;)&amp;&amp;z.indexOf(m[5])&gt;=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==&quot;:&quot;&amp;&amp;m[2]==&quot;nth-child&quot;){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]==&quot;even&quot;&amp;&amp;&quot;2n&quot;||m[3]==&quot;odd&quot;&amp;&amp;&quot;2n+1&quot;||!/\D/.test(m[3])&amp;&amp;&quot;0n+&quot;+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i&lt;rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&amp;&amp;(node.nodeIndex-last)/first&gt;=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn==&quot;object&quot;){fn=fn[m[2]]}if(typeof fn==&quot;string&quot;){fn=eval(&quot;false||function(a,i){return &quot;+fn+&quot;;}&quot;)}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&amp;&amp;cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&amp;&amp;++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&amp;&amp;n!=elem){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return}if(jQuery.browser.msie&amp;&amp;elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,&quot;events&quot;)||jQuery.data(elem,&quot;events&quot;,{}),handle=jQuery.data(elem,&quot;handle&quot;)||jQuery.data(elem,&quot;handle&quot;,function(){if(typeof jQuery!=&quot;undefined&quot;&amp;&amp;!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(&quot;.&quot;);type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent(&quot;on&quot;+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return}var events=jQuery.data(elem,&quot;events&quot;),ret,index;if(events){if(types==undefined||(typeof types==&quot;string&quot;&amp;&amp;types.charAt(0)==&quot;.&quot;)){for(var type in events){this.remove(elem,type+(types||&quot;&quot;))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(&quot;.&quot;);type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,&quot;handle&quot;),false)}else{if(elem.detachEvent){elem.detachEvent(&quot;on&quot;+type,jQuery.data(elem,&quot;handle&quot;))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,&quot;handle&quot;);if(handle){handle.elem=null}jQuery.removeData(elem,&quot;events&quot;);jQuery.removeData(elem,&quot;handle&quot;)}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf(&quot;!&quot;)&gt;=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery(&quot;*&quot;).add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,&quot;handle&quot;);if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,&quot;a&quot;)&amp;&amp;type==&quot;click&quot;))&amp;&amp;elem[&quot;on&quot;+type]&amp;&amp;elem[&quot;on&quot;+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&amp;&amp;jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&amp;&amp;donative!==false&amp;&amp;val!==false&amp;&amp;!(jQuery.nodeName(elem,&quot;a&quot;)&amp;&amp;type==&quot;click&quot;)){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(&quot;.&quot;);event.type=namespace[0];namespace=namespace[1];all=!namespace&amp;&amp;!event.exclusive;handlers=(jQuery.data(this,&quot;events&quot;)||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var props=&quot;altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which&quot;.split(&quot; &quot;);for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.target.parentNode}if(!event.relatedTarget&amp;&amp;event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&amp;&amp;event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&amp;&amp;doc.scrollLeft||body&amp;&amp;body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&amp;&amp;doc.scrollTop||body&amp;&amp;body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&amp;&amp;((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&amp;&amp;event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&amp;&amp;event.button){event.which=(event.button&amp;1?1:(event.button&amp;2?3:(event.button&amp;4?2:0)))}return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return},teardown:function(){return}},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind(&quot;mouseover&quot;,jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind(&quot;mouseover&quot;,jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type=&quot;mouseenter&quot;;return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind(&quot;mouseout&quot;,jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind(&quot;mouseout&quot;,jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type=&quot;mouseleave&quot;;return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type==&quot;unload&quot;?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&amp;&amp;data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&amp;&amp;data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&amp;&amp;jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i&lt;args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind(&quot;mouseenter&quot;,fnOver).bind(&quot;mouseleave&quot;,fnOut)},ready:function(fn){bindReady();var data=window.gadgets&amp;&amp;gadgets.views&amp;&amp;gadgets.views.getParams()||{};if(jQuery.isReady){fn.call(document,jQuery,data)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery,data)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler(&quot;ready&quot;)}}});var readyBound=false;function bindReady(){if(readyBound){return}if(window.google&amp;&amp;google.friendconnect){if(!jQuery.container.id){return}}readyBound=true;if(window.google&amp;&amp;google.friendconnect){if(jQuery.container.parentUrl){google.friendconnect.container.setParentUrl(jQuery.container.parentUrl)}google.friendconnect.container.setNoCache(jQuery.container.cache?0:1);google.friendconnect.container.loadOpenSocialApi({site:jQuery.container.id,onload:function(st){jQuery.anonymous=!(document.cookie&amp;&amp;/fcauth[0-9]+=/.test(document.cookie));if(!jQuery.isReady){return jQuery.ready()}jQuery.signList[&quot;&quot;].apply(document)}})}else{if(window.gadgets){gadgets.util.registerOnLoadHandler(jQuery.ready)}else{if(document.addEventListener&amp;&amp;!jQuery.browser.opera){document.addEventListener(&quot;DOMContentLoaded&quot;,jQuery.ready,false)}if(jQuery.browser.msie&amp;&amp;window==top){(function(){if(jQuery.isReady){return}try{document.documentElement.doScroll(&quot;left&quot;)}catch(error){setTimeout(arguments.callee,0);return}jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener(&quot;DOMContentLoaded&quot;,function(){if(jQuery.isReady){return}for(var i=0;i&lt;document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return}}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return}if(document.readyState!=&quot;loaded&quot;&amp;&amp;document.readyState!=&quot;complete&quot;){setTimeout(arguments.callee,0);return}if(numStyles===undefined){numStyles=jQuery(&quot;style, link[rel=stylesheet]&quot;).length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(window,&quot;load&quot;,jQuery.ready)}}}jQuery.extend({invite:function(message){google.friendconnect.requestInvite(message)},settings:function(fn){jQuery.signList[&quot;&quot;]=fn||function(){};google.friendconnect.requestSettings()},anonymous:true,signList:{},signIn:function(provider,fn){if(jQuery.isFunction(provider)){fn=provider;provider=null}if(provider){provider=provider.toUpperCase()}jQuery.signList[&quot;&quot;]=fn||function(){};google.friendconnect.requestSignIn(provider)},signOut:function(fn){jQuery.signList[&quot;&quot;]=fn||function(){};google.friendconnect.requestSignOut()}});jQuery.fn.extend({signIn:function(fn){var guid=now();this.each(function(){if(!this.id){this.id=&quot;signIn&quot;+guid++}var self=jQuery(this);google.friendconnect.renderSignInButton({id:this.id,text:self.text(),style:self.hasClass(&quot;text&quot;)&amp;&amp;&quot;text&quot;||self.hasClass(&quot;long&quot;)&amp;&amp;&quot;long&quot;||&quot;standard&quot;});self.children(&quot;div:first&quot;).click(function(){jQuery.signList[&quot;&quot;]=function(){self.each(fn||function(){})}})})},gadget:function(url,data){var guid=now();this.each(function(){if(!this.id){this.id=&quot;gadget&quot;+guid++}if(jQuery.container.parentUrl){google.friendconnect.container.setParentUrl(jQuery.container.parentUrl)}google.friendconnect.container.setNoCache(jQuery.container.cache?0:1);google.friendconnect.container.renderOpenSocialGadget({id:this.id,url:url,&quot;view-params&quot;:data,site:jQuery.container.id})})}});jQuery.each((&quot;blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error&quot;).split(&quot;,&quot;),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&amp;&amp;parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind(&quot;unload&quot;,function(){jQuery(&quot;*&quot;).add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!=&quot;string&quot;){return this._load(url)}var off=url.indexOf(&quot; &quot;);if(off&gt;=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type=&quot;GET&quot;;if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type=&quot;POST&quot;}}var self=this;jQuery.ajax({url:url,type:type,dataType:&quot;html&quot;,data:params,complete:function(res,status){if(status==&quot;success&quot;||status==&quot;notmodified&quot;){self.html(selector?jQuery(&quot;&lt;div/&gt;&quot;).append(res.responseText.replace(/&lt;script(.|\s)*?\/script&gt;/g,&quot;&quot;)).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,&quot;form&quot;)?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&amp;&amp;!this.disabled&amp;&amp;(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each(&quot;ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend&quot;.split(&quot;,&quot;),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){var off=url.indexOf(&quot; &quot;);if(off&gt;=0){var oauth=url.slice(off+1,url.length);url=url.slice(0,off)}if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:&quot;GET&quot;,url:url,data:data,success:callback,dataType:type,oauth:oauth})},getScript:function(url,callback){return jQuery.get(url,null,callback,&quot;script&quot;)},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,&quot;json&quot;)},getFeed:function(url,data,callback){return jQuery.get(url,data,callback,&quot;feed&quot;)},getData:function(url,data,callback){return jQuery.get(url,data,callback,&quot;data&quot;)},post:function(url,data,callback,type){var off=url.indexOf(&quot; &quot;);if(off&gt;=0){var oauth=url.slice(off+1,url.length);url=url.slice(0,off)}if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:&quot;POST&quot;,url:url,data:data,success:callback,dataType:type,oauth:oauth})},postData:function(url,data,callback){return jQuery.post(url,data,callback,&quot;data&quot;)},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:&quot;GET&quot;,timeout:0,contentType:&quot;application/x-www-form-urlencoded&quot;,processData:true,async:true,data:null,username:null,password:null,accepts:{xml:&quot;application/xml, text/xml&quot;,html:&quot;text/html&quot;,script:&quot;text/javascript, application/javascript&quot;,json:&quot;application/json, text/javascript&quot;,text:&quot;text/plain&quot;,_default:&quot;*/*&quot;}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&amp;|$)/g,status,data,type=s.type.toUpperCase();s.async=true;if(s.dataType==&quot;data&quot;&amp;&amp;type==&quot;POST&quot;){s.processData=false}if(s.data&amp;&amp;s.processData&amp;&amp;typeof s.data!=&quot;string&quot;){s.data=jQuery.param(s.data)}if(s.dataType==&quot;jsonp&quot;){if(type==&quot;GET&quot;){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+(s.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+&quot;&amp;&quot;:&quot;&quot;)+(s.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}s.dataType=&quot;json&quot;}if(s.dataType==&quot;json&quot;&amp;&amp;(s.data&amp;&amp;s.data.match(jsre)||s.url.match(jsre))){jsonp=&quot;jsonp&quot;+jsc++;if(s.data){s.data=(s.data+&quot;&quot;).replace(jsre,&quot;=&quot;+jsonp+&quot;$1&quot;)}s.url=s.url.replace(jsre,&quot;=&quot;+jsonp+&quot;$1&quot;);s.dataType=&quot;script&quot;;window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType==&quot;script&quot;&amp;&amp;s.cache==null){s.cache=false}if(s.cache===false&amp;&amp;type==&quot;GET&quot;){var ts=now();var ret=s.url.replace(/(\?|&amp;)_=.*?(&amp;|$)/,&quot;$1_=&quot;+ts+&quot;$2&quot;);s.url=ret+((ret==s.url)?(s.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+&quot;_=&quot;+ts:&quot;&quot;)}if(s.data&amp;&amp;type==&quot;GET&quot;){s.url+=(s.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+s.data;s.data=null}if(s.global&amp;&amp;!jQuery.active++){jQuery.event.trigger(&quot;ajaxStart&quot;)}if(window.google&amp;&amp;google.friendconnect||!window.gadgets){var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType==&quot;script&quot;&amp;&amp;type==&quot;GET&quot;&amp;&amp;remote.test(s.url)&amp;&amp;remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName(&quot;head&quot;)[0];var script=document.createElement(&quot;script&quot;);script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&amp;&amp;(!this.readyState||this.readyState==&quot;loaded&quot;||this.readyState==&quot;complete&quot;)){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}}var requestDone=false;var xhr=s.xhr(type,s.url,s);if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data){xhr.setRequestHeader(&quot;Content-Type&quot;,s.contentType)}if(s.ifModified){xhr.setRequestHeader(&quot;If-Modified-Since&quot;,jQuery.lastModified[s.url]||&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;)}xhr.setRequestHeader(&quot;X-Requested-With&quot;,&quot;XMLHttpRequest&quot;);xhr.setRequestHeader(&quot;Accept&quot;,s.dataType&amp;&amp;s.accepts[s.dataType]?s.accepts[s.dataType]+&quot;, */*&quot;:s.accepts._default)}catch(e){}if(s.beforeSend&amp;&amp;s.beforeSend(xhr,s)===false){s.global&amp;&amp;jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger(&quot;ajaxSend&quot;,[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&amp;&amp;xhr&amp;&amp;(xhr.readyState==4||isTimeout==&quot;timeout&quot;)){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout==&quot;timeout&quot;&amp;&amp;&quot;timeout&quot;||!jQuery.httpSuccess(xhr)&amp;&amp;&quot;error&quot;||s.ifModified&amp;&amp;jQuery.httpNotModified(xhr,s.url)&amp;&amp;&quot;notmodified&quot;||&quot;success&quot;;if(status==&quot;success&quot;){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status=&quot;parsererror&quot;}}if(status==&quot;success&quot;){var modRes;try{modRes=xhr.getResponseHeader(&quot;Last-Modified&quot;)}catch(e){}if(s.ifModified&amp;&amp;modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout&gt;0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange(&quot;timeout&quot;)}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger(&quot;ajaxSuccess&quot;,[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger(&quot;ajaxComplete&quot;,[xhr,s])}if(s.global&amp;&amp;!--jQuery.active){jQuery.event.trigger(&quot;ajaxStop&quot;)}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.event.trigger(&quot;ajaxError&quot;,[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&amp;&amp;location.protocol==&quot;file:&quot;||(xhr.status&gt;=200&amp;&amp;xhr.status&lt;300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&amp;&amp;xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader(&quot;Last-Modified&quot;);return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&amp;&amp;xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader(&quot;content-type&quot;),xml=type==&quot;xml&quot;||!type&amp;&amp;ct&amp;&amp;ct.indexOf(&quot;xml&quot;)&gt;=0,data=xml&amp;&amp;xhr.responseXML||type===&quot;feed&quot;&amp;&amp;xhr.responseFeed||type===&quot;data&quot;&amp;&amp;xhr.responseData||xhr.responseText;if(xml&amp;&amp;data.documentElement.tagName==&quot;parsererror&quot;){throw&quot;parsererror&quot;}if(type===&quot;feed&quot;&amp;&amp;!data){throw&quot;parsererror&quot;}if(filter){data=filter(data,type)}if(type==&quot;script&quot;){jQuery.globalEval(data)}if(type==&quot;json&quot;){data=eval(&quot;(&quot;+data+&quot;)&quot;)}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+&quot;=&quot;+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&amp;&amp;a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+&quot;=&quot;+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+&quot;=&quot;+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]))}}}return s.join(&quot;&amp;&quot;).replace(/%20/g,&quot;+&quot;)}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:&quot;show&quot;,width:&quot;show&quot;,opacity:&quot;show&quot;},speed,callback):this.filter(&quot;:hidden&quot;).each(function(){this.style.display=this.oldblock||&quot;&quot;;if(jQuery.css(this,&quot;display&quot;)==&quot;none&quot;){var elem=jQuery(&quot;&lt;&quot;+this.tagName+&quot; /&gt;&quot;).appendTo(&quot;body&quot;);this.style.display=elem.css(&quot;display&quot;);if(this.style.display==&quot;none&quot;){this.style.display=&quot;block&quot;}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:&quot;hide&quot;,width:&quot;hide&quot;,opacity:&quot;hide&quot;},speed,callback):this.filter(&quot;:visible&quot;).each(function(){this.oldblock=this.oldblock||jQuery.css(this,&quot;display&quot;);this.style.display=&quot;none&quot;}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&amp;&amp;jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:&quot;toggle&quot;,width:&quot;toggle&quot;,opacity:&quot;toggle&quot;},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(&quot;:hidden&quot;)?&quot;show&quot;:&quot;hide&quot;]()})},slideDown:function(speed,callback){return this.animate({height:&quot;show&quot;},speed,callback)},slideUp:function(speed,callback){return this.animate({height:&quot;hide&quot;},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:&quot;toggle&quot;},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:&quot;show&quot;},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:&quot;hide&quot;},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?&quot;each&quot;:&quot;queue&quot;](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(&quot;:hidden&quot;),self=this;for(p in prop){if(prop[p]==&quot;hide&quot;&amp;&amp;hidden||prop[p]==&quot;show&quot;&amp;&amp;!hidden){return opt.complete.call(this)}if(p==&quot;height&quot;||p==&quot;width&quot;){opt.display=jQuery.css(this,&quot;display&quot;);opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow=&quot;hidden&quot;}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val==&quot;toggle&quot;?hidden?&quot;show&quot;:&quot;hide&quot;:val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||&quot;px&quot;;if(unit!=&quot;px&quot;){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]==&quot;-=&quot;?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,&quot;&quot;)}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&amp;&amp;type.constructor==Array)){fn=type;type=&quot;fx&quot;}if(!type||(typeof type==&quot;string&quot;&amp;&amp;!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i&gt;=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||&quot;fx&quot;;var q=jQuery.data(elem,type+&quot;queue&quot;);if(!q||array){q=jQuery.data(elem,type+&quot;queue&quot;,jQuery.makeArray(array))}}return q};jQuery.fn.dequeue=function(type){type=type||&quot;fx&quot;;return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&amp;&amp;speed.constructor==Object?speed:{complete:fn||!fn&amp;&amp;easing||jQuery.isFunction(speed)&amp;&amp;speed,duration:speed,easing:fn&amp;&amp;easing||easing&amp;&amp;easing.constructor!=Function&amp;&amp;easing};opt.duration=(opt.duration&amp;&amp;opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop==&quot;height&quot;||this.prop==&quot;width&quot;){this.elem.style.display=&quot;block&quot;}},cur:function(force){if(this.elem[this.prop]!=null&amp;&amp;this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&amp;&amp;r&gt;-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||&quot;px&quot;;this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i&lt;timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop==&quot;width&quot;||this.prop==&quot;height&quot;){this.elem.style[this.prop]=&quot;1px&quot;}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now();if(gotoEnd||t&gt;this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,&quot;display&quot;)==&quot;none&quot;){this.elem.style.display=&quot;block&quot;}}if(this.options.hide){this.elem.style.display=&quot;none&quot;}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done){this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?&quot;swing&quot;:&quot;linear&quot;)](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,&quot;opacity&quot;,fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&amp;&amp;parseInt(version)&lt;522&amp;&amp;!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,&quot;position&quot;)==&quot;fixed&quot;;if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&amp;&amp;!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&amp;&amp;!safari2){border(offsetParent)}if(!fixed&amp;&amp;css(offsetParent,&quot;position&quot;)==&quot;fixed&quot;){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&amp;&amp;parent.tagName&amp;&amp;!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,&quot;display&quot;))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&amp;&amp;css(parent,&quot;overflow&quot;)!=&quot;visible&quot;){border(parent)}parent=parent.parentNode}if((safari2&amp;&amp;(fixed||css(offsetChild,&quot;position&quot;)==&quot;absolute&quot;))||(mozilla&amp;&amp;css(offsetChild,&quot;position&quot;)!=&quot;absolute&quot;)){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,&quot;borderLeftWidth&quot;,true),jQuery.curCSS(elem,&quot;borderTopWidth&quot;,true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,&quot;marginTop&quot;);offset.left-=num(this,&quot;marginLeft&quot;);parentOffset.top+=num(offsetParent,&quot;borderTopWidth&quot;);parentOffset.left+=num(offsetParent,&quot;borderLeftWidth&quot;);results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&amp;&amp;(!/^body|html$/i.test(offsetParent.tagName)&amp;&amp;jQuery.css(offsetParent,&quot;position&quot;)==&quot;static&quot;)){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each([&quot;Left&quot;,&quot;Top&quot;],function(i,name){var method=&quot;scroll&quot;+name;jQuery.fn[method]=function(val){if(!this[0]){return}return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?&quot;pageYOffset&quot;:&quot;pageXOffset&quot;]||jQuery.boxModel&amp;&amp;document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each([&quot;Height&quot;,&quot;Width&quot;],function(i,name){var tl=i?&quot;Left&quot;:&quot;Top&quot;,br=i?&quot;Right&quot;:&quot;Bottom&quot;;jQuery.fn[&quot;inner&quot;+name]=function(){return this[name.toLowerCase()]()+num(this,&quot;padding&quot;+tl)+num(this,&quot;padding&quot;+br)};jQuery.fn[&quot;outer&quot;+name]=function(margin){return this[&quot;inner&quot;+name]()+num(this,&quot;border&quot;+tl+&quot;Width&quot;)+num(this,&quot;border&quot;+br+&quot;Width&quot;)+(margin?num(this,&quot;margin&quot;+tl)+num(this,&quot;margin&quot;+br):0)}})})();(function(b){function a(){return(this instanceof a)?this.init():new a()}a.prototype={init:function(){this._next=null;this.callback={ok:function(c){return c},ng:function(c){throw c}};return this},next:function(c){return this._post(&quot;ok&quot;,c)},error:function(c){return this._post(&quot;ng&quot;,c)},call:function(c){return this._fire(&quot;ok&quot;,c)},fail:function(c){return this._fire(&quot;ng&quot;,c)},cancel:function(){(this.canceller||function(){})();return this.init()},_post:function(d,c){this._next=new a();this._next.callback[d]=c;return this._next},_fire:function(c,f){var d=&quot;ok&quot;;try{f=this.callback[c].call(this,f)}catch(g){d=&quot;ng&quot;;f=g}if(f instanceof a){f._next=this._next}else{if(this._next){this._next._fire(d,f)}}return this}};a.parallel=function(f){var e=new a(),c={},d=0;for(var g in f){if(f.hasOwnProperty(g)){(function(j,h){j.next(function(i){c[h]=i;if(--d&lt;=0){if(f instanceof Array){c.length=f.length;c=Array.prototype.slice.call(c,0)}e.call(c)}}).error(function(i){e.fail(i)});d++})(f[g],g)}}if(!d){a.next(function(){e.call()})}e.canceller=function(){for(var h in f){if(f.hasOwnProperty(h)){f[h].cancel()}}};return e};a.wait=function(g){var e=new a(),c=new Date();var f=setTimeout(function(){clearTimeout(f);e.call((new Date).getTime()-c.getTime())},g*1000);e.canceller=function(){try{clearTimeout(f)}catch(d){}};return e};a.next=function(c){var e=new a();var f=setTimeout(function(){clearTimeout(f);e.call()},0);if(c){e.callback.ok=c}e.canceller=function(){try{clearTimeout(f)}catch(d){}};return e};a.call=function(d,c){c=Array.prototype.slice.call(arguments);d=c.shift();return a.next(function(){return d.apply(this,c)})};a.register=function(d,c){this.prototype[d]=function(){return this.next(a.wrap(c).apply(null,arguments))}};a.wrap=function(c){return function(){var d=arguments;return function(){return c.apply(null,d)}}};a.register(&quot;wait&quot;,a.wait);b.deferred=function(){return new a()};b.each([&quot;parallel&quot;,&quot;wait&quot;,&quot;next&quot;,&quot;call&quot;],function(){b[this]=a[this]});b._ajax=b.ajax;b.ajax=function(d){var c=new a();b._ajax(b.extend(true,{},d,{success:function(e,f){if(d.success){d.success.apply(this,arguments)}c.call(e)},error:function(h,f,g){if(d.error){d.error.apply(this,arguments)}c.fail(f||g)}}));return c};b.each([&quot;ajax&quot;,&quot;get&quot;,&quot;getJSON&quot;,&quot;getFeed&quot;,&quot;getData&quot;,&quot;post&quot;,&quot;postData&quot;],function(){a.register(this,b[this])})})(jQuery);(function(g){var h=window.gadgets&amp;&amp;gadgets.util.getUrlParameters()||{};var f=h.synd||h.container||&quot;&quot;;var e=h.parent||&quot;&quot;;var a=h.v||&quot;&quot;;var d=h.nocache||&quot;0&quot;;g.container={igoogle:/ig/.test(f),orkut:/orkut/.test(f),hi5:/hi5/.test(f),myspace:/msappspace/.test(location.host),goohome:/goohome/.test(f),friendconnect:/peoplesense/.test(f),mixi:/mixi/.test(location.host),sandbox:/sandbox/.test(f)||/sandbox/.test(e)||/sandbox/.test(location.host)||/msappspace/.test(location.host)&amp;&amp;/dev/.test(a),cache:d!=&quot;1&quot;};for(var c in g.container){if(g.container[c]){g(&quot;html&quot;).addClass(c)}}g.feature=function(i){return gadgets.util.getFeatureParameters(i)};g.pref=function(j,l){var i=new gadgets.Prefs();var k=j;if(j.constructor===String){if(l===undefined){return h[j]||gadgets.util.unescapeString(i.getString(j))}else{k={};k[j]=l}}for(j in k){l=k[j];if(l.constructor===Array){l=g.map(l,function(m){return(m+&quot;&quot;).replace(/\|/g,&quot;%7C&quot;)}).join(&quot;|&quot;)}i.set(j,l+&quot;&quot;)}};g.prefArray=function(i){var j=g.pref(i);if(j===&quot;&quot;){return[]}return g.map(j.split(&quot;|&quot;),function(k){return k.replace(/%7C/g,&quot;|&quot;)})};g.msg=function(i){return new gadgets.Prefs().getMsg(i)};g.fn.title=function(i){if(this[0]===window){gadgets.window.setTitle(gadgets.util.escapeString(i))}return this};g.fn.adjustHeight=function(i){if(this[0]===window){setTimeout(function(){gadgets.window.adjustHeight(i)},0)}return this};g.fn._height=g.fn.height;g.fn.height=function(i){return this[0]===window&amp;&amp;i!==undefined?this.adjustHeight(i):this._height(i)};g.view=function(k,m){if(k===undefined){return gadgets.views.getCurrentView().getName()}var j=gadgets.views.getSupportedViews();for(var l in j){var i=j[l];if(i.getName()===k){return gadgets.views.requestNavigateTo(i,m||{})}}};g.views=function(){var l=[];var i=gadgets.views.getSupportedViews();for(var k in i){var j=i[k].getName();if(jQuery.inArray(j,l)===-1){l.push(j)}}return l};var b=window.gadgets&amp;&amp;gadgets.flash&amp;&amp;gadgets.flash.getMajorVersion();if(b){g.flash={version:b}}g.fn.flash=function(i,l){l=g.extend(true,{},l);for(var j in l){if(j.toLowerCase()==&quot;flashvars&quot;&amp;&amp;l[j]&amp;&amp;typeof(l[j])!=&quot;string&quot;){l[j]=jQuery.param(l[j])}}var k=g.container.cache?&quot;embedCachedFlash&quot;:&quot;embedFlash&quot;;return this.each(function(){gadgets.flash[k](i,this,g.flash.version,l)})};g.fn.minimessage=function(i){return this.each(function(j,k){if(k.parentNode){k.parentNode.removeChild(k)}new gadgets.MiniMessage().createDismissibleMessage(k,function(){return(i||function(){}).apply(k)!==false})})};g.fn.tabs=function(i){return this.each(function(){var j=new gadgets.TabSet(null,null,this);j.alignTabs(&quot;left&quot;);g(&quot;ul&quot;,this).find(&quot;li a&quot;).each(function(k){var l=g(&quot;#&quot;+this.href.split(&quot;#&quot;)[1]).get(0);j.addTab(g(this).html(),{tooltip:this.title,contentContainer:l,callback:function(){if(i){i.apply(l,[k,l])}}})}).end().remove()})};g.pub=function(i,j){gadgets.pubsub.publish(i,j)};g.sub=function(j,i){gadgets.pubsub.subscribe(j,i)}})(jQuery);(function(b){b._xhr=function(){this.initialize.apply(this,arguments)};b._xhr.prototype={initialize:function(c){this.readyState=0;this.s=c},open:function(f,d,e,g,c){this.readyState=1;this.type=f;this.url=d;this.requestHeaders={};this.responseHeaders={}},send:function(h){var e=this;var f=e.url;var c=e.s.oauth;var d=e.s.dataType;var g=[];g[gadgets.io.RequestParameters.METHOD]=e.type;g[gadgets.io.RequestParameters.HEADERS]=e.requestHeaders;g[gadgets.io.RequestParameters.CONTENT_TYPE]=d===&quot;xml&quot;&amp;&amp;gadgets.io.ContentType.DOM||d===&quot;feed&quot;&amp;&amp;gadgets.io.ContentType.FEED||gadgets.io.ContentType.TEXT;if(h){g[gadgets.io.RequestParameters.POST_DATA]=h}if(c==&quot;signed&quot;){g[gadgets.io.RequestParameters.AUTHORIZATION]=gadgets.io.AuthorizationType.SIGNED}if(d==&quot;feed&quot;){g.NUM_ENTRIES=10}if(!b.container.cache){g[gadgets.io.RequestParameters.REFRESH_INTERVAL]=1}gadgets.io.makeRequest(f,function(i){e.readyState=4;if(b.container.myspace){if(i.errorCode){e.status=400;e.responseText=i.errorMessage}else{e.status=200;e.responseHeaders={};e.responseText=i.text;if(d==&quot;xml&quot;){e.responseXML=i.data}else{if(d==&quot;feed&quot;){i.data.URL=e.url;i.data.Link=i.data.link;i.data.Description=i.data.description;i.data.Author=&quot;&quot;;i.data.Entry=b.map(i.data.items,function(j){j.Link=j.link;j.Title=j.title;j.Date=new Date(j.pubDate).getTime();return j});e.responseFeed=i.data}}}}else{if(i.errors.length&gt;0){e.status=400;e.responseText=i.errors.join(&quot; &quot;)}else{e.status=i.rc||200;e.responseHeaders=i.headers||{};e.responseText=i.text;if(d==&quot;xml&quot;){e.responseXML=i.data}else{if(d==&quot;feed&quot;){if(i.data){b.each(i.data.Entry,function(j,k){if(k.Date&lt;Math.pow(2,32)){k.Date*=1000}})}e.responseFeed=i.data}}}}},g)},abort:function(){this.readyState=0},setRequestHeader:function(d,c){this.requestHeaders[d]=c},getResponseHeader:function(c){return this.responseHeaders[c]}};var a=[];b.ajaxSettings.xhr=function(e,c,d){for(route in a){if((e+&quot; &quot;+c).indexOf(route)==0){return new a[route]}}if(!(window.google&amp;&amp;google.friendconnect||!window.gadgets)){var f=/^(?:\w+:)?\/\/([^\/?#]+)/;if(f.test(c)&amp;&amp;f.exec(c)[1]!=location.host){return new b._xhr(d)}}return window.ActiveXObject?new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;):new XMLHttpRequest()};b.ajaxSettings.xhr.addRoute=function(d,c,e){a[d+&quot; &quot;+c]=e};b.proxy=function(c){var d={};if(!b.container.cache){d[gadgets.io.RequestParameters.REFRESH_INTERVAL]=1}return gadgets.io.getProxyUrl(c,d)}})(jQuery);(function(h){h(function(){if(window.opensocial){h.container.domain=opensocial.getEnvironment().getDomain()}});var b={&quot;@me&quot;:&quot;VIEWER&quot;,&quot;@viewer&quot;:&quot;VIEWER&quot;,&quot;@owner&quot;:&quot;OWNER&quot;,&quot;@self&quot;:&quot;SELF&quot;,&quot;@friends&quot;:&quot;FRIENDS&quot;,&quot;@admins&quot;:&quot;ADMINS&quot;,&quot;@all&quot;:&quot;ALL&quot;,&quot;@me/@friends&quot;:&quot;VIEWER_FRIENDS&quot;,&quot;@viewer/@friends&quot;:&quot;VIEWER_FRIENDS&quot;,&quot;@owner/@friends&quot;:&quot;OWNER_FRIENDS&quot;};var d={&quot;@all&quot;:&quot;all&quot;,&quot;@app&quot;:&quot;hasApp&quot;};var e={ok:200,notImplemented:501,unauthorized:401,forbidden:403,badRequest:400,internalError:500,limitExceeded:417};var a=function(j){var i={},k=&quot;&quot;;var m=j.indexOf(&quot;?&quot;);if(m!=-1){k=j.substring(m+1);j=j.substring(0,m)}var j=j.split(&quot;/&quot;);if(j[2]){i.userId=j[2]}if(j[3]){i.groupId=j[3]}if(j[4]){i.appId=j[4]}var k=k.split(&quot;&amp;&quot;);var l={};h.each(k,function(o,q){var n=q.replace(/\+/g,&quot; &quot;),p=&quot;&quot;;var r=n.indexOf(&quot;=&quot;);if(r!=-1){p=n.substring(r+1);n=n.substring(0,r)}l[decodeURIComponent(n)]=decodeURIComponent(p)});if(l.fields){i.fields=l.fields.split(&quot;,&quot;);i.fields=h.grep(i.fields,function(n){return n!=&quot;&quot;})}if(l.startIndex){i.startIndex=parseInt(l.startIndex,10)}if(l.count){i.count=parseInt(l.count,10)}if(l.sortBy){i.sortBy=l.sortBy}if(l.filterBy){i.filterBy=l.filterBy}if(l.networkDistance){i.networkDistance=parseInt(l.networkDistance,10)}return i};var g=function(m){var k=m.userId||&quot;@me&quot;;k=b[k]||k;var j=m.groupId||&quot;@self&quot;;j=b[j]||j;var l=m.networkDistance;var n=k+(j==b[&quot;@self&quot;]?&quot;&quot;:&quot;_&quot;+j);var i=opensocial.newIdSpec({userId:k,groupId:j,networkDistance:l});i.userId=k;i.groupId=j;i.networkDistance=l;i.id=n;i.self=j==b[&quot;@self&quot;];return i};var f=function(j){var i={};if(j&amp;&amp;j.fields_){for(key in j.fields_){i[key]=f(j.fields_[key])}}else{if(j&amp;&amp;j.constructor===Array){i=h.map(j,function(k){return f(k)})}else{i=j}}return i};var c=function(k){if(!k.hadError()){return false}var i;var m;var l=k.getErrorMessage();var j=k.responseItems_;h.each(j,function(n,o){if(o.hadError()){i=e[o.getErrorCode()];m=o.getErrorCode();l=o.getErrorMessage()}});return{status:i||e.internalError,statusText:m||&quot;internalError&quot;,reason:l||&quot;&quot;}};h._xhr.getPeople=function(){this.initialize()};h.extend(h._xhr.getPeople.prototype,h._xhr.prototype,{send:function(m){var i=this,l=a(i.url);var j=g(l);var n={first:l.startIndex||0,max:l.count||20};if(l.appId){n.filter=d[l.appId]||l.appId}if(l.fields){n.profileDetail=l.fields}if(l.sortBy){n.sortOrder=l.sortBy}if(l.filterBy){n.filter=l.filterBy}if(h.container.myspace){n.first++}if(j.self){var k=opensocial.newDataRequest();k.add(k.newFetchPersonRequest(j.id,n),&quot;data&quot;);k.send(function(p){i.readyState=4;var o=c(p);if(o){i.status=o.status;i.statusText=o.statusText;i.responseText=o.reason}else{var r=p.get(&quot;data&quot;);var q=[f(r.getData())];q.startIndex=n.first;q.itemsPerPage=n.max;q.totalResults=q.length;if(h.container.myspace){q.startIndex--}i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=q}})}else{var k=opensocial.newDataRequest();k.add(k.newFetchPeopleRequest(j,n),&quot;data&quot;);k.send(function(p){i.readyState=4;var o=c(p);if(o){i.status=o.status;i.statusText=o.statusText;i.responseText=o.reason}else{var r=p.get(&quot;data&quot;);var s=r.getData();var q=h.map(s.asArray(),function(t){return f(t)});q.startIndex=n.first;q.itemsPerPage=n.max;q.totalResults=s.getTotalSize();if(h.container.myspace){q.startIndex--}i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=q}})}}});h.ajaxSettings.xhr.addRoute(&quot;GET&quot;,&quot;/people/&quot;,h._xhr.getPeople);h._xhr.getAppData=function(){this.initialize()};h.extend(h._xhr.getAppData.prototype,h._xhr.prototype,{send:function(n){var i=this,m=a(i.url);var j=g(m);var l=m.fields||[];var o={escapeType:&quot;none&quot;};if(h.container.myspace){if(l.length==0){l=&quot;*&quot;}}var k=opensocial.newDataRequest();k.add(k.newFetchPersonAppDataRequest(j,l,o),&quot;data&quot;);k.send(function(q){i.readyState=4;var p=c(q);if(p){i.status=p.status;i.statusText=p.statusText;i.responseText=p.reason}else{var r=q.get(&quot;data&quot;);var t=r.getData();for(userId in t){var s=t[userId];if(!h.container.myspace){for(key in s){s[key]=gadgets.json.parse(s[key])}}}i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=t}})}});h.ajaxSettings.xhr.addRoute(&quot;GET&quot;,&quot;/appdata/&quot;,h._xhr.getAppData);h._xhr.postAppData=function(){this.initialize()};h.extend(h._xhr.postAppData.prototype,h._xhr.prototype,{send:function(n){var i=this,m=a(i.url);var j=g(m);var l=m.fields||[];if(l.length==0){for(key in n){l.push(key)}}var k=opensocial.newDataRequest();h.each(l,function(p,o){k.add(k.newUpdatePersonAppDataRequest(j.id,o,gadgets.json.stringify(n[o])),o)});k.send(function(p){i.readyState=4;var o=c(p);if(o){i.status=o.status;i.statusText=o.statusText;i.responseText=o.reason}else{i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData={}}})}});h.ajaxSettings.xhr.addRoute(&quot;POST&quot;,&quot;/appdata/&quot;,h._xhr.postAppData);h._xhr.getActivity=function(){this.initialize()};h.extend(h._xhr.getActivity.prototype,h._xhr.prototype,{send:function(m){var i=this,l=a(i.url);var j=g(l);var k=opensocial.newDataRequest();k.add(k.newFetchActivitiesRequest(j),&quot;data&quot;);k.send(function(o){i.readyState=4;var n=c(o);if(n){i.status=n.status;i.statusText=n.statusText;i.responseText=n.reason}else{var p=o.get(&quot;data&quot;);var r=p.getData();var q=h.map(r.asArray(),function(s){return f(s)});q.startIndex=0;q.itemsPerPage=20;q.totalResults=r.getTotalSize();i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=q}})}});h.ajaxSettings.xhr.addRoute(&quot;GET&quot;,&quot;/activities/&quot;,h._xhr.getActivity);h._xhr.postActivity=function(){this.initialize()};h.extend(h._xhr.postActivity.prototype,h._xhr.prototype,{send:function(j){var i=this;j.mediaItems=h.map(j.mediaItems||[],function(k){return opensocial.newMediaItem(k[opensocial.MediaItem.Field.MIME_TYPE],k[opensocial.MediaItem.Field.URL],k)});opensocial.requestCreateActivity(opensocial.newActivity(j),opensocial.CreateActivityPriority.HIGH,function(l){i.readyState=4;var k=c(new opensocial.DataResponse({data:l},l.hadError()));if(k){i.status=k.status;i.statusText=k.statusText;i.responseText=k.reason}else{i.status=e.ok;i.statusText=&quot;ok&quot;;i.responseData=l.getData()||{}}})}});h.ajaxSettings.xhr.addRoute(&quot;POST&quot;,&quot;/activities/&quot;,h._xhr.postActivity);h._xhr.postMessage=function(){this.initialize()};h.extend(h._xhr.postMessage.prototype,h._xhr.prototype,{send:function(l){var j=this;var i=l.recipients;if(typeof(i)==&quot;string&quot;){i=i.split(&quot;,&quot;)}i=h.map(i,function(m){return b[m]||m});if(i.length&lt;=1){i=i[0]}var k=opensocial.newMessage(l[opensocial.Message.Field.BODY],l);opensocial.requestSendMessage(i,k,function(n){j.readyState=4;var m=c(new opensocial.DataResponse({data:n},n.hadError()));if(m){j.status=m.status;j.statusText=m.statusText;j.responseText=m.reason}else{j.status=e.ok;j.statusText=&quot;ok&quot;;j.responseData=n.getData()||{}}})}});h.ajaxSettings.xhr.addRoute(&quot;POST&quot;,&quot;/messages/&quot;,h._xhr.postMessage)})(jQuery);
\ No newline at end of file</diff>
      <filename>features/opensocial-jquery/opensocial-jquery.min.js</filename>
    </modified>
    <modified>
      <diff>@@ -28,7 +28,7 @@ jQuery(function($) {
 //$.getJSON(url, data, function(json) {
   $.getJSON(url, data).next(function(json) {
 	$.each(json.feed.entry, function() {
-      var img = $('&lt;img width=&quot;80&quot; heieht=&quot;60&quot; /&gt;')
+      var img = $('&lt;img width=&quot;80&quot; height=&quot;60&quot; /&gt;')
 	    .attr('src', this.media$group.media$thumbnail[0].url);
       $('&lt;a target=&quot;_blank&quot; /&gt;')
 	    .attr('href', this.media$group.media$player[0].url)
@@ -80,7 +80,7 @@ jQuery(function($) {
 &lt;a class=&quot;signout&quot; href=&quot;#signout&quot; onclick=&quot;jQuery.signOut();&quot;&gt;Sign out&lt;/a&gt; |
 &lt;a class=&quot;signout&quot; href=&quot;#signout&quot; onclick=&quot;jQuery.signOut(function() { console.log('signOut', this, $.anonymous); });&quot;&gt;Sign out + CALLBACK&lt;/a&gt;
 &lt;/p&gt;
-&lt;form onsubmit=&quot;jQuery.invite(this.message.value);&quot;&gt;
+&lt;form onsubmit=&quot;jQuery.invite(this.message.value); return false;&quot;&gt;
 &lt;a class=&quot;invite&quot; href=&quot;#invite&quot; onclick=&quot;jQuery.invite();&quot;&gt;Invite&lt;/a&gt;
 &lt;input name=&quot;message&quot; /&gt;
 &lt;input type=&quot;submit&quot; value=&quot;Invite&quot; /&gt;</diff>
      <filename>tests/opensocial-jquery-1.0.3.test.html</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@ jQuery(function($, data) {
   var data = { vq: 'yahoo', alt: 'json-in-script' };
   $.getJSON(url, data).next(function(json) {
 	$.each(json.feed.entry, function() {
-      var img = $('&lt;img width=&quot;80&quot; heieht=&quot;60&quot; /&gt;')
+      var img = $('&lt;img width=&quot;80&quot; height=&quot;60&quot; /&gt;')
 	    .attr('src', this.media$group.media$thumbnail[0].url);
       $('&lt;a target=&quot;_blank&quot; /&gt;')
 	    .attr('href', this.media$group.media$player[0].url)</diff>
      <filename>tests/opensocial-jquery-1.0.3.test.xml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>68df3e4ebae238077552394f4e5f49f0f7573ae2</id>
    </parent>
  </parents>
  <author>
    <name>nakajiman@lrlab.to</name>
    <email>nakajiman@lrlab.to@5aca8406-c911-11dd-a8b6-f5aca7b582bb</email>
  </author>
  <url>http://github.com/lackac/opensocial-jquery/commit/bc9ccaa6a9e65c17db5754d2a528dfe9ceb5f420</url>
  <id>bc9ccaa6a9e65c17db5754d2a528dfe9ceb5f420</id>
  <committed-date>2009-06-16T15:20:22-07:00</committed-date>
  <authored-date>2009-06-16T15:20:22-07:00</authored-date>
  <message>opensocial-jquery 1.0.4 RC1 &#26222;&#36890;&#12398; jQuery &#12392;&#12375;&#12390;&#12418;&#20351;&#12360;&#12427;&#12424;&#12358;&#12395;&#12375;&#12383;</message>
  <tree>c69faf7ef4c6c222869de43719535528cddfdd0f</tree>
  <committer>
    <name>nakajiman@lrlab.to</name>
    <email>nakajiman@lrlab.to@5aca8406-c911-11dd-a8b6-f5aca7b582bb</email>
  </committer>
</commit>
