document.__addEventListener=document.addEventListener;var Flow={Utils:{stripWhitespace:function(element){var i=0,kids=element.childNodes;var preTest=function(element){if(element){if((/pre|code/).test(element.nodeName.toLowerCase())||((element.style)&&(element.style.whiteSpace))){return true;}}
return false;};var parent=element;while(parent){if(preTest(parent)){return;}
parent=parent.parentNode;}
while(i<kids.length){if((kids[i].nodeType==3)&&!(/\S/.test(kids[i].nodeValue))){element.removeChild(kids[i]);}
i++;}},match:function(attribute){return new RegExp("(^|\\s)"+attribute.replace(/\-/g,"\\-")+"(\\s|$)");},xpath:{snapshot:(window.XPathResult)?XPathResult.ORDERED_NODE_SNAPSHOT_TYPE:null,contains:function(attribute,value,that){return document.evaluate(".//*[contains(concat(' ', @"+attribute+", ' '), ' "+value+" ')]",that,null,this.snapshot,null);}},liveNodeList:function(nodes){var F=Flow,B=F.Browser;if(B.GK||B.S3){return[].slice.call(nodes,0,nodes.length);}else{var i=0,node,clones=[];if(nodes&&nodes.length){while(i<nodes.length){node=nodes[i];if(node){clones.push(node);}
i++;}}
return clones;}},toCamelCase:function(cssProp){var hyphen=/(-[a-z])/ig;while(hyphen.exec(cssProp)){cssProp=cssProp.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}
return cssProp;},RGBtoHex:function(r,g,b){var hexify=function(n){if(n===null){return"00";}
n=parseInt(n);if((n===0)||isNaN(n)){return"00";}
n=Math.max(0,n);n=Math.min(n,255);n=Math.round(n);return"0123456789ABCDEF".charAt((n-n%16)/16)+"0123456789ABCDEF".charAt(n%16);};return"#"+hexify(r)+hexify(g)+hexify(b);}},Augment:function(subclass,superclass){subclass=subclass[0]?subclass:[subclass];for(var i=0,j=subclass.length;i<j;i++){for(var key in superclass){if(!subclass[i][key]&&superclass.hasOwnProperty(key)){subclass[i][key]=superclass[key];}}}},Browser:{IEWhich:function(){var e=this;e.IE={};e.IE.jscript/*@cc_on=@_jscript_version@*/;switch(e.IE.jscript){case 5.8:e.IE8=true;break;case 5.7:e.IE7=true;break;case 5.6:e.IE6=true;break;}},init:function(){var B=Flow.Browser,A=Array,proto=A.prototype;var ua=function(browser){return(browser).test(navigator.userAgent.toLowerCase());};Flow.Augment(B,{W3:!!(document.getElementById&&document.createElement),IE:/*@cc_on!@*/
false,GK:!!(ua(/gecko/)),WK:!!(ua(/webkit/)),S3:!!(ua(/webkit/)&&window.devicePixelRatio),Chrome:!!(ua(/chrome/)),KHTML:!!(ua(/khtml|webkit|icab/i)),OP:!!(ua(/opera/))});Flow.Augment([proto,A],{every:function(fun){var that=this;var len=this.length,i=0;var caller=arguments[1];while(i<len){if(i in this&&!fun.call(caller,this[i],i,this)){return false;}
i++;}
return true;},some:function(fun){var that=this;var len=this.length,i=0;var caller=arguments[1];while(i<len){if(i in this&&fun.call(caller,this[i],i,this)){return true;}
i++;}
return false;},filter:function(fun){var that=this;var res=[],caller=arguments[1];var i=0;while(i<that.length){if(i in that){var val=that[i];if(fun.call(caller,val,i,that)){res.push(val);}}
i++;}
return res;},map:function(fun){var that=this,len=this.length;var res=[len],i=0;var caller=arguments[1];while(i<len){if(i in this){res[i]=fun.call(caller,this[i],i,this);}
i++;}
return res;},indexOf:function(fun,start){var that=this;var i=start||0;while(i<that.length){if(j===fun){return i;}
i++;}},lastIndexOf:function(elt,from){var that=this,length=that.length;from=from||length;if(from>=length){from=length;}
if(from<0){from=length+from;}
var i=from;while(i>=0){if(that[i]===elt){return i;}
i--;}
return-1;},forEach:function(fun){var that=this;var caller=arguments[1],i=0;while(i<that.length){if(i in that){fun.call(caller,that[i],i,that);}
i++;}},reduce:function(fun){var that=this;var len=that.length,i=0;if(arguments.length>=2){var rv=arguments[1];}else{do{if(i in that){rv=that[i++];break;}}while(true);}
for(;i<len;i++){if(i in that){rv=fun.call(null,rv,that[i],i,that);}}
return rv;},reduceRight:function(fun){var that=this;var len=that.length,i=len-1;if(arguments.length>=2){var rv=arguments[1];}else{do{if(i in that){rv=that[i--];break;}}while(true);}
for(;i>=0;i--){if(i in that){rv=fun.call(null,rv,that[i],i,that);}}
return rv;},exit:function(index){var that=this;return that.concat(that.splice(index,that.length-index));}});if(B.IE){B.IEWhich();try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}}},Apply:function(element){return Flow.Bind.extend(element);},Bind:{UNIQUE:1,methods:{DOM:"DOM"},apply:function(object){var that=this;that.objects=that.objects||[];that.objects.push(object);that.document(document);},extend:function(nodes){var that=this,F=Flow;if(!nodes){return;}
var one,i,node;if(nodes.nodeName){one=true;nodes=[nodes];}
i=nodes.length;while(i>=0){node=nodes[i];if((node&&!node.DOM)||(node&&node.nodeType===9)){that.bind(node);F.Utils.stripWhitespace(node);node.DOM=node.DOM||("SCH_"+that.UNIQUE++);}
i--;}
return one?nodes[0]:nodes;},document:function(node){var that=this;var i=0,doc,F=Flow;node.DOM=node.DOM||("SCH_"+that.UNIQUE++);while(i<that.objects.length){doc=that.objects[i];doc.boundElements=doc.boundElements||{};if(!doc.boundElements[node.DOM]){that.iterate(doc.document,node);node._defaultView=node.defaultView;if(typeof node.defaultView==="undefined"){node.defaultView=window;}
that.iterate(doc.computed,node.defaultView);doc.boundElements[node.DOM]=node.DOM;}
i++;}
that.extend(node);},iterate:function(object,node){var that=this;for(var key in object){if(object.hasOwnProperty(key)){if(!node.DOM||!node[key]||!that.methods[key]){try{if(node==Array.prototype){node[key]=function(){var i=0,array=this,call,args=arguments,combo=[];var singleProps=["getFirstChild","getLastChild"],curr=args.callee.key;while(i<singleProps.length){if(curr==singleProps[i]){throw curr+" property can only be called on single element.";}
i++;}
i=0;while(i<array.length){call=array[i][curr].apply(array[i],args);if(call){var j=0;while(j<call.length){if(call[j]){combo.push(call[j]);}
j++;}}
i++;}
return combo[0]?combo:array;};node[key].key=key;}else{if(node[key]){var orig="_"+key;node[orig]=node[key];that.methods[orig]=that.methods[orig]||orig;}
node[key]=object[key];}
that.methods[key]=that.methods[key]||key;that.shortcut(node,key);}catch(e){}}}}},shortcut:function(node,key){var that=this;var reg=/(get|query)(Element[s]?|Selector)?(By(Class|Tag|Id|Attr)|All)?(Name|ibute)?/;if(reg.test(key)){var shorthand=key.replace(reg,"$1$3");node[shorthand]=node[key];that.methods[shorthand]=that.methods[shorthand]||shorthand;}},bind:function(node){var that=this;if(!node.DOM||(node&&node.nodeType===9)){var i=0,j,k,obj=that.objects;while(i<obj.length){j=obj[i];if(j.nodes&&j.nodes.limit){k=0;while(k<j.nodes.limit.length){var type=j.nodes.limit[k];if(node.nodeName.toLowerCase()==type){that.iterate(j.nodes,node);}
k++;}}else{that.iterate(j.nodes,node);}
if(Flow.Browser.IE){that.iterate(j.ie,node);}
i++;}}}},Plugin:function(plugin){if(plugin.name){if(Flow[plugin.name]){throw"Flow."+plugin.name+" already exists";}
Flow[plugin.name]=plugin.constructor;if(plugin.bind){Flow.Bind.apply(plugin.constructor);}}else{plugin.constructor();}}};Flow.Browser.init();new Flow.Plugin({name:"Dom",version:"1.1.1",bind:true,constructor:function(){var F=Flow,D=F.Dom,X=F.Bind,B=F.Browser,U=F.Utils,E=F.Event;var className="className",firstChild="firstChild",lastChild="lastChild",evalString="evaluate",doc=document,zero=null,that;return{nodes:{getElementsByClassName:function(){var format=function(className){if(!(className instanceof Array)){className=className.replace(/^\s?|\s?$/g,"");if(/ /.test(className)){className=className.split(" ");}
className=(typeof className=="string")?[className]:className;}
return className;};var hasClass=function(elClass,element){return new RegExp("(?:^|\\s+)"+elClass+"(?:\\s+|$)").test(element[className]);};var match=function(reg,element){var i=0,ex;while(ex=reg[i++]){if(!ex.test(element[className])){element=zero;break;}}
return element;};var evaluate=function(className,that){var evals=[],reg=[],i=0,Class;while(Class=className[i++]){if(doc[evalString]&&that){evals.push(U.xpath.contains("class",Class,that));}
reg.push(U.match(Class));}
return{evals:evals,reg:reg};};var empty=function(className){return(typeof className=="object"&&!className[0])||(className==="");};if(doc._getElementsByClassName){return function(className){var that=this;var nodes=new U.liveNodeList(that._getElementsByClassName(className));return X.extend(nodes);};}
if(doc[evalString]){return function(className){var that=this;if(empty(className)){return[];}
className=format(className);var nodes=[],element,i=0,x=0,regEx=evaluate(className,that),evals=regEx.evals,xpath,reg=regEx.reg,_match;while(xpath=evals[i++]){while(element=xpath.snapshotItem(x++)){_match=match(reg,element);if(_match){nodes.push(_match);}}}
return X.extend(new U.liveNodeList(nodes));};}
return function(className){var that=this;if(empty(className)){return[];}
className=format(className);var nodes,elArray=[],element,i=0,_match;nodes=that._getElementsByTagName("*");var regEx=evaluate(className),reg=regEx.reg;while(element=nodes[i++]){_match=match(reg,element);if(_match){elArray.push(_match);}}
return X.extend(elArray);};}(),getElementsByTagName:function(){if(doc[evalString]){return function(tagName){tagName=tagName.toLowerCase();switch(tagName){case"applet":case"embed":return document._getElementsByTagName(tagName);default:var i=0,element,that=this;var xpath=doc[evalString](".//"+tagName,that,zero,U.xpath.snapshot,zero),nodes=[];while(element=xpath.snapshotItem(i++)){nodes.push(element);}
nodes=X.extend(nodes);return nodes;}};}
return function(tagName){tagName=tagName.toLowerCase();var that=this;switch(tagName){case"applet":case"embed":return document._getElementsByTagName(tagName);default:var nodes=X.extend(that._getElementsByTagName(tagName));var clones=[];for(var i=0,j=nodes.length;i<j;i++){clones.push(nodes[i]);}
return clones;}};}(),cloneNode:function(deep){var clone=this._cloneNode(deep);if(deep){var i=0,children=clone.getElementsByTagName("*");while(i<children.length){X.extend(children[i]);children[i].DOM="SCH_"+X.UNIQUE++;i++;}}
clone=X.extend(clone);clone.DOM="SCH_"+X.UNIQUE++;return clone;},removeChild:function(childNode){E=E||F.Event;if(E&&childNode&&childNode.DOM&&childNode.nodeType==1){E.cache.flush(childNode);}
if(typeof this._removeChild!=="undefined"){this._removeChild(childNode);}},replaceChild:function(newNode,referenceNode){E=E||F.Event;if(E&&referenceNode&&referenceNode.DOM&&referenceNode.nodeType==1){E.cache.flush(referenceNode);}
if(this.replaceNode){referenceNode.replaceNode(newNode);}else{this._replaceChild(newNode,referenceNode);}}},document:{getElementById:function(idName){D=D||F.Dom;var element=doc._getElementById(idName);if(element){var attr=element.attributes["id"];if(attr&&attr.value&&(attr.value==idName)){return X.extend(element);}else{if(B.WK){return X.extend(element);}else{for(var i=1;i<document.all[idName].length;i++){if(document.all[idName][i].id==idName){return X.extend(document.all[idName][i]);}}}}}},getElementsByName:function(name){D=D||F.Dom;var element=X.extend(doc._getElementsByName(name));element=new U.liveNodeList(element);return element;},createElement:function(element){var newElement=this._createElement(element);return X.extend(newElement);}},ie:{getAttribute:function(attribute){that=this;switch(attribute){case"style":var style=that.style.cssText.toLowerCase();if(!(/;$/.test(style))){style+=";";}
return style;case"class":return that[className];case"for":return that.htmlFor;case"type":return that.type;case"href":case"src":case"value":return that._getAttribute(attribute,2);default:return that._getAttribute(attribute);}},setAttribute:function(attribute,value){that=this;switch(attribute){case"style":that.style.cssText=value;return;case"class":that[className]=value;return;case"for":that.htmlFor=value;return;case"title":that.title=value;return;case"type":that.type=value;return;default:that._setAttribute(attribute,value);return;}},hasAttribute:function(attribute){return this.getAttribute(attribute)!==zero;}},computed:{getComputedStyle:function(element,pseudoElt){var RGBtoHex=U.RGBtoHex;if(document.defaultView._getComputedStyle){var computedStyle=document.defaultView._getComputedStyle(element,pseudoElt);if(!B.Chrome){computedStyle.getPropertyValue=function(property){var value=document.defaultView._getComputedStyle(element,pseudoElt).getPropertyValue(property);switch(/color|background/.test(property)){case true:if(/rgb/.test(value)){var rgb=(/rgb\(([^\)]+)\)/).exec(value);if(rgb&&rgb[1]){rgb=rgb[1].split(/\, ?/);return RGBtoHex(rgb[0],rgb[1],rgb[2]).toLowerCase();}}else{var hexcode=(/\#[a-zA-Z0-9]+/).exec(value);if(hexcode&&hexcode[0]){value=value.replace(hexcode[0],hexcode[0].toLowerCase());}
return value;}
break;default:return value;}};}
return computedStyle;}else{element.getPropertyValue=function(property){property=U.toCamelCase(property);var unAuto=function(prop){var calcPx=function(props,dir){var value;dir=dir.replace(dir.charAt(0),dir.charAt(0).toUpperCase());var globalProps={visibility:"hidden",position:"absolute",left:"-9999px",top:"-9999px"};var dummy=element.cloneNode(true);for(var i=0,j=props.length;i<j;i++){dummy.style[props[i]]="0";}
for(var key in globalProps){dummy.style[key]=globalProps[key];}
document.body.appendChild(dummy);value=dummy["offset"+dir];document.body.removeChild(dummy);return value;};switch(prop){case"width":props=["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"];prop=calcPx(props,prop);break;case"height":props=["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"];prop=calcPx(props,prop);break;default:prop=style[prop];break;}
return prop;};var PIXEL=/^\d+(px)?$/i;var COLOR=/color|backgroundColor/i;var SIZES=/width|height|top|bottom|left|right|margin|padding|border(.*)?Width/;var getHexColor={aqua:"00FFFF",black:"000000",blue:"0000FF",fuchsia:"FF00FF",green:"008000",grey:"808080",lime:"00FF00",maroon:"800000",navy:"000080",olive:"808000",purple:"800080",red:"FF0000",silver:"C0C0C0",teal:"008080",white:"FFFFFF",yellow:"FFFF00"};var getPixelValue=function(prop,name){if(PIXEL.test(prop)){return prop;}
if(prop==="auto"){prop=unAuto(name);}else{var style=this.style.left,runtimeStyle=this.runtimeStyle.left;this.runtimeStyle.left=this.currentStyle.left;this.style.left=prop||0;prop=this.style.pixelLeft;this.style.left=style;this.runtimeStyle.left=runtimeStyle;}
return prop+"px";};var getColorValue=function(value){if(/#/.test(value)&&value.length!==7){var hex=(/[a-zA-Z0-9]+/).exec(value)[0].split("");value="#"+[hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]].join("").toLowerCase();}else if(/rgb/.test(value)){value=(/rgb\(([^\)]+)\)/).exec(value)[1].split(/\, ?/);return RGBtoHex(value[0],value[1],value[2]).toLowerCase();}else if(getHexColor[value]){value="#"+getHexColor[value].toLowerCase();}
return value;};if(COLOR.test(property)){property=getColorValue(this.currentStyle[property]);}else if(SIZES.test(property)){property=getPixelValue.call(this,this.currentStyle[property],property);}else{property=this.currentStyle[property];}
return property||"";};element.removeProperty=function(property){property=U.toCamelCase(property);this.currentStyle[property]="";};element.setProperty=function(property,value){property=U.toCamelCase(property);this.currentStyle[property]=value;};return element;}}},init:function(){doc.getByTag("*");}};}()});new Flow.Plugin({name:"Event",version:"1.1.1",bind:true,constructor:function(){var F=Flow,B=F.Browser,E=F.Event,U=F.Utils,C=F.CustomEvent,that,UNIQUE=1,doc=document,readyState="readyState",ContentLoaded=/ContentLoaded/;var isFB=function(){return!!(window.console&&window.console.firebug);}();return{nodes:{addEventListener:function(type,handler,useCapture){E=E||F.Event;E.cache.add(this,type,handler,useCapture);if((type=="DOMContentLoaded")&&(B.IE||B.WK)){if(B.WK){E.stack.push(handler);var timer=setInterval(function(){if(/loaded|complete/.test(doc[readyState])){clearInterval(timer);E.fire();}},10);}else if(B.IE){E.stack.push(handler);doc.write("<script id=_ready defer src=//:><\/script>");doc.all._ready.onreadystatechange=function(){if(this.readyState=="complete"){this.removeNode();Flow.Event.fire();}};}}else{var handleEvent=function(event){event=event||function(event){event.preventDefault=function(){this.returnValue=false;};event.stopPropagation=function(){this.cancelBubble=true;};event.relatedTarget=event.toElement;event.target=event.srcElement||document;var element=doc.documentElement,body=doc.body;event.pageX=event.clientX+(element&&element.scrollLeft||body&&body.scrollLeft||0)-(element.clientLeft||0);event.pageY=event.clientY+(element&&element.scrollTop||body&&body.scrollTop||0)-(element.clientTop||0);event.which=(event.charCode||event.keyCode);event.metaKey=event.ctrlKey;return event;}(window.event);var handlers=this.events[event.type],returnValue,key;for(key in handlers){if(handlers.hasOwnProperty(key)&&handlers[key].call(this,event)===false){returnValue=false;}}
return returnValue;};var attachEvent=function(type,handler){var node=this;handler.SCH=handler.SCH||UNIQUE++;node.events=node.events||{};if(!node.events[type]){node.events[type]={};if(node["on"+type]){node.events[type][0]=node["on"+type];}
if(B.IE&&(typeof(this.event)!=="undefined")){node=window;}
if(/DOM/.test(type)){node._addEventListener(type,handler,false);}else{node["on"+type]=handleEvent;}}
node.events[type][handler.SCH]=handler;};if((/firebug/).test(type)){this._addEventListener(type,handler,false);}else{attachEvent.call(this,type,handler);}}
return that;},removeEventListener:function(type,handler,useCapture){that=this;var key,i;if(that.events){if(!type){for(key in that.events){for(i in that.events[key]){delete that.events[key][i];}}}else if(type&&!handler){for(key in that.events[type]){delete that.events[type][key];}}else if(handler.SCH){delete that.events[type][handler.SCH];}}},dispatchEvent:function(type){that=this;var key;var fireEvents=function(){if((typeof type==="string")&&that.events&&that.events[type]){for(key in that.events[type]){that.events[type][key].call(that);}}};if(isFB){try{that._dispatchEvent(type);}catch(e){fireEvents();}}else{fireEvents();}
return that;}},stack:[],cache:function(){var eventCache={};return{add:function(element,type,handler,useCapture){var key=element.DOM;eventCache[key]=eventCache[key]||[];eventCache[key].push(arguments);},list:function(element){return element?(eventCache[element.DOM]||null):eventCache;},flush:function(element){var that=F.Event.cache,key;var methods=F.Bind.methods;if(element&&element.DOM){key=element.DOM;that.iterate(eventCache[key],key);that.nullify(element,methods);}else{for(key in eventCache){that.iterate(eventCache[key],key);}
var all=document._getElementsByTagName("*"),node,i=0;while(node=all[i++]){if(node&&node.DOM){that.nullify(node,methods);}}}},iterate:function(array,key){if(array&&key){var i,item;for(i=array.length-1;i>=0;i=i-1){item=array[i];item[0].removeEventListener(item[1],item[2],item[3]);}
eventCache[key]=null;}},nullify:function(node,methods){var key;try{for(key in methods){if(!(/^\_/).test(key)){node[key]=node["_"+key]||null;}}
for(key in methods){if((/^\_/).test(key)){node[key]=null;}}}catch(e){}}};}(),fire:function(){if(arguments.callee.done){return;}
arguments.callee.done=true;var i=0,that=this;while(i<that.stack.length){that.stack[i]();i++;}},init:function(){var globals=[window,document],onload=globals[0].onload,i=0,node,nodes,key,fire;if(!doc._addEventListener||B.WK){while(i<globals.length){node=globals[i];nodes=Flow.Event.nodes;for(key in nodes){if(node[key]){node["_"+key]=node[key];}
node[key]=nodes[key];}
i++;}}
if(Flow.Dom){globals[0].addEventListener("DOMContentLoaded",Flow.Dom.init,false);}}};}()});(function(){var E=Flow.Event;E.init();window.addEventListener("unload",E.cache.flush,false);})();new Flow.Plugin({name:"Extend",version:"1.1.1",bind:true,constructor:function(){var F=Flow,B=F.Browser,U=F.Utils,X=F.Bind;var doc=document,className="className",zero=null,that;return{nodes:{addClass:function(elClass){that=this;var curr=that[className];if(!new RegExp(("(^|\\s)"+elClass+"(\\s|$)"),"i").test(curr)){that[className]=curr+((curr.length>0)?" ":"")+elClass;}
return that;},removeClass:function(elClass){that=this;if(elClass){var classReg=new RegExp(("(^|\\s)"+elClass+"(\\s|$)"),"i");that[className]=that[className].replace(classReg,function(e){var value="";if(new RegExp("^\\s+.*\\s+$").test(e)){value=e.replace(/(\s+).+/,"$1");}
return value;}).replace(/^\s+|\s+$/g,"");if(that.getAttribute("class")===""){that.removeAttribute("class");}}else{that[className]="";that.removeAttribute("class");}
return that;},replaceClass:function(elClass,elNewClass){that=this;if(that.hasClass(elClass)){that.removeClass(elClass).addClass(elNewClass);}
if(that.getAttribute("class")===""){that.removeAttribute("class");}
return that;},hasClass:function(elClass){that=this;return new RegExp(("(^|\\s)"+elClass+"(\\s|$)"),"i").test(that[className]);},toggleClass:function(elClass){that=this;that.hasClass(elClass)?that.removeClass(elClass):that.addClass(elClass);return that;},getElementsByAttribute:function(){var reg=/class/;if(doc._getElementsByAttribute){return function(elAttribute,elValue){var that=this;var nodes=new U.liveNodeList(that._getElementsByAttribute(elAttribute,elValue));return X.extend(nodes);};}
if(doc.evaluate){return function(elAttribute,elValue){that=this;if(reg.test(elAttribute)&&elValue){return that.getByClass(elValue);}
var xpath,x=0,node,nodes=[];elValue=(elValue=="*")?null:elValue;if(elValue){xpath=U.xpath.contains(elAttribute,elValue,that);}else{xpath=doc.evaluate(".//*[@"+elAttribute+"]",that,zero,U.xpath.snapshot,zero);}
x=0;while(node=xpath.snapshotItem(x++)){nodes.push(node);}
return X.extend(nodes);};}
return function(elAttribute,elValue){that=this;if(reg.test(elAttribute)&&elValue){return that.getByClass(elValue);}
var nodes=that._getElementsByTagName("*"),i=0,exists,element,attrArray=[];while(element=nodes[i++]){if(element.getAttribute){exists=element.getAttribute(elAttribute);}
if(exists&&(!elValue||(elValue=="*")||U.match(elValue).test(exists))){attrArray.push(element);}}
return X.extend(attrArray);};}(),insertAfter:function(newNode,referenceNode){that=this;if(that._insertAfter){that._insertAfter(newNode,referenceNode);}else{(that.lastChild==referenceNode)?that.appendChild(newNode):that.insertBefore(newNode,referenceNode.nextSibling);}},elementName:function(){return this.nodeName.toLowerCase();},getFirstChild:function(childNode){that=this;if(childNode){var nodeList=that._getElementsByTagName(childNode);return(nodeList&&nodeList[0])?nodeList[0]:null;}
return that.childNodes[0];},getLastChild:function(childNode){that=this;var nodeList;if(childNode){nodeList=that._getElementsByTagName(childNode);return(nodeList&&nodeList[0])?nodeList[nodeList.length-1]:null;}
nodeList=that.childNodes;return nodeList[0]?nodeList[nodeList.length-1]:null;},hasChildNode:function(childNode){var nodeList=this._getElementsByTagName(childNode);return(nodeList&&nodeList[0])?true:false;},hasParentNode:function(parentNode){var parent=this.parentNode;while(parent.parentNode&&(parent.nodeName.toLowerCase()!=parentNode)){parent=parent.parentNode;}
if(parent.nodeName.toLowerCase()==parentNode){return X.extend(parent);}
return false;},getChildNodes:function(childNode){var nodeList;if(B.WK&&!B.S3){nodeList=[];for(var i=0,j=this.childNodes.length;i<j;i++){nodeList.push(this.childNodes[i]);}}else{nodeList=new U.liveNodeList(this.childNodes);}
if(childNode){nodeList=nodeList.filter(function(element){return(element.nodeName.toLowerCase()==childNode);});}
return nodeList;},getParentNode:function(parentNode){var parent=this.parentNode;if(parentNode){while(parent.parentNode&&(parent.nodeName.toLowerCase()!=parentNode)){if(parent.nodeName.toLowerCase()=="body"){return null;}
parent=parent.parentNode;}}
return X.extend(parent);},removeNode:function(){that=this;if(that._removeNode){that._removeNode();}else{that.parentNode.removeChild(that);}},getText:function(){var child=this.firstChild;if(child&&child.nodeValue){return this.firstChild.nodeValue;}
return false;},setText:function(range,text){var child=this.firstChild;if(!child){this.appendChild(document.createTextNode(' '));child=this.firstChild;}
if(text){child.nodeValue=child.nodeValue.replace(range,text);}else{child.nodeValue=range;}},setOpacity:function(value){var that=this;value=parseFloat(value);value=(value<1)?value:(value/100);if(F.Browser.IE){that.style.zoom=that.style.zoom||1;that.style.filter="alpha(opacity="+(value*100)+")";}else{that.style.opacity=value;}},getComputedStyle:function(cssProp){var style=document.defaultView.getComputedStyle(this,null);if(cssProp){style=style.getPropertyValue(cssProp);}
return style;},setStyle:function(cssProp,value){if(cssProp instanceof Object){for(var key in cssProp){this.setStyle(key,U.toCamelCase(cssProp[key]));}}else if(cssProp&&(typeof value!=="undefined")){switch(cssProp){case"opacity":this.setOpacity(value);break;default:if(/rgb/.test(value)){value=(/rgb\(([^\)]+)\)/).exec(value)[1].split(/\, ?/);value=U.RGBtoHex(value[0],value[1],value[2]).toLowerCase();}
this.style[U.toCamelCase(cssProp)]=value;break;}}
return this;},getPosition:function(){var curleft=this.offsetLeft,curtop=this.offsetTop;element=this;return{x:curleft,y:curtop};},getDocumentPosition:function(){var curleft=0,curtop=0,element=this;if(element.offsetParent){curleft=element.offsetLeft;curtop=element.offsetTop;while(element=element.offsetParent){curleft+=element.offsetLeft;curtop+=element.offsetTop;}}
return{x:curleft,y:curtop};},setInnerHTML:function(markup,method){var dummy=function(markup){var dummy=doc.createElement("div");dummy.innerHTML=markup;U.stripWhitespace(dummy);var all=dummy._getElementsByTagName("*"),i=0;while(i<all.length){var element=all[i];U.stripWhitespace(element);element.DOM=null;X.extend(element);i++;}
return dummy;}(markup),that=this;if(!method){while(that.hasChildNodes()){that.removeChild(that.lastChild);}}
var returnNode=dummy.childNodes;if(!returnNode[1]){returnNode=returnNode[0];}
while(dummy.hasChildNodes()){if(method&&(/(^pre)|before/).test(method)){that.insertBefore(dummy.lastChild,that.firstChild);}else{that.appendChild(dummy.firstChild);}}
return returnNode;},getInnerHTML:function(){return this.innerHTML;}},chaining:{}};}()});Flow.Bind.bind(Array.prototype);if(Flow.Dom){Flow.Bind.iterate(Flow.Dom.ie,Array.prototype);}
new Flow.Plugin({name:"Remote",version:"1.1.1",constructor:function(){var oXMLHttpRequest=window.XMLHttpRequest;var B=Flow.Browser;var bGecko=B.GK,bIE=B.IE;var cXMLHttpRequest=function(){this._object=oXMLHttpRequest?new oXMLHttpRequest:new window.ActiveXObject('Microsoft.XMLHTTP');};if(bGecko&&oXMLHttpRequest.wrapped){cXMLHttpRequest.wrapped=oXMLHttpRequest.wrapped;}
cXMLHttpRequest.UNSENT=0;cXMLHttpRequest.OPENED=1;cXMLHttpRequest.HEADERS_RECEIVED=2;cXMLHttpRequest.LOADING=3;cXMLHttpRequest.DONE=4;cXMLHttpRequest.prototype.readyState=cXMLHttpRequest.UNSENT;cXMLHttpRequest.prototype.responseText="";cXMLHttpRequest.prototype.responseXML=null;cXMLHttpRequest.prototype.status=0;cXMLHttpRequest.prototype.statusText="";cXMLHttpRequest.prototype.onreadystatechange=null;cXMLHttpRequest.onreadystatechange=null;cXMLHttpRequest.onopen=null;cXMLHttpRequest.onsend=null;cXMLHttpRequest.onabort=null;cXMLHttpRequest.onsuccess=null;cXMLHttpRequest.onerror=null;cXMLHttpRequest.prototype.open=function(sMethod,sUrl,bAsync,sUser,sPassword){this._async=bAsync;this.url=sUrl;this.async=bAsync;if(this.query){var query=(/\?/.test(this.url))?"&":"?",qArray=[];for(var i in this.query){if(this.query.hasOwnProperty(i)){qArray.push(i+"="+this.query[i]);}}
sUrl+=query+qArray.join("&");this.url=sUrl;}
var oRequest=this,nState=this.readyState;if(bIE){var fOnUnload=function(){if(oRequest._object.readyState!=cXMLHttpRequest.DONE){fCleanTransport(oRequest);}};if(bAsync){window.attachEvent("onunload",fOnUnload);}}
this._object.onreadystatechange=function(){if(bGecko&&!bAsync){return;}
oRequest.readyState=oRequest._object.readyState;fSynchronizeValues(oRequest);if(oRequest._aborted){oRequest.readyState=cXMLHttpRequest.UNSENT;return;}
if(oRequest.readyState==cXMLHttpRequest.DONE){fCleanTransport(oRequest);if(bIE&&bAsync){window.detachEvent("onunload",fOnUnload);}}
if(nState!=oRequest.readyState){fReadyStateChange(oRequest);}
nState=oRequest.readyState;};if(cXMLHttpRequest.onopen){cXMLHttpRequest.onopen.apply(this,arguments);}
this._object.open(sMethod,sUrl,bAsync,sUser,sPassword);if(!bAsync&&bGecko){this.readyState=cXMLHttpRequest.OPENED;fReadyStateChange(this);}};cXMLHttpRequest.prototype.send=function(vData){if(cXMLHttpRequest.onsend){cXMLHttpRequest.onsend.apply(this,arguments);}
if(vData&&vData.nodeType){vData=window.XMLSerializer?new window.XMLSerializer().serializeToString(vData):vData.xml;if(!this._headers["Content-Type"]){this._object.setRequestHeader("Content-Type","application/xml");}}
this._object.send(vData);if(bGecko&&!this._async){this.readyState=cXMLHttpRequest.OPENED;fSynchronizeValues(this);while(this.readyState<cXMLHttpRequest.DONE){this.readyState++;fReadyStateChange(this);if(this._aborted){return;}}}};cXMLHttpRequest.prototype.abort=function(){if(cXMLHttpRequest.onabort){cXMLHttpRequest.onabort.apply(this,arguments);}
if(this.readyState>cXMLHttpRequest.UNSENT){this._aborted=true;}
this._object.abort();fCleanTransport(this);};cXMLHttpRequest.prototype.setquery=function(name,value){var that=this;that.query=that.query||{};if(typeof name==="object"){for(var i in name){if(name.hasOwnProperty(i)){that.query[i]=name[i];}}}else{that.query[name]=value;}};cXMLHttpRequest.prototype.addEventListener=function(type,event){return cXMLHttpRequest.prototype["on"+type]=event;};cXMLHttpRequest.prototype.getAllResponseHeaders=function(){return this._object.getAllResponseHeaders();};cXMLHttpRequest.prototype.getResponseHeader=function(sName){return this._object.getResponseHeader(sName);};cXMLHttpRequest.prototype.setRequestHeader=function(sName,sValue){if(!this._headers){this._headers={};}
this._headers[sName]=sValue;return this._object.setRequestHeader(sName,sValue);};cXMLHttpRequest.prototype.toString=function(){return'['+"object"+' '+"XMLHttpRequest"+']';};cXMLHttpRequest.toString=function(){return'['+"XMLHttpRequest"+']';};var fReadyStateChange=function(oRequest){if(oRequest.onreadystatechange){oRequest.onreadystatechange.apply(oRequest);}
if(cXMLHttpRequest.onreadystatechange){cXMLHttpRequest.onreadystatechange.apply(oRequest);}
if(oRequest.readyState==cXMLHttpRequest.DONE){if(oRequest.onsuccess&&(oRequest.status==200||oRequest.status==304)){oRequest.onsuccess.apply(oRequest);}
if(oRequest.onerror&&oRequest.status==404){oRequest.onerror.apply(oRequest);}}};var fGetDocument=function(oRequest){var oDocument=oRequest.responseXML;if(bIE&&oDocument&&!oDocument.documentElement&&oRequest.getResponseHeader("Content-Type").match(/[^\/]+\/[^\+]+\+xml/)){oDocument=new ActiveXObject('Microsoft.XMLDOM');oDocument.loadXML(oRequest.responseText);}
if(oDocument){if((bIE&&oDocument.parseError!==0)||(oDocument.documentElement&&oDocument.documentElement.tagName=="parsererror")){return null;}}
return oDocument;};var fSynchronizeValues=function(oRequest){try{oRequest.responseText=oRequest._object.responseText;}catch(e){}
try{oRequest.responseXML=fGetDocument(oRequest._object);}catch(e){}
try{oRequest.status=oRequest._object.status;}catch(e){}
try{oRequest.statusText=oRequest._object.statusText;}catch(e){}};var fCleanTransport=function(oRequest){oRequest._object.onreadystatechange=new window.Function;delete oRequest._headers;};window.XMLHttpRequest=window.HttpRequest=cXMLHttpRequest;}()});new Flow.Plugin({name:"Require",version:"1.1.1",constructor:function(type,uri,managed){var head,script,style,that=this;if(managed){that.required=that.required||{};if(that.required[uri]){return;}else{that.required[uri]=uri;}}
head=document.getElementsByTagName("head")[0];switch(type){case"js":case"javascript":that.files=that.files||[];that.files.push(uri);var createScript=function(uri){script=document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src",uri);head.appendChild(script);var evt=Flow.Browser.IE?"readystatechange":"load";script["on"+evt]=function(){loadNextScript();};};var loadNextScript=function(){if(that.files&&that.files[++that.currentIndex]){createScript(that.files[that.currentIndex]);}else{delete that.files;delete that.isBusy;delete that.currentIndex;}};if(!that.isBusy){that.isBusy=true;that.currentIndex=0;createScript(that.files[that.currentIndex]);}
return script;case"css":case"style":case"stylesheet":style=document.createElement("link");style.setAttribute("charset","utf-8");style.setAttribute("rel","stylesheet");style.setAttribute("type","text/css");style.setAttribute("media","screen");style.setAttribute("href",uri);head.appendChild(style);return style;}}});new Flow.Plugin({name:"RequireCSS",constructor:function(uri){return Flow.Require("stylesheet",uri,true);}});new Flow.Plugin({name:"RequireJS",constructor:function(uri){return Flow.Require("javascript",uri,true);}});new Flow.Plugin({name:"RequireOnce",constructor:function(type,uri){return Flow.Require(type,uri,true);}});if(typeof Flow!="object"||!Flow.Dom){throw"Missing required JavaScript. Flow Core is required.";}
new Flow.Plugin({name:"Animate",version:"1.1",constructor:function(options,duration){var that,doc=document,F=Flow,U=F.Utils;return{init:function(options,duration){that=this;options.suffix=options.suffix||"px";that.objects=that.objects||[];that.duration=duration||0.25;if(typeof options.node=="string"){options.node=doc.getById(options.node);}
that.node=options.node;if(!options.from){options.from=that.getFrom(options.to,options.node);}
for(key in options.from){if(options.from.hasOwnProperty(key)){options.from[U.toCamelCase(key)]=options.from[key];}}
for(var key in options.to){var curr={node:options.node,prop:key,begin:options.from[key],end:options.to[key],tween:options.tween};that.objects.push(curr);}
return that;},start:function(){F.Animate.animations=F.Animate.animations||{};var animations=F.Animate.animations[that.node.DOM];if(animations){that.stop(animations);}
F.Animate.animations[that.node.DOM]=[];animations=F.Animate.animations[that.node.DOM];for(var i=0,j=that.objects.length;i<j;i++){var object=that.objects[i];that.ani=new that.object(object,that.duration);if(that.events&&(i==[that.objects.length-1])){for(var k=0,l=that.events.length;k<l;k++){var e=that.events[k];that.ani.addEventListener(e.type,e.handler,e.useCapture);}}
animations.push(that.ani);that.ani.start();}
return that;},stop:function(animations){animations=animations||F.Animate.animations[that.node.DOM];for(var i=0,j=animations.length;i<j;i++){animations[i].stop();}},resume:function(){that.ani.resume();},getFrom:function(to,node){var toHyphenCase=function(e){var match=e.match(/[a-z]+([A-Z]+)/g);if(RegExp.$1){e=e.replace(RegExp.$1,"-"+RegExp.$1.toLowerCase());}
return e;};var computed=doc.defaultView.getComputedStyle(node,null),key,from,value;var object={};for(key in to){if(to.hasOwnProperty(key)){if(key=="borderWidth"){key="borderTopWidth";}
try{from=computed.getPropertyValue(toHyphenCase(key));}catch(e){from=0;}
object[key]=(!from||(from=="auto"))?0:parseFloat(from);}}
var opacity=object.opacity;if(opacity){object.opacity=(opacity<=1)?(opacity*100):opacity;}
return object;},addEventListener:function(type,handler,useCapture){that.events=that.events||[];that.events.push({type:type,handler:handler,useCapture:useCapture});},object:function(options,duration){var obj;return{linearTween:function(time,begin,change,duration){return change*time/duration+begin;},init:function(options,duration){obj=this;obj.addEventListener(obj);for(var key in options){obj[key]=options[key];}
var equations=F.Animate.equations;if(obj.tween&&equations){var tween=obj.tween.split(".");obj.tween=equations;for(var i=0,j=tween.length;i<j;i++){var e=tween[i];switch(e.toLowerCase()){case"easein":case"in":e="i";break;case"easeout":case"out":e="o";break;case"easeinout":case"inout":e="io";break;}
obj.tween=obj.tween[e];}}else{obj.tween=obj.linearTween;}
obj.suffix=obj.suffix||"px";obj.begin=obj.begin||0;if(F.Browser.IE&&(obj.prop=="opacity")&&(obj.node.style.filter==="")){obj.begin=100;}
obj._pos=options.begin;obj.setDuration(duration);obj.setFinish(obj.end);return obj;},setTime:function(t){obj.prevTime=obj._time;if(t>obj._duration){obj._time=obj._duration;obj.update();obj.stop();obj.dispatchEvent("oncomplete");}else if(t<0){obj.rewind();obj.update();}else{obj._time=t;obj.update();}},getTime:function(){return obj._time;},setDuration:function(d){obj._duration=(d===null||d<=0)?500:d;},setPosition:function(p){obj.prevPos=obj._pos;var a=obj.suffix;if(obj.prop=="opacity"){obj.node.style[obj.prop]=(p/100);if(F.Browser.IE){obj.node.style.zoom=obj.node.style.zoom||1;obj.node.style.filter="alpha(opacity="+p+")";}}else{try{obj.node.style[U.toCamelCase(obj.prop)]=Math.round(p)+a;}catch(e){}}
obj._pos=p;obj.dispatchEvent("onreadystatechange");},getPosition:function(t){if(t==undefined){t=obj._time;}
return obj.tween(t,obj.begin,obj.change,obj._duration);},setFinish:function(f){obj.change=f-obj.begin;},rewind:function(t){obj.stop();obj._time=(t==undefined)?0:t;obj.fixTime();obj.update();},update:function(){obj.setPosition(obj.getPosition(obj._time));},startEnterFrame:function(){obj.stopEnterFrame();obj.isPlaying=true;obj.onEnterFrame();},onEnterFrame:function(){if(obj.isPlaying){obj.nextFrame();var that=obj;setTimeout(function(){that.onEnterFrame.call(that,that.onEnterFrame);},0);}},nextFrame:function(){obj.setTime((obj.getTimer()-obj._startTime)/1000);},start:function(){obj.rewind();obj.startEnterFrame();obj.dispatchEvent("onstart");},stop:function(){obj.stopEnterFrame();obj.dispatchEvent("onstop",{halted:true});},stopEnterFrame:function(){obj.isPlaying=false;},continueTo:function(finish,duration){obj.begin=obj._pos;obj.setFinish(finish);if(obj._duration!=undefined){obj.setDuration(duration);}
obj.start();},resume:function(){obj.fixTime();obj.startEnterFrame();obj.dispatchEvent("onresume");},addEventListener:function(type,callback){obj.events=obj.events||{};type="on"+type;if(!obj.events[type]){obj.events[type]=[];}
obj.events[type].push(callback);return obj;},dispatchEvent:function(type,params){params=params||{};params.type=type;params.tween=obj;if(obj.events[type]){for(var i=0,j=obj.events[type].length;i<j;i++){obj.events[type][i].call(obj.node,params);}}},fixTime:function(){obj._startTime=obj.getTimer()-obj._time*1000;},getTimer:function(){return new Date().getTime()-obj._time;}}.init(options,duration);}}.init(options,duration);}});new Flow.Plugin({name:"Fx",version:"1.1",constructor:function(animation){Flow.Fx[animation.name]=animation.constructor;}});if(!Flow||!Flow.Animate){throw"Flow.Animate is required.";}
var Q={};Q.Expo={i:function(time,begin,change,duration){return(time===0)?begin:change*Math.pow(2,10*(time/duration-1))+begin;},o:function(time,begin,change,duration){return(time==duration)?begin+change:change*(-Math.pow(2,-10*time/duration)+1)+begin;},io:function(time,begin,change,duration){if(time===0){return begin;}
if(time==duration){return begin+change;}
if((time/=duration/2)<1){return change/2*Math.pow(2,10*(time-1))+begin;}
return change/2*(-Math.pow(2,-10*--time)+2)+begin;}};Flow.Augment(Flow.Animate,{equations:Q});Q=undefined;new Flow.Plugin({name:"Viewport",version:"1.1.1",constructor:function(){var doc=document,body="body",docElement="documentElement",win=window;return{getSize:function(){var size={};if(Flow.Browser.WK){size.w=self.innerWidth;size.h=self.innerHeight;}else if(Flow.Browser.OP){size.w=doc[body].clientWidth;size.h=doc[body].clientHeight;}else{size.w=doc[docElement].clientWidth;size.h=doc[docElement].clientHeight;}
return size;},getScreenSize:function(){return{w:(typeof self.screen.availWidth!=="undefined")?self.screen.availWidth:self.screen.width,h:(typeof self.screen.availHeight!=="undefined")?self.screen.availHeight:self.screen.height};},getOuterSize:function(){return{w:(typeof self.outerWidth!=="undefined")?self.outerWidth:null,h:(typeof self.outerHeight!=="undefined")?self.outerHeight:null};},getScrollOffset:function(){var scroll={};if(Flow.Browser.IE){scroll.x=doc[docElement].scrollLeft;scroll.y=doc[docElement].scrollTop;}else if(Flow.Browser.WK){scroll.x=doc[body].scrollLeft;scroll.y=doc[body].scrollTop;}else{scroll.x=self.pageXOffset;scroll.y=self.pageYOffset;}
return scroll;},getScrollSize:function(){var size={};if(Flow.Browser.IE){size.w=Math.max(doc[docElement].offsetWidth,doc[docElement].scrollWidth);size.h=Math.max(doc[docElement].offsetHeight,doc[docElement].scrollHeight);}else if(Flow.Browser.WK){size.w=doc[body].scrollWidth;size.h=doc[body].scrollHeight;}else{size.w=doc[docElement].scrollWidth;size.h=doc[docElement].scrollHeight;}
return size;},getPosition:function(){return{x:(typeof win.screenX!=="undefined")?win.screenX:win.screenTop,y:(typeof win.screenY!=="undefined")?win.screenY:win.screenLeft};},getMousePosition:function(e){var pos={};e=e||win.event;if((typeof e.pageX!=="undefined")||(typeof e.pageY!=="undefined")){pos.x=e.pageX;pos.y=e.pageY;}else if(e.clientX||e.clientY){pos.x=e.clientX+doc[body].scrollLeft+doc[docElement].scrollLeft;pos.y=e.clientY+doc[body].scrollTop+doc[docElement].scrollTop;}
return pos;},popup:function(url){if(!url||url===""){return;}
var options,name,newWin,scr,config="",opt;options={width:600,height:400,scrollbars:1,resizable:1,toolbar:0,location:0,status:0,name:"popup"};if(arguments.length>1){if(typeof arguments[1]==="object"){for(opt in arguments[1]){if(arguments[1].hasOwnProperty(opt)){options[opt]=arguments[1][opt];}}}}
scr=Flow.Viewport.getSize();if(typeof options.left=="undefined"){options.left=(scr.w/2-options.width/2);}
if(typeof options.top=="undefined"){options.top=(scr.h/2-options.height/2);}
for(opt in options){if(options.hasOwnProperty(opt)){if(opt==='name'){name=options[opt];}else{if((typeof options[opt]==='number'||typeof options[opt]==='boolean')&&(opt!=='height'&&opt!=='width'&&opt!=='top'&&opt!=='left')){options[opt]=(Number(options[opt])===0)?'no':'yes';}
config+=(opt+"="+options[opt]+",");}}}
newWin=window.open(url,name,config.replace(/\,$/,''));if(newWin){newWin.focus();}}};}()});new Flow.Plugin({name:"Form",version:"1.1.1",bind:true,constructor:function(){var getForm=function(f){return(typeof f==="string")?document.getElementById(f):f;};var that=this;return{nodes:{limit:["form"],getValue:function(el){var rGroup,values=[];if(typeof el==="string"){var i,j,form,element;i=0;while(i<this.elements.length){element=this.elements[i];if(element.name===el){el=element;}
i++;}}
if((typeof el=="string")||(typeof el=="undefined")){return;}
switch(el.tagName.toLowerCase()){case"select":for(i=0;i<el.options.length;i++){if(el.options[i].selected){values.push(el.options[i].value);}}
return(el.multiple)?values:values[0];case"textarea":return el.value;case"input":switch(el.type){case"checkbox":return(el.checked)?el.value:false;case"radio":rGroup=el.form.elements[el.name];for(i=0;i<rGroup.length;i++){if(rGroup[i].checked){return rGroup[i].value;}}
return false;default:return el.value;}}},toQueryString:function(){var nvPair,q=[];form=getForm(this);if(typeof form==='object'&&form.tagName.toLowerCase()==="form"){var i=0,el;while(i<form.elements.length){el=form.elements[i];if(el.name){nvPair=el.name+"="+encodeURIComponent(this.getValue(el));var isBigEnough=function(element,index,array){return(element>=10);};if(!q.some(function(i){return i==nvPair;})){q.push(nvPair);}}
i++;}
return q.join("&");}},toJSON:function(){var q={};form=getForm(this);if(typeof form==='object'&&form.tagName.toLowerCase()==="form"){var i=0,el;while(i<form.elements.length){el=form.elements[i];if(el.name&&!q[el.name]){q[el.name]=this.getValue(el);}
i++;}
return q;}}}};}()});new Flow.Plugin({name:"Cookie",version:"1.1.1",bind:true,constructor:{document:{setCookie:function(name,val,options){var cookieString=name+"="+val+";";if(typeof options=="object"){if(options.maxAge){cookieString+="max-age="+options.maxAge+";";}
if(options.domain){cookieString+="domain="+options.domain+";";}
if(options.secure){cookieString+="secure;";}}
if(typeof options=="object"&&options.path){cookieString+="path="+options.path+";";}else{cookieString+="path=/;";}
this.cookie=cookieString;},getCookie:function(name){name+="=";var chip=this.cookie.split(";");for(var i=0;i<chip.length;i++){while(chip[i].charAt(0)==" "){chip[i]=chip[i].substring(1,chip[i].length);}
if(chip[i].indexOf(name)===0){var cookie=chip[i].substring(name.length,chip[i].length);cookie=(cookie==="")?null:cookie;return cookie;}}
return null;},deleteCookie:function(name){this.setCookie(name,"",{maxAge:-1});if(!this.getCookie(name)){return true;}}}}});(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString,hasDuplicate=false;var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}
if(!selector||typeof selector!=="string"){return results;}
var parts=[],m,set,checkSet,check,mode,extra,prune=true,contextXML=isXML(context);chunker.lastIndex=0;while((m=chunker.exec(selector))!==null){parts.push(m[1]);if(m[2]){extra=RegExp.rightContext;break;}}
if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector])
selector+=parts.shift();set=posProcess(selector,set);}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];}
if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}
while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}
if(pop==null){pop=context;}
Expr.relative[cur](checkSet,pop,contextXML);}}else{checkSet=parts=[];}}
if(!checkSet){checkSet=set;}
if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector);}
if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}else{makeArray(checkSet,results);}
if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results);}
return results;};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=false;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];}
for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.match[type].exec(expr))){var left=RegExp.leftContext;if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}
if(!set){set=context.getElementsByTagName("*");}
return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop==result){result=[];}
if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else if(match===true){continue;}}
if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else if(pass){result.push(item);anyFound=true;}}}}
if(found!==undefined){if(!inplace){curLoop=result;}
expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}
break;}}}
if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr;}else{break;}}
old=expr;}
return curLoop;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");}},relative:{"+":function(checkSet,part,isXML){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag&&!isXML){part=part.toUpperCase();}
for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}
checkSet[i]=isPartStrNotTag||elem&&elem.nodeName===part?elem||false:elem===part;}}
if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part,isXML){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}
if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}
checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}
return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}
for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace)
result.push(elem);}else if(inplace){curLoop[i]=false;}}}
return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}
return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase();},CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}
match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}
if(match[2]==="~="){match[4]=" "+match[4]+" ";}
return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(match[3].match(chunker).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}
return false;}}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}
return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return!!elem.firstChild;},empty:function(elem){return!elem.firstChild;},has:function(elem,i,match){return!!Sizzle(match[3],elem).length;},header:function(elem){return /h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON";},input:function(elem){return /input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0==i;},eq:function(elem,i,match){return match[3]-0==i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0;}else if(name==="not"){var not=match[3];for(i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}
return true;}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case'only':case'first':while((node=node.previousSibling)){if(node.nodeType===1)return false;}
if(type=='first')return true;node=elem;case'last':while((node=node.nextSibling)){if(node.nodeType===1)return false;}
return true;case'nth':var first=match[2],last=match[3];if(first==1&&last==0){return true;}
var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}
parent.sizcache=doneName;}
var diff=elem.nodeIndex-last;if(first==0){return diff==0;}else{return(diff%first==0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);}
var makeArray=function(array,results){array=Array.prototype.slice.call(array);if(results){results.push.apply(results,array);return results;}
return array;};try{Array.prototype.slice.call(document.documentElement.childNodes);}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}
return ret;};}
var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}
return ret;};}else if("sourceIndex"in document.documentElement){sortOrder=function(a,b){var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}
return ret;};}else if(document.createRange){sortOrder=function(a,b){var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.selectNode(a);aRange.collapse(true);bRange.selectNode(b);bRange.collapse(true);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}
return ret;};}
(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}
root.removeChild(form);root=form=null;})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}
results=tmp;}
return results;};}
div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}
div=null;})();if(document.querySelectorAll)(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;}
Sizzle=function(query,context,extra,seed){context=context||document;var QSA=function(){return(document._querySelectorAll)?"_querySelectorAll":"querySelectorAll";}();if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context[QSA](query),extra);}catch(e){}}
return oldSizzle(query,context,extra,seed);};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop];}
div=null;})();if(document.getElementsByClassName&&document.documentElement.getElementsByClassName)(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(div.getElementsByClassName("e").length===0)
return;div.lastChild.className="e";if(div.getElementsByClassName("e").length===1)
return;Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};div=null;})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}
if(elem.nodeName===cur){match=elem;break;}
elem=elem[dir];}
checkSet[i]=match;}}}
function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}
elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}
if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}
if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}
elem=elem[dir];}
checkSet[i]=match;}}}
var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16;}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&elem.ownerDocument.documentElement.nodeName!=="HTML";};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}
selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);}
return Sizzle.filter(later,tmpSet);};window.Sizzle=Sizzle;})();new Flow.Plugin({name:"Query",version:"1.1.1",bind:true,constructor:function(){var F=Flow,B=F.Browser,X=F.Bind,U=F.Utils;var doc=document,that;return{nodes:{querySelectorAll:function(){return function(query,single){var siz=window.Sizzle(query,this);return single?siz[0]:siz;};}(),querySelector:function(){if(doc.querySelector){return function(query){return X.extend(this._querySelector(query));};}
return function(query){return this.querySelectorAll(query,true);};}()}};}()});new Flow.Fx({name:"Drag",version:"1.1.1",constructor:function(target,options){var that;return{init:function(target,options){that=this;options=options||{};var defaults={space:5,speed:0.1,tween:null};for(var key in defaults){options[key]=options[key]||defaults[key];}
that.options=options;that.node=target;target.setStyle("position","relative");that.target=target.getDocumentPosition();var children=target.getChildNodes();children.forEach(function(child){that.bind(child);});document.addEventListener("mouseup",function(e){that.dispatchEvent("ondragstop");if(that.clone){that.curr.setOpacity(100);that.getPosition(e);var mouse=that.mouse,tg=that.target;if((mouse.x<(tg.x-10))||(mouse.x>(tg.x+(that.node.offsetWidth+50)))||(mouse.y<tg.y-10)||(mouse.y>tg.y+that.node.offsetHeight+50)){that.poof(e);}
that.clone.removeNode(that.clone);that.clone=null;document.removeEventListener("mousemove",that.mousemove,false);}},false);return that;},bind:function(element){element.addEventListener("mousedown",function(e){that.dispatchEvent("ondragstart");that.ghost.call(this,e);e.preventDefault();},false);element.setStyle({cursor:"move",position:"relative"});},setInnerHTML:function(markup,method){var dummy=document.createElement("div");dummy.setInnerHTML(markup);element=dummy.firstChild;that.bind(element);var node=that.node;if(method&&method=="prepend"){node.insertBefore(element,node.firstChild);}else{node.appendChild(element);}},appendChild:function(element){that.bind(element);that.node.appendChild(element);},getPosition:function(e){that.mouse=Flow.Viewport.getMousePosition(e);that.target=that.node.getDocumentPosition();},setPosition:function(clone,e){that.getPosition(e);var mouse=that.mouse,target=that.target;if(clone){var pos=(mouse.y-that.target.y);that.prev=that.prev||pos;var up=((that.prev-pos)>0),previous=that.curr.previousSibling,next=that.curr.nextSibling,current=that.curr;if(previous&&up&&pos<(previous.getPosition().y+previous.offsetHeight)){current.parentNode.insertBefore(current,previous);that.dispatchEvent("onmove");that.dispatchEvent("onmoveup");}
if(next&&!up&&pos>(next.getPosition().y)){current.parentNode.insertAfter(current,next);that.dispatchEvent("onmove");that.dispatchEvent("onmovedown");}
that.prev=pos;that.moveClone(clone,e);that.tinyGhost(e);}},moveClone:function(clone,e){that.getPosition(e);var mouse=that.mouse,target=that.target;var pos={x:((mouse.x-target.x)-(clone.offsetWidth/2)),y:((mouse.y-target.y)-(clone.offsetHeight/2))};clone.setStyle({top:pos.y+"px",left:pos.x+"px"});},tinyGhost:function(e){that.getPosition(e);var mouse=that.mouse,target=that.target;var tiny=document.getById("FlowDragTinyPoof");if((mouse.x<(target.x-10))||(mouse.x>(target.x+(that.node.offsetWidth+50)))||(mouse.y<target.y-10)||(mouse.y>target.y+that.node.offsetHeight+50)){if(!tiny){tiny=that.node.setInnerHTML('<div id="FlowDragTinyPoof"></div>',"append");that.tiny=tiny;}
if(tiny.setStyle){tiny.setStyle({position:"absolute",display:"block",'z-index':9999,top:((mouse.y-target.y)+5)+"px",left:((mouse.x-target.x)+5)+"px"});}
that.curr.setStyle("display","none");}else if(tiny){if(tiny.setStyle){tiny.setStyle("display","none");}
that.curr.setStyle("display","block");}},cloneStyle:function(clone){var style=this.getComputedStyle();for(var key in style){try{clone.setStyle(key,style[key]);}catch(e){}}},mousemove:function(e){that.setPosition(that.clone,e);e.preventDefault();},ghost:function(e){var current=this.getPosition();this.setOpacity(50);var clone=this.cloneNode(true);clone.addClass("clone");that.cloneStyle.call(this,that.clone);clone.setStyle({position:"absolute",left:0,top:current.y+"px",opacity:50,width:this.getComputedStyle("width"),height:this.getComputedStyle("height")});this.parentNode.appendChild(clone);that.curr=this;that.clone=clone;that.current=current;document.addEventListener("mousemove",that.mousemove,false);},poof:function(e){that.getPosition(e);var mouse=that.mouse,target=that.target;var poof=that.node.setInnerHTML('<div id="FlowDragPoof"></div>',"append");poof.setStyle({position:"absolute",display:"none",'z-index':9999,top:((mouse.y-target.y)-(poof.offsetHeight/2))+"px",left:((mouse.x-target.x)-(poof.offsetWidth/2))+"px",opacity:50});if(that.tiny){that.tiny.parentNode.removeChild(that.tiny);that.tiny=null;}
that.curr.removeNode();that.dispatchEvent("ondelete");var animate=function(){if(that.poof.timeout){clearTimeout(that.poof.timeout);}
var pos=poof.style.backgroundPosition.split(" ");if(!pos[1]){pos=["0","0"];}
for(var i=0,j=pos.length;i<j;i++){pos[i]=parseFloat(pos[i]);}
pos[1]=(pos[1]-128);poof.setStyle("background-position",pos[0]+" "+pos[1]+"px");if(pos[1]>-640){that.poof.timeout=setTimeout(animate,75);}else{poof.removeNode();clearTimeout(that.poof.timeout);}};poof.setStyle("display","block");that.poof.timeout=setTimeout(animate,75);},addEventListener:function(type,handler,useCapture){that=this;that.events=that.events||{};type="on"+type;if(!that.events[type]){that.events[type]=[];}
that.events[type].push(handler);return that;},dispatchEvent:function(type){if(that.events&&that.events[type]){for(var i=0,j=that.events[type].length;i<j;i++){that.events[type][i].call(that.node);}}}}.init(target,options);}});tmp={};tmp.HASH_VARS_SEPARATOR=';'
tmp.getHashVars=function()
{var url=window.location.href;if(url.match('#')){var hash=url.split('#')[1];var hashes=hash.split(tmp.HASH_VARS_SEPARATOR);var data={};for(var i in hashes){if(typeof(hashes[i])=="string"&&hashes[i]!=""){var tuple=hashes[i].split("=");data[tuple[0]]=unescape(tuple[1]);}}
return data;}
return{};}
tmp.setHashVars=function(vars)
{var url=window.location.href;if(url.match('#')){url=url.split('#')[0];}
var hash="";for(var key in vars){if(vars[key]){hash+=key+"="+escape(vars[key])+tmp.HASH_VARS_SEPARATOR;}}
window.location=url+"#"+hash;}
tmp.getHashVar=function(key)
{ar=tmp.getHashVars();return ar[key];}
tmp.setHashVar=function(key,value)
{var data=tmp.getHashVars();data[key]=value;tmp.setHashVars(data);}
function beginUnicastVideoWall()
{_oldGetElementsByTagName=document.getElementsByTagName;document.getElementsByTagName=document._getElementsByTagName;if(Flow.Browser.WK){_oldAddEventListener=document.addEventListener;document.addEventListener=document.__addEventListener;}
if(document.location.toString().indexOf("unicastDebug=true")>0)
alert("BEGIN - Unicast Debug");}
function endUnicastVideoWall()
{document.getElementsByTagName=_oldGetElementsByTagName;if(Flow.Browser.WK){document.addEventListener=_oldAddEventListener;}
if(document.location.toString().indexOf("unicastDebug=true")>0)
alert("END - Unicast Debug");}
/* 2012-02-05 05:09:05 - cached for 0 seconds */
