high.inputwidget=function(C,B,A){high.inputwidget.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(high.inputwidget,harsh.widget);
high.inputwidget.prototype.getValue=function(){if(this.hasChildDOM("input")){return this.getChildDOM("input").value;
}else{return this.getChildWidget("input").getValue();
}};
ui.img=function(C,B,A){LOG_I("img","Initializing img : "+C);
ui.img.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(ui.img,harsh.widget);
ui.img.prototype.changeImage=function(A){this.getChildDOM("photo").src=A;
};
high.genericinput=function(C,B,A){high.genericinput.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(high.genericinput,harsh.widget);
high.genericinput.prototype.getValue=function(){return this.getChildWidget("form").getAsJSON();
};
ui.loader=function(C,B,A){LOG_I("ui","Initializing loader: "+C);
ui.loader.superclass.constructor.call(this,C,B,A);
this.loadEvent=harsh.util.yahooflatevent("load");
this.reloadEvent=harsh.util.yahooflatevent("reload");
this.successEvent=harsh.util.yahooflatevent("success");
this.loadEvent.subscribe(this.load,this,true);
this.reloadEvent.subscribe(this.reload,this,true);
};
YAHOO.lang.extend(ui.loader,harsh.widget);
ui.loader.prototype.parentReady=function(){var A=document.getElementById("__body_container");
if(!A){A=document.createElement("div");
document.body.appendChild(A);
}this.bodyContainer=A;
if(this.preload){this.load();
}};
ui.loader.prototype.load=function(){if(this.loaded){this.successEvent.fire();
return;
}var C={};
for(var A in this.argument){C[this.argument[A].key]=this.argument[A].value;
}this.serializedArguments=harsh.json.serialize(C);
this.kv={m:"output",site:P.site,widget:this.widget,parentId:this.id,"arguments":this.serializedArguments,startId:ui.loader.nextId()};
if(this.childId){this.kv.id=this.childId;
}for(var B in P){this.kv[B]=P[B];
}LOG_I("loader",this.kv);
YAHOO.util.Connect.asyncRequest("POST","/widgetbuilder",{success:function(D){this.spec=harsh.json.parse(D.responseText);
LOG_I("loader",this.spec);
P._lastId=this.spec.lastId;
this.render();
},failure:function(D){LOG_I("loader","things failed");
},scope:this},harsh.net._encodeAjaxData(this.kv));
};
ui.loader.prototype.render=function(){this.jsUrls=[];
this.cssUrls=[];
for(var B in this.spec.libraries){if(!L[B]){var A=this.spec.libraries[B];
this.jsUrls.push(A.js);
this.cssUrls.push(A.css);
}}if(this.spec.css){this.cssUrls.push(this.spec.css);
}if(this.cssUrls.length>0){YAHOO.util.Get.css(this.cssUrls,{onSuccess:this.cssLoaded,scope:this,autopurge:false});
}else{this.cssLoaded();
}};
ui.loader.prototype.cssLoaded=function(){if(this.jsUrls.length>0){YAHOO.util.Get.script(this.jsUrls,{onSuccess:this.jsLoaded,scope:this,autopurge:false});
}else{this.jsLoaded();
}};
ui.loader.prototype.jsLoaded=function(){this.getChildDOM("child").innerHTML=this.spec.html;
var s=document.createElement("span");
this.bodyContainer.appendChild(s);
s.innerHTML=this.spec.bodyhtml;
eval(this.spec.js);
this.loaded=true;
for(var l in this.spec.libraries){L[l]=true;
}this.successEvent.fire();
};
ui.loader.prototype.reload=function(){if(!this.loaded){this.load();
return;
}this.kv.startId=ui.loader.nextId();
this.getChildDOM("child").innerHTML="Loading .......";
YAHOO.util.Connect.asyncRequest("POST","/widgetbuilder",{success:function(A){this.spec=harsh.json.parse(A.responseText);
LOG_I("loader",this.spec);
P._lastId=this.spec.lastId;
this.jsLoaded();
},failure:function(A){LOG_I("loader","things failed");
},scope:this},harsh.net._encodeAjaxData(this.kv));
};
ui.loader.nextId=function(){var A=ui.loader._n;
ui.loader._n+=1000;
return A;
};
ui.loader._n=1000;
ui.checkinput=function(C,B,A){LOG_I("checkinput","Initializing checkinput: "+C);
ui.checkinput.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(ui.checkinput,harsh.widget);
ui.checkinput.prototype.getValue=function(){var A=this.getChildDOM("ci").checked;
if(A){return"true";
}else{return"false";
}};
ui.checkinput.prototype.disable=function(){this.getChildDOM("ci").setAttribute("disabled","true");
};
ui.checkinput.prototype.enable=function(){this.getChildDOM("ci").removeAttribute("disabled");
};
harsh.widgets.topOverlay=null;
ui.overlay=function(C,B,A){LOG_I("overlay","Initializing overlay : "+C);
ui.overlay.superclass.constructor.call(this,C,B,A);
this.hideEvent=new harsh.util.yahooflatevent("hide");
this.showEvent=new harsh.util.yahooflatevent("show");
this.hidecompleteEvent=new harsh.util.yahooflatevent("hidecomplete");
this.showcompleteEvent=new harsh.util.yahooflatevent("showcomplete");
this.hideEvent.subscribe(this.hide,this,true);
this.showEvent.subscribe(this.show,this,true);
this.bottomOverlay=null;
};
YAHOO.lang.extend(ui.overlay,harsh.widget);
ui.overlay.prototype.parentReady=function(){LOG_I("overlay","parentReady id="+this.id);
var A=this.getChildDOM("panel");
document.body.appendChild(A);
var B={modal:true,fixedCenter:"contained",zindex:1000,visible:false,draggable:false};
LOG_I("harsh","Panel Initialized");
this.opanel=new YAHOO.widget.Panel(this.getChildDOM("panel"),B);
this.opanel.hideEvent.subscribe(this.onHide,this,true);
this.opanel.showEvent.subscribe(this.onShow,this,true);
this.opanel.beforeHideEvent.subscribe(this.onBeforeHide,this,true);
this.opanel.beforeShowEvent.subscribe(this.onBeforeShow,this,true);
if(this.visible&&this.visible=="true"){this.opanel.cfg.queueProperty("visible",true);
}this.opanel.render();
};
ui.overlay.prototype.onHide=function(){LOG_I("overlay","onHide id="+this.id);
if(harsh.widgets.registeredEditors){for(var B=0;
B<harsh.widgets.registeredEditors.length;
B++){var A=harsh.widgets.registeredEditors[B];
A.goFarAway();
}}if(this.bottomOverlay){this.bottomOverlay.show();
this.bottomOverlay=null;
}this.hidecompleteEvent.fire();
};
ui.overlay.prototype.onShow=function(){LOG_I("overlay","onShow id="+this.id);
if(harsh.widgets.registeredEditors){for(var B=0;
B<harsh.widgets.registeredEditors.length;
B++){var A=harsh.widgets.registeredEditors[B];
A.comeBackFromFarAway();
}}harsh.widgets.topOverlay=this;
this.showcompleteEvent.fire();
};
ui.overlay.prototype.onBeforeHide=function(){LOG_I("overlay","onBeforeHide id="+this.id);
harsh.widgets.topOverlay=null;
};
ui.overlay.prototype.onBeforeShow=function(){LOG_I("overlay","onBeforeShow id="+this.id);
if(harsh.widgets.topOverlay){this.bottomOverlay=harsh.widgets.topOverlay;
harsh.widgets.topOverlay.hide();
}};
ui.overlay.prototype.show=function(){this.opanel.show();
};
ui.overlay.prototype.hide=function(){this.opanel.hide();
};
ui.imagedialog=function(C,B,A){LOG_I("ui","Initializing imagedialog : "+C);
ui.imagedialog.superclass.constructor.call(this,C,B,A);
this.triggerEvent=harsh.util.yahooflatevent("trigger");
this.cancelEvent=harsh.util.yahooflatevent("cancel");
this.successEvent=harsh.util.yahooflatevent("success");
this.failureEvent=harsh.util.yahooflatevent("failure");
this.running=false;
this.triggerEvent.subscribe(this.showOverlay,this,true);
};
YAHOO.lang.extend(ui.imagedialog,harsh.widget);
ui.imagedialog.prototype.showOverlay=function(){if(this.crop){this.crop.destroy();
this.crop=null;
}this.value=null;
this.getChildDOM("preview").src="";
this.getChildWidget("overlay_upload").show();
};
ui.imagedialog.prototype.uploadPhoto=function(){LOG_I("imagedialog","uploadPhoto");
YAHOO.util.Connect.setForm(this.translateId("form"),true);
var B="700";
if(this.imgWidth){if(this.imgWidth>B){B=this.imgWidth;
}}var C={width:B,noshrink:"true"};
var A=YAHOO.util.Connect.asyncRequest("POST","/upload",{upload:function(E){LOG_I("imginput",E);
this.getChildWidget("overlay_upload").hide();
this.getChildWidget("overlay_crop").show();
var D=harsh.json.parse(E.responseText);
this.getChildDOM("preview").src="/upload?url="+D.url;
this.value=D.url;
this.getChildDOM("file").value="";
YAHOO.util.Event.on(this.getChildDOM("preview"),"load",this.cropPhoto,this,true);
},scope:this},harsh.net._encodeAjaxData(C));
};
ui.imagedialog.prototype.cropPhoto=function(){if(this.crop){return;
}var D=this.getChildDOM("preview");
var F=parseInt(YAHOO.util.Dom.getStyle(D,"width"));
var A=parseInt(YAHOO.util.Dom.getStyle(D,"height"));
var E={};
if(this.imgWidth){E.initWidth=(this.imgWidth>F)?F:this.imgWidth;
}if(this.imgHeight){E.initHeight=(this.imgHeight>A)?A:this.imgHeight;
}if(this.imgWidth&&this.imgHeight){E.ratio=true;
if(!(this.imgWidth<F&&this.imgHeight<A)){var B=this.imgWidth/this.imgHeight;
var C=F/A;
if(C>B){E.initHeight=A;
E.initWidth=A*B;
}else{E.initWidth=F;
E.initHeight=F/B;
}}}this.crop=new YAHOO.widget.ImageCropper(this.getChildDOM("preview"),E);
};
ui.imagedialog.prototype.done=function(){var A=this.crop.getCropCoords();
var C={m:"cropAndScale",url:this.value,x:A.left,y:A.top,width:A.width,height:A.height,scale_width:this.imgWidth?this.imgWidth:-1,scale_height:this.imgHeight?this.imgHeight:-1};
var B=YAHOO.util.Connect.asyncRequest("GET","/imageprocessor?"+harsh.net._encodeAjaxData(C),{success:function(F){try{LOG_I("upload",F);
this.getChildWidget("overlay_crop").hide();
var D=harsh.json.parse(F.responseText);
this.value=D.url;
this.successEvent.fire();
this.running=false;
}catch(E){LOG_I("error",E);
this.failureEvent.fire();
this.running=false;
}},scope:this});
};
ui.imagedialog.prototype.getValue=function(){return this.value;
};
form.dominput=function(C,B,A){LOG_I("dominput","Initializing dominput: "+C);
form.dominput.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(form.dominput,harsh.widget);
form.dominput.prototype.getValue=function(){return this.getChildDOM("input").value;
};
form.dominput.prototype.setValue=function(A){this.getChildDOM("input").value=A;
};
form.dominput.prototype.disable=function(){this.getChildDOM("input").setAttribute("disabled","true");
};
form.dominput.prototype.enable=function(){this.getChildDOM("input").removeAttribute("disabled");
};
form.dominput.prototype.doValidate=function(){if(!this.validate){return true;
}var B=this.getChildDOM("input").value;
var A=this.validate.split(",");
var C=true;
for(var D=0;
D<A.length;
D++){C=C&&form.validate(A[D],B);
}if(!C){this.getChildDOM("input").className="error";
}else{this.getChildDOM("input").className="";
}return C;
};
form.data=function(C,B,A){LOG_I("form","Initializing form : "+C);
form.data.superclass.constructor.call(this,C,B,A);
this.submitEvent=harsh.util.yahooflatevent("formSubmit");
this.successEvent=harsh.util.yahooflatevent("formSubmitSuccess");
this.failureEvent=harsh.util.yahooflatevent("formSubmitFailure");
this.submitEvent.subscribe(this.submit,this,true);
this.somethingChanged=false;
this.activeConnection=false;
YAHOO.util.Event.on(window,"beforeunload",this.goingAway,this,true);
};
YAHOO.lang.extend(form.data,harsh.widget);
form.data.prototype.somethingChanged=function(){this.somethingChanged=true;
};
form.data.prototype.submit=function(){LOG_I("form","Submitting form");
if(this.activeConnection){LOG_I("form","Active Connection. Ignoring the submit call. Try again later");
return;
}if(!this.isValid()){this.failureEvent.fire("Sorry form is not valid.");
return;
}var B=this.getValues();
var A=this.getAction();
this.method=this.getMethod();
this.method=this.method.toUpperCase();
if(this.method=="GET"){A+="?"+harsh.net._encodeAjaxData(B);
}LOG_I("form","ABout to send request "+A);
this.activeConnection=true;
this._value=null;
this._errorMessage=null;
YAHOO.util.Connect.asyncRequest(this.method,A,{success:function(C){this._value=C.responseText;
this.activeConnection=false;
this.successEvent.fire();
this.somethingChanged=false;
},failure:function(C){this.activeConnection=false;
this._errorMessage=C.responseText;
this.failureEvent.fire(this._errorMessage);
LOG_I("data",C);
},scope:this},this.method=="POST"?harsh.net._encodeAjaxData(B):null);
};
form.data.prototype.getMethod=function(){if(this.type=="custom"){return this.method;
}if(this.type=="deleteInArray"||this.type=="up"||this.type=="down"){return"GET";
}return"POST";
};
form.data.prototype.getValues=function(){LOG_I("form","getValues");
var B={};
var A=this.site||P.site;
if(typeof this.type=="undefined"){throw"Undefined type in form";
}if(this.type=="put"){B.id=A;
B.m="put";
if(this.source){B.key=this.source;
}else{B.key="";
}B.value=harsh.json.serialize(this.getAsJSON());
}else{if(this.type=="arrayAdd"){B.id=A;
B.m="arrayAdd";
B.key=this.source;
B.value=harsh.json.serialize(this.getAsJSON());
}else{if(this.type=="register"){B.site=A;
B.m="register";
B.key=this.source;
B.value=harsh.json.serialize(this.getAsJSON());
B.role=this.grantRole;
}else{if(this.type=="login"){B.site=A;
B.m="login";
B.value=harsh.json.serialize(this.getAsJSON());
}else{if(this.type=="arrayPut"){B.id=A;
B.m="arrayPut";
B.key=this.source;
B.insertKey=this.getKey("insert_key");
B.value=harsh.json.serialize(this.getAsJSON());
}else{if(this.type=="deleteInArray"){B.id=A;
B.m="deleteInArray";
B.key=this.source;
}else{if(this.type=="up"){B.id=A;
B.m="up";
B.key=this.source;
}else{if(this.type=="down"){B.id=A;
B.m="down";
B.key=this.source;
}else{if(this.type=="custom"){this.getEmbeddedKVPairs(B);
}else{throw"Unsupported type : "+this.type+". Please use type of form as one of arrayAdd, arrayPut, put, custom.";
}}}}}}}}}return B;
};
form.data.prototype.getAction=function(){if(this.type=="custom"){return this.action;
}if(this.type=="register"||this.type=="login"){return"/userstore";
}return"/jsonstore";
};
form.data.prototype.getItemValue=function(D){var C=D.key;
var B=null;
if(D.type=="ext"||D.type=="system"){var A=harsh.widget.getWidget(D.target);
B=A.getValue();
if(D.prefix){B=D.prefix+B;
}}else{if(D.type=="var"){B=this.evalInParent(D.value);
}}return B;
};
form.data.prototype.getKey=function(A){if(this[A]){return this[A];
}for(var B in this.item){var C=this.item[B];
if(C.key=="_"+A){return this.getItemValue(C);
}}return null;
};
form.data.prototype.getAsJSON=function(){var B={};
for(var C in this.item){var D=this.item[C];
if(D.key[0]=="_"){}else{if(D.type=="system"){harsh.json.put(B,"_"+D.key,this.getItemValue(D));
}else{var A=this.getItemValue(D);
if(A!=""){harsh.json.put(B,D.key,this.getItemValue(D));
}}}}return B;
};
form.data.prototype.getEmbeddedKVPairs=function(A){LOG_I("form","getEmbeddedKVPairs");
for(var B in this.item){var C=this.item[B];
if(C.key[0]=="_"){}else{if(C.type=="system"){A["_"+C.key]="";
}else{A[C.key]=this.getItemValue(C);
}}}};
form.data.prototype.setValue=function(C,E){for(var B in this.item){var D=this.item[B];
var F=D.key;
if(F!=C){continue;
}if(D.type=="ext"){var A=harsh.widget.getWidget(D.target);
A.setValue(E);
}else{if(D.type=="var"){D.value=E;
}}}};
form.data.prototype.isValid=function(){for(var B in this.item){var C=this.item[B];
if(C.type=="ext"){var A=harsh.widget.getWidget(C.target);
if(typeof A.doValidate!="undefined"){if(!A.doValidate()){return false;
}}}}return true;
};
form.data.prototype.getErrorMessage=function(){return this._errorMessage;
};
form.data.prototype.getValue=function(C){if(typeof C=="undefined"){if(typeof this._value=="undefined"){return null;
}return this._value;
}for(var B in this.item){var D=this.item[B];
var E=D.key;
if(E!=C){continue;
}if(D.type=="ext"){var A=harsh.widget.getWidget(D.target);
return A.getValue();
}else{if(D.type=="var"){return D.value;
}}}};
form.data.prototype.goingAway=function(A){if(this.somethingChanged){}};
form.data.prototype.disable=function(){for(var B in this.item){var C=this.item[B];
var D=C.key;
var A=null;
if(C.type=="ext"){A=harsh.widget.getWidget(C.target);
}else{if(C.type=="var"){}}if(A&&YAHOO.lang.isFunction(A.disable)){A.disable();
}}};
form.data.prototype.enable=function(){for(var B in this.item){var C=this.item[B];
var D=C.key;
var A=null;
if(C.type=="ext"){A=harsh.widget.getWidget(C.target);
}else{if(C.type=="var"){}}if(A&&YAHOO.lang.isFunction(A.enable)){A.enable();
}}};
ui.imginput=function(C,B,A){LOG_I("ui","Initializing imginput : "+C);
ui.imginput.superclass.constructor.call(this,C,B,A);
this.changeEvent=harsh.util.yahooflatevent("change");
this.getChildWidget("dialog").successEvent.subscribe(this.changeImage,this,true);
};
YAHOO.lang.extend(ui.imginput,harsh.widget);
ui.imginput.prototype.getValue=function(){return this.value;
};
ui.imginput.prototype.changeImage=function(){LOG_I("imginput","changeImage id="+this.id);
this.value=this.getChildWidget("dialog").getValue();
this.getChildDOM("main").src="/upload?url="+this.value;
this.changeEvent.fire();
};
ui.multiselectinput=function(C,B,A){LOG_I("multiselectinput","Initializing multiselectinput: "+C);
ui.multiselectinput.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(ui.multiselectinput,harsh.widget);
ui.multiselectinput.prototype.getValue=function(){var D=this.options.split(",");
var A="";
for(var B=0;
B<D.length;
B++){var C=this.getChildDOM("ci_"+B);
if(C.checked){A+=D[B]+",";
}}return A;
};
ui.multiselectinput.prototype.disable=function(){var C=this.options.split(",");
for(var A=0;
A<C.length;
A++){var B=this.getChildDOM("ci_"+A);
B.setAttribute("disabled","true");
}};
ui.multiselectinput.prototype.enable=function(){var C=this.options.split(",");
for(var A=0;
A<C.length;
A++){var B=this.getChildDOM("ci_"+A);
B.removeAttribute("disabled");
}};
form.customdropdowninput=function(C,B,A){LOG_I("customdropdowninput","Initializing customdropdowninput: "+C);
form.customdropdowninput.superclass.constructor.call(this,C,B,A);
this.changeEvent=harsh.util.yahooflatevent("change");
YAHOO.util.Event.on(this.getChildDOM("select"),"change",this.decideOnBox,this,true);
};
YAHOO.lang.extend(form.customdropdowninput,harsh.widget);
form.customdropdowninput.prototype.getValue=function(){var A=this.getChildDOM("select");
if(A.value!="custom"){return A.value;
}return this.getChildDOM("box").value;
};
form.customdropdowninput.prototype.decideOnBox=function(){var A=this.getChildDOM("select").value;
if(A=="custom"){this.getChildDOM("box").style.display="";
}else{this.getChildDOM("box").style.display="none";
this.changeEvent.fire();
}};
high.checkbox=function(C,B,A){LOG_I("checkbox","Initializing checkbox: "+C);
high.checkbox.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(high.checkbox,harsh.widget);
high.checkbox.prototype.getValue=function(){var A=this.getChildDOM("input").checked;
if(A){return"true";
}else{return"false";
}};
studio.widgetrender=function(C,B,A){LOG_I("studio","Initializing widgetrender: "+C);
studio.widgetrender.superclass.constructor.call(this,C,B,A);
if(this.chain){this.chainEvent=harsh.util.yahooflatevent("chain");
}};
YAHOO.lang.extend(studio.widgetrender,harsh.widget);
studio.widgetrender.prototype.parentReady=function(){if(this.chain){if(this.getChildWidget("widget").chainEvent){this.getChildWidget("widget").chainEvent.subscribe(function(){this.chainEvent.fire();
},this,true);
}}};
studio.widgetrender.prototype.getValue=function(){return this.getChildWidget("widget").getValue();
};
ui.tablayoutdynamic=function(C,B,A){ui.tablayoutdynamic.superclass.constructor.call(this,C,B,A);
LOG_I("ui","Initializing tablayoutdynamic: "+C);
if(YAHOO.lang.isValue(this.selected)){this.select(this.selected);
}else{if(A.total>0){this.select(0);
}}};
YAHOO.lang.extend(ui.tablayoutdynamic,harsh.widget);
ui.tablayoutdynamic.prototype.unselect=function(B){var D=this.getChildDOM("l_y_"+B);
var A=this.getChildDOM("l_n_"+B);
var C=this.getChildDOM("c_"+B);
D.style.display="block";
A.style.display="none";
C.style.display="none";
};
ui.tablayoutdynamic.prototype.select=function(B){LOG_I("ui","multilayout_tabs:select i="+B);
if(YAHOO.lang.isValue(this.current_selected)){this.unselect(this.current_selected);
}var D=this.getChildDOM("l_y_"+B);
var A=this.getChildDOM("l_n_"+B);
var C=this.getChildDOM("c_"+B);
D.style.display="none";
A.style.display="block";
C.style.display="block";
this.current_selected=B;
};
ui.tablayoutdynamic.prototype.getSelected=function(){return this.current_selected;
};
harsh.widgets.registeredEditors=[];
form.htmlinput=function(F,E,B){LOG_I("form","Initializing htmlinput: "+F);
form.htmlinput.superclass.constructor.call(this,F,E,B);
var A=B.contentHeight?B.contentHeight:"50px";
var D=[{type:"separator"},{group:"textstyle",label:"Font Style",buttons:[{type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"},{type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"},{type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"},{type:"separator"},{type:"color",label:"Font Color",value:"forecolor",disabled:true},{type:"color",label:"Background Color",value:"backcolor",disabled:true}]},{type:"separator"},{group:"indentlist",label:"Lists",buttons:[{type:"push",label:"Create an Unordered List",value:"insertunorderedlist"},{type:"push",label:"Create an Ordered List",value:"insertorderedlist"}]},{group:"insertitem",label:"Create Link",buttons:[{type:"push",label:"HTML Link CTRL + SHIFT + L",value:"createlink",disabled:true}]}];
if(B.hidetoolbar){}var C=YAHOO.widget.SimpleEditor.prototype._defaultCSS+"h1,h2 { margin : 0; padding : 0 }h3,h4,h5 { display : inline; }";
this.myConfig={height:A,width:"100%",markup:"xhtml",focusAtStart:false,css:C,toolbar:{collapse:true,titlebar:null,draggable:false,buttons:D,filterWord:true}};
this.changeEvent=harsh.util.yahooflatevent("change");
};
YAHOO.lang.extend(form.htmlinput,harsh.widget);
form.htmlinput.prototype.parentReady=function(){LOG_I("htmlinput","parentReady id="+this.id);
this._editor=new YAHOO.widget.SimpleEditor(this.getChildDOM("box"),this.myConfig);
this._editor.addListener("editorContentLoaded",function(){LOG_I("htmlinput","editorContentLoaded id="+this.id);
if(this.content){LOG_I("htmlinput",this.content);
this.value=this.content.replace(/\n/g,"");
this._editor.setEditorHTML(this.value);
}if(this.hidetoolbar=="true"){this._editor.toolbar.collapse();
}if(this.insideOverlay){this.goFarAway();
}},null,this);
this._editor.addListener("htmlChange",function(){this.changeEvent.fire();
},null,this);
this._editor.render();
if(this.insideOverlay){harsh.widgets.registeredEditors.push(this);
}};
form.htmlinput.prototype.goFarAway=function(){this._editor.get("iframe").setStyle("position","absolute");
this._editor.get("iframe").setStyle("left","-9999px");
};
form.htmlinput.prototype.comeBackFromFarAway=function(){this._editor.get("element_cont").setStyle("position","relative");
this._editor.get("iframe").setStyle("position","static");
this._editor.get("iframe").setStyle("left","");
this._editor._setDesignMode("on");
};
form.htmlinput.prototype.getValue=function(){var A=this._editor.saveHTML();
return A;
};
ui.animlayout=function(C,B,A){ui.animlayout.superclass.constructor.call(this,C,B,A);
LOG_I("ui","Initializing animlayout : "+C);
this.nextEvent=new harsh.util.yahooflatevent("next");
this.prevEvent=new harsh.util.yahooflatevent("prev");
this.transitionComplete=new harsh.util.yahooflatevent("transitionComplete");
this.nextEvent.subscribe(this.next,this,true);
this.prevEvent.subscribe(this.prev,this,true);
this.animationInProgress=false;
};
YAHOO.lang.extend(ui.animlayout,harsh.widget);
ui.animlayout.prototype.parentReady=function(){this.myWidth=this.getChildDOM("root").clientWidth;
this.myHeight=this.getChildDOM("root").clientHeight;
this.intTotal=parseInt(this.total);
this.intDuration=parseInt(this.duration);
this.first();
};
ui.animlayout.prototype.first=function(){var A=this.getChildDOM("item_"+0);
A.style.left="0px";
A.style.display="block";
this.current=0;
};
ui.animlayout.prototype.next=function(){if(this.animationInProgress){return;
}this.animationInProgress=true;
var A=(this.current+1)%this.intTotal;
this.slideOutToLeft(this.current);
this.slideInFromRight(A);
this.current=A;
};
ui.animlayout.prototype.prev=function(){if(this.animationInProgress){return;
}this.animationInProgress=true;
var A=(this.current+this.intTotal-1)%this.intTotal;
this.slideOutToRight(this.current);
this.slideInFromLeft(A);
this.current=A;
};
ui.animlayout.prototype.slideInFromLeft=function(A){var C=this.getChildDOM("item_"+A);
C.style.left=(-1*this.myWidth)+"px";
C.style.display="block";
var B=new YAHOO.util.Anim(C,{left:{to:0}},this.intDuration,YAHOO.util.Easing.easeOut);
B.onComplete.subscribe(this.animationOver,this,true);
B.animate();
};
ui.animlayout.prototype.slideInFromRight=function(A){var C=this.getChildDOM("item_"+A);
C.style.left=(this.myWidth)+"px";
C.style.display="block";
var B=new YAHOO.util.Anim(C,{left:{to:0}},this.intDuration,YAHOO.util.Easing.easeOut);
B.onComplete.subscribe(this.animationOver,this,true);
B.animate();
};
ui.animlayout.prototype.slideOutToLeft=function(A){var C=this.getChildDOM("item_"+A);
var B=new YAHOO.util.Anim(C,{left:{to:-1*this.myWidth}},this.intDuration,YAHOO.util.Easing.easeOut);
B.animate();
};
ui.animlayout.prototype.slideOutToRight=function(A){var C=this.getChildDOM("item_"+A);
var B=new YAHOO.util.Anim(C,{left:{to:this.myWidth}},this.intDuration,YAHOO.util.Easing.easeOut);
B.animate();
};
ui.animlayout.prototype.animationOver=function(){this.animationInProgress=false;
};
high.userinput=function(C,B,A){high.userinput.superclass.constructor.call(this,C,B,A);
};
YAHOO.lang.extend(high.userinput,harsh.widget);
high.userinput.prototype.getValue=function(){return this.user;
};
ui.eventchainer=function(C,B,A){LOG_I("eventchainer","Initializing eventchainer: "+C);
ui.eventchainer.superclass.constructor.call(this,C,B,A);
this.chainEvent=harsh.util.yahooflatevent("chain");
};
YAHOO.lang.extend(ui.eventchainer,harsh.widget);
