if(typeof YAHOO=="undefined"){var YAHOO={};}
YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}}
return o;};YAHOO.log=function(msg,cat,src){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(msg,cat,src);}else{return false;}};YAHOO.init=function(){this.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;if(l){for(i=0;i<ls.length;i=i+1){if(ls[i]==l){unique=false;break;}}
if(unique){ls.push(l);}}}};YAHOO.register=function(name,mainClass,data){var mods=YAHOO.env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};}
var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i<ls.length;i=i+1){ls[i](m);}
if(mainClass){mainClass.VERSION=v;mainClass.BUILD=b;}else{YAHOO.log("mainClass is undefined for module "+name,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[],getVersion:function(name){return YAHOO.env.modules[name]||null;}};YAHOO.lang={isArray:function(obj){if(obj&&obj.constructor&&obj.constructor.toString().indexOf('Array')>-1){return true;}else{return YAHOO.lang.isObject(obj)&&obj.constructor==Array;}},isBoolean:function(obj){return typeof obj=='boolean';},isFunction:function(obj){return typeof obj=='function';},isNull:function(obj){return obj===null;},isNumber:function(obj){return typeof obj=='number'&&isFinite(obj);},isObject:function(obj){return obj&&(typeof obj=='object'||YAHOO.lang.isFunction(obj));},isString:function(obj){return typeof obj=='string';},isUndefined:function(obj){return typeof obj=='undefined';},hasOwnProperty:function(obj,prop){if(Object.prototype.hasOwnProperty){return obj.hasOwnProperty(prop);}
return!YAHOO.lang.isUndefined(obj[prop])&&obj.constructor.prototype[prop]!==obj[prop];},extend:function(subc,superc,overrides){if(!superc||!subc){throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");}
var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();subc.prototype.constructor=subc;subc.superclass=superc.prototype;if(superc.prototype.constructor==Object.prototype.constructor){superc.prototype.constructor=superc;}
if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i];}}},augment:function(r,s){if(!s||!r){throw new Error("YAHOO.lang.augment failed, please check that "+"all dependencies are included.");}
var rp=r.prototype,sp=s.prototype,a=arguments,i,p;if(a[2]){for(i=2;i<a.length;i=i+1){rp[a[i]]=sp[a[i]];}}else{for(p in sp){if(!rp[p]){rp[p]=sp[p];}}}}};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.2",build:"204"});(function(){var Y=YAHOO.util,getStyle,setStyle,id_counter=0,propertyCache={};var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1),isSafari=(ua.indexOf('safari')>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf('gecko')>-1),isIE=(!isOpera&&ua.indexOf('msie')>-1);var patterns={HYPHEN:/(-[a-z])/i,ROOT_TAG:/body|html/i};var toCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;}
if(propertyCache[property]){return propertyCache[property];}
var converted=property;while(patterns.HYPHEN.exec(converted)){converted=converted.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}
propertyCache[property]=converted;return converted;};if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(el,property){var value=null;if(property=='float'){property='cssFloat';}
var computed=document.defaultView.getComputedStyle(el,'');if(computed){value=computed[toCamel(property)];}
return el.style[property]||value;};}else if(document.documentElement.currentStyle&&isIE){getStyle=function(el,property){switch(toCamel(property)){case'opacity':var val=100;try{val=el.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=el.filters('alpha').opacity;}catch(e){}}
return val/100;break;case'float':property='styleFloat';default:var value=el.currentStyle?el.currentStyle[property]:null;return(el.style[property]||value);}};}else{getStyle=function(el,property){return el.style[property];};}
if(isIE){setStyle=function(el,property,val){switch(property){case'opacity':if(YAHOO.lang.isString(el.style.filter)){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle||!el.currentStyle.hasLayout){el.style.zoom=1;}}
break;case'float':property='styleFloat';default:el.style[property]=val;}};}else{setStyle=function(el,property,val){if(property=='float'){property='cssFloat';}
el.style[property]=val;};}
YAHOO.util.Dom={get:function(el){if(YAHOO.lang.isString(el)){return document.getElementById(el);}
if(YAHOO.lang.isArray(el)){var c=[];for(var i=0,len=el.length;i<len;++i){c[c.length]=Y.Dom.get(el[i]);}
return c;}
if(el){return el;}
return null;},getStyle:function(el,property){property=toCamel(property);var f=function(element){return getStyle(element,property);};return Y.Dom.batch(el,f,Y.Dom,true);},setStyle:function(el,property,val){property=toCamel(property);var f=function(element){setStyle(element,property,val);};Y.Dom.batch(el,f,Y.Dom,true);},getXY:function(el){var f=function(el){if((el.parentNode===null||el.offsetParent===null||this.getStyle(el,'display')=='none')&&el!=document.body){return false;}
var parentNode=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();var doc=document;if(!this.inDocument(el)&&parent.document!=document){doc=parent.document;if(!this.isAncestor(doc.documentElement,el)){return false;}}
var scrollTop=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop);var scrollLeft=Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);return[box.left+scrollLeft,box.top+scrollTop];}
else{pos=[el.offsetLeft,el.offsetTop];parentNode=el.offsetParent;var hasAbs=this.getStyle(el,'position')=='absolute';if(parentNode!=el){while(parentNode){pos[0]+=parentNode.offsetLeft;pos[1]+=parentNode.offsetTop;if(isSafari&&!hasAbs&&this.getStyle(parentNode,'position')=='absolute'){hasAbs=true;}
parentNode=parentNode.offsetParent;}}
if(isSafari&&hasAbs){pos[0]-=document.body.offsetLeft;pos[1]-=document.body.offsetTop;}}
parentNode=el.parentNode;while(parentNode.tagName&&!patterns.ROOT_TAG.test(parentNode.tagName))
{if(Y.Dom.getStyle(parentNode,'display')!='inline'){pos[0]-=parentNode.scrollLeft;pos[1]-=parentNode.scrollTop;}
parentNode=parentNode.parentNode;}
return pos;};return Y.Dom.batch(el,f,Y.Dom,true);},getX:function(el){var f=function(el){return Y.Dom.getXY(el)[0];};return Y.Dom.batch(el,f,Y.Dom,true);},getY:function(el){var f=function(el){return Y.Dom.getXY(el)[1];};return Y.Dom.batch(el,f,Y.Dom,true);},setXY:function(el,pos,noRetry){var f=function(el){var style_pos=this.getStyle(el,'position');if(style_pos=='static'){this.setStyle(el,'position','relative');style_pos='relative';}
var pageXY=this.getXY(el);if(pageXY===false){return false;}
var delta=[parseInt(this.getStyle(el,'left'),10),parseInt(this.getStyle(el,'top'),10)];if(isNaN(delta[0])){delta[0]=(style_pos=='relative')?0:el.offsetLeft;}
if(isNaN(delta[1])){delta[1]=(style_pos=='relative')?0:el.offsetTop;}
if(pos[0]!==null){if(pos[0].indexOf("px")>-1){pos[0]=pos[0].substring(0,pos[0].indexOf("px")-1);}el.style.left=pos[0]-pageXY[0]+delta[0]+'px';}
if(pos[1]!==null){if(pos[1].indexOf("px")>-1){pos[1]=pos[1].substring(0,pos[1].indexOf("px")-1);}el.style.top=pos[1]-pageXY[1]+delta[1]+'px';}
if(!noRetry){var newXY=this.getXY(el);if((pos[0]!==null&&newXY[0]!=pos[0])||(pos[1]!==null&&newXY[1]!=pos[1])){this.setXY(el,pos,true);}}};Y.Dom.batch(el,f,Y.Dom,true);},setX:function(el,x){Y.Dom.setXY(el,[x,null]);},setY:function(el,y){Y.Dom.setXY(el,[null,y]);},getRegion:function(el){var f=function(el){var region=new Y.Region.getRegion(el);return region;};return Y.Dom.batch(el,f,Y.Dom,true);},getClientWidth:function(){return Y.Dom.getViewportWidth();},getClientHeight:function(){return Y.Dom.getViewportHeight();},getElementsByClassName:function(className,tag,root){var method=function(el){return Y.Dom.hasClass(el,className);};return Y.Dom.getElementsBy(method,tag,root);},hasClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)');var f=function(el){return re.test(el.className);};return Y.Dom.batch(el,f,Y.Dom,true);},addClass:function(el,className){var f=function(el){if(this.hasClass(el,className)){return;}
el.className=[el.className,className].join(' ');};Y.Dom.batch(el,f,Y.Dom,true);},removeClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,className)){return;}
var c=el.className;el.className=c.replace(re,' ');if(this.hasClass(el,className)){this.removeClass(el,className);}};Y.Dom.batch(el,f,Y.Dom,true);},replaceClass:function(el,oldClassName,newClassName){if(oldClassName===newClassName){return false;}
var re=new RegExp('(?:^|\\s+)'+oldClassName+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,oldClassName)){this.addClass(el,newClassName);return;}
el.className=el.className.replace(re,' '+newClassName+' ');if(this.hasClass(el,oldClassName)){this.replaceClass(el,oldClassName,newClassName);}};Y.Dom.batch(el,f,Y.Dom,true);},generateId:function(el,prefix){prefix=prefix||'yui-gen';el=el||{};var f=function(el){if(el){el=Y.Dom.get(el);}else{el={};}
if(!el.id){el.id=prefix+id_counter++;}
return el.id;};return Y.Dom.batch(el,f,Y.Dom,true);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
var f=function(needle){if(haystack.contains&&!isSafari){return haystack.contains(needle);}
else if(haystack.compareDocumentPosition){return!!(haystack.compareDocumentPosition(needle)&16);}
else{var parent=needle.parentNode;while(parent){if(parent==haystack){return true;}
else if(!parent.tagName||parent.tagName.toUpperCase()=='HTML'){return false;}
parent=parent.parentNode;}
return false;}};return Y.Dom.batch(needle,f,Y.Dom,true);},inDocument:function(el){var f=function(el){return this.isAncestor(document.documentElement,el);};return Y.Dom.batch(el,f,Y.Dom,true);},getElementsBy:function(method,tag,root){tag=tag||'*';var nodes=[];if(root){root=Y.Dom.get(root);if(!root){return nodes;}}else{root=document;}
var elements=root.getElementsByTagName(tag);if(!elements.length&&(tag=='*'&&root.all)){elements=root.all;}
for(var i=0,len=elements.length;i<len;++i){if(method(elements[i])){nodes[nodes.length]=elements[i];}}
return nodes;},batch:function(el,method,o,override){var id=el;el=Y.Dom.get(el);var scope=(override)?o:window;if(!el||el.tagName||!el.length){if(!el){return false;}
return method.call(scope,el,o);}
var collection=[];for(var i=0,len=el.length;i<len;++i){if(!el[i]){id=el[i];}
collection[collection.length]=method.call(scope,el[i],o);}
return collection;},getDocumentHeight:function(){var scrollHeight=(document.compatMode!='CSS1Compat')?document.body.scrollHeight:document.documentElement.scrollHeight;var h=Math.max(scrollHeight,Y.Dom.getViewportHeight());return h;},getDocumentWidth:function(){var scrollWidth=(document.compatMode!='CSS1Compat')?document.body.scrollWidth:document.documentElement.scrollWidth;var w=Math.max(scrollWidth,Y.Dom.getViewportWidth());return w;},getViewportHeight:function(){var height=self.innerHeight;var mode=document.compatMode;if((mode||isIE)&&!isOpera){height=(mode=='CSS1Compat')?document.documentElement.clientHeight:document.body.clientHeight;}
return height;},getViewportWidth:function(){var width=self.innerWidth;var mode=document.compatMode;if(mode||isIE){width=(mode=='CSS1Compat')?document.documentElement.clientWidth:document.body.clientWidth;}
return width;}};})();YAHOO.util.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l;};YAHOO.util.Region.prototype.contains=function(region){return(region.left>=this.left&&region.right<=this.right&&region.top>=this.top&&region.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];}
this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.2",build:"204"});YAHOO.util.CustomEvent=function(type,oScope,silent,signature){this.type=type;this.scope=oScope||window;this.silent=silent;this.signature=signature||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}
var onsubscribeType="_YUICEOnSubscribe";if(type!==onsubscribeType){this.subscribeEvent=new YAHOO.util.CustomEvent(onsubscribeType,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,override){if(!fn){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}
if(this.subscribeEvent){this.subscribeEvent.fire(fn,obj,override);}
this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,override));},unsubscribe:function(fn,obj){if(!fn){return this.unsubscribeAll();}
var found=false;for(var i=0,len=this.subscribers.length;i<len;++i){var s=this.subscribers[i];if(s&&s.contains(fn,obj)){this._delete(i);found=true;}}
return found;},fire:function(){var len=this.subscribers.length;if(!len&&this.silent){return true;}
var args=[],ret=true,i;for(i=0;i<arguments.length;++i){args.push(arguments[i]);}
var argslength=args.length;if(!this.silent){}
for(i=0;i<len;++i){var s=this.subscribers[i];if(s){if(!this.silent){}
var scope=s.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var param=null;if(args.length>0){param=args[0];}
ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);}
if(false===ret){if(!this.silent){}
return false;}}}
return true;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(len-1-i);}
return i;},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;}
this.subscribers.splice(index,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(fn,obj,override){this.fn=fn;this.obj=obj||null;this.override=override;};YAHOO.util.Subscriber.prototype.getScope=function(defaultScope){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}
return defaultScope;};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){if(obj){return(this.fn==fn&&this.obj==obj);}else{return(this.fn==fn);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var loadComplete=false;var DOMReady=false;var listeners=[];var unloadListeners=[];var legacyEvents=[];var legacyHandlers=[];var retryCount=0;var onAvailStack=[];var legacyMap=[];var counter=0;var lastError=null;return{POLL_RETRYS:200,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:function(){var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(v&&v[1]){return v[1];}
return null;}(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_interval:null,startInterval:function(){if(!this._interval){var self=this;var callback=function(){self._tryPreloadAttach();};this._interval=setInterval(callback,this.POLL_INTERVAL);}},onAvailable:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:false});retryCount=this.POLL_RETRYS;this.startInterval();},onDOMReady:function(p_fn,p_obj,p_override){this.DOMReadyEvent.subscribe(p_fn,p_obj,p_override);},onContentReady:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:true});retryCount=this.POLL_RETRYS;this.startInterval();},addListener:function(el,sType,fn,obj,override){if(!fn||!fn.call){return false;}
if(this._isValidCollection(el)){var ok=true;for(var i=0,len=el.length;i<len;++i){ok=this.on(el[i],sType,fn,obj,override)&&ok;}
return ok;}else if(typeof el=="string"){var oEl=this.getEl(el);if(oEl){el=oEl;}else{this.onAvailable(el,function(){YAHOO.util.Event.on(el,sType,fn,obj,override);});return true;}}
if(!el){return false;}
if("unload"==sType&&obj!==this){unloadListeners[unloadListeners.length]=[el,sType,fn,obj,override];return true;}
var scope=el;if(override){if(override===true){scope=obj;}else{scope=override;}}
var wrappedFn=function(e){return fn.call(scope,YAHOO.util.Event.getEvent(e),obj);};var li=[el,sType,fn,wrappedFn,scope];var index=listeners.length;listeners[index]=li;if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);if(legacyIndex==-1||el!=legacyEvents[legacyIndex][0]){legacyIndex=legacyEvents.length;legacyMap[el.id+sType]=legacyIndex;legacyEvents[legacyIndex]=[el,sType,el["on"+sType]];legacyHandlers[legacyIndex]=[];el["on"+sType]=function(e){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e),legacyIndex);};}
legacyHandlers[legacyIndex].push(li);}else{try{this._simpleAdd(el,sType,wrappedFn,false);}catch(ex){this.lastError=ex;this.removeListener(el,sType,fn);return false;}}
return true;},fireLegacyEvent:function(e,legacyIndex){var ok=true,le,lh,li,scope,ret;lh=legacyHandlers[legacyIndex];for(var i=0,len=lh.length;i<len;++i){li=lh[i];if(li&&li[this.WFN]){scope=li[this.ADJ_SCOPE];ret=li[this.WFN].call(scope,e);ok=(ok&&ret);}}
le=legacyEvents[legacyIndex];if(le&&le[2]){le[2](e);}
return ok;},getLegacyIndex:function(el,sType){var key=this.generateId(el)+sType;if(typeof legacyMap[key]=="undefined"){return-1;}else{return legacyMap[key];}},useLegacyEvent:function(el,sType){if(this.webkit&&("click"==sType||"dblclick"==sType)){var v=parseInt(this.webkit,10);if(!isNaN(v)&&v<418){return true;}}
return false;},removeListener:function(el,sType,fn){var i,len;if(typeof el=="string"){el=this.getEl(el);}else if(this._isValidCollection(el)){var ok=true;for(i=0,len=el.length;i<len;++i){ok=(this.removeListener(el[i],sType,fn)&&ok);}
return ok;}
if(!fn||!fn.call){return this.purgeElement(el,false,sType);}
if("unload"==sType){for(i=0,len=unloadListeners.length;i<len;i++){var li=unloadListeners[i];if(li&&li[0]==el&&li[1]==sType&&li[2]==fn){unloadListeners.splice(i,1);return true;}}
return false;}
var cacheItem=null;var index=arguments[3];if("undefined"==typeof index){index=this._getCacheIndex(el,sType,fn);}
if(index>=0){cacheItem=listeners[index];}
if(!el||!cacheItem){return false;}
if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);var llist=legacyHandlers[legacyIndex];if(llist){for(i=0,len=llist.length;i<len;++i){li=llist[i];if(li&&li[this.EL]==el&&li[this.TYPE]==sType&&li[this.FN]==fn){llist.splice(i,1);break;}}}}else{try{this._simpleRemove(el,sType,cacheItem[this.WFN],false);}catch(ex){this.lastError=ex;return false;}}
delete listeners[index][this.WFN];delete listeners[index][this.FN];listeners.splice(index,1);return true;},getTarget:function(ev,resolveTextNode){var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(node){if(node&&3==node.nodeType){return node.parentNode;}else{return node;}},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();}}
return x;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();}}
return y;},getXY:function(ev){return[this.getPageX(ev),this.getPageY(ev)];},getRelatedTarget:function(ev){var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else if(ev.type=="mouseover"){t=ev.fromElement;}}
return this.resolveTextNode(t);},getTime:function(ev){if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(ex){this.lastError=ex;return t;}}
return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getEvent:function(e){var ev=e||window.event;if(!ev){var c=this.getEvent.caller;while(c){ev=c.arguments[0];if(ev&&Event==ev.constructor){break;}
c=c.caller;}}
return ev;},getCharCode:function(ev){return ev.charCode||ev.keyCode||0;},_getCacheIndex:function(el,sType,fn){for(var i=0,len=listeners.length;i<len;++i){var li=listeners[i];if(li&&li[this.FN]==fn&&li[this.EL]==el&&li[this.TYPE]==sType){return i;}}
return-1;},generateId:function(el){var id=el.id;if(!id){id="yuievtautoid-"+counter;++counter;el.id=id;}
return id;},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},elCache:{},getEl:function(id){return document.getElementById(id);},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(e){if(!loadComplete){loadComplete=true;var EU=YAHOO.util.Event;EU._ready();if(this.isIE){EU._simpleRemove(window,"load",EU._load);}}},_ready:function(e){if(!DOMReady){DOMReady=true;var EU=YAHOO.util.Event;EU.DOMReadyEvent.fire();EU._simpleRemove(document,"DOMContentLoaded",EU._ready);}},_tryPreloadAttach:function(){if(this.locked){return false;}
if(this.isIE&&!DOMReady){return false;}
this.locked=true;var tryAgain=!loadComplete;if(!tryAgain){tryAgain=(retryCount>0);}
var notAvail=[];var executeItem=function(el,item){var scope=el;if(item.override){if(item.override===true){scope=item.obj;}else{scope=item.override;}}
item.fn.call(scope,item.obj);};var i,len,item,el;for(i=0,len=onAvailStack.length;i<len;++i){item=onAvailStack[i];if(item&&!item.checkReady){el=this.getEl(item.id);if(el){executeItem(el,item);onAvailStack[i]=null;}else{notAvail.push(item);}}}
for(i=0,len=onAvailStack.length;i<len;++i){item=onAvailStack[i];if(item&&item.checkReady){el=this.getEl(item.id);if(el){if(loadComplete||el.nextSibling){executeItem(el,item);onAvailStack[i]=null;}}else{notAvail.push(item);}}}
retryCount=(notAvail.length===0)?0:retryCount-1;if(tryAgain){this.startInterval();}else{clearInterval(this._interval);this._interval=null;}
this.locked=false;return true;},purgeElement:function(el,recurse,sType){var elListeners=this.getListeners(el,sType);if(elListeners){for(var i=0,len=elListeners.length;i<len;++i){var l=elListeners[i];this.removeListener(el,l.type,l.fn);}}
if(recurse&&el&&el.childNodes){for(i=0,len=el.childNodes.length;i<len;++i){this.purgeElement(el.childNodes[i],recurse,sType);}}},getListeners:function(el,sType){var results=[],searchLists;if(!sType){searchLists=[listeners,unloadListeners];}else if(sType=="unload"){searchLists=[unloadListeners];}else{searchLists=[listeners];}
for(var j=0;j<searchLists.length;++j){var searchList=searchLists[j];if(searchList&&searchList.length>0){for(var i=0,len=searchList.length;i<len;++i){var l=searchList[i];if(l&&l[this.EL]===el&&(!sType||sType===l[this.TYPE])){results.push({type:l[this.TYPE],fn:l[this.FN],obj:l[this.OBJ],adjust:l[this.ADJ_SCOPE],index:i});}}}}
return(results.length)?results:null;},_unload:function(e){var EU=YAHOO.util.Event,i,j,l,len,index;for(i=0,len=unloadListeners.length;i<len;++i){l=unloadListeners[i];if(l){var scope=window;if(l[EU.ADJ_SCOPE]){if(l[EU.ADJ_SCOPE]===true){scope=l[EU.OBJ];}else{scope=l[EU.ADJ_SCOPE];}}
l[EU.FN].call(scope,EU.getEvent(e),l[EU.OBJ]);unloadListeners[i]=null;l=null;scope=null;}}
unloadListeners=null;if(listeners&&listeners.length>0){j=listeners.length;while(j){index=j-1;l=listeners[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index);}
j=j-1;}
l=null;EU.clearCache();}
for(i=0,len=legacyEvents.length;i<len;++i){legacyEvents[i][0]=null;legacyEvents[i]=null;}
legacyEvents=null;EU._simpleRemove(window,"unload",EU._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var dd=document.documentElement,db=document.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return[dd.scrollTop,dd.scrollLeft];}else if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(el,sType,fn,capture){el.addEventListener(sType,fn,(capture));};}else if(window.attachEvent){return function(el,sType,fn,capture){el.attachEvent("on"+sType,fn);};}else{return function(){};}}(),_simpleRemove:function(){if(window.removeEventListener){return function(el,sType,fn,capture){el.removeEventListener(sType,fn,(capture));};}else if(window.detachEvent){return function(el,sType,fn){el.detachEvent("on"+sType,fn);};}else{return function(){};}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;if(EU.isIE){document.write('<scr'+'ipt id="_yui_eu_dr" defer="true" src="//:"></script>');var el=document.getElementById("_yui_eu_dr");el.onreadystatechange=function(){if("complete"==this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready();}};el=null;YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);}else if(EU.webkit){EU._drwatch=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._drwatch);EU._drwatch=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}
EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}
YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(p_type,p_fn,p_obj,p_override){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){ce.subscribe(p_fn,p_obj,p_override);}else{this.__yui_subscribers=this.__yui_subscribers||{};var subs=this.__yui_subscribers;if(!subs[p_type]){subs[p_type]=[];}
subs[p_type].push({fn:p_fn,obj:p_obj,override:p_override});}},unsubscribe:function(p_type,p_fn,p_obj){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}else{return false;}},unsubscribeAll:function(p_type){return this.unsubscribe(p_type);},createEvent:function(p_type,p_config){this.__yui_events=this.__yui_events||{};var opts=p_config||{};var events=this.__yui_events;if(events[p_type]){}else{var scope=opts.scope||this;var silent=opts.silent||null;var ce=new YAHOO.util.CustomEvent(p_type,scope,silent,YAHOO.util.CustomEvent.FLAT);events[p_type]=ce;if(opts.onSubscribeCallback){ce.subscribeEvent.subscribe(opts.onSubscribeCallback);}
this.__yui_subscribers=this.__yui_subscribers||{};var qs=this.__yui_subscribers[p_type];if(qs){for(var i=0;i<qs.length;++i){ce.subscribe(qs[i].fn,qs[i].obj,qs[i].override);}}}
return events[p_type];},fireEvent:function(p_type,arg1,arg2,etc){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);}
return ce.fire.apply(ce,args);}else{return null;}},hasEvent:function(type){if(this.__yui_events){if(this.__yui_events[type]){return true;}}
return false;}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){}else if(!keyData){}else if(!handler){}
if(!event){event=YAHOO.util.KeyListener.KEYDOWN;}
var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=='string'){attachTo=document.getElementById(attachTo);}
if(typeof handler=='function'){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);}
function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;}
if(!keyData.alt){keyData.alt=false;}
if(!keyData.ctrl){keyData.ctrl=false;}
if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}}
this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);}
this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);}
this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+
(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.2.2",build:"204"});var maskDiv=null;function BrowserIsIE(){if(document.all)return true;return false;};function showMaskDiv(){if(maskDiv==null||!maskDiv){maskDiv=document.createElement("DIV");if(!BrowserIsIE())
{maskDiv.style.cssText="position:absolute;top:0px;left:0px;z-index:500;background-color:#000;opacity:.3;";}
else
{maskDiv.style.cssText="position:absolute;top:0px;left:0px;z-index:500;background-color:#000;filter:alpha(opacity=30);";}
maskDiv.style.height=document.documentElement.scrollHeight+"px";maskDiv.style.width=document.documentElement.scrollWidth+"px";document.body.appendChild(maskDiv);}}
function closeMaskDiv(){if(maskDiv==null)return;document.body.removeChild(maskDiv);maskDiv=null;}
function showMask(){var excludeItems=null;if(showMask.arguments.length==1)excludeItems=showMask.arguments[0];showMaskDiv();displayElementsByTag("SELECT",false,excludeItems);displayElementsByTag("OBJECT",false,excludeItems);}
function closeMask(){closeMaskDiv();displayElementsByTag("SELECT",true,null);displayElementsByTag("OBJECT",true,null);}
var DNN_COL_DELIMITER=String.fromCharCode(16);var DNN_ROW_DELIMITER=String.fromCharCode(15);var __dnn_m_bPageLoaded=false;window.onload=__dnn_Page_OnLoad;function __dnn_ClientAPIEnabled()
{return typeof(dnn)!='undefined';}
function __dnn_Page_OnLoad()
{if(__dnn_ClientAPIEnabled())
{var sLoadHandlers=dnn.getVar('__dnn_pageload');if(sLoadHandlers!=null)
eval(sLoadHandlers);dnn.dom.attachEvent(window,'onscroll',__dnn_bodyscroll);}
__dnn_m_bPageLoaded=true;}
function __dnn_KeyDown(iKeyCode,sFunc,e)
{if(e==null)
e=window.event;if(e.keyCode==iKeyCode)
{eval(unescape(sFunc));return false;}}
function __dnn_bodyscroll()
{var oF=document.forms[0];if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded)
oF.scrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop;}
function __dnn_setScrollTop(iTop)
{if(__dnn_ClientAPIEnabled())
{if(iTop==null)
iTop=document.forms[0].ScrollTop.value;var sID=dnn.getVar('ScrollToControl');if(sID!=null&&sID.length>0)
{var oCtl=dnn.dom.getById(sID);if(oCtl!=null)
{iTop=dnn.dom.positioning.elementTop(oCtl);dnn.setVar('ScrollToControl','');}}
window.scrollTo(0,iTop);}}
function __dnn_SetInitialFocus(sID)
{var oCtl=dnn.dom.getById(sID);if(oCtl!=null&&__dnn_CanReceiveFocus(oCtl))
oCtl.focus();}
function __dnn_CanReceiveFocus(e)
{if(e.style.display!='none'&&e.tabIndex>-1&&e.disabled==false&&e.style.visible!='hidden')
{var eParent=e.parentElement;while(eParent!=null&&eParent.tagName!='BODY')
{if(eParent.style.display=='none'||eParent.disabled||eParent.style.visible=='hidden')
return false;eParent=eParent.parentElement;}
return true;}
else
return false;}
function __dnn_ContainerMaxMin_OnClick(oLnk,sContentID)
{var oContent=dnn.dom.getById(sContentID);if(oContent!=null)
{var oBtn=oLnk.childNodes[0];var sContainerID=oLnk.getAttribute('containerid');var sCookieID=oLnk.getAttribute('cookieid');var sCurrentFile=oBtn.src.toLowerCase().substr(oBtn.src.lastIndexOf('/'));var sMaxFile;var sMaxIcon;var sMinIcon;if(dnn.getVar('min_icon_'+sContainerID))
sMinIcon=dnn.getVar('min_icon_'+sContainerID);else
sMinIcon=dnn.getVar('min_icon');if(dnn.getVar('max_icon_'+sContainerID))
sMaxIcon=dnn.getVar('max_icon_'+sContainerID);else
sMaxIcon=dnn.getVar('max_icon');sMaxFile=sMaxIcon.toLowerCase().substr(sMaxIcon.lastIndexOf('/'));var iNum=5;if(oLnk.getAttribute('animf')!=null)
iNum=new Number(oLnk.getAttribute('animf'));if(sCurrentFile==sMaxFile)
{oBtn.src=sMinIcon;dnn.dom.expandElement(oContent,iNum);oBtn.title=dnn.getVar('min_text');if(sCookieID!=null)
{if(dnn.getVar('__dnn_'+sContainerID+':defminimized')=='true')
dnn.dom.setCookie(sCookieID,'true',365);else
dnn.dom.deleteCookie(sCookieID);}
else
dnn.setVar('__dnn_'+sContainerID+'_Visible','true');}
else
{oBtn.src=sMaxIcon;dnn.dom.collapseElement(oContent,iNum);oBtn.title=dnn.getVar('max_text');if(sCookieID!=null)
{if(dnn.getVar('__dnn_'+sContainerID+':defminimized')=='true')
dnn.dom.deleteCookie(sCookieID);else
dnn.dom.setCookie(sCookieID,'false',365);}
else
dnn.setVar('__dnn_'+sContainerID+'_Visible','false');}
return true;}
return false;}
function __dnn_Help_OnClick(sHelpID)
{var oHelp=dnn.dom.getById(sHelpID);if(oHelp!=null)
{if(oHelp.style.display=='none')
oHelp.style.display='';else
oHelp.style.display='none';return true;}
return false;}
function __dnn_SectionMaxMin(oBtn,sContentID)
{var oContent=dnn.dom.getById(sContentID);if(oContent!=null)
{var sMaxIcon=oBtn.getAttribute('max_icon');var sMinIcon=oBtn.getAttribute('min_icon');var bCallback=oBtn.getAttribute('userctr')!=null;var sVal;if(oContent.style.display=='none')
{oBtn.src=sMinIcon;oContent.style.display='';if(bCallback)
sVal='True';else
dnn.setVar(oBtn.id+':exp',1);}
else
{oBtn.src=sMaxIcon;oContent.style.display='none';if(bCallback)
sVal='False';else
dnn.setVar(oBtn.id+':exp',0);}
if(bCallback)
dnncore.setUserProp(oBtn.getAttribute('userctr'),oBtn.getAttribute('userkey'),sVal,null);return true;}
return false;}
function __dnn_enableDragDrop()
{var aryConts=dnn.getVar('__dnn_dragDrop').split(";");var aryTitles;for(var i=0;i<aryConts.length;i++)
{aryTitles=aryConts[i].split(" ");if(aryTitles[0].length>0)
{var oCtr=dnn.dom.getById(aryTitles[0]);var oTitle=dnn.dom.getById(aryTitles[1]);if(oCtr!=null&&oTitle!=null)
{oCtr.setAttribute('moduleid',aryTitles[2]);dnn.dom.positioning.enableDragAndDrop(oCtr,oTitle,'__dnn_dragComplete()','__dnn_dragOver()');}}}}
var __dnn_oPrevSelPane;var __dnn_oPrevSelModule;var __dnn_dragEventCount=0;function __dnn_dragOver()
{__dnn_dragEventCount++;if(__dnn_dragEventCount%75!=0)
return;var oCont=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var oPane=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);if(__dnn_oPrevSelPane!=null)
__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder;if(oPane!=null)
{__dnn_oPrevSelPane=oPane;oPane.pane.style.border='4px double '+DNN_HIGHLIGHT_COLOR;var iIndex=__dnn_getPaneControlIndex(oCont,oPane);var oPrevCtl;var oNextCtl;for(var i=0;i<oPane.controls.length;i++)
{if(iIndex>i&&oPane.controls[i].id!=oCont.id)
oPrevCtl=oPane.controls[i];if(iIndex<=i&&oPane.controls[i].id!=oCont.id)
{oNextCtl=oPane.controls[i];break;}}
if(__dnn_oPrevSelModule!=null)
dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder;if(oNextCtl!=null)
{__dnn_oPrevSelModule=oNextCtl;dnn.dom.getNonTextNode(oNextCtl.control).style.borderTop='5px groove '+DNN_HIGHLIGHT_COLOR;}
else if(oPrevCtl!=null)
{__dnn_oPrevSelModule=oPrevCtl;dnn.dom.getNonTextNode(oPrevCtl.control).style.borderBottom='5px groove '+DNN_HIGHLIGHT_COLOR;}}}
function __dnn_dragComplete()
{var oCtl=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var sModuleID=oCtl.getAttribute('moduleid');if(__dnn_oPrevSelPane!=null)
__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder;if(__dnn_oPrevSelModule!=null)
dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder;var oPane=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);var iIndex;if(oPane==null)
{var oPanes=__dnn_Panes();for(var i=0;i<oPanes.length;i++)
{if(oPanes[i].id==oCtl.parentNode.id)
oPane=oPanes[i];}}
if(oPane!=null)
{iIndex=__dnn_getPaneControlIndex(oCtl,oPane);__dnn_MoveToPane(oPane,oCtl,iIndex);dnn.callPostBack('MoveToPane','moduleid='+sModuleID,'pane='+oPane.paneName,'order='+iIndex*2);}}
function __dnn_MoveToPane(oPane,oCtl,iIndex)
{if(oPane!=null)
{var aryCtls=new Array();for(var i=iIndex;i<oPane.controls.length;i++)
{if(oPane.controls[i].control.id!=oCtl.id)
aryCtls[aryCtls.length]=oPane.controls[i].control;dnn.dom.removeChild(oPane.controls[i].control);}
dnn.dom.appendChild(oPane.pane,oCtl);oCtl.style.top=0;oCtl.style.left=0;oCtl.style.position='relative';for(var i=0;i<aryCtls.length;i++)
{dnn.dom.appendChild(oPane.pane,aryCtls[i]);}
__dnn_RefreshPanes();}
else
{oCtl.style.top=0;oCtl.style.left=0;oCtl.style.position='relative';}}
function __dnn_RefreshPanes()
{var aryPanes=dnn.getVar('__dnn_Panes').split(';');var aryPaneNames=dnn.getVar('__dnn_PaneNames').split(';');__dnn_m_aryPanes=new Array();for(var i=0;i<aryPanes.length;i++)
{if(aryPanes[i].length>0)
__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(aryPanes[i]),aryPaneNames[i]);}}
var __dnn_m_aryPanes;var __dnn_m_aryModules;function __dnn_Panes()
{if(__dnn_m_aryPanes==null)
{__dnn_m_aryPanes=new Array();__dnn_RefreshPanes();}
return __dnn_m_aryPanes;}
function __dnn_Modules(sModuleID)
{if(__dnn_m_aryModules==null)
__dnn_RefreshPanes();return __dnn_m_aryModules[sModuleID];}
function __dnn_getMostSelectedPane(oContent)
{var oCDims=new dnn.dom.positioning.dims(oContent);var iTopScore=0;var iScore;var oTopPane;for(var i=0;i<__dnn_Panes().length;i++)
{var oPane=__dnn_Panes()[i];var oPDims=new dnn.dom.positioning.dims(oPane.pane);iScore=dnn.dom.positioning.elementOverlapScore(oPDims,oCDims);if(iScore>iTopScore)
{iTopScore=iScore;oTopPane=oPane;}}
return oTopPane;}
function __dnn_getPaneControlIndex(oContent,oPane)
{if(oPane==null)
return;var oCDims=new dnn.dom.positioning.dims(oContent);var oCtl;if(oPane.controls.length==0)
return 0;for(var i=0;i<oPane.controls.length;i++)
{oCtl=oPane.controls[i];var oIDims=new dnn.dom.positioning.dims(oCtl.control);if(oCDims.t<oIDims.t)
return oCtl.index;}
if(oCtl!=null)
return oCtl.index+1;else
return 0;}
function __dnn_Pane(ctl,sPaneName)
{this.pane=ctl;this.id=ctl.id;this.controls=new Array();this.origBorder=ctl.style.border;this.paneName=sPaneName;var iIndex=0;var strModuleOrder='';for(var i=0;i<ctl.childNodes.length;i++)
{var oNode=ctl.childNodes[i];if(dnn.dom.isNonTextNode(oNode))
{if(__dnn_m_aryModules==null)
__dnn_m_aryModules=new Array();var sModuleID=oNode.getAttribute('moduleid');if(sModuleID!=null&&sModuleID.length>0)
{strModuleOrder+=sModuleID+'~';this.controls[this.controls.length]=new __dnn_PaneControl(oNode,iIndex);__dnn_m_aryModules[sModuleID]=oNode.id;iIndex+=1;}}}
this.moduleOrder=strModuleOrder;}
function __dnn_PaneControl(ctl,iIndex)
{this.control=ctl;this.id=ctl.id;this.index=iIndex;this.origBorder=ctl.style.border;}
function __dnncore()
{this.GetUserVal=0;this.SetUserVal=1;}
__dnncore.prototype={getUserProp:function(sNameCtr,sKey,pFunc){this._doUserCallBack(dnncore.GetUserVal,sNameCtr,sKey,null,new dnncore.UserPropArgs(sNameCtr,sKey,pFunc));},setUserProp:function(sNameCtr,sKey,sVal,pFunc){this._doUserCallBack(dnncore.SetUserVal,sNameCtr,sKey,sVal,new dnncore.UserPropArgs(sNameCtr,sKey,pFunc));},_doUserCallBack:function(iType,sNameCtr,sKey,sVal,pFunc){if(dnn&&dnn.xmlhttp)
{var sPack=iType+COL_DELIMITER+sNameCtr+COL_DELIMITER+sKey+COL_DELIMITER+sVal;dnn.xmlhttp.doCallBack('__Page',sPack,dnncore._callBackSuccess,pFunc,dnncore._callBackFail,null,true,null,0);}
else
alert('Client Personalization not enabled');},_callBackSuccess:function(result,ctx,req){if(ctx.pFunc)
ctx.pFunc(ctx.namingCtr,ctx.key,result);},_callBackFail:function(result,ctx){window.status=result;}}
__dnncore.prototype.UserPropArgs=function(sNameCtr,sKey,pFunc)
{this.namingCtr=sNameCtr;this.key=sKey;this.pFunc=pFunc;}
var dnncore=new __dnncore();String.prototype.startsWith=function(s){return s!=null&&s.length<=this.length&&this.substring(0,s.length)==s;};String.prototype.trim=function(){return this.replace(/(\s*$)|(^\s*)/g,'');};function $(id){return document.getElementById(id);};function $wait(id){$(id).style.cursor='wait';};function $disabled(id){$(id).disabled=true;};function $enabled(id){$(id).disabled=false;};function $h(o){o.style.display='none'};function $s(o){o.style.display='block';};function _h(o){o.style.visibility='hidden';};function _s(o){o.style.visibility='visible';};function $H(id){var o=$(id);if(o!=null)$h(o);};function $S(id){var o=$(id);if(o!=null)$s(o);};function $F(id){var o=$(id);if(o==null)return null;return o.value.trim();};function $C(id){var o=$(id);if(o!=null)o.value='';};function getposOffset(what){var parentEl=what.offsetParent;var x_offset=what.offsetLeft;var y_offset=what.offsetTop;while(parentEl!=null){x_offset+=parentEl.offsetLeft;y_offset+=parentEl.offsetTop;parentEl=parentEl.offsetParent;}return[x_offset,y_offset];};var Try={these:function(){var return_value=null;for(var i=0;i<arguments.length;i++){try{return_value=arguments[i]();break;}catch(e){}}return return_value;}};Number.prototype.NaN0=function(){return isNaN(this)?0:this;}
var iMouseDown=false;var dragObject=null;var curTarget=null;var _dragendCallback=null;function makeDraggable(item,dragendCallback){if(!item)return;if(makeDraggable.arguments.length==2)_dragendCallback=dragendCallback;document.onmousemove=mouseMove;document.onmousedown=mouseDown;document.onmouseup=mouseUp;item.onmousedown=function(ev){dragObject=this;mouseOffset=getMouseOffset(this,ev);return false;}}
function getMouseOffset(target,ev){ev=ev||window.event;var docPos=getPosition(target);var mousePos=mouseCoords(ev);return{x:mousePos.x-docPos.x,y:mousePos.y-docPos.y};}
function getPosition(e){var left=0;var top=0;while(e.offsetParent){left+=e.offsetLeft+(e.currentStyle?(parseInt(e.currentStyle.borderLeftWidth)).NaN0():0);top+=e.offsetTop+(e.currentStyle?(parseInt(e.currentStyle.borderTopWidth)).NaN0():0);e=e.offsetParent;}
left+=e.offsetLeft+(e.currentStyle?(parseInt(e.currentStyle.borderLeftWidth)).NaN0():0);top+=e.offsetTop+(e.currentStyle?(parseInt(e.currentStyle.borderTopWidth)).NaN0():0);return{x:left,y:top};}
function mouseCoords(ev){if(ev.pageX||ev.pageY){return{x:ev.pageX,y:ev.pageY};}
return{x:ev.clientX+document.body.scrollLeft-document.body.clientLeft,y:ev.clientY+document.body.scrollTop-document.body.clientTop};}
function mouseDown(ev){ev=ev||window.event;var target=ev.target||ev.srcElement;iMouseDown=true;}
function mouseUp(ev){dragObject=null;document.onmousemove=mouseMove;if(_dragendCallback!=null)eval(_dragendCallback);iMouseDown=false;}
function mouseMove(ev){if(!iMouseDown)return;ev=ev||window.event;var target=ev.target||ev.srcElement;var mousePos=mouseCoords(ev);if(dragObject){dragObject.style.position='absolute';dragObject.style.top=mousePos.y-mouseOffset.y+"px";dragObject.style.left=mousePos.x-mouseOffset.x+"px";}
lMouseState=iMouseDown;if(curTarget||dragObject)return false;}
var Browser=new Object();Browser.isMozilla=(typeof document.implementation!='undefined')&&(typeof document.implementation.createDocument!='undefined')&&(typeof HTMLDocument!='undefined');Browser.isIE=window.ActiveXObject?true:false;Browser.isGecko=navigator.userAgent.indexOf("Gecko")!=-1;Browser.isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);if(Browser.isMozilla&&!Browser.isOpera){HTMLElement.prototype.removeNode=function(){this.parentNode.removeChild(this);}}
function ChangeItemStatus(hiddenId,subtitle,value)
{var button=subtitle;checkRadio(button,value);var e=arguments[0]||window.event;var hidden=getObject(hiddenId);hidden.value=getCheckboxValue(button);}
function checkRadio(group,value){var i=0;var radios=document.getElementsByName(group);if(radios.length==null){radios.checked=true;return;}
for(i=0;i<radios.length;i++){radios[i].checked=false;if(radios[i].value==value){if(radios[i].type.toLowerCase()=="radio")
{radios[i].checked=true;return;}}}}
function getCheckboxValue(group){var i=0;var temp="";var radios=document.forms[0][group];if(radios.length==null)return radios.value;for(i=0;i<radios.length;i++){if(radios[i].checked){temp+=","+radios[i].value;}}
if(temp.lenght<1)return"";return temp.substring(1,temp.length);}
function EvaluateRadioItem(clientId,value,checked)
{var groups=document.getElementById(clientId).getElementsByTagName("INPUT");var i=0;for(i=0;i<groups.length;i++){if(groups[i].value==value)groups[i].checked=true;}
return;}
function DisplayDiv(objDiv)
{if(document.all[objDiv].style.display=="none")
document.all[objDiv].style.display="block";else
document.all[objDiv].style.display="none";}
function HiddenDiv(objDiv)
{document.all[objDiv].style.display="none";}
function SaveData(objTemplateName,objNewContent)
{var txtTemplateName=document.all[objTemplateName].value;var txtNewContent=document.all[objNewContent].value;var path1=document.location.href+"?action=newtemplate&filename="+txtTemplateName+"&content="+txtNewContent;xmlParserSec=CreateXmlhttp();getFromXml(xmlParserSec,SaveToResponseClient,path1);}
function UpdateData(fileName,txtTemplateID)
{var txtTemplateContent=document.all[txtTemplateID].value;var path1=document.location.href+"?action=updatetemplate&filename="+fileName+"&content="+txtTemplateContent;xmlParserSec=CreateXmlhttp();getFromXml(xmlParserSec,UpdateToResponseClient,path1);}
function SaveToResponseClient()
{if(xmlParserSec.readystate==4)
{if(xmlParserSec.status==200)
{document.location.reload();}}}
function UpdateToResponseClient()
{if(xmlParserSec.readystate==4)
{if(xmlParserSec.status==200)
{document.location.reload();}}}
function UploadTemplateImage(action,objFileControl,newFileName)
{var strOldFileName=document.all[objFileControl].value;var path1=document.location.href+"?templateimageaction="+action+"&uploadfilename="+escape(strOldFileName)+"&newfilename="+escape(newFileName);xmlParserSec=CreateXmlhttp();getFromXml(xmlParserSec,UploadToResponseClient,path1);}
function UploadToResponseClient()
{}
function changeSkins(subTitle,index,imagepath)
{document.all["radio_"+subTitle+index].checked=true;document.all["hidSkinsValue"].value=imagepath;}
function ShowMore(objChk,objText)
{chk=document.all[objChk];txt=document.all[objText];if(chk==null||txt==null)
{return;}
if(chk.checked)
{txt.style.display="block";}
else
{txt.style.display="none";}}
function setGroup(id,divid,titlerow)
{div=getObject(divid);if(div==null)
{return;}
if(div.length)div=div[0];var lists=div.childNodes;for(i=1;i<lists.length;i++)
{var temp=lists[i];if(temp!=null&&temp.tagName!=null&&temp.tagName.toLowerCase()=="div")
{if(temp.getAttribute("Category")==id)
{temp.style.display="block";}
else
{temp.style.display="none";}}}
var row;if(setGroup.arguments.length==2){var e=arguments[0]||window.event;var temp=$(e);row=temp.parentNode;}
else
row=getObject(titlerow);for(i=0;i<row.cells.length;i++)
{var temp=row.cells[i];if(temp.getAttribute("item")==id)
temp.style.backgroundColor="#0066CC";else
temp.style.backgroundColor="#CCCCCC";}}
function changeObjStatusByCheckBox(chk,ctrID)
{var control=document.getElementById(ctrID);if(!control)
return;control.readOnly=!chk.checked;control.className="control_disabled_"+(!chk.checked);}
function ShowHiddenCategory(num)
{var frameid="iframe_divMenu"+num;var iframe=document.frames[frameid];var div=iframe.document.getElementById("divMenu_"+num);if(iframe.document.body!=null)
iframe.document.body.style.margin="0px";if(!div){var content='<div id="divMenu_'+num+'" style="height:300px;background-color:White;padding:0px;border:1px solid #7DC2DF;list-style:none;margin-left:0px;font-size:12px;color:black;">[CONTENT]</div>';var temp=eval("Content"+num);if(temp==null||temp=="")
temp="<p style=width:100%;height:300>No Category...</p>";content=content.replace("[CONTENT]",temp);iframe.document.write(content);}
var objframe=window.document.getElementById(frameid);objframe.style.height=250;objframe.style.width=200;objframe.style.overflow="auto";objframe.style.position="absolute";objframe.scrolling="auto";if(objframe.style.display!="block")
objframe.style.display="block";else
objframe.style.display="none";}
function getImageDiv(editor){var oEditor=FCKeditorAPI.GetInstance(editor.id);var strContent=oEditor.GetXHTML(true);return getPart(strContent,"<div class=MutiImage_","</div>")}
function getGroupId(editor){var div=getImageDiv(editor);if(div==null)return-1;var group=getPart(div,"GroupID=",">");if(group==null)return-1;var arr=group.split("=");return arr[1].replace(">","").replace("\"","").replace("\"","");}
function showInsertGroupImage(my123)
{showModalDialog("/Providers/HtmlEditorProviders/CEHtmlEditorProvider/CuteSoft_Client/CuteEditor/InsertImageLabel.aspx?GroupID="+getGroupId(CuteEditor_GetEditor(my123))+"&_rand="+new Date().getTime(),CuteEditor_GetEditor(my123),"dialogWidth:800px;dialogHeight:500px");}
function isNumber(oNum)
{if(!oNum)return false;var strP=/^\d+(\.\d+)?$/;if(!strP.test(oNum))return false;try{if(parseFloat(oNum)!=oNum)
return false;}
catch(ex)
{return false;}
return true;}
function isInteger(oNum)
{if(!oNum)return false;var strP=/^\d+$/;if(!strP.test(oNum))return false;try{if(parseInt(oNum)!=oNum)
return false;}
catch(ex)
{return false;}
return true;}
function getObject(elementId)
{if(document.getElementById)
{return document.getElementById(elementId);}
else if(document.all)
{return document.all[elementId];}
else if(document.layers)
{return document.layers[elementId];}}
function addToCart(entityID,type)
{var portalID=__portalId;var sUrl="/Store/CartHandler.ashx";var destinationUrl="http://"+__portalAlias;var addToCartSuccess=function(o){if(o.responseText!==undefined){var strContent=o.responseText;if(strContent.length>0)
{var indexTabID=strContent.indexOf("|");var tabid=strContent.substring(indexTabID+1,strContent.length);switch(tabid)
{case"-1":alert(__ParameterError_CannotNull);break;case"-2":alert(__ParameterError_ParameterIsInvalid);break;default:var indexTabID=strContent.indexOf("|");var tabid=strContent.substring(indexTabID+1,strContent.length);var strMiniCartUrl="/tabid/"+tabid+"/CartType/"+type;strMiniCartUrl+="/default.aspx";var newWindow=window.open(destinationUrl+strMiniCartUrl,type);newWindow.focus();break;}}}}
var addToCartFailure=function(o){if(o.responseText!==undefined){}}
var addToCartCallback={success:addToCartSuccess,failure:addToCartFailure};YAHOO.util.Connect.asyncRequest("POST",sUrl,addToCartCallback,"portalID="+portalID+"&entityID="+entityID+"&Sender="+type);}
function createDelegate(oThis,pFunc)
{return function(){pFunc.apply(oThis,arguments);};}
function jsTrim(s){return s.replace(/(^\s+)|(\s+$)/g,"");}
var isIE=navigator.appVersion.indexOf("MSIE")!=-1;function getscrollHeight(){if(document.body.scrollHeight>document.documentElement.clientHeight)
{return document.body.scrollHeight}
else{return document.documentElement.clientHeight}};function displayElementsByTag(tagName,isShow,excludeItems){var i=0;var objects=document.getElementsByTagName(tagName);for(i=0;i<objects.length;i++){if(!isShow){if(excludeItems!=null){if(objects[i].id!=null){if(indexOfArray(objects[i].id,excludeItems)>=0){continue;}}}
objects[i].style.display="none";}
else objects[i].style.display="inline";}}
function indexOfArray(value,array){if(array==null||value==null)return-1;var matchCase=false;if(indexOfArray.arguments.length=3)matchCase=indexOfArray.arguments[2];var i=0;for(i=0;i<array.length;i++){if(matchCase){if(array[i]==value)return i;}
else{if(array[i].toLowerCase()==value.toLowerCase())return i;}}
return-1;}
function IsInteger(strNum)
{var integer;try
{integer=parseInt(strNum);}
catch(e)
{}
if(isNaN(integer))
return false;else if(integer.toString().length==strNum.length)
return true;else
return false;}
function IsNumeric(strNum)
{var f;try
{f=parseFloat(strNum);}
catch(e)
{}
if(isNaN(f))
return false;else if(f.toString().length==strNum.length)
return true;else
return false;}
function urlEncode(str)
{if(str==null||str=="")
return"";var newstr="";function toCase(str){return str.toString(16).toUpperCase();}
for(var i=0,icode,len=str.length;i<len;i++){icode=str.charCodeAt(i);if(icode<0x10)
newstr+="%0"+icode.toString(16).toUpperCase();else if(icode<0x80){if(icode==0x20)
newstr+="+";else if((icode>=0x30&&icode<=0x39)||(icode>=0x41&&icode<=0x5A)||(icode>=0x61&&icode<=0x7A))
newstr+=str.charAt(i);else
newstr+="%"+toCase(icode);}
else if(icode<0x800){newstr+="%"+toCase(0xC0+(icode>>6));newstr+="%"+toCase(0x80+icode%0x40);}
else{newstr+="%"+toCase(0xE0+(icode>>12));newstr+="%"+toCase(0x80+(icode>>6)%0x40);newstr+="%"+toCase(0x80+icode%0x40);}}
return newstr;};function urlDecode(str){if(str==null||str=="")
return"";var newstr="";function toCase(sstr){return sstr.tostring(16).toUpperCase();}
for(var i=0,ichar,len=str.length;i<len;){if(str.charAt(i)=="%"){ichar=str.charAt(i+1);if(ichar.toLowerCase()=="e"){newstr+=String.fromCharCode((parseInt("0x"+str.substr(i+1,2))-0xE0)*0x1000+(parseInt("0x"+str.substr(i+4,2))-0x80)*0x40+parseInt("0x"+str.substr(i+7,2))-0x80);i+=9;}
else if(ichar.toLowerCase()=="c"||ichar.toLowerCase()=="d"){newstr+=string.fromCharCode((parseInt("0x"+str.substr(i+1,2))-0xC0)*0x40+parseInt("0x"+str.substr(i+4,2))-0x80);i+=6;}
else{newstr+=String.fromCharCode(parseInt("0x"+str.substr(i+1,2)));i+=3;}}
else{newstr+=str.charAt(i).replace(/\+/," ");i++;}}
return newstr;};var Browser=new Object();Browser.isMozilla=(typeof document.implementation!='undefined')&&(typeof document.implementation.createDocument!='undefined')&&(typeof HTMLDocument!='undefined');Browser.isIE=window.ActiveXObject?true:false;Browser.isGecko=navigator.userAgent.indexOf("Gecko")!=-1;Browser.isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);if(Browser.isMozilla&&!Browser.isOpera){HTMLElement.prototype.removeNode=function(){this.parentNode.removeChild(this);}}
function getParent(tag,node){if(node==null)
return node;if(node.tagName.toUpperCase()==tag.toUpperCase())return node;if("BODY"==node.tagName.toUpperCase())return null;if(node.parentNode==null)
return node;node=node.parentNode;return getParent(tag,node);}
function getParentByClass(classes,node){if(node==null)
return node;if(node.className.toUpperCase()==classes.toUpperCase())return node;if("BODY"==node.tagName.toUpperCase())return null;if(node.parentNode==null)
return node;node=node.parentNode;return getParentByClass(tag,node);}
function CreateXmlhttp(){var xmlhttp=null;try{xmlhttp=new ActiveXObject('MSXML2.XMLHTTP');return xmlhttp;}
catch(e){}
try{xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');return xmlhttp;}
catch(e){}
return null;}
function XmlGet(paras,objResponseFunction,objResponse){var url=document.location.href;url=url.replace("#","");if(url.indexOf("?")>0)url+="&"+paras;else url+="?"+paras;var xml=CreateXmlhttp();url=url+"&Randomitem="+Math.random();try{xml.open("Get",url,true);xml.onreadystatechange=function(){if(objResponseFunction==null)return;if(xml.readyState==4){if(xml.status==200)
{objResponse=xml.responseText;window.setTimeout(objResponseFunction,100);}}}
xml.send();}
catch(e){}}
function getFromXml(xml,callback,url){url=url.replace("#","");try{xml.open("Get",url+"&Randomitem="+Math.random(),true);xml.onreadystatechange=callback;xml.send();}
catch(e){}}
function CodeCookie(str)
{var strRtn="";for(var i=str.length-1;i>=0;i--)
{strRtn+=str.charCodeAt(i);if(i)
strRtn+="#$#@";}
return strRtn;}
function DecodeCookie(str)
{var strArr;var strRtn="";strArr=str.split("#$#@");for(var i=strArr.length-1;i>=0;i--)
strRtn+=String.fromCharCode(eval(strArr[i]));return strRtn;}
function SetCookie(name,value,expires)
{var exp=new Date();exp.setTime(exp.getTime()+expires*60*1000);document.cookie=name+"="+escape(CodeCookie(value))+" ; expires="+exp.toGMTString()+" ; path=/";}
function GetCookie(name)
{var strArg=name+"=";var nArgLen=strArg.length;var nCookieLen=document.cookie.length;var nEnd;var i=0;var j;while(i<nCookieLen)
{j=i+nArgLen;if(document.cookie.substring(i,j)==strArg)
{nEnd=document.cookie.indexOf(";",j);if(nEnd==-1)nEnd=document.cookie.length;return DecodeCookie(unescape(document.cookie.substring(j,nEnd)));}
i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
return null;}
function SwapItem(tNode,id,showFirst)
{var node=getParent("UL",tNode);var items_1=YAHOO.util.Dom.getElementsByClassName("divItem_img","div",node);var items_2=YAHOO.util.Dom.getElementsByClassName("divItem_text","div",node);for(var i=0;i<items_1.length;i++)
{items_1[i].style.display="none";}
for(var j=0;j<items_2.length;j++)
{items_2[j].style.display="block";}
if(showFirst)
{items_1[0].style.display="block";items_1[0].style.display="none";}
else
{$("divItem_"+id+"_img").style.display="block";$("divItem_"+id+"_text").style.display="none";}
showImageForSortingItem("divItem_ImgId_"+id,"divItem_imgsrc_"+id);}
function showImageForSortingItem(ImgId,ImgSrc)
{if($(ImgId).src=="")
$(ImgId).src=$(ImgSrc).innerHTML;}
function getCookie(key)
{var strCookie=document.cookie;var myarray=strCookie.split("; ");for(i=0;i<myarray.length;i++)
{var t=myarray[i].split("=");if(t[0]==key)
{return t[1];}}
return-2;}
function setCookie(key,value,date)
{if(date==null)
{date=new Date();var expireDays=10;date.setTime(date.getTime()+expireDays*24*3600*1000);}
document.cookie=key+"="+value+";expire="+date.toGMTString();}
function GoToPageForGL(id,url,pagecount)
{var obj=$(id);if(obj==null)
return;if(!IsInteger(obj.value))
alert(__InputInteger);if(obj.value>pagecount)
obj.value=pagecount;if(obj.value<1)
obj.value=1;var value=obj.value;var strUrl=url.replace('-100000000',value);window.location.href=strUrl;}
function CheckIsDateValid(start,end)
{var s1=start;var s2=end;s1=s1.replace(/-/g,"/");s2=s2.replace(/-/g,"/");s1=new Date(s1);s2=new Date(s2);var days=s1.getTime()-s2.getTime();var time=parseInt(days/(1000*60*60*24));return days;}
