You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2008/08/28 14:31:49 UTC

svn commit: r689801 - in /wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng: AjaxBehavior.java AjaxRequestAttributes.java ChainingList.java ExpressionDecorator.java FunctionList.java js/yui-combo.js

Author: knopp
Date: Thu Aug 28 05:31:46 2008
New Revision: 689801

URL: http://svn.apache.org/viewvc?rev=689801&view=rev
Log:
more stuff to go

Added:
    wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ChainingList.java   (with props)
    wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ExpressionDecorator.java   (with props)
    wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/js/yui-combo.js   (with props)
Modified:
    wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxBehavior.java
    wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxRequestAttributes.java
    wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/FunctionList.java

Modified: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxBehavior.java
URL: http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxBehavior.java?rev=689801&r1=689800&r2=689801&view=diff
==============================================================================
--- wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxBehavior.java (original)
+++ wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxBehavior.java Thu Aug 28 05:31:46 2008
@@ -77,6 +77,9 @@
 	private final static ResourceReference AJAX_NG = new JavascriptResourceReference(
 		AjaxBehavior.class, "js/wicket-ajax-ng.js");
 
+	private final static ResourceReference YUI_COMBO = new JavascriptResourceReference(
+		AjaxBehavior.class, "js/yui-combo.js");
+	
 	/**
 	 * Wicket javascript namespace.
 	 */
@@ -84,6 +87,8 @@
 
 	public void renderHead(Component component, IHeaderResponse response)
 	{
+				
+		/*
 		response.renderJavascriptReference(YUI_BASE);
 		response.renderJavascriptReference(YUI_OOP);
 		response.renderJavascriptReference(YUI_EVENT);
@@ -91,7 +96,9 @@
 		response.renderJavascriptReference(YUI_NODE);
 		response.renderJavascriptReference(YUI_IO);
 		response.renderJavascriptReference(YUI_GET);
-		response.renderJavascriptReference(AJAX_NG);
+		*/
+		response.renderJavascriptReference(YUI_COMBO);
+		response.renderJavascriptReference(AJAX_NG);		
 
 		CharSequence prefix = RequestCycle.get().urlFor(AjaxRequestTarget.DUMMY);
 
@@ -241,14 +248,21 @@
 		{
 			if (list.size() == 1)
 			{
-				target.put(attributeName, new JSONFunction(list.get(0)));
+				Object function = list.get(0);
+				if (function != null)
+				{
+					target.put(attributeName, new JSONFunction(function.toString()));
+				}
 			}
 			else
 			{
 				JSONArray a = new JSONArray();
-				for (String s : list)
+				for (Object o : list)
 				{
-					a.put(new JSONFunction(s));
+					if (o != null)
+					{
+						a.put(new JSONFunction(o.toString()));
+					}
 				}
 				target.put(attributeName, a);
 			}
@@ -317,6 +331,25 @@
 	}
 
 	/**
+	 * Utility function to decorate javascript.
+	 * 
+	 * @param script
+	 * @return decorated javacsript
+	 */
+	public CharSequence decorateScript(CharSequence script)
+	{
+		ChainingList<ExpressionDecorator> decoratorList = getAttributes().getExpressionDecorators();
+		if (decoratorList != null)
+		{
+			for (ExpressionDecorator d : decoratorList)
+			{
+				script = d.decoreateExpression(script);
+			}
+		}
+		return script;
+	}
+	
+	/**
 	 * Returns attributes for Ajax Request.
 	 * 
 	 * @return {@link AjaxRequestAttributes} instance

Modified: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxRequestAttributes.java
URL: http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxRequestAttributes.java?rev=689801&r1=689800&r2=689801&view=diff
==============================================================================
--- wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxRequestAttributes.java (original)
+++ wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/AjaxRequestAttributes.java Thu Aug 28 05:31:46 2008
@@ -500,6 +500,32 @@
 	}
 
 	/**
+	 * Certain behaviors support decorating the javascript expression they generate with
+	 * {@link ExpressionDecorator}s.
+	 * <p>
+	 * This usually decorates the javascript expression that is responsible for creating
+	 * <code>RequestQueueItem</code> and adding it to the queue. The decorator may be useful to
+	 * intercept the <code>RequestQueueItem</code> creation on in the earliest possible time.
+	 * <p>
+	 * Note that not all Ajax behaviors are required to support decorating the expression.
+	 * 
+	 * @return list of {@link ExpressionDecorator} .
+	 */
+	public ChainingList<ExpressionDecorator> getExpressionDecorators()
+	{
+		ChainingList<ExpressionDecorator> result = null;
+		if (delegate != null)
+		{
+			result = delegate.getExpressionDecorators();
+		}
+		if (result == null)
+		{
+			result = new ChainingList<ExpressionDecorator>();
+		}
+		return result;
+	}
+
+	/**
 	 * Only applies for event behaviors. Returns whether the behavior should allow the default event
 	 * handler to be invoked. For example if the behavior is attached to a link and
 	 * {@link #allowDefault()} returns <code>false</code> (which is default value), the link's URL
@@ -513,7 +539,7 @@
 	{
 		if (delegate != null)
 		{
-			return delegate.allowDefault();			
+			return delegate.allowDefault();
 		}
 		else
 		{

Added: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ChainingList.java
URL: http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ChainingList.java?rev=689801&view=auto
==============================================================================
--- wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ChainingList.java (added)
+++ wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ChainingList.java Thu Aug 28 05:31:46 2008
@@ -0,0 +1,299 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.ajaxng;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.ListIterator;
+
+/**
+ * Simple list like class that supports method chaining during item manipulation.
+ * 
+ * @author Matej Knopp
+ * @param <T> item type
+ */
+public class ChainingList<T> implements Iterable<T>
+{
+	private final List<T> list;
+
+	/**
+	 * Creates new {@link ChainingList} instance from the list.
+	 * 
+	 * @param list
+	 */
+	public ChainingList(List<T> list)
+	{
+		this.list = list;
+	}
+	
+	/**
+	 * Creates new empty {@link ChainingList} instance.
+	 */
+	public ChainingList()
+	{
+		this.list = new ArrayList<T>();	
+	}
+	
+	/**
+	 * Returns the underlying list instance.
+	 * @return list
+	 */
+	public List<T> getList()
+	{
+		return list;
+	}
+	
+	/**
+	 * @see List#add(Object)
+	 * @param o
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> add(T o)
+	{
+		list.add(o);
+		return this;
+	}
+
+	/**
+	 * @see List#add(int, Object)
+	 * 
+	 * @param index
+	 * @param element
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> add(int index, T element)
+	{
+		list.add(index, element);
+		return this;
+	}
+
+	/**
+	 * @see List#addAll(Collection)
+	 * @param c
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> addAll(Collection<? extends T> c)
+	{
+		list.addAll(c);
+		return this;
+	}
+
+	/**
+	 * @see List#addAll(int, Collection)
+	 * @param index
+	 * @param c
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> addAll(int index, Collection<? extends T> c)
+	{
+		list.addAll(index, c);
+		return this;
+	}
+
+	/**
+	 * @see List#clear()
+	 * @return <code>this</code> 
+	 */
+	public ChainingList<T> clear()
+	{
+		list.clear();
+		return this;
+	}
+
+	/**
+	 * @see List#contains(Object)
+	 * @param o
+	 * @return boolean
+	 */
+	public boolean contains(Object o)
+	{
+		return list.contains(o);
+	}
+
+	/**
+	 * @see List#contains(Object)
+	 * @param c
+	 * @return boolean
+	 */
+	public boolean containsAll(Collection<?> c)
+	{
+		return list.containsAll(c);
+	}
+
+	/**
+	 * @see List#get(int)
+	 * @param index
+	 * @return item or <code>null</code>
+	 */
+	public T get(int index)
+	{
+		return list.get(index);
+	}
+
+	/**
+	 * @see List#indexOf(Object)
+	 * @param o
+	 * @return index
+	 */
+	public int indexOf(Object o)
+	{
+		return list.indexOf(o);
+	}
+
+	/**
+	 * @see List#isEmpty()
+	 * @return boolean
+	 */
+	public boolean isEmpty()
+	{
+		return list.isEmpty();
+	}
+
+	/** 
+	 * @see java.lang.Iterable#iterator()
+	 */
+	public Iterator<T> iterator()
+	{
+		return list.iterator();
+	}
+
+	/**
+	 * @see List#lastIndexOf(Object)
+	 * @param o
+	 * @return last index
+	 */
+	public int lastIndexOf(Object o)
+	{
+		return list.lastIndexOf(o);
+	}
+
+	/**
+	 * @see List#listIterator()
+	 * @return list iterator
+	 */
+	public ListIterator<T> listIterator()
+	{
+		return list.listIterator();
+	}
+
+	/**
+	 * @see List#listIterator(int)
+	 * @param index
+	 * @return list iterator
+	 */
+	public ListIterator<T> listIterator(int index)
+	{
+		return list.listIterator(index);
+	}
+
+	/**
+	 * @see List#remove(Object)
+	 * @param o
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> remove(Object o)
+	{
+		list.remove(o);
+		return this;
+	}
+
+	/**
+	 * @see List#remove(int)
+	 * @param index
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> remove(int index)
+	{
+		list.remove(index);
+		return this;
+	}
+
+	/**
+	 * @see List#removeAll(Collection)
+	 * @param c
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> removeAll(Collection<?> c)
+	{
+		list.removeAll(c);
+		return this;
+	}
+
+	/**
+	 * @see List#retainAll(Collection)
+	 * @param c
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> retainAll(Collection<?> c)
+	{
+		list.retainAll(c);
+		return this;
+	}
+
+	/**
+	 * @see List#set(int, Object)
+	 * @param index
+	 * @param element
+	 * @return <code>this</code>
+	 */
+	public ChainingList<T> set(int index, T element)
+	{
+		list.set(index, element);
+		return this;
+	}
+
+	/**
+	 * @see List#size()
+	 * @return size
+	 */
+	public int size()
+	{
+		return list.size();
+	}
+
+	/**
+	 * @see List#subList(int, int) 
+	 * @param fromIndex
+	 * @param toIndex
+	 * @return chaining list
+	 */
+	public ChainingList<T> subList(int fromIndex, int toIndex)
+	{
+		return new ChainingList<T>(list.subList(fromIndex, toIndex));
+	}
+
+	/**
+	 * @see List#toArray()
+	 * @return array
+	 */
+	public Object[] toArray()
+	{
+		return list.toArray();
+	}
+
+	/**
+	 * @see List#toArray(Object[])
+	 * @param a
+	 * @return array
+	 */
+	public T[] toArray(T[] a)
+	{
+		return list.toArray(a);
+	}
+}

Propchange: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ChainingList.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ExpressionDecorator.java
URL: http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ExpressionDecorator.java?rev=689801&view=auto
==============================================================================
--- wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ExpressionDecorator.java (added)
+++ wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ExpressionDecorator.java Thu Aug 28 05:31:46 2008
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.ajaxng;
+
+/**
+ * Decorator of an expression.
+ * 
+ * @author Matej Knopp
+ */
+public interface ExpressionDecorator
+{
+	/**
+	 * Decorate the given expression (possibly prepending/appending it with another expression).
+	 * 
+	 * @param expression
+	 * @return decorated expression
+	 */
+	public CharSequence decoreateExpression(CharSequence expression);
+}

Propchange: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/ExpressionDecorator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/FunctionList.java
URL: http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/FunctionList.java?rev=689801&r1=689800&r2=689801&view=diff
==============================================================================
--- wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/FunctionList.java (original)
+++ wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/FunctionList.java Thu Aug 28 05:31:46 2008
@@ -16,134 +16,32 @@
  */
 package org.apache.wicket.ajaxng;
 
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
 import java.util.List;
-import java.util.ListIterator;
 
-public class FunctionList implements Iterable<String> 
+/**
+ * Chaining list of javascript functions. Function can by any object that renders a javascript
+ * function (in the form of "function(arg, ...) { ... }") on {@link #toString()}.
+ * 
+ * @author Matej Knopp
+ */
+public class FunctionList extends ChainingList<Object>
 {
-	private final List<String> list = new ArrayList<String>();
-	
-	public FunctionList add(String o)
-	{
-		list.add(o);
-		return this;
-	}
-
-	public FunctionList add(int index, String element)
-	{
-		list.add(index, element);
-		return this;
-	}
-
-	public FunctionList addAll(Collection<? extends String> c)
-	{
-		list.addAll(c);
-		return this;
-	}
-
-	public FunctionList addAll(int index, Collection<? extends String> c)
-	{
-		list.addAll(index, c);
-		return this;
-	}
-
-	public void clear()
-	{
-		list.clear();
-	}
-
-	public boolean contains(Object o)
-	{
-		return list.contains(o);
-	}
-
-	public boolean containsAll(Collection<?> c)
-	{
-		return list.containsAll(c);
-	}
-
-	public String get(int index)
-	{
-		return list.get(index);
-	}
-
-	public int indexOf(Object o)
-	{
-		return list.indexOf(o);
-	}
-
-	public boolean isEmpty()
-	{
-		return list.isEmpty();
-	}
-
-	public Iterator<String> iterator()
+	/**
+	 * Construct.
+	 */
+	public FunctionList()
 	{
-		return list.iterator();
+		super();
 	}
 
-	public int lastIndexOf(Object o)
-	{
-		return list.lastIndexOf(o);
-	}
-
-	public ListIterator<String> listIterator()
-	{
-		return list.listIterator();
-	}
-
-	public ListIterator<String> listIterator(int index)
-	{
-		return list.listIterator(index);
-	}
+	/**
+	 * Construct.
 
-	public boolean remove(Object o)
+	 * @param list
+	 */
+	public FunctionList(List<Object> list)
 	{
-		return list.remove(o);
+		super(list);
 	}
 
-	public String remove(int index)
-	{
-		return list.remove(index);
-	}
-
-	public boolean removeAll(Collection<?> c)
-	{
-		return list.removeAll(c);
-	}
-
-	public boolean retainAll(Collection<?> c)
-	{
-		return list.retainAll(c);
-	}
-
-	public String set(int index, String element)
-	{
-		return list.set(index, element);
-	}
-
-	public int size()
-	{
-		return list.size();
-	}
-
-	public List<String> subList(int fromIndex, int toIndex)
-	{
-		return list.subList(fromIndex, toIndex);
-	}
-
-	public Object[] toArray()
-	{
-		return list.toArray();
-	}
-
-	public <T> T[] toArray(T[] a)
-	{
-		return list.toArray(a);
-	}
-	
-	
 }

Added: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/js/yui-combo.js
URL: http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/js/yui-combo.js?rev=689801&view=auto
==============================================================================
--- wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/js/yui-combo.js (added)
+++ wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/js/yui-combo.js Thu Aug 28 05:31:46 2008
@@ -0,0 +1,50 @@
+/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr1
+*/
+(function(){var D={},B={"io.xdrReady":1,"io.start":1,"io.success":1,"io.failure":1,"io.abort":1};if(typeof YUI==="undefined"||!YUI){YUI=function(G){var F=this;if(F==window){return new YUI(G);}else{F._init(G);F._setup();return F;}};}YUI.prototype={_init:function(G){G=G||{};var F=(G.win)?(G.win.contentWindow):G.win||window;G.win=F;G.doc=F.document;G.debug=("debug" in G)?G.debug:true;G.useConsole=("useConsole" in G)?G.useConsole:true;this.config=G;this.Env={mods:{},_idx:0,_pre:"yuid",_used:{},_attached:{},_yidx:0,_uidx:0};if(YUI.Env){this.Env._yidx=++YUI.Env._idx;this.id=this.stamp(this);D[this.id]=this;}this.constructor=YUI;},_setup:function(F){this.use("yui");this.config=this.merge(this.config);},applyTo:function(L,K,H){if(!(K in B)){this.fail(K+": applyTo not allowed");return null;}var G=D[L];if(G){var J=K.split("."),F=G;for(var I=0;I<J.length;I=I+1){F=F[J[I]];if(!F){this.fail("applyTo not found: "+K);}}return F.apply(G,H);}return null;},add:function(H,J,G,I){var F={name:H,f
 n:J,version:G,details:I||{}};YUI.Env.mods[H]=F;return this;},_attach:function(G,K){var Q=YUI.Env.mods,H=this.Env._attached;for(var N=0,L=G.length;N<L;N=N+1){var I=G[N],J=Q[I],M;if(!H[I]&&J){H[I]=true;var O=J.details,P=O.requires,F=O.use;if(P){this._attach(this.Array(P));}if(J.fn){J.fn(this);}if(F){this._attach(this.Array(F));}}}},use:function(){var G=this,P=Array.prototype.slice.call(arguments,0),S=YUI.Env.mods,T=G.Env._used,Q,K=P[0],I=false,R=P[P.length-1];if(typeof R==="function"){P.pop();G.Env._callback=R;}else{R=null;}if(K==="*"){P=[];for(var L in S){if(S.hasOwnProperty(L)){P.push(L);}}return G.use.apply(G,P);}if(G.Loader){I=true;Q=new G.Loader(G.config);Q.require(P);Q.ignoreRegistered=true;Q.calculate();P=Q.sorted;}var N=[],F=[],O=function(X){if(T[X]){return ;}var U=S[X],W,Y,V;if(U){T[X]=true;Y=U.details.requires;V=U.details.use;}else{N.push(X);}if(Y){if(G.Lang.isString(Y)){O(Y);}else{for(W=0;W<Y.length;W=W+1){O(Y[W]);}}}F.push(X);};for(var M=0,J=P.length;M<J;M=M+1){O(P
 [M]);}var H=function(V){V=V||{success:true,msg:"not dynamic"};if(G.Env._callback){var U=G.Env._callback;G.Env._callback=null;U(G,V);}if(G.fire){G.fire("yui:load",G,V);}};if(G.Loader&&N.length){Q=new G.Loader(G.config);Q.onSuccess=H;Q.onFailure=H;Q.onTimeout=H;Q.attaching=P;Q.require(N);Q.insert();}else{G._attach(F);H();}return G;},namespace:function(){var F=arguments,J=null,H,G,I;for(H=0;H<F.length;H=H+1){I=F[H].split(".");J=this;for(G=(I[0]=="YUI")?1:0;G<I.length;G=G+1){J[I[G]]=J[I[G]]||{};J=J[I[G]];}}return J;},log:function(){},fail:function(H,G){var F=this;F.log(H,"error");if(this.config.throwFail){throw G||new Error(H);}return this;},guid:function(H){var G=this.Env,F=(H)||G._pre;return F+"-"+G._yidx+"-"+G._uidx++;},stamp:function(G){if(!G){return G;}var F=(typeof G==="string")?G:G._yuid;if(!F){F=this.guid();G._yuid=F;}return F;}};var E=YUI,C=E.prototype,A;for(A in C){if(true){E[A]=C[A];}}E._init();})();YUI.add("yui-base",null,"3.0.0pr1");YUI.add("log",function(A){A.log=f
 unction(D,J,B){var C=A,I=C.config,K=C.Env._eventstack,G=(K&&K.logging);if(I.debug&&!G){if(B){var L=I.logExclude,F=I.logInclude;if(F&&!(B in F)){G=true;}else{if(L&&(B in L)){G=true;}}}if(!G){if(I.useConsole&&typeof console!="undefined"){var H=(J&&console[J])?J:"log",E=(B)?B+": "+D:D;console[H](E);}if(C.fire&&!G){C.fire("yui:log",D,J,B);}}}return C;};},"3.0.0pr1");YUI.add("lang",function(D){D.Lang=D.Lang||{};var A=D.Lang,C="splice",B="length";A.isArray=function(E){if(E){return(E[C]&&A.isNumber(E[B]));}return false;};A.isBoolean=function(E){return typeof E==="boolean";};A.isFunction=function(E){return typeof E==="function";};A.isDate=function(E){return E instanceof Date;};A.isNull=function(E){return E===null;};A.isNumber=function(E){return typeof E==="number"&&isFinite(E);};A.isObject=function(F,E){return(F&&(typeof F==="object"||(!E&&A.isFunction(F))))||false;};A.isString=function(E){return typeof E==="string";};A.isUndefined=function(E){return typeof E==="undefined";};A.trim=
 function(E){try{return E.replace(/^\s+|\s+$/g,"");}catch(F){return E;}};A.isValue=function(E){return(A.isObject(E)||A.isString(E)||A.isNumber(E)||A.isBoolean(E));};},"3.0.0pr1");YUI.add("array",function(E){var C=E.Lang,D=Array.prototype;E.Array=function(H,F,G){var A=(G)?2:E.Array.test(H);switch(A){case 1:return(F)?H.slice(H,F):H;case 2:return D.slice.call(H,F||0);default:return[H];}};var B=E.Array;B.test=function(G){var F=0;if(C.isObject(G,true)){if(C.isArray(G)){F=1;}else{try{if("length" in G&&!("tagName" in G)&&!("alert" in G)){F=2;}}catch(A){}}}return F;};B.each=(D.forEach)?function(A,F,G){D.forEach.call(A,F,G||E);return E;}:function(F,H,I){var A=F.length,G;for(G=0;G<A;G=G+1){H.call(I||E,F[G],G,F);}return E;};B.hash=function(G,F){var J={},A=G.length,I=F&&F.length,H;for(H=0;H<A;H=H+1){J[G[H]]=(I&&I>H)?F[H]:true;}return J;};B.indexOf=function(A,G){for(var F=0;F<A.length;F=F+1){if(A[F]===G){return F;}}return -1;};},"3.0.0pr1");YUI.add("core",function(H){var D=H.Lang,C=H.Arra
 y,B=Object.prototype,G=["toString","valueOf"],F="prototype",E=(H.UA&&H.UA.ie)?function(L,K,I){for(var J=0,A=G;J<A.length;J=J+1){var N=A[J],M=K[N];if(D.isFunction(M)&&M!=B[N]){if(!I||(N in I)){L[N]=M;}}}}:function(){};H.merge=function(){var I=arguments,K={};for(var J=0,A=I.length;J<A;J=J+1){H.mix(K,I[J],true);}return K;};H.mix=function(A,R,J,Q,M,O){if(!R||!A){return H;}var P=(Q&&Q.length)?C.hash(Q):null,K=O,N=function(U,T,X,W){var S=K&&D.isArray(U);for(var V in T){if(F===V||"_yuid"===V){continue;}if(!P||W||(V in P)){if(K&&D.isObject(U[V],true)){N(U[V],T[V],X,true);}else{if(!S&&(J||!(V in U))){U[V]=T[V];}else{if(S){U.push(T[V]);}}}}}E(U,T,P);};var L=A.prototype,I=R.prototype;switch(M){case 1:N(L,I,true);break;case 2:N(A,R);N(L,I,true);break;case 3:N(A,I,true);break;case 4:N(L,R);break;default:N(A,R);}return A;};},"3.0.0pr1");YUI.add("object",function(C){C.Object=function(E){var D=function(){};D.prototype=E;return new D();};var B=C.Object,A=C.Lang;B.owns=function(E,D){return(E&
 &E.hasOwnProperty)?E.hasOwnProperty(D):false;};B.keys=function(F){var D=[],E;
+for(E in F){if(F.hasOwnProperty(E)){D.push(E);}}return D;};B.each=function(H,G,I,F){var E=I||C;for(var D in H){if(F||H.hasOwnProperty(D)){G.call(E,H[D],D,H);}}return C;};},"3.0.0pr1");YUI.add("ua",function(A){A.UA=function(){var D={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var C=navigator.userAgent,B;if((/KHTML/).test(C)){D.webkit=1;}B=C.match(/AppleWebKit\/([^\s]*)/);if(B&&B[1]){D.webkit=parseFloat(B[1]);if(/ Mobile\//.test(C)){D.mobile="Apple";}else{B=C.match(/NokiaN[^\/]*/);if(B){D.mobile=B[0];}}}if(!D.webkit){B=C.match(/Opera[\s\/]([^\s]*)/);if(B&&B[1]){D.opera=parseFloat(B[1]);B=C.match(/Opera Mini[^;]*/);if(B){D.mobile=B[0];}}else{B=C.match(/MSIE\s([^;]*)/);if(B&&B[1]){D.ie=parseFloat(B[1]);}else{B=C.match(/Gecko\/([^\s]*)/);if(B){D.gecko=1;B=C.match(/rv:([^\s\)]*)/);if(B&&B[1]){D.gecko=parseFloat(B[1]);}}}}}return D;}();},"3.0.0pr1");YUI.add("later",function(C){var A=C.Lang;var B=function(K,E,L,G,H){K=K||0;E=E||{};var F=L,J=G,I,D;if(A.isString(L)){F=E[L];}if(!F){C.fa
 il("method undefined");}if(!A.isArray(J)){J=[G];}I=function(){F.apply(E,J);};D=(H)?setInterval(I,K):setTimeout(I,K);return{interval:H,cancel:function(){if(this.interval){clearInterval(D);}else{clearTimeout(D);}}};};C.later=B;A.later=B;},"3.0.0pr1");(function(){var B=["yui-base","log","lang","array","core"],A,C=function(E){var D=E.config;E.use.apply(E,B);if(D.core){A=D.core;}else{A=["object","ua","later"];A.push("get","loader");}E.use.apply(E,A);};YUI.add("yui",C,"3.0.0pr1");})();/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr1
+*/
+YUI.add("get",function(C){var B=C.UA,A=C.Lang;C.Get=function(){var K={},I=0,D=0,R=false;var T=function(X,U,Y){var V=Y||C.config.win,Z=V.document,a=Z.createElement(X);for(var W in U){if(U[W]&&C.Object.owns(U,W)){a.setAttribute(W,U[W]);}}return a;};var Q=function(U,V,X){var W=X||"utf-8";return T("link",{"id":"yui__dyn_"+(D++),"type":"text/css","charset":W,"rel":"stylesheet","href":U},V);};var P=function(U,V,X){var W=X||"utf-8";return T("script",{"id":"yui__dyn_"+(D++),"type":"text/javascript","charset":W,"src":U},V);};var S=function(X,W){var U=K[X];if(U.timer){U.timer.cancel();}if(U.onFailure){var V=U.context||U;U.onFailure.call(V,M(U,W));}};var J=function(U,X){var V=K[X],W=(A.isString(U))?V.win.document.getElementById(U):U;if(!W){S(X,"target node not found: "+U);}return W;};var L=function(b){var Y=K[b];if(Y){var a=Y.nodes,U=a.length,Z=Y.win.document,X=Z.getElementsByTagName("head")[0];if(Y.insertBefore){var W=J(Y.insertBefore,b);if(W){X=W.parentNode;}}for(var V=0;V<U;V=V+1){X
 .removeChild(a[V]);}}Y.nodes=[];};var M=function(U,V){return{tId:U.tId,win:U.win,data:U.data,nodes:U.nodes,msg:V,purge:function(){L(this.tId);}};};var G=function(X){var U=K[X];if(U.timer){U.timer.cancel();}U.finished=true;if(U.aborted){var W="transaction "+X+" was aborted";S(X,W);return ;}if(U.onSuccess){var V=U.context||U;U.onSuccess.call(V,M(U));}};var N=function(W){var U=K[W];if(U.onTimeout){var V=U.context||U;U.onTimeout.call(V,M(U));}};var F=function(W,Z){var V=K[W];if(V.timer){V.timer.cancel();}if(V.aborted){var Y="transaction "+W+" was aborted";S(W,Y);return ;}if(Z){V.url.shift();if(V.varName){V.varName.shift();}}else{V.url=(A.isString(V.url))?[V.url]:V.url;if(V.varName){V.varName=(A.isString(V.varName))?[V.varName]:V.varName;}}var c=V.win,b=c.document,a=b.getElementsByTagName("head")[0],X;if(V.url.length===0){G(W);return ;}var U=V.url[0];if(V.timeout){V.timer=A.later(V.timeout,V,N,W);}if(V.type==="script"){X=P(U,c,V.charset);}else{X=Q(U,c,V.charset);}H(V.type,X,W,U,c
 ,V.url.length);V.nodes.push(X);if(V.insertBefore){var e=J(V.insertBefore,W);if(e){e.parentNode.insertBefore(X,e);}}else{a.appendChild(X);}if((B.webkit||B.gecko)&&V.type==="css"){F(W,U);}};var E=function(){if(R){return ;}R=true;for(var U in K){if(K.hasOwnProperty(U)){var V=K[U];if(V.autopurge&&V.finished){L(V.tId);delete K[U];}}}R=false;};var O=function(V,U,W){var Y="q"+(I++);W=W||{};if(I%C.Get.PURGE_THRESH===0){E();}K[Y]=C.merge(W,{tId:Y,type:V,url:U,finished:false,nodes:[]});var X=K[Y];X.win=X.win||C.config.win;X.context=X.context||X;X.autopurge=("autopurge" in X)?X.autopurge:(V==="script")?true:false;A.later(0,X,F,Y);return{tId:Y};};var H=function(W,b,a,V,Z,Y,U){var X=U||F;if(B.ie){b.onreadystatechange=function(){var c=this.readyState;if("loaded"===c||"complete"===c){X(a,V);}};}else{if(B.webkit){if(W==="script"){b.addEventListener("load",function(){X(a,V);});}}else{b.onload=function(){X(a,V);};b.onerror=function(c){S(a,c+": "+V);};}}};return{PURGE_THRESH:20,_finalize:funct
 ion(U){A.later(0,null,G,U);},abort:function(V){var W=(A.isString(V))?V:V.tId;var U=K[W];if(U){U.aborted=true;}},script:function(U,V){return O("script",U,V);},css:function(U,V){return O("css",U,V);}};}();},"3.0.0pr1");/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr1
+*/
+YUI.add("oop",function(F){var D=F.Lang,C=F.Array,B=Object.prototype,E;F.augment=function(A,S,I,Q,M){var K=S.prototype,O=null,R=S,N=(M)?F.Array(M):[],H=A.prototype,L=H||A,P=false;if(H&&R){var G={},J={};O={};F.each(K,function(U,T){J[T]=function(){var W=this;for(var V in G){if(F.Object.owns(G,V)&&(W[V]===J[V])){W[V]=G[V];}}R.apply(W,N);return G[T].apply(W,arguments);};if((!Q||(T in Q))&&(I||!(T in this))){if(D.isFunction(U)){G[T]=U;this[T]=J[T];}else{this[T]=U;}}},O,true);}else{P=true;}F.mix(L,O||K,I,Q);if(P){S.apply(L,N);}return A;};F.aggregate=function(H,G,A,I){return F.mix(H,G,A,I,0,true);};F.extend=function(J,I,G,L){if(!I||!J){F.fail("extend failed, verify dependencies");}var K=I.prototype,H=F.Object(K),A;J.prototype=H;H.constructor=J;J.superclass=K;if(I!=Object&&K.constructor==B.constructor){K.constructor=I;}if(G){F.mix(H,G,true);}if(L){F.mix(J,L,true);}return J;};F.each=function(H,G,I,A){if(H.each&&H.item){return H.each.call(H,G,I);}else{switch(C.test(H)){case 1:return C.
 each(H,G,I);case 2:return C.each(F.Array(H,0,true),G,I);default:return F.Object.each(H,G,I,A);}}};F.clone=function(K,J,I,L,A){if(!D.isObject(K)){return K;}if(D.isDate(K)){return new Date(K);}var H=D.isFunction(K),G;if(H){if(K instanceof RegExp){return new RegExp(K.source);}G=F.bind(K,A);}else{G=(J)?{}:F.Object(K);}F.each(K,function(N,M){if(!I||(I.call(L||this,N,M,this,K)!==false)){this[M]=F.clone(N,J,I,L,this);}},G);return G;};F.bind=function(G,H){var A=F.Array(arguments,2,true);return function(){return G.apply(H||G,F.Array(arguments,0,true).concat(A));};};},"3.0.0pr1");/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr1
+*/
+YUI.add("event",function(A){A.on=function(C,D,E){if(C.indexOf(":")>-1){var B=C.split(":");switch(B[0]){default:return A.subscribe.apply(A,arguments);}}else{return A.Event.attach.apply(A.Event,arguments);}};A.detach=function(C,D,E){if(A.Lang.isObject(C)&&C.detach){return C.detach();}else{if(C.indexOf(":")>-1){var B=C.split(":");switch(B[0]){default:return A.unsubscribe.apply(A,arguments);}}else{return A.Event.detach.apply(A.Event,arguments);}}};A.before=function(B,C,D){if(A.Lang.isFunction(B)){return A.Do.before.apply(A.Do,arguments);}return A;};A.after=function(B,C,D){if(A.Lang.isFunction(B)){return A.Do.after.apply(A.Do,arguments);}return A;};},"3.0.0",{use:["aop","event-custom","event-target","event-ready","event-dom","event-facade"]});YUI.add("aop",function(C){var A=0,B=1;C.Do={objs:{},before:function(E,G,H,I){var F=E;if(I){var D=[E,I].concat(C.Array(arguments,4,true));F=C.bind.apply(C,D);}return this._inject(A,F,G,H);},after:function(E,G,H,I){var F=E;if(I){var D=[E,I].co
 ncat(C.Array(arguments,4,true));F=C.bind.apply(C,D);}return this._inject(B,F,G,H);},_inject:function(D,F,G,I){var J=C.stamp(G);if(!this.objs[J]){this.objs[J]={};}var H=this.objs[J];if(!H[I]){H[I]=new C.Do.Method(G,I);G[I]=function(){return H[I].exec.apply(H[I],arguments);};}var E=J+C.stamp(F)+I;H[I].register(E,F,D);return E;},detach:function(D){delete this.before[D];delete this.after[D];},_unload:function(E,D){}};C.Do.Method=function(D,E){this.obj=D;this.methodName=E;this.method=D[E];this.before={};this.after={};};C.Do.Method.prototype.register=function(E,F,D){if(D){this.after[E]=F;}else{this.before[E]=F;}};C.Do.Method.prototype.exec=function(){var F=C.Array(arguments,0,true),G,E,I,H=this.before,D=this.after;for(G in H){if(H.hasOwnProperty(G)){E=H[G].apply(this.obj,F);if(E&&E.constructor==C.Do.Error){return E.retVal;}else{if(E&&E.constructor==C.Do.AlterArgs){F=E.newArgs;}}}}E=this.method.apply(this.obj,F);for(G in D){if(D.hasOwnProperty(G)){I=D[G].apply(this.obj,F);if(I&&I.c
 onstructor==C.Do.Error){return I.retVal;}else{if(I&&I.constructor==C.Do.AlterReturn){E=I.newRetVal;}}}}return E;};C.Do.Error=function(E,D){this.msg=E;this.retVal=D;};C.Do.AlterArgs=function(E,D){this.msg=E;this.newArgs=D;};C.Do.AlterReturn=function(E,D){this.msg=E;this.newRetVal=D;};},"3.0.0");YUI.add("event-custom",function(D){var B="_event:onsub",C="after",A=["broadcast","bubbles","context","configured","currentTarget","defaultFn","details","emitFacade","fireOnce","host","preventable","preventedFn","queuable","silent","stoppedFn","target","type"];D.EventHandle=function(E,F){this.evt=E;this.sub=F;};D.EventHandle.prototype={detach:function(){this.evt._delete(this.sub);}};D.CustomEvent=function(E,F){F=F||{};this.id=D.stamp(this);this.type=E;this.context=D;this.broadcast=0;this.queuable=false;this.subscribers={};this.afters={};this.fired=false;this.fireOnce=false;this.stopped=0;this.prevented=0;this.host=null;this.defaultFn=null;this.stoppedFn=null;this.preventedFn=null;this.p
 reventable=true;this.bubbles=true;this.emitFacade=false;this.applyConfig(F,true);if(E!==B){this.subscribeEvent=new D.CustomEvent(B,{context:this,silent:true});}};D.CustomEvent.prototype={_YUI_EVENT:true,applyConfig:function(F,E){if(F){D.mix(this,F,E,A);}},_subscribe:function(H,J,F,E){if(!H){D.fail("Invalid callback for CE: "+this.type);}var I=this.subscribeEvent;if(I){I.fire.apply(I,F);}var G=new D.Subscriber(H,J,F,E);if(this.fireOnce&&this.fired){D.later(0,this,this._notify,G);}if(E==C){this.afters[G.id]=G;}else{this.subscribers[G.id]=G;}return new D.EventHandle(this,G);},subscribe:function(E,F){return this._subscribe(E,F,D.Array(arguments,2,true));},after:function(E,F){return this._subscribe(E,F,D.Array(arguments,2,true),C);},unsubscribe:function(H,J){if(H&&H.detach){return H.detach();}if(!H){return this.unsubscribeAll();}var I=false,F=this.subscribers;for(var E in F){if(F.hasOwnProperty(E)){var G=F[E];if(G&&G.contains(H,J)){this._delete(G);I=true;}}}return I;},_getFacade:
 function(F){var E=this._facade;if(!E){E=new D.Event.Facade(this,this.currentTarget);}var G=F&&F[0];if(D.Lang.isObject(G,true)&&!G._yuifacade){D.mix(E,G,true);}E.details=this.details;E.target=this.target;E.currentTarget=this.currentTarget;E.stopped=0;E.prevented=0;this._facade=E;return this._facade;},_notify:function(H,G,E){var F;if(this.emitFacade){if(!E){E=this._getFacade(G);G[0]=E;}}F=H.notify(this.context,G);if(false===F||this.stopped>1){return false;}return true;},log:function(H,E){var G=D.Env._eventstack,F=G&&G.silent;if(!this.silent){}},fire:function(){var N=D.Env._eventstack;if(N){if(this.queuable&&this.type!=N.next.type){N.queue.push([this,arguments]);return true;}}else{D.Env._eventstack={id:this.id,next:this,silent:this.silent,logging:(this.type==="yui:log"),stopped:0,prevented:0,queue:[]};N=D.Env._eventstack;}var L=true;if(this.fireOnce&&this.fired){}else{var G=D.merge(this.subscribers),O,M=D.Array(arguments,0,true),H;this.stopped=0;this.prevented=0;this.target=thi
 s.target||this.host;this.currentTarget=this.host||this.currentTarget;this.fired=true;this.details=M.slice();var K=false;N.lastLogState=N.logging;var I=null;if(this.emitFacade){I=this._getFacade(M);M[0]=I;}for(H in G){if(G.hasOwnProperty(H)){if(!K){N.logging=(N.logging||(this.type==="yui:log"));K=true;}if(this.stopped==2){break;}O=G[H];if(O&&O.fn){L=this._notify(O,M,I);if(false===L){this.stopped=2;}}}}N.logging=(N.lastLogState);if(this.bubbles&&this.host&&!this.stopped){N.stopped=0;N.prevented=0;L=this.host.bubble(this);this.stopped=Math.max(this.stopped,N.stopped);this.prevented=Math.max(this.prevented,N.prevented);}if(this.defaultFn&&!this.prevented){this.defaultFn.apply(this.host||this,M);}if(!this.prevented&&this.stopped<2){G=D.merge(this.afters);for(H in G){if(G.hasOwnProperty(H)){if(!K){N.logging=(N.logging||(this.type==="yui:log"));K=true;}if(this.stopped==2){break;}O=G[H];if(O&&O.fn){L=this._notify(O,M,I);if(false===L){this.stopped=2;}}}}}}if(N.id===this.id){var J=N.q
 ueue;while(J.length){var E=J.pop(),F=E[0];N.stopped=0;N.prevented=0;
+N.next=F;L=F.fire.apply(F,E[1]);}D.Env._eventstack=null;}return(L!==false);},unsubscribeAll:function(){var F=this.subscribers,E;for(E in F){if(F.hasOwnProperty(E)){this._delete(F[E]);}}this.subscribers={};return E;},_delete:function(E){if(E){delete E.fn;delete E.obj;delete this.subscribers[E.id];delete this.afters[E.id];}},toString:function(){return this.type;},stopPropagation:function(){this.stopped=1;D.Env._eventstack.stopped=1;if(this.stoppedFn){this.stoppedFn.call(this.host||this,this);}},stopImmediatePropagation:function(){this.stopped=2;D.Env._eventstack.stopped=2;if(this.stoppedFn){this.stoppedFn.call(this.host||this,this);}},preventDefault:function(){if(this.preventable){this.prevented=1;D.Env._eventstack.prevented=1;}if(this.preventedFn){this.preventedFn.call(this.host||this,this);}}};D.Subscriber=function(H,I,G){this.fn=H;this.obj=I;this.id=D.stamp(this);var E=H;if(I){var F=(G)?D.Array(G):[];F.unshift(H,I);E=D.bind.apply(D,F);}this.wrappedFn=E;};D.Subscriber.protot
 ype={notify:function(E,G){var I=this.obj||E,F=true;try{F=this.wrappedFn.apply(I,G);}catch(H){D.fail(this+" failed: "+H.message,H);}return F;},contains:function(E,F){if(F){return((this.fn==E)&&this.obj==F);}else{return(this.fn==E);}},toString:function(){return"Subscriber "+this.id;}};},"3.0.0");YUI.add("event-target",function(C){var A={"yui:log":true};C.EventTarget=function(D){var E=(C.Lang.isObject(D))?D:{};this._yuievt={events:{},targets:{},config:E,defaults:{context:this,host:this,emitFacade:E.emitFacade||false,bubbles:("bubbles" in E)?E.bubbles:true}};};var B=C.EventTarget;B.prototype={subscribe:function(G,F,E){var H=this._yuievt.events[G]||this.publish(G),D=C.Array(arguments,1,true);return H.subscribe.apply(H,D);},unsubscribe:function(I,H,G){if(C.Lang.isObject(I)&&I.detach){return I.detach();}var D=this._yuievt.events;if(I){var J=D[I];if(J){return J.unsubscribe(H,G);}}else{var E=true;for(var F in D){if(C.Object.owns(D,F)){E=E&&D[F].unsubscribe(H,G);}}return E;}return fal
 se;},unsubscribeAll:function(D){return this.unsubscribe(D);},publish:function(E,F){var D=this._yuievt.events,G=D[E];if(G){G.applyConfig(F,true);}else{var H=F||{};C.mix(H,this._yuievt.defaults);G=new C.CustomEvent(E,H);D[E]=G;if(H.onSubscribeCallback){G.subscribeEvent.subscribe(H.onSubscribeCallback);}}return D[E];},addTarget:function(D){this._yuievt.targets[C.stamp(D)]=D;this._yuievt.hasTargets=true;},removeTarget:function(D){delete this._yuievt.targets[C.stamp(D)];},fire:function(G){var I=C.Lang.isString(G),F=(I)?G:(G&&G.type);var H=this.getEvent(F);if(!H){if(this._yuievt.hasTargets){H=this.publish(F);H.details=C.Array(arguments,(I)?1:0,true);return this.bubble(H);}return true;}var D=C.Array(arguments,(I)?1:0,true);var E=H.fire.apply(H,D);H.target=null;return E;},getEvent:function(D){var E=this._yuievt.events;return(E&&D in E)?E[D]:null;},bubble:function(E){var J=this._yuievt.targets,F=true;if(!E.stopped&&J){for(var H in J){if(J.hasOwnProperty(H)){var G=J[H],I=E.type,K=G.ge
 tEvent(I),D=E.target||this;if(!K){K=G.publish(I,E);K.context=(E.host===E.context)?G:E.context;K.host=G;K.defaultFn=null;K.preventedFn=null;K.stoppedFn=null;}K.target=D;K.currentTarget=G;F=F&&K.fire.apply(K,E.details);if(K.stopped){break;}}}}return F;},after:function(F,E){var G=this._yuievt.events[F]||this.publish(F),D=C.Array(arguments,1,true);return G.after.apply(G,D);}};C.mix(C,B.prototype,false,false,{bubbles:false});B.call(C);},"3.0.0");(function(){var E=YUI.Env,G=YUI.config,F=G.doc,B=G.pollInterval||20;if(!E._ready){E.windowLoaded=false;E._ready=function(){if(!E.DOMReady){E.DOMReady=true;if(F.removeEventListener){F.removeEventListener("DOMContentLoaded",A,false);}}};var A=function(C){YUI.Env._ready();};if(navigator.userAgent.match(/MSIE/)){E._dri=setInterval(function(){try{document.documentElement.doScroll("left");clearInterval(E._dri);E._dri=null;A();}catch(C){}},B);}else{F.addEventListener("DOMContentLoaded",A,false);}}YUI.add("event-ready",function(D){if(D===YUI){ret
 urn ;}D.publish("event:ready",{fireOnce:true});var C=function(){D.fire("event:ready");};if(E.DOMReady){C();}else{D.before(C,E,"_ready");}},"3.0.0");})();(function(){var C=function(G,F,E,D){if(G.addEventListener){G.addEventListener(F,E,!!D);}else{if(G.attachEvent){G.attachEvent("on"+F,E);}}},A=function(G,F,E,D){if(G.removeEventListener){G.removeEventListener(F,E,!!D);}else{if(G.detachEvent){G.detachEvent("on"+F,E);}}},B=function(){YUI.Env.windowLoaded=true;A(window,"load",B);};C(window,"load",B);YUI.add("event-dom",function(F){F.Event=function(){var H=false;var I=0;var G=[];var J={};var E=null;var K={};return{POLL_RETRYS:2000,POLL_INTERVAL:20,lastError:null,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){this._interval=setInterval(F.bind(this._tryPreloadAttach,this),this.POLL_INTERVAL);}},onAvailable:function(R,N,Q,P,O){var L=F.Array(R);for(var M=0;M<L.length;M=M+1){G.push({id:L[M],fn:N,obj:Q,override:P,checkReady:O});}I=this.POLL_RETRYS;s
 etTimeout(F.bind(this._tryPreloadAttach,this),0);},onContentReady:function(O,L,N,M){this.onAvailable(O,L,N,M,true);},onDOMReady:function(M){var L=F.Array(arguments,0,true);L.unshift("event:ready");F.on.apply(F,L);},addListener:function(M,P,Q,T){var c=F.Array(arguments,1,true),S=c[3],U=F.Event,d=F.Array(arguments,0,true);if(!Q||!Q.call){return false;}if(this._isValidCollection(M)){var L=[],Z,Y,X,R=function(g,f){var a=c.slice();a.unshift(g);Z=U.addListener.apply(U,a);L.push(Z);};F.each(M,R,U);return L;}else{if(F.Lang.isString(M)){var W=F.all(M);var V=W.size();if(V){if(V>1){d[0]=W;return U.addListener.apply(U,d);}else{M=W.item(0);}}else{this.onAvailable(M,function(){F.Event.addListener.apply(F.Event,d);});return true;}}}if(!M){return false;}var N=F.stamp(M),e="event:"+N+P,b=J[e];if(!b){b=F.publish(e,{silent:true,bubbles:false});b.el=M;b.type=P;b.fn=function(a){b.fire(F.Event.getEvent(a,M));};if(M==F.config.win&&P=="load"){b.fireOnce=true;E=e;if(YUI.Env.windowLoaded){b.fire();}}
 J[e]=b;K[N]=K[N]||{};K[N][e]=b;this.nativeAdd(M,P,b.fn,false);}c=F.Array(arguments,2,true);
+var O=T||F.get(M);c[1]=O;return b.subscribe.apply(b,c);},removeListener:function(N,Q,R){if(N&&N.detach){return N.detach();}var O,P,T;if(typeof N=="string"){N=F.get(N);}else{if(this._isValidCollection(N)){var S=true;for(O=0,P=N.length;O<P;++O){S=(this.removeListener(N[O],Q,R)&&S);}return S;}}if(!R||!R.call){return this.purgeElement(N,false,Q);}var L="event:"+F.stamp(N)+Q,M=J[L];if(M){return M.unsubscribe(R);}else{return false;}},getEvent:function(N,L){var M=N||window.event;if(!M){var O=this.getEvent.caller;while(O){M=O.arguments[0];if(M&&Event==M.constructor){break;}O=O.caller;}}return new F.Event.Facade(M,L,J["event:"+F.stamp(L)+N.type]);},generateId:function(L){var M=L.id;if(!M){M=F.stamp(L);L.id=M;}return M;},_isValidCollection:function(M){try{return(M&&typeof M!=="string"&&(M.each||M.length)&&!M.tagName&&!M.alert&&(M.item||typeof M[0]!=="undefined"));}catch(L){return false;}},_load:function(L){if(!H){H=true;if(F.fire){F.fire("event:ready");}F.Event._tryPreloadAttach();}},
 _tryPreloadAttach:function(){if(this.locked){return ;}if(F.UA.ie&&!YUI.Env.DOMReady){this.startInterval();return ;}this.locked=true;var Q=!H;if(!Q){Q=(I>0);}var P=[];var R=function(T,U){var S;if(U.override){if(U.override===true){S=U.obj;}else{S=U.override;}}else{S=F.get(T);}U.fn.call(S,U.obj);};var M,L,O,N;for(M=0,L=G.length;M<L;++M){O=G[M];if(O&&!O.checkReady){N=F.get(O.id);if(N){R(N,O);G[M]=null;}else{P.push(O);}}}for(M=0,L=G.length;M<L;++M){O=G[M];if(O&&O.checkReady){N=F.get(O.id);if(N){if(H||N.get("nextSibling")){R(N,O);G[M]=null;}}else{P.push(O);}}}I=(P.length===0)?0:I-1;if(Q){this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;return ;},purgeElement:function(Q,R,P){var N=(F.Lang.isString(Q))?F.get(Q):Q,S=F.stamp(N);var M=this.getListeners(N,P),O,L;if(M){for(O=0,L=M.length;O<L;++O){M[O].unsubscribeAll();}}if(R&&N&&N.childNodes){for(O=0,L=N.childNodes.length;O<L;++O){this.purgeElement(N.childNodes[O],R,P);}}},getListeners:funct
 ion(Q,P){var O=[],R=F.stamp(Q),N=(P)?"event:"+P:null,L=K[R];if(N){if(L[N]){O.push(L[N]);}}else{for(var M in L){O.push(L[M]);}}return(O.length)?O:null;},_unload:function(O){var N=F.Event,M,L;for(M in J){L=J[M];L.unsubscribeAll();N.nativeRemove(L.el,L.type,L.fn);delete J[M];}N.nativeRemove(window,"unload",N._unload);},nativeAdd:C,nativeRemove:A};}();var D=F.Event;if(F.UA.ie&&F.on){F.on("event:ready",D._tryPreloadAttach,D,true);}D.Custom=F.CustomEvent;D.Subscriber=F.Subscriber;D.Target=F.EventTarget;D.attach=function(K,J,I,L,H){var E=F.Array(arguments,0,true),G=E.splice(2,1);E.unshift(G[0]);return D.addListener.apply(D,E);};D.detach=function(I,H,G,J,E){return D.removeListener(G,I,H,J,E);};D.attach("load",D._load,window,D);D.nativeAdd(window,"unload",D._unload);D._tryPreloadAttach();},"3.0.0");})();YUI.add("event-facade",function(E){var C={"altKey":1,"cancelBubble":1,"ctrlKey":1,"clientX":1,"clientY":1,"detail":1,"keyCode":1,"metaKey":1,"shiftKey":1,"type":1,"x":1,"y":1};var B=E
 .UA,A={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},D=function(G){if(!G){return null;}try{if(B.webkit&&3==G.nodeType){G=G.parentNode;}}catch(F){}return E.Node.get(G);};E.Event.Facade=function(P,H,G,F){var L=P,J=H,M=E.config.doc,Q=M.body,R=L.pageX,O=L.pageY,I=(P._YUI_EVENT);for(var K in C){if(C.hasOwnProperty(K)){this[K]=L[K];}}if(!R&&0!==R){R=L.clientX||0;O=L.clientY||0;if(B.ie){R+=Math.max(M.documentElement.scrollLeft,Q.scrollLeft);O+=Math.max(M.documentElement.scrollTop,Q.scrollTop);}}this._yuifacade=true;this.pageX=R;this.pageY=O;var N=L.keyCode||L.charCode||0;if(B.webkit&&(N in A)){N=A[N];}this.keyCode=N;this.charCode=N;this.button=L.which||L.button;this.which=this.button;this.details=F;this.time=L.time||new Date().getTime();this.target=(I)?L.target:D(L.target||L.srcElement);this.currentTarget=(I)?J:D(J);var S=L.relatedTarget;if(!S){if(L.type=="mouseout"){S=L.toElement;}else{if(L.type=="mouseover"){S=L.fromElement;}}}this.relatedTarget=(I)?S:D(S);this.stop
 Propagation=function(){if(L.stopPropagation){L.stopPropagation();}else{L.cancelBubble=true;}if(G){G.stopPropagation();}};this.stopImmediatePropagation=function(){if(L.stopImmediatePropagation){L.stopImmediatePropagation();}else{this.stopPropagation();}if(G){G.stopImmediatePropagation();}};this.preventDefault=function(){if(L.preventDefault){L.preventDefault();}else{L.returnValue=false;}if(G){G.preventDefault();}};this.halt=function(T){if(T){this.stopImmediatePropagation();}else{this.stopPropagation();}this.preventDefault();};};},"3.0.0");/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr1
+*/
+YUI.add("dom",function(q){var N="nodeType",AA="ownerDocument",R="documentElement",y="defaultView",AG="parentWindow",AS="tagName",C="parentNode",l="firstChild",o="lastChild",v="previousSibling",AX="nextSibling",AJ="contains",AI="compareDocumentPosition",k="innerText",K="textContent",w="length",x=undefined;var W=/<([a-z]+)/i;var AK={};q.DOM={byId:function(Ab,Y){return q.DOM._getDoc(Y).getElementById(Ab);},getText:function(Y){var Ab=Y?Y[K]:"";if(Ab===x&&k in Y){Ab=Y[k];}return Ab||"";},firstChild:function(Y,Ab){return q.DOM._childBy(Y,null,Ab);},firstChildByTag:function(Ab,Y,Ac){return q.DOM._childBy(Ab,Y,Ac);},lastChild:function(Y,Ab){return q.DOM._childBy(Y,null,Ab,true);},lastChildByTag:function(Ab,Y,Ac){return q.DOM._childBy(Ab,Y,Ac,true);},childrenByTag:function(){if(document[R].children){return function(Ac,Y,Ad,Ab){Y=(Y&&Y!=="*")?Y:null;var Ae=[];if(Ac){Ae=(Y)?Ac.children.tags(Y):Ac.children;if(Ad||Ab){Ae=q.DOM.filterElementsBy(Ae,Ad);}}return Ae;};}else{return function(A
 c,Ab,Ad){Ab=(Ab&&Ab!=="*")?Ab.toUpperCase():null;var Ae=[],Y=Ad;if(Ac){Ae=Ac.childNodes;if(Ab){Y=function(Af){return Af[AS].toUpperCase()===Ab&&(!Ad||Ad(Af));};}Ae=q.DOM.filterElementsBy(Ae,Y);}return Ae;};}}(),children:function(Y,Ab){return q.DOM.childrenByTag(Y,null,Ab);},previous:function(Y,Ac,Ab){return q.DOM.elementByAxis(Y,v,Ac);},next:function(Y,Ab){return q.DOM.elementByAxis(Y,AX,Ab);},ancestor:function(Y,Ab){return q.DOM.elementByAxis(Y,C,Ab);},elementByAxis:function(Y,Ad,Ac,Ab){while(Y&&(Y=Y[Ad])){if((Ab||Y[AS])&&(!Ac||Ac(Y))){return Y;}}return null;},byTag:function(Ab,Ac,Af){Ac=Ac||q.config.doc;var Ag=Ac.getElementsByTagName(Ab),Ae=[];for(var Ad=0,Y=Ag[w];Ad<Y;++Ad){if(!Af||Af(Ag[Ad])){Ae[Ae[w]]=Ag[Ad];}}return Ae;},firstByTag:function(Ab,Ac,Af){Ac=Ac||q.config.doc;var Ag=Ac.getElementsByTagName(Ab),Ad=null;for(var Ae=0,Y=Ag[w];Ae<Y;++Ae){if(!Af||Af(Ag[Ae])){Ad=Ag[Ae];break;}}return Ad;},filterElementsBy:function(Af,Ae,Ad){var Y=(Ad)?null:[];for(var Ab=0,Ac;Ac=Af[
 Ab++];){if(Ac[AS]&&(!Ae||Ae(Ac))){if(Ad){Y=Ac;break;}else{Y[Y[w]]=Ac;}}}return Y;},contains:function(Ab,Ac){var Y=false;if(!Ac||!Ac[N]||!Ab||!Ab[N]){Y=false;}else{if(Ab[AJ]){if(q.UA.opera||Ac[N]===1){Y=Ab[AJ](Ac);}else{Y=q.DOM._bruteContains(Ab,Ac);}}else{if(Ab[AI]){if(Ab===Ac||!!(Ab[AI](Ac)&16)){Y=true;}}}}return Y;},create:function(Ae,Ag){Ag=Ag||q.config.doc;var Ab=W.exec(Ae);var Ad=q.DOM._create,Af=q.DOM.creators,Y,Ac;if(Ab&&Af[Ab[1]]){if(typeof Af[Ab[1]]==="function"){Ad=Af[Ab[1]];}else{Y=Af[Ab[1]];}}Ac=Ad(Ae,Ag,Y);return(Ac.childNodes.length>1)?Ac.childNodes:Ac.childNodes[0];},_create:function(Ab,Ac,Y){Y=Y||"div";var Ad=AK[Y]||Ac.createElement(Y);Ad.innerHTML=q.Lang.trim(Ab);return Ad;},_bruteContains:function(Y,Ab){while(Ab){if(Y===Ab){return true;}Ab=Ab.parentNode;}return false;},_getRegExp:function(Ab,Y){Y=Y||"";q.DOM._regexCache=q.DOM._regexCache||{};if(!q.DOM._regexCache[Ab+Y]){q.DOM._regexCache[Ab+Y]=new RegExp(Ab,Y);}return q.DOM._regexCache[Ab+Y];},_getDoc:funct
 ion(Y){Y=Y||{};return(Y[N]===9)?Y:Y[AA]||q.config.doc;},_getWin:function(Y){var Ab=q.DOM._getDoc(Y);return(Y.document)?Y:Ab[y]||Ab[AG]||q.config.win;},_childBy:function(Ae,Y,Ag,Ac){var Ad=null,Ab,Af;if(Ae){if(Ac){Ab=Ae[o];Af=v;}else{Ab=Ae[l];Af=AX;}if(q.DOM._testElement(Ab,Y,Ag)){Ad=Ab;}else{Ad=q.DOM.elementByAxis(Ab,Af,Ag);}}return Ad;},_testElement:function(Ab,Y,Ac){Y=(Y&&Y!=="*")?Y.toUpperCase():null;return(Ab&&Ab[AS]&&(!Y||Ab[AS].toUpperCase()===Y)&&(!Ac||Ac(Ab)));},creators:{},_IESimpleCreate:function(Y,Ab){Ab=Ab||q.config.doc;return Ab.createElement(Y);}};(function(){var Ae=q.DOM.creators,Y=q.DOM.create,Ad=/(?:\/(?:thead|tfoot|tbody|caption|col|colgroup)>)+\s*<tbody/;var Ac="<table>",Ab="</table>";if(q.UA.gecko||q.UA.ie){q.mix(Ae,{option:function(Af,Ag){var Ah=Y("<select>"+Af+"</select>");return Ah;},tr:function(Af,Ag){var Ah=Ae.tbody("<tbody>"+Af+"</tbody>",Ag);return Ah.firstChild;},td:function(Af,Ag){var Ah=Ae.tr("<tr>"+Af+"</tr>",Ag);return Ah.firstChild;},tbody:fu
 nction(Af,Ag){var Ah=Y(Ac+Af+Ab,Ag);return Ah;},legend:"fieldset"});Ae.col=Ae.tbody;}if(q.UA.ie){Ae.col=Ae.script=Ae.link=q.DOM._IESimpleCreate;Ae.tbody=function(Ag,Ah){var Ai=Y(Ac+Ag+Ab,Ah);var Af=Ai.children.tags("tbody")[0];if(Ai.children.length>1&&Af&&!Ad.test(Ag)){Af.parentNode.removeChild(Af);}return Ai;};}if(q.UA.gecko||q.UA.ie){q.mix(Ae,{th:Ae.td,thead:Ae.tbody,tfoot:Ae.tbody,caption:Ae.tbody,colgroup:Ae.tbody,col:Ae.tbody,optgroup:Ae.option});}})();var AH="className";q.mix(q.DOM,{hasClass:function(Ac,Ab){var Y=q.DOM._getRegExp("(?:^|\\s+)"+Ab+"(?:\\s+|$)");return Y.test(Ac[AH]);},addClass:function(Ab,Y){if(!q.DOM.hasClass(Ab,Y)){Ab[AH]=q.Lang.trim([Ab[AH],Y].join(" "));}},removeClass:function(Ab,Y){if(Y&&q.DOM.hasClass(Ab,Y)){Ab[AH]=q.Lang.trim(Ab[AH].replace(q.DOM._getRegExp("(?:^|\\s+)"+Y+"(?:\\s+|$)")," "));if(q.DOM.hasClass(Ab,Y)){q.DOM.removeClass(Ab,Y);}}},replaceClass:function(Ab,Y,Ac){q.DOM.addClass(Ab,Ac);q.DOM.removeClass(Ab,Y);},toggleClass:function(Ab,Y)
 {if(q.DOM.hasClass(Ab,Y)){q.DOM.removeClass(Ab,Y);}else{q.DOM.addClass(Ab,Y);}}});var R="documentElement",y="defaultView",AA="ownerDocument",E="style",X="float",n="cssFloat",L="styleFloat",AC="transparent",t="visible",c="width",AN="height",U="borderTopWidth",S="borderRightWidth",B="borderBottomWidth",f="borderLeftWidth",AF="getComputedStyle",AR=q.config.doc,x=undefined,P=/color$/i;q.mix(q.DOM,{CUSTOM_STYLES:{},setStyle:function(Ad,Y,Ae){var Ac=Ad[E],Ab=q.DOM.CUSTOM_STYLES;if(Ac){if(Y in Ab){if(Ab[Y].set){Ab[Y].set(Ad,Ae,Ac);return ;}else{if(typeof Ab[Y]==="string"){Y=Ab[Y];}}}Ac[Y]=Ae;}},getStyle:function(Ad,Y){var Ac=Ad[E],Ab=q.DOM.CUSTOM_STYLES,Ae="";if(Ac){if(Y in Ab){if(Ab[Y].get){return Ab[Y].get(Ad,Y,Ac);}else{if(typeof Ab[Y]==="string"){Y=Ab[Y];}}}Ae=Ac[Y];if(Ae===""){Ae=q.DOM[AF](Ad,Y);}}return Ae;},"setStyles":function(Y,Ab){q.each(Ab,function(Ac,Ad){q.DOM.setStyle(Y,Ad,Ac);},q.DOM);},getComputedStyle:function(Ab,Y){var Ad="",Ac=Ab[AA];if(Ab[E]){Ad=Ac[y][AF](Ab,"")[
 Y];}return Ad;}});if(AR[R][E][n]!==x){q.DOM.CUSTOM_STYLES[X]=n;}else{if(AR[R][E][L]!==x){q.DOM.CUSTOM_STYLES[X]=L;
+}}if(q.UA.opera){q.DOM[AF]=function(Ac,Ab){var Y=Ac[AA][y],Ad=Y[AF](Ac,"")[Ab];if(P.test(Ab)){Ad=q.Color.toRGB(Ad);}return Ad;};}if(q.UA.webkit){q.DOM[AF]=function(Ac,Ab){var Y=Ac[AA][y],Ad=Y[AF](Ac,"")[Ab];if(Ad==="rgba(0, 0, 0, 0)"){Ad=AC;}return Ad;};}var D="offsetTop",R="documentElement",i="compatMode",AE="offsetLeft",AD="offsetParent",J="position",e="fixed",I="relative",A="left",H="top",Aa="scrollLeft",u="scrollTop",AB="BackCompat",Q="medium",AN="height",c="width",f="borderLeftWidth",U="borderTopWidth",V="getBoundingClientRect",AF="getComputedStyle",AQ=/^t(?:able|d|h)$/i;q.mix(q.DOM,{winHeight:function(Ab){var Y=q.DOM._getWinSize(Ab)[AN];return Y;},winWidth:function(Ab){var Y=q.DOM._getWinSize(Ab)[c];return Y;},docHeight:function(Ab){var Y=q.DOM._getDocSize(Ab)[AN];return Math.max(Y,q.DOM._getWinSize(Ab)[AN]);},docWidth:function(Ab){var Y=q.DOM._getDocSize(Ab)[c];return Math.max(Y,q.DOM._getWinSize(Ab)[c]);},docScrollX:function(Y){var Ab=q.DOM._getDoc();return Math.max(
 Ab[R][Aa],Ab.body[Aa]);},docScrollY:function(Y){var Ab=q.DOM._getDoc();return Math.max(Ab[R][u],Ab.body[u]);},getXY:function(){if(document[R][V]){return function(Ad){if(!Ad){return false;}var Ae=q.DOM.docScrollX(Ad),Ab=q.DOM.docScrollY(Ad),Af=Ad[V](),Aj=q.DOM._getDoc(Ad),Ak=[Math.floor(Af[A]),Math.floor(Af[H])];if(q.UA.ie){var Ai=2,Ah=2,Ag=Aj[i],Y=q.DOM[AF](Aj[R],f),Ac=q.DOM[AF](Aj[R],U);if(q.UA.ie===6){if(Ag!==AB){Ai=0;Ah=0;}}if((Ag==AB)){if(Y!==Q){Ai=parseInt(Y,10);}if(Ac!==Q){Ah=parseInt(Ac,10);}}Ak[0]-=Ai;Ak[1]-=Ah;}if((Ab||Ae)){Ak[0]+=Ae;Ak[1]+=Ab;}Ak[0]=Math.floor(Ak[0]);Ak[1]=Math.floor(Ak[1]);return Ak;};}else{return function(Ab){var Ad=[Ab[AE],Ab[D]],Y=Ab,Af=((q.UA.gecko||(q.UA.webkit>519))?true:false);while((Y=Y[AD])){Ad[0]+=Y[AE];Ad[1]+=Y[D];if(Af){Ad=q.DOM._calcBorders(Y,Ad);}}if(q.DOM.getStyle(Ab,J)!=e){Y=Ab;var Ac,Ae;while((Y=Y.parentNode)){Ac=Y[u];Ae=Y[Aa];if(q.UA.gecko&&(q.DOM.getStyle(Y,"overflow")!=="visible")){Ad=q.DOM._calcBorders(Y,Ad);}if(Ac||Ae){Ad[0]-
 =Ae;Ad[1]-=Ac;}}Ad[0]+=q.DOM.docScrollX(Ab);Ad[1]+=q.DOM.docScrollY(Ab);}else{if(q.UA.opera){Ad[0]-=q.DOM.docScrollX(Ab);Ad[1]-=q.DOM.docScrollY(Ab);}else{if(q.UA.webkit||q.UA.gecko){Ad[0]+=q.DOM.docScrollX(Ab);Ad[1]+=q.DOM.docScrollY(Ab);}}}Ad[0]=Math.floor(Ad[0]);Ad[1]=Math.floor(Ad[1]);return Ad;};}}(),getX:function(Y){return q.DOM.getXY(Y)[0];},getY:function(Y){return q.DOM.getXY(Y)[1];},setXY:function(Ab,Ae,Ah){var Ag=q.DOM.getStyle(Ab,J),Ac=q.DOM.setStyle,Af=[parseInt(q.DOM[AF](Ab,A),10),parseInt(q.DOM[AF](Ab,H),10)];if(Ag=="static"){Ag=I;Ac(Ab,J,Ag);}var Ad=q.DOM.getXY(Ab);if(Ad===false){return false;}if(isNaN(Af[0])){Af[0]=(Ag==I)?0:Ab[AE];}if(isNaN(Af[1])){Af[1]=(Ag==I)?0:Ab[D];}if(Ae[0]!==null){Ac(Ab,A,Ae[0]-Ad[0]+Af[0]+"px");}if(Ae[1]!==null){Ac(Ab,H,Ae[1]-Ad[1]+Af[1]+"px");}if(!Ah){var Y=q.DOM.getXY(Ab);if((Ae[0]!==null&&Y[0]!=Ae[0])||(Ae[1]!==null&&Y[1]!=Ae[1])){q.DOM.setXY(Ab,Ae,true);}}},setX:function(Ab,Y){return q.DOM.setXY(Ab,[Y,null]);},setY:function(Y,Ab)
 {return q.DOM.setXY(Y,[null,Ab]);},_calcBorders:function(Ac,Ad){var Ab=parseInt(q.DOM[AF](Ac,U),10)||0,Y=parseInt(q.DOM[AF](Ac,f),10)||0;if(q.UA.gecko){if(AQ.test(Ac.tagName)){Ab=0;Y=0;}}Ad[0]+=Y;Ad[1]+=Ab;return Ad;},_getWinSize:function(Ad){var Af=q.DOM._getDoc(),Ae=Af.defaultView||Af.parentWindow,Ag=Af[i],Ac=Ae.innerHeight,Ab=Ae.innerWidth,Y=Af[R];if(Ag&&!q.UA.opera){if(Ag!="CSS1Compat"){Y=Af.body;}Ac=Y.clientHeight;Ab=Y.clientWidth;}return{height:Ac,width:Ab};},_getDocSize:function(Ab){var Ac=q.DOM._getDoc(),Y=Ac[R];if(Ac[i]!="CSS1Compat"){Y=Ac.body;}return{height:Y.scrollHeight,width:Y.scrollWidth};}});var AU="offsetWidth",b="offsetHeight",AS="tagName";var AY=function(Ad,Ac){var Ae=Math.max(Ad.top,Ac.top),Af=Math.min(Ad.right,Ac.right),Y=Math.min(Ad.bottom,Ac.bottom),Ab=Math.max(Ad.left,Ac.left);return{top:Ae,bottom:Y,left:Ab,right:Af};};q.mix(q.DOM,{region:function(Ac){var Y=q.DOM.getXY(Ac),Ab=false;if(Y){Ab={"0":Y[0],"1":Y[1],top:Y[1],right:Y[0]+Ac[AU],bottom:Y[1]+Ac[
 b],left:Y[0],height:Ac[b],width:Ac[AU]};}return Ab;},intersect:function(Ac,Y,Ae){var Ab=Ae||q.DOM.region(Ac),Ad={};var Ag=Y;if(Ag[AS]){Ad=q.DOM.region(Ag);}else{if(q.Lang.isObject(Y)){Ad=Y;}else{return false;}}var Af=AY(Ad,Ab);return{top:Af.top,right:Af.right,bottom:Af.bottom,left:Af.left,area:((Af.bottom-Af.top)*(Af.right-Af.left)),yoff:((Af.bottom-Af.top)),xoff:(Af.right-Af.left),inRegion:q.DOM.inRegion(Ac,Y,false,Ae)};},inRegion:function(Ad,Y,Ab,Af){var Ae={},Ac=Af||q.DOM.region(Ad);var Ah=Y;if(Ah[AS]){Ae=q.DOM.region(Ah);}else{if(q.Lang.isObject(Y)){Ae=Y;}else{return false;}}if(Ab){return(Ac.left>=Ae.left&&Ac.right<=Ae.right&&Ac.top>=Ae.top&&Ac.bottom<=Ae.bottom);}else{var Ag=AY(Ae,Ac);if(Ag.bottom>=Ag.top&&Ag.right>=Ag.left){return true;}else{return false;}}},inViewportRegion:function(Ab,Y,Ac){return q.DOM.inRegion(Ab,q.DOM.viewportRegion(Ab),Y,Ac);},viewportRegion:function(Ab){Ab=Ab||q.config.doc.documentElement;var Y={top:q.DOM.docScrollY(Ab),right:q.DOM.winWidth(Ab)+
 q.DOM.docScrollX(Ab),bottom:(q.DOM.docScrollY(Ab)+q.DOM.winHeight(Ab)),left:q.DOM.docScrollX(Ab)};return Y;}});var AL="clientTop",g="clientLeft",C="parentNode",G="right",r="hasLayout",s="px",AW="filter",AV="filters",p="opacity",AZ="auto",d="currentStyle";if(document[R][E][p]===x&&document[R][AV]){q.DOM.CUSTOM_STYLES[p]={get:function(Ab){var Ad=100;try{Ad=Ab[AV]["DXImageTransform.Microsoft.Alpha"][p];}catch(Ac){try{Ad=Ab[AV]("alpha")[p];}catch(Y){}}return Ad/100;},set:function(Ab,Ac,Y){if(typeof Y[AW]=="string"){Y[AW]="alpha("+p+"="+Ac*100+")";if(!Ab[d]||!Ab[d][r]){Y.zoom=1;}}}};}var AT=/^width|height$/,j=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i;var z={CUSTOM_STYLES:{},get:function(Y,Ac){var Ab="",Ad=Y[d][Ac];if(Ac===p){Ab=q.DOM.CUSTOM_STYLES[p].get(Y);}else{if(!Ad||Ad.indexOf(s)>-1){Ab=Ad;}else{if(q.DOM.IE.COMPUTED[Ac]){Ab=q.DOM.IE.COMPUTED[Ac](Y,Ac);}else{if(j.test(Ad)){Ab=q.DOM.IE.ComputedStyle.getPixel(Y,Ac);}else{Ab=Ad;}}}}ret
 urn Ab;},getOffset:function(Ac,Ah){var Ae=Ac[d][Ah],Y=Ah.charAt(0).toUpperCase()+Ah.substr(1),Af="offset"+Y,Ab="pixel"+Y,Ad="";
+if(Ae==AZ){var Ag=Ac[Af];if(Ag===x){Ad=0;}Ad=Ag;if(AT.test(Ah)){Ac[E][Ah]=Ag;if(Ac[Af]>Ag){Ad=Ag-(Ac[Af]-Ag);}Ac[E][Ah]=AZ;}}else{if(!Ac[E][Ab]&&!Ac[E][Ah]){Ac[E][Ah]=Ae;}Ad=Ac[E][Ab];}return Ad+s;},getBorderWidth:function(Y,Ac){var Ab=null;if(!Y[d][r]){Y[E].zoom=1;}switch(Ac){case U:Ab=Y[AL];break;case B:Ab=Y.offsetHeight-Y.clientHeight-Y[AL];break;case f:Ab=Y[g];break;case S:Ab=Y.offsetWidth-Y.clientWidth-Y[g];break;}return Ab+s;},getPixel:function(Ab,Y){var Ad=null,Ae=Ab[d][G],Ac=Ab[d][Y];Ab[E][G]=Ac;Ad=Ab[E].pixelRight;Ab[E][G]=Ae;return Ad+s;},getMargin:function(Ab,Y){var Ac;if(Ab[d][Y]==AZ){Ac=0+s;}else{Ac=q.DOM.IE.ComputedStyle.getPixel(Ab,Y);}return Ac;},getVisibility:function(Ab,Y){var Ac;while((Ac=Ab[d])&&Ac[Y]=="inherit"){Ab=Ab[C];}return(Ac)?Ac[Y]:t;},getColor:function(Ab,Y){var Ac=Ab[d][Y];if(!Ac||Ac===AC){q.DOM.elementByAxis(Ab,C,null,function(Ad){Ac=Ad[d][Y];if(Ac&&Ac!==AC){Ab=Ad;return true;}});}return q.Color.toRGB(Ac);},getBorderColor:function(Ab,Y){var Ac=
 Ab[d];var Ad=Ac[Y]||Ac.color;return q.Color.toRGB(q.Color.toHex(Ad));}};var AO={};AO[c]=AO[AN]=z.getOffset;AO.color=AO.backgroundColor=z.getColor;AO[U]=AO[S]=AO[B]=AO[f]=z.getBorderWidth;AO.marginTop=AO.marginRight=AO.marginBottom=AO.marginLeft=z.getMargin;AO.visibility=z.getVisibility;AO.borderColor=AO.borderTopColor=AO.borderRightColor=AO.borderBottomColor=AO.borderLeftColor=z.getBorderColor;if(!q.config.win[AF]){q.DOM[AF]=z.get;}q.namespace("DOM.IE");q.DOM.IE.COMPUTED=AO;q.DOM.IE.ComputedStyle=z;var h="tag",C="parentNode",v="previousSibling",w="length",N="nodeType",AS="tagName",M="attributes",m="pseudos",F="combinator";var a=/^(?:([\-]?\d*)(n){1}|(odd|even)$)*([\-+]?\d*)$/;var AM={tag:/^((?:-?[_a-z]+[\w\-]*)|\*)/i,attributes:/^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,pseudos:/^:([\-\w]+)(?:\(['"]?(.+)['"]?\))*/i,combinator:/^\s*([>+~]|\s)\s*/};var AP={document:q.config.doc,attrAliases:{},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"
 [class~=$1]"},operators:{"=":function(Y,Ab){return Y===Ab;},"!=":function(Y,Ab){return Y!==Ab;},"~=":function(Y,Ac){var Ab=" ";return(Ab+Y+Ab).indexOf((Ab+Ac+Ab))>-1;},"|=":function(Y,Ab){return q.DOM._getRegExp("^"+Ab+"[-]?").test(Y);},"^=":function(Y,Ab){return Y.indexOf(Ab)===0;},"$=":function(Y,Ab){return Y.lastIndexOf(Ab)===Y[w]-Ab[w];},"*=":function(Y,Ab){return Y.indexOf(Ab)>-1;},"":function(Y,Ab){return Y;}},pseudos:{"root":function(Y){return Y===Y.ownerDocument.documentElement;},"nth-child":function(Y,Ab){return AP.getNth(Y,Ab);},"nth-last-child":function(Y,Ab){return AP.getNth(Y,Ab,null,true);},"nth-of-type":function(Y,Ab){return AP.getNth(Y,Ab,Y[AS]);},"nth-last-of-type":function(Y,Ab){return AP.getNth(Y,Ab,Y[AS],true);},"first-child":function(Y){return q.DOM.firstChild(Y[C])===Y;},"last-child":function(Y){return q.DOM.lastChild(Y[C])===Y;},"first-of-type":function(Y,Ab){return q.DOM.firstChildByTag(Y[C],Y[AS])===Y;},"last-of-type":function(Y,Ab){return q.DOM.last
 ChildByTag(Y[C],Y[AS])===Y;},"only-child":function(Ab){var Y=q.DOM.children(Ab[C]);return Y[w]===1&&Y[0]===Ab;},"only-of-type":function(Y){return q.DOM.childrenByTag(Y[C],Y[AS])[w]===1;},"empty":function(Y){return Y.childNodes[w]===0;},"not":function(Y,Ab){return !AP.test(Y,Ab);},"contains":function(Y,Ac){var Ab=Y.innerText||Y.textContent||"";return Ab.indexOf(Ac)>-1;},"checked":function(Y){return Y.checked===true;}},test:function(Ae,Ac){if(!Ae){return false;}var Ab=Ac?Ac.split(","):[];if(Ab[w]){for(var Ad=0,Y=Ab[w];Ad<Y;++Ad){if(AP._testNode(Ae,Ab[Ad])){return true;}}return false;}return AP._testNode(Ae,Ac);},filter:function(Ac,Ab){Ac=Ac||[];var Y=AP._filter(Ac,AP._tokenize(Ab)[0]);return Y;},query:function(Ab,Ac,Ad){var Y=AP._query(Ab,Ac,Ad);return Y;},_query:function(Ag,Al,Am,Ae){var Ao=(Am)?null:[];if(!Ag){return Ao;}Al=Al||AP.document;var Ac=Ag.split(",");if(Ac[w]>1){var An;for(var Ah=0,Ai=Ac[w];Ah<Ai;++Ah){An=arguments.callee(Ac[Ah],Al,Am,true);Ao=Am?An:Ao.concat(An);}
 AP._clearFoundCache();return Ao;}var Ak=AP._tokenize(Ag);var Aj=Ak[AP._getIdTokenIndex(Ak)],Y=[],Ad,Ab,Af=Ak.pop()||{};if(Aj){Ab=AP._getId(Aj[M]);}if(Ab){Ad=AP.document.getElementById(Ab);if(Ad&&(Al[N]===9||q.DOM.contains(Al,Ad))){if(AP._testNode(Ad,null,Aj)){if(Aj===Af){Y=[Ad];}else{Al=Ad;}}}else{return Ao;}}if(Al&&!Y[w]){Y=Al.getElementsByTagName(Af[h]);}if(Y[w]){Ao=AP._filter(Y,Af,Am,Ae);}return Ao;},_filter:function(Ac,Ad,Ae,Ab){var Y=Ae?null:[];Y=q.DOM.filterElementsBy(Ac,function(Af){if(!AP._testNode(Af,"",Ad,Ab)){return false;}if(Ab){if(Af._found){return false;}Af._found=true;AP._foundCache[AP._foundCache[w]]=Af;}return true;},Ae);return Y;},_testNode:function(Ac,Ag,Af,Ad){Af=Af||AP._tokenize(Ag).pop()||{};var Ab=AP.operators,Aj=AP.pseudos,Ae=Af.previous,Ah,Ai;if(!Ac[AS]||(Af[h]!=="*"&&Ac[AS].toUpperCase()!==Af[h])||(Ad&&Ac._found)){return false;}if(Af[M][w]){var Y;for(Ah=0,Ai=Af[M][w];Ah<Ai;++Ah){Y=Ac.getAttribute(Af[M][Ah][0],2);if(Y===undefined){Y=Ac[Af[M][Ah][0]];
 if(Y===undefined){return false;}}if(Ab[Af[M][Ah][1]]&&!Ab[Af[M][Ah][1]](Y,Af[M][Ah][2])){return false;}}}if(Af[m][w]){for(Ah=0,Ai=Af[m][w];Ah<Ai;++Ah){if(Aj[Af[m][Ah][0]]&&!Aj[Af[m][Ah][0]](Ac,Af[m][Ah][1])){return false;}}}return(Ae&&Ae[F]!==",")?AP.combinators[Ae[F]](Ac,Af):true;},_foundCache:[],_regexCache:{},_clearFoundCache:function(){for(var Ab=0,Y=AP._foundCache[w];Ab<Y;++Ab){try{delete AP._foundCache[Ab]._found;}catch(Ac){AP._foundCache[Ab].removeAttribute("_found");}}AP._foundCache=[];},combinators:{" ":function(Ab,Y){while((Ab=Ab[C])){if(AP._testNode(Ab,"",Y.previous)){return true;}}return false;},">":function(Ab,Y){return AP._testNode(Ab[C],null,Y.previous);},"+":function(Ac,Ab){var Y=Ac[v];while(Y&&Y[N]!==1){Y=Y[v];}if(Y&&AP._testNode(Y,null,Ab.previous)){return true;}return false;},"~":function(Ac,Ab){var Y=Ac[v];while(Y){if(Y[N]===1&&AP._testNode(Y,null,Ab.previous)){return true;}Y=Y[v];}return false;}},getNth:function(Ab,Ak,Al,Af){a.test(Ak);var Aj=parseInt(Re
 gExp.$1,10),Y=RegExp.$2,Ag=RegExp.$3,Ah=parseInt(RegExp.$4,10)||0,Ad,Ac,Ae,Ai;
+if(Al){Ai=q.DOM.childrenByTag(Ab[C],Al);}else{Ai=q.DOM.children(Ab[C]);}if(Ag){Aj=2;Ad="+";Y="n";Ah=(Ag==="odd")?1:0;}else{if(isNaN(Aj)){Aj=(Y)?1:0;}}if(Aj===0){if(Af){Ah=Ai[w]-Ah+1;}if(Ai[Ah-1]===Ab){return true;}else{return false;}}else{if(Aj<0){Af=!!Af;Aj=Math.abs(Aj);}}if(!Af){for(Ac=Ah-1,Ae=Ai[w];Ac<Ae;Ac+=Aj){if(Ac>=0&&Ai[Ac]===Ab){return true;}}}else{for(Ac=Ai[w]-Ah,Ae=Ai[w];Ac>=0;Ac-=Aj){if(Ac<Ae&&Ai[Ac]===Ab){return true;}}}return false;},_getId:function(Ab){for(var Ac=0,Y=Ab[w];Ac<Y;++Ac){if(Ab[Ac][0]=="id"&&Ab[Ac][1]==="="){return Ab[Ac][2];}}},_getIdTokenIndex:function(Ac){for(var Ab=0,Y=Ac[w];Ab<Y;++Ab){if(AP._getId(Ac[Ab][M])){return Ab;}}return -1;},_tokenize:function(Y){var Ac={},Af=[],Ae=false,Ab;Y=AP._replaceShorthand(Y);do{Ae=false;for(var Ad in AM){if(AM.hasOwnProperty(Ad)){if(Ad!=h&&Ad!=F){Ac[Ad]=Ac[Ad]||[];}if((Ab=AM[Ad].exec(Y))){Ae=true;if(Ad!=h&&Ad!=F){if(Ad===M&&Ab[1]==="id"){Ac.id=Ab[3];}Ac[Ad].push(Ab.slice(1));}else{Ac[Ad]=Ab[1];}Y=Y.replace(Ab[0
 ],"");if(Ad===F||!Y[w]){Ac[M]=AP._fixAttributes(Ac[M]);Ac[m]=Ac[m]||[];Ac[h]=Ac[h]?Ac[h].toUpperCase():"*";Af.push(Ac);Ac={previous:Ac};}}}}}while(Ae);return Af;},_fixAttributes:function(Ab){var Ac=AP.attrAliases;Ab=Ab||[];for(var Ad=0,Y=Ab[w];Ad<Y;++Ad){if(Ac[Ab[Ad][0]]){Ab[Ad][0]=Ac[Ab[Ad][0]];}if(!Ab[Ad][1]){Ab[Ad][1]="";}}return Ab;},_replaceShorthand:function(Ab){var Ac=AP.shorthand;var Ad=Ab.match(AM[M]);if(Ad){Ab=Ab.replace(AM[M],"REPLACED_ATTRIBUTE");}for(var Af in Ac){if(Ac.hasOwnProperty(Af)){Ab=Ab.replace(q.DOM._getRegExp(Af,"gi"),Ac[Af]);}}if(Ad){for(var Ae=0,Y=Ad[w];Ae<Y;++Ae){Ab=Ab.replace("REPLACED_ATTRIBUTE",Ad[Ae]);}}return Ab;}};if(q.UA.ie){AP.attrAliases["class"]="className";AP.attrAliases["for"]="htmlFor";}q.Selector=AP;q.Selector.patterns=AM;var T="toString",O=parseInt,Z=RegExp;q.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"f
 f0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(Y){if(!q.Color.re_RGB.test(Y)){Y=q.Color.toHex(Y);}if(q.Color.re_hex.exec(Y)){Y="rgb("+[O(Z.$1,16),O(Z.$2,16),O(Z.$3,16)].join(", ")+")";}return Y;},toHex:function(Ad){Ad=q.Color.KEYWORDS[Ad]||Ad;if(q.Color.re_RGB.exec(Ad)){var Ac=(Z.$1.length===1)?"0"+Z.$1:Number(Z.$1),Ab=(Z.$2.length===1)?"0"+Z.$2:Number(Z.$2),Y=(Z.$3.length===1)?"0"+Z.$3:Number(Z.$3);Ad=[Ac[T](16),Ab[T](16),Y[T](16)].join("");}if(Ad.length<6){Ad=Ad.replace(q.Color.re_hex3,"$1$1");}if(Ad!=="transparent"&&Ad.indexOf("#")<0){Ad="#"+Ad;}return Ad.toLowerCase();}};},"3.0.0pr1",{skinnable:false});/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr1
+*/
+YUI.add("node",function(A){var Z=0,J=1,P=9;var X="ownerDocument",W="tagName",G="nodeName",N="nodeType";var d=/(?:string|boolean|number)/;var a=A.Selector;var Q={};var D={};var O={};var S=null;var U=[].slice;var C=function(m){var j=null,k=(m)?m._yuid:null,Y=Q[k],l=D[k];if(m){if(N in m){if(Y&&l&&m===l){j=Y;}else{j=new g(m);}}else{if("item" in m||"push" in m){j=new A.NodeList(m);}}}return j;};var e=function(j){var Y=null;if(j){Y=(typeof j==="string")?function(k){return A.Selector.test(k,j);}:function(k){return j(Q[k._yuid]);};}return Y;};var M=function(Y){Y=D[Y._yuid];return(Y[N]===9)?Y:Y[X];};var F=function(Y){if(Y&&!Y.nodeType&&Y._yuid){Y=D[Y._yuid];}return Y||null;};var V=function(n,j,Y,m,l,k){if(j){j=F(j);if(Y){Y=F(Y);}}return C(D[this._yuid][n](j,Y,m,l,k));};var c=function(n,j,Y,m,l,k){return C(D[this._yuid][n](j,Y,m,l,k));};var T=function(n,j,Y,m,l,k){return D[this._yuid][n](j,Y,m,l,k);};var L=function(n,j,Y,m,l,k){D[this._yuid][n](j,Y,m,l,k);return this;};var I={"parentN
 ode":Z,"childNodes":Z,"children":function(l){l=D[l._yuid];var k=l.children;if(k===undefined){var m=l.childNodes;k=[];for(var j=0,Y=m.length;j<Y;++j){if(m[j][W]){k[k.length]=m[j];}}}return k;},"firstChild":Z,"lastChild":Z,"previousSibling":Z,"nextSibling":Z,"ownerDocument":Z,"offsetParent":J,"documentElement":P,"body":P,"elements":J,"rows":J,"cells":J,"tHead":J,"tFoot":J,"tBodies":J};var K={replaceChild:V,appendChild:V,insertBefore:V,removeChild:V,hasChildNodes:T,cloneNode:c,getAttribute:T,setAttribute:L,hasAttribute:T,scrollIntoView:L,getElementsByTagName:c,focus:L,blur:L,submit:L,reset:L};var E=function(Y){f.prototype[Y]=function(){var k=[],l=O[this._yuid],m;for(var n=0,j=l.length;n<j;++n){D[H._yuid]=l[n];m=H[Y].apply(H,arguments);if(m!==H){k[n]=m;}}return k.length?k:this;};};var h={"getBoundingClientRect":true};var g=function(j){if(!j||!j[N]){return null;}var Y=A.guid();try{j._yuid=Y;}catch(k){}this._yuid=Y;D[Y]=j;Q[Y]=this;};var R={};var b={"text":function(Y){return A.DOM
 .getText(D[Y._yuid]);},"options":function(Y){return(Y)?Y.getElementsByTagName("option"):[];}};g.setters=function(j,Y){if(typeof j=="string"){R[j]=Y;}else{A.each(j,function(k,l){g.setters(l,k);});}};g.getters=function(j,Y){if(typeof j=="string"){b[j]=Y;}else{A.each(j,function(k,l){g.getters(l,k);});}};g.methods=function(Y,j){if(typeof Y=="string"){g.prototype[Y]=function(){var l=U.call(arguments);l.unshift(this);var k=j.apply(null,l);if(k===undefined){k=this;}return k;};E(Y);}else{A.each(Y,function(l,k){g.methods(k,l);});}};g.getDOMNode=function(j){var Y;if(j.nodeType){Y=j;}else{if(typeof j==="string"){Y=a.query(j,null,true);}else{Y=D[j._yuid];}}return Y||null;};g.wrapDOMMethod=function(Y){return function(){var j=U.call(arguments);j.unshift(A.Node.getDOMNode(j.shift()));return A.DOM[Y].apply(A.DOM,j);};};g.addDOMMethods=function(Y){var j={};A.each(Y,function(k,l){j[k]=A.Node.wrapDOMMethod(k);});A.Node.methods(j);};g.prototype={set:function(k,j){var Y=D[this._yuid];if(k in R){
 R[k](this,k,j);}else{if(d.test(typeof Y[k])){Y[k]=j;}}return this;},get:function(k){var j;var Y=D[this._yuid];if(k in b){j=b[k](this,k);}else{if(k in I){if(typeof I[k]==="function"){j=I[k](this);}else{j=Y[k];}if(S&&S[this._yuid]&&!A.DOM.contains(Y,j)){j=null;}else{j=C(j);}}else{if(d.test(typeof Y[k])){j=Y[k];}}}return j;},invoke:function(o,j,Y,n,m,l){if(j){j=(j[N])?j:F(j);if(Y){Y=(Y[N])?Y:F(Y);}}var k=D[this._yuid];if(k&&h[o]&&k[o]){return k[o](j,Y,n,m,l);}return null;},hasMethod:function(Y){return !!(h[Y]&&D[this._yuid][Y]);},toString:function(){var Y=D[this._yuid]||{};return Y.id||Y[G]||"undefined node";},query:function(Y){return C(a.query(Y,D[this._yuid],true));},queryAll:function(Y){return C(a.query(Y,D[this._yuid]));},test:function(Y){return a.test(D[this._yuid],Y);},compareTo:function(Y){Y=Y[N]?Y:D[Y._yuid];return D[this._yuid]===Y;},ancestor:function(Y){return C(A.DOM.elementByAxis(D[this._yuid],"parentNode",e(Y)));},previous:function(j,Y){return C(A.DOM.elementByAxis
 (D[this._yuid],"previousSibling",e(j)),Y);},next:function(j,Y){return C(A.DOM.elementByAxis(D[this._yuid],"nextSibling",e(j)),Y);},attach:function(l,k,Y){var j=U.call(arguments,0);j.unshift(D[this._yuid]);return A.Event.addListener.apply(A.Event,j);},on:function(k,j,Y){return this.attach.apply(this,arguments);},addEventListener:function(k,j,Y){return A.Event.nativeAdd(D[this._yuid],k,j,Y);},detach:function(k,j){var Y=U.call(arguments,0);Y.unshift(D[this._yuid]);return A.Event.removeListener.apply(A.Event,Y);},removeEventListener:function(j,Y){return A.Event.nativeRemove(D[this._yuid],j,Y);},create:function(Y){return A.Node.create(Y);},contains:function(Y){return A.DOM.contains(D[this._yuid],F(Y));},plug:function(j,Y){Y=Y||{};Y.owner=this;if(j&&j.NS){this[j.NS]=new j(Y);}return this;},inDoc:function(j){var Y=D[this._yuid];j=(j)?M(j):Y.ownerDocument;if(j.documentElement){return A.DOM.contains(j.documentElement,Y);}}};A.each(K,function(Y,j){g.prototype[j]=function(){return Y.ap
 ply(this,[j].concat(U.call(arguments)));};});g.create=function(Y){return C(A.DOM.create(Y));};g.getById=function(j,Y){Y=(Y&&Y[N])?Y:A.config.doc;return C(Y.getElementById(j));};g.get=function(j,k,Y){if(j instanceof g){return j;}if(!k){k=A.config.doc;}else{if(k._yuid&&D[k._yuid]){k=D[k._yuid];}}if(j&&typeof j==="string"){if(j==="document"){j=A.config.doc;}else{j=A.Selector.query(j,k,true);}}j=C(j);if(Y){S=S||{};S[j._yuid]=j;}return j;};g.all=function(Y,j){if(Y instanceof f){return Y;}if(!j){j=A.config.doc;}else{if(j._yuid&&D[j._yuid]){j=D[j._yuid];}}if(Y&&typeof Y=="string"){Y=a.query(Y,j);}return C(Y);};var f=function(Y){O[A.stamp(this)]=Y;};var H=g.create("<div></div>");f.prototype={};A.each(g.prototype,function(j,Y){if(typeof g.prototype[Y]=="function"){E(Y);}});A.mix(f.prototype,{item:function(Y){var j=O[this._yuid][Y];return(j&&j[W])?C(j):(j&&j.get)?j:null;},set:function(k,m){var j=O[this._yuid];for(var l=0,Y=j.length;l<Y;++l){D[H._yuid]=j[l];H.set(k,m);}return this;},ge
 t:function(l){if(l=="length"){return O[this._yuid].length;}var j=O[this._yuid];
+var k=[];for(var m=0,Y=j.length;m<Y;++m){D[H._yuid]=j[m];k[m]=H.get(l);}return k;},filter:function(Y){return C(a.filter(O[this._yuid],Y));},each:function(m,l){l=l||this;var j=O[this._yuid];for(var k=0,Y=j.length;k<Y;++k){m.call(l,A.Node.get(j[k]),k,this);}return this;},size:function(){return O[this._yuid].length;},toString:function(){var Y=O[this._yuid]||[];return"NodeList ("+Y.length+" items)";}},true);A.Node=g;A.NodeList=f;A.all=A.Node.all;A.get=A.Node.get;A.Node.addDOMMethods(["getStyle","getComputedStyle","setStyle","setStyles"]);A.Node.addDOMMethods(["hasClass","addClass","removeClass","replaceClass","toggleClass"]);var i=["region","viewportRegion"],B=A.Node.getDOMNode;A.each(i,function(Y,j){A.Node.getters(Y,A.Node.wrapDOMMethod(Y));});A.Node.addDOMMethods(["inViewportRegion"]);A.Node.methods({intersect:function(j,Y,k){if(Y instanceof A.Node){Y=B(Y);}return A.DOM.intersect(B(j),Y,k);},inRegion:function(j,Y,k,l){if(Y instanceof A.Node){Y=B(Y);}return A.DOM.inRegion(B(j),
 Y,k,l);}});A.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(Y,j){A.Node.getters(Y,A.Node.wrapDOMMethod(Y));});A.Node.addDOMMethods(["getXY","setXY","getX","setX","getY","setY"]);},"3.0.0pr1",{requires:["dom"]});/*
+Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 3.0.0pr1
+*/
+YUI.add("io",function(C){var E="io:xdrReady",q="io:start",G="io:complete",F="io:success",W="io:failure",j="io:abort",l=C.config.win,x=C.config.doc,t=0,M={"X-Requested-With":"XMLHttpRequest"},R={},f={},Q={flash:null},r=[],S=1,m=false;function L(Y,w){if(m===false||r.length<m){var d=i();r.push({uri:Y,id:d,cfg:w});}else{return false;}if(S===1){h();}return d;}function B(z){var d;for(var Y=0;Y<r.length;Y++){if(r[Y].id===z){d=r.splice(Y,1);var w=r.unshift(d[0]);break;}}}function h(){var Y=r.shift();g(Y.uri,Y.cfg,Y.id);}function J(Y){if(Y){m=Y;return Y;}else{return r.length;}}function c(){var Y=(r.length>m>0)?m:r.length;if(Y>1){for(var d=0;d<Y;d++){h();}}else{h();}}function T(){S=0;}function e(d){if(C.Lang.isNumber(d)){for(var Y=0;Y<r.length;Y++){if(r[Y].id===d){r.splice(Y,1);break;}}}}function g(w,AC){var AC=AC||{};var AB=X((arguments.length===3)?arguments[2]:null,AC);var Y=(AC.method)?AC.method.toUpperCase():"GET";var AA=(AC.data)?AC.data:null;if(AC.form){var z=u(AC.form);if(AA){z
 +="&"+AA;}if(Y==="POST"){AA=z;b("Content-Type","application/x-www-form-urlencoded");}else{if(Y==="GET"){w=n(w,z);}}}else{if(AA&&Y==="GET"){w=n(w,AC.data);}else{if(AA&&Y==="POST"){b("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");}}}if(AC.xdr){if(AC.on){f[AB.id]=AC.on;}if(AA&&Y!=="GET"){AC.data=AA;}AB.c.send(w,AC,AB.id);return AB;}if(AC.timeout){o(AB,AC);}AB.c.onreadystatechange=function(){N(AB,AC);};a(AB.c,Y,w);K(AB.c,(AC.headers||{}));k(AB,(AA||""),AC);AB.abort=function(){H(AB,AC);};AB.isInProgress=function(){return AB.c.readyState!==4&&AB.c.readyState!==0;};return AB;}function U(d,w){var Y=new C.Event.Target().publish("transaction:"+d);Y.subscribe(w.on[d],(w.context||this),w.arguments);return Y;}function V(Y){C.fire(E,Y);}function P(w,d){d.on=d.on||{};var Y;if(f[w]&&f[w].start){d.on.start=f[w].start;}C.fire(q,w);if(d.on.start){Y=U("start",d);Y.fire(w);}}function Z(d,w){w.on=w.on||{};var Y;C.fire(G,d.id,d.c);if(w.on.complete){Y=U("complete",w);Y.fire(d.id
 ,d.c);}}function s(d,w){w.on=w.on||{};var Y;if(f[d.id]&&f[d.id].success){w.on.success=f[d.id].success;delete f[d.id];d.c.responseText=decodeURI(d.c.responseText);}C.fire(F,d.id,d.c);if(w.on.success){Y=U("success",w);Y.fire(d.id,d.c);}O(d,(w.xdr)?true:false);}function I(d,w){w.on=w.on||{};var Y;if(f[d.id]&&f[d.id].failure){w.on.failure=f[d.id].failure;delete f[d.id];d.c.responseText=decodeURI(d.c.responseText);}C.fire(W,d.id,d.c);if(w.on.failure){Y=U("failure",w);Y.fire(d.id,d.c);}O(d,(w.xdr)?true:false);}function H(d,w){w.on=w.on||{};var Y;if(d&&d.c&&!w.xdr){d.c.abort();if(w){if(w.timeout){D(d.id);}}}if(f[d.id]&&f[d.id].abort){w.on.abort=f[d.id].abort;delete f[d.id];}C.fire(j,d.id);if(w.on.abort){Y=U("abort",w);Y.fire(id);}O(d,(w.xdr)?true:false);}function y(){return(l.XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");}function p(w,z){var Y=C.Node.get("body");var d='<object id="yuiSwfIo" type="application/x-shockwave-flash" data="'+w+'" width="0" he
 ight="0">';d+='<param name="movie" value="'+w+'">';d+='<param name="FlashVars" value="yid='+z+'">';d+='<param name="allowScriptAccess" value="sameDomain">';d+="</object>";Y.appendChild(C.Node.create(d));Q.flash=x.getElementById("yuiSwfIo");}function i(){var Y=t;t++;return Y;}function X(Y,w){var d={};d.id=C.Lang.isNumber(Y)?Y:i();if(w&&w.xdr){d.c=Q[w.xdr.use];}else{d.c=y();}return d;}function n(Y,w){Y+=((Y.indexOf("?")==-1)?"?":"&")+w;return Y;}function b(Y,d){if(d){M[Y]=d;}else{delete M[Y];}}function A(Y){switch(Y.id){case"flash":p(Y.src,Y.yid);break;}}function K(w,Y){var d;for(d in M){if(M.hasOwnProperty(d)){Y[d]=M[d];}}for(d in Y){if(Y.hasOwnProperty(d)){w.setRequestHeader(d,Y[d]);}}}function a(w,Y,d){w.open(Y,d,true);}function k(w,Y,z){w.c.send(Y);P(w.id,z);}function o(Y,d){R[Y.id]=l.setTimeout(function(){H(Y,d);},d.timeout);}function D(Y){l.clearTimeout(R[Y]);delete R[Y];}function N(Y,d){if(Y.c.readyState===4){if(d.timeout){D(Y.id);}Z(Y,d);v(Y,d);}}function v(w,z){var Y;
 try{if(w.c.status&&w.c.status!==0){Y=w.c.status;}else{Y=0;}}catch(d){Y=0;}if(Y>=200&&Y<300||Y===1223){s(w,z);}else{I(w,z);}}function O(d,Y){if(l.XMLHttpRequest&&!Y){if(d.c){d.c.onreadystatechange=null;}}d.c=null;d=null;}function u(d){var AE="";var AC=(typeof d.id==="object")?d.id:x.getElementById(d.id);var AF=d.useDisabled||false;var AB=encodeURIComponent;var AD,w,AG,Y;for(var AA=0;AA<AC.elements.length;AA++){AD=AC.elements[AA];Y=AD.disabled;w=AD.name;AG=AD.value;if((AF)?w:(w&&Y)){}switch(AD.type){case"select-one":case"select-multiple":for(var z=0;z<AD.options.length;z++){if(AD.options[z].selected){if(C.UA.ie){AE+=AB(w)+"="+AB(AD.options[z].attributes["value"].specified?AD.options[z].value:AD.options[z].text)+"&";}else{AE+=AB(w)+"="+AB(AD.options[z].hasAttribute("value")?AD.options[z].value:AD.options[z].text)+"&";}}}break;case"radio":case"checkbox":if(AD.checked){AE+=AB(w)+"="+AB(AG)+"&";}break;case"file":case undefined:case"reset":case"button":break;case"submit":default:AE
 +=AB(w)+"="+AB(AG)+"&";}}return AE.substr(0,AE.length-1);}g.xdrReady=V;g.start=P;g.success=s;g.failure=I;g.abort=H;g.header=b;g.transport=A;g.queue=L;g.queue.size=J;g.queue.start=c;g.queue.stop=T;g.queue.promote=B;g.queue.purge=e;C.io=g;},"3.0.0");
\ No newline at end of file

Propchange: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/wicket/ajaxng/js/yui-combo.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain