if(typeof bab!="function"){
var bab=function(_1){
return _1;
};
}
function LoadLibrary(_2,_3){
if(!_2){
_2=window;
}
_2.STK=window.STK;
if(_3==undefined||_3=="saki"){
STK.Engine=STK.Engines.Saki;
}else{
STK.Engine=STK.Engines.Html;
}
}
var STK={VERSION:"0.7.0",THEME:"Plain",ENGINE:"Html",Theme:{},Catalyst:{},Engine:null,Engines:{},EngineManager:{Load:function(_4){
STK.Engine=_4;
}},Assert:function(_5,_6){
if(_5){
return;
}
if(arguments.length>2){
var _7=[];
for(var i=1;i<arguments.length;i++){
_7.push(arguments[i]);
}
_6=STK.String.Format(_7);
}
STK.Log.Critical("Assertion Triggered! from %s\n%s",STK.Assert.caller,_6);
},Delegate:function(_9,_a){
return function(_b,_c,_d,_e,_f,_10,_11,_12,_13,_14){
return _9[_a](_b,_c,_d,_e,_f,_10,_11,_12,_13,_14);
};
},_requeue_time:0,Requeue:function(_15){
return window.setTimeout(_15,STK._requeue_time);
},UNIMPLEMENTED:function(){
window.alert("STK ERROR!  Method Unimplemented.");
}};
STK.Position={LEFT:0,RIGHT:1,TOP:2,BOTTOM:3};
STK.IconFactory=function(){
var _16={};
this.Add=function(_17,_18){
_16[_17]=_18;
};
this.Lookup=function(_19){
return _16[_19];
};
};
STK.IconFactory.CreateDefaultFactory=function(){
var _1a=new STK.IconFactory();
_1a.Add(STK.Stock.ADD,new STK.IconSet("add",0));
_1a.Add(STK.Stock.APPLY,new STK.IconSet("apply",0));
_1a.Add(STK.Stock.BUSY,new STK.IconSet("busy.gif",0,true));
_1a.Add(STK.Stock.CANCEL,new STK.IconSet("cancel",0));
_1a.Add(STK.Stock.CLOSE,new STK.IconSet("ex",0));
_1a.Add(STK.Stock.DIALOG_AUTHENTICATION,new STK.IconSet("dialog_authentication",0));
_1a.Add(STK.Stock.DIALOG_ERROR,new STK.IconSet("stop",0));
_1a.Add(STK.Stock.DIALOG_INFO,new STK.IconSet("user",0));
_1a.Add(STK.Stock.DIALOG_QUESTION,new STK.IconSet("question",0));
_1a.Add(STK.Stock.DIALOG_WARNING,new STK.IconSet("warning",0));
_1a.Add(STK.Stock.DIRECTORY,new STK.IconSet("directory",0));
_1a.Add(STK.Stock.EDIT,new STK.IconSet("edit",0));
_1a.Add(STK.Stock.FILE,new STK.IconSet("file",0));
_1a.Add(STK.Stock.GO_BACK,new STK.IconSet("arrow-west",0));
_1a.Add(STK.Stock.GO_DOWN,new STK.IconSet("arrow-south",0));
_1a.Add(STK.Stock.GO_FORWARD,new STK.IconSet("arrow-east",0));
_1a.Add(STK.Stock.GO_UP,new STK.IconSet("arrow-north",0));
_1a.Add(STK.Stock.HARDDISK,new STK.IconSet("harddisk",0));
_1a.Add(STK.Stock.MEDIA_FORWARD,new STK.IconSet("arrow-east",0));
_1a.Add(STK.Stock.MEDIA_NEXT,new STK.IconSet("arrow-east",0));
_1a.Add(STK.Stock.MEDIA_PAUSE,new STK.IconSet("pause",0));
_1a.Add(STK.Stock.MEDIA_PLAY,new STK.IconSet("play",0));
_1a.Add(STK.Stock.MEDIA_PREVIOUS,new STK.IconSet("arrow-west",0));
_1a.Add(STK.Stock.MEDIA_RECORD,new STK.IconSet("led_red",0));
_1a.Add(STK.Stock.MEDIA_REWIND,new STK.IconSet("arrow-west",0));
_1a.Add(STK.Stock.MEDIA_STOP,new STK.IconSet("stop",0));
_1a.Add(STK.Stock.NO,new STK.IconSet("led_red",0));
_1a.Add(STK.Stock.OK,new STK.IconSet("check",0));
_1a.Add(STK.Stock.QUESTION,new STK.IconSet("question",0));
_1a.Add(STK.Stock.QUIT,new STK.IconSet("ex",0));
_1a.Add(STK.Stock.REFRESH,new STK.IconSet("cycle",0));
_1a.Add(STK.Stock.REMOVE,new STK.IconSet("remove",0));
_1a.Add(STK.Stock.SHUTDOWN,new STK.IconSet("shutdown",0));
_1a.Add(STK.Stock.USER,new STK.IconSet("user",0));
_1a.Add(STK.Stock.YES,new STK.IconSet("led_green",0));
_1a.Add(STK.Stock.BUSY,new STK.IconSet("busy.gif",0,true));
return _1a;
};
STK.IconSet=function(_1b,_1c,_1d){
this.icon_name=_1b;
this.sizes=_1c;
this.skip_suffix=_1d;
this.GetLocation=function(_1e){
var sz=this.GetSize(_1e);
var dir=String(sz.w)+"x"+String(sz.h);
var _21="/theme/"+STK.THEME+"/icons/"+dir+"/"+this.icon_name;
return STK.Path.FindImage(_21,this.skip_suffix);
};
this.GetSize=function(_22){
switch(_22){
default:
case STK.IconSize.INVALID:
case STK.IconSize.MENU:
case STK.IconSize.SMALL_TOOLBAR:
case STK.IconSize.BUTTON:
return {w:16,h:16};
case STK.IconSize.LARGE_TOOLBAR:
case STK.IconSize.DND:
return {w:32,h:32};
case STK.IconSize.DIALOG:
return {w:64,h:64};
case STK.IconSize.LARGE:
return {w:128,h:128};
break;
}
};
};
STK.IconSize={INVALID:0,MENU:1,SMALL_TOOLBAR:2,LARGE_TOOLBAR:3,BUTTON:4,DND:5,DIALOG:6,LARGE:7};
STK.Keycode={ENTER:13,ESCAPE:27,TAB:9,CAPSLOCK:20,NUMLOCK:144,DELETE:46,LEFTARROW:37,RIGHTARROW:39,UPARROW:38,DOWNARROW:40,DOT:8226,_last:-1};
STK.Log={State:{OUTPUT:1,DISCARD:3},ChannelDef:function(){
this.id;
this.state;
this.target=null;
this.buffer=[];
this.buffersize=0;
},_channels:{"crash":{"id":"crash","state":1,"target":"body"},"error":{"id":"error","state":3,"target":null},"warning":{"id":"warning","state":3,"target":null},"notice":{"id":"notice","state":3,"target":null},"debug":{"id":"debug","state":3,"target":null}},CreateTarget:function(id){
if(STK.Log._channels[id]){
return;
}
STK.Log._channels[id]=new STK.Log.ChannelDef();
STK.Log._channels[id].id=id;
STK.Log._channels[id].state=STK.Log.State.DISCARD;
},ConfigureTarget:function(id,_25,_26){
if(!STK.Log._channels[id]){
STK.Log.CreateTarget(id);
}
STK.Log._channels[id].state=_25;
if(typeof _26=="string"){
STK.Log._channels[id].target=document.getElementById(_26);
}else{
STK.Log._channels[id].target=_26;
}
},SetTarget:function(id,_28){
STK.Log.ConfigureTarget(id,STK.Log.State.OUTPUT,_28);
},Msg:function(id,msg){
if(!STK.Log._channels[id]){
return;
}
if(STK.Log._channels[id].state==STK.Log.State.DISCARD){
return;
}
if(!STK.Log._channels[id].target){
return;
}
if(arguments.length>2){
var _2b=[];
for(var i=1;i<arguments.length;i++){
_2b.push(arguments[i]);
}
msg=STK.String.Format(_2b);
}
STK.Log._channels[id].target.innerHTML=msg+"<br/>"+STK.Log._channels[id].target.innerHTML;
},Error:function(msg){
STK.Log.Msg("error",STK.String.Format(arguments));
},Warning:function(msg){
STK.Log.Msg("warning",STK.String.Format(arguments));
},Notice:function(msg){
STK.Log.Msg("notice",STK.String.Format(arguments));
},Debug:function(msg){
STK.Log.Msg("debug",STK.String.Format(arguments));
}};
STK.Path={_img_suffix:false,_DetectSuffix:function(){
if(STK.UserAgent.IsExplorer6()){
STK.Path._img_suffix=".gif";
}else{
STK.Path._img_suffix=".png";
}
},FindImage:function(img,_32){
var _33=window.location.protocol+"//"+window.location.host+"/lib/stk/"+STK.VERSION+img;
if(_32!=undefined&&_32){
return _33;
}
if(!STK.Path._img_suffix){
STK.Path._DetectSuffix();
}
return _33+STK.Path._img_suffix;
}};
STK.Stock={ABOUT:"gtk-about",ADD:"gtk-add",APPLY:"gtk-apply",BOLD:"gtk-bold",BUSY:"stk-busy",CANCEL:"gtk-cancel",CDROM:"gtk-cdrom",CLEAR:"gtk-clear",CLOSE:"gtk-close",COLOR_PICKER:"gtk-color-picker",CONVERT:"gtk-convert",CONNECT:"gtk-connect",COPY:"gtk-copy",CUT:"gtk-cut",DELETE:"gtk-delete",DIALOG_AUTHENTICATION:"gtk-dialog-authentication",DIALOG_ERROR:"gtk-dialog-error",DIALOG_INFO:"gtk-dialog-info",DIALOG_QUESTION:"gtk-dialog-question",DIALOG_WARNING:"gtk-dialog-warning",DIRECTORY:"gtk-directory",DISCARD:"gtk-discard",DISCONNECT:"gtk-disconnect",DND:"gtk-dnd",DND_MULTIPLE:"gtk-dnd-multiple",EDIT:"gtk-edit",EXECUTE:"gtk-execute",FILE:"gtk-file",FIND:"gtk-find",FIND_AND_REPLACE:"gtk-find-and-replace",FLOPPY:"gtk-floppy",FULLSCREEN:"gtk-fullscreen",GOTO_BOTTOM:"gtk-goto-bottom",GOTO_FIRST:"gtk-goto-first",GOTO_LAST:"gtk-goto-last",GOTO_TOP:"gtk-goto-top",GO_BACK:"gtk-go-back",GO_DOWN:"gtk-go-down",GO_FORWARD:"gtk-go-forward",GO_UP:"gtk-go-up",HARDDISK:"gtk-harddisk",HELP:"gtk-help",HOME:"gtk-home",INDENT:"gtk-indent",INDEX:"gtk-index",INFO:"gtk-info",ITALIC:"gtk-italic",JUMP_TO:"gtk-jump-to",JUSTIFY_CENTER:"gtk-justify-center",JUSTIFY_FILL:"gtk-justify-fill",JUSTIFY_LEFT:"gtk-justify-left",JUSTIFY_RIGHT:"gtk-justify-right",LEAVE_FULLSCREEN:"gtk-leave-fullscreen",MEDIA_FORWARD:"gtk-media-forward",MEDIA_NEXT:"gtk-media-next",MEDIA_PAUSE:"gtk-media-pause",MEDIA_PLAY:"gtk-media-play",MEDIA_PREVIOUS:"gtk-media-previous",MEDIA_RECORD:"gtk-media-record",MEDIA_REWIND:"gtk-media-rewind",MEDIA_STOP:"gtk-media-stop",MISSING_IMAGE:"gtk-missing-image",NETWORK:"gtk-network",NEW:"gtk-new",NO:"gtk-no",OK:"gtk-ok",OPEN:"gtk-open",ORIENTATION_LANDSCAPE:"gtk-orientation-landscape",ORIENTATION_PORTRAIT:"gtk-orientation-portrait",ORIENTATION_REVERSE_LANDSCAPE:"gtk-orientation-reverse-landscape",ORIENTATION_REVERSE_PORTRAIT:"gtk-orientation-reverse-portrait",PASTE:"gtk-paste",PREFERENCES:"gtk-preferences",PRINT:"gtk-print",PRINT_PREVIEW:"gtk-print-preview",PROPERTIES:"gtk-properties",QUESTION:"stk-question",QUIT:"gtk-quit",REDO:"gtk-redo",REFRESH:"gtk-refresh",REMOVE:"gtk-remove",REVERT_TO_SAVED:"gtk-revert-to-saved",SAVE:"gtk-save",SAVE_AS:"gtk-save-as",SELECT_ALL:"gtk-select-all",SELECT_COLOR:"gtk-select-color",SELECT_FONT:"gtk-select-font",SHUTDOWN:"stk-shutdown",SORT_ASCENDING:"gtk-sort-ascending",SORT_DESCENDING:"gtk-sort-descending",SPELL_CHECK:"gtk-spell-check",STOP:"gtk-stop",STRIKETHROUGH:"gtk-strikethrough",UNDELETE:"gtk-undelete",UNDERLINE:"gtk-underline",UNDO:"gtk-undo",UNINDENT:"gtk-unindent",YES:"gtk-yes",ZOOM_100:"gtk-zoom-100",ZOOM_FIT:"gtk-zoom-fit",ZOOM_IN:"gtk-zoom-in",ZOOM_OUT:"gtk-zoom-out",USER:"stk-user",BUSY:"stk-busy",_items:{},_need_create:true,Lookup:function(_34){
if(STK.Stock._need_create){
STK.Stock._CreateDefaultSet();
STK.Stock._need_create=false;
}
if(STK.Stock._items[_34]==undefined){
return STK.Stock._items["gtk-missing-icon"];
}
return STK.Stock._items[_34];
},Add:function(_35){
STK.Stock._items[_35.stock_id]=_35;
},_CreateDefaultSet:function(){
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ABOUT,bab("About"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ADD,bab("Add"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.BOLD,bab("Bold"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.APPLY,bab("Apply"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.CANCEL,bab("Cancel"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.CDROM,bab("CD-Rom"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.CLEAR,bab("Clear"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.CLOSE,bab("Close"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.COLOR_PICKER,bab("Color Picker"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.CONVERT,bab("Convert"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.CONNECT,bab("Connect"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.COPY,bab("Copy"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.CUT,bab("Cut"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DELETE,bab("Delete"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DIALOG_AUTHENTICATION,bab("Authentication"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DIALOG_ERROR,bab("Error"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DIALOG_INFO,bab("Information"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DIALOG_QUESTION,bab("Question"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DIALOG_WARNING,bab("Warning"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DIRECTORY,bab("Directory"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DISCARD,bab("Discard"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DISCONNECT,bab("Disconnect"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DND,bab("Drag-And-Drop"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.DND_MULTIPLE,bab("Drag-And-Drop multiple"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.EDIT,bab("Edit"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.EXECUTE,bab("Execute"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.FILE,bab("File"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.FIND,bab("Find"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.FIND_AND_REPLACE,bab("Find and Replace"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.FLOPPY,bab("Floppy"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.FULLSCREEN,bab("Fullscreen"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GOTO_BOTTOM,bab("Bottom"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GOTO_FIRST,bab("First"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GOTO_LAST,bab("Last"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GOTO_TOP,bab("Top"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GO_BACK,bab("Back"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GO_DOWN,bab("Down"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GO_FORWARD,bab("Forward"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.GO_UP,bab("Up"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.HARDDISK,bab("Harddisk"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.HELP,bab("Help"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.HOME,bab("Home"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.INDENT,bab("Indent"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.INDEX,bab("Index"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.INFO,bab("Info"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ITALIC,bab("Italic"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.JUMP_TO,bab("Jump to"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.JUSTIFY_CENTER,bab("Center"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.JUSTIFY_FILL,bab("Fill"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.JUSTIFY_LEFT,bab("Left"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.JUSTIFY_RIGHT,bab("Right"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.LEAVE_FULLSCREEN,bab("Leave Fullscreen"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_FORWARD,bab("Forward"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_NEXT,bab("Next"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_PAUSE,bab("Pause"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_PLAY,bab("Play"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_PREVIOUS,bab("Previous"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_RECORD,bab("Record"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_REWIND,bab("Rewind"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MEDIA_STOP,bab("Stop"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.MISSING_IMAGE,bab("Missing Image"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.NETWORK,bab("Network"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.NEW,bab("New"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.NO,bab("No"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.OK,bab("OK"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.OPEN,bab("Open"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ORIENTATION_LANDSCAPE,bab("Landscape Orientation"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ORIENTATION_PORTRAIT,bab("Portrait Orientation"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ORIENTATION_REVERSE_LANDSCAPE,bab("Reverse Landscape Orientation"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ORIENTATION_REVERSE_PORTRAIT,bab("Reverse Portrait Orientation"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.PASTE,bab("Paste"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.PREFERENCES,bab("Preference"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.PRINT,bab("Print"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.PRINT_PREVIEW,bab("Print Preview"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.PROPERTIES,bab("Properties"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.QUESTION,bab("Question"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.QUIT,bab("Quit"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.REDO,bab("Redo"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.REFRESH,bab("Refresh"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.REMOVE,bab("Remove"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.REVERT_TO_SAVED,bab("Revert"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SAVE,bab("Save"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SAVE_AS,bab("Save As"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SELECT_ALL,bab("Select All"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SELECT_COLOR,bab("Select Color"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SELECT_FONT,bab("Select Font"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SORT_ASCENDING,bab("Ascending"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SORT_DESCENDING,bab("Descending"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SPELL_CHECK,bab("Spell Check"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.STOP,bab("Stop"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.STRIKETHROUGH,bab("Strikethrough"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.UNDELETE,bab("Undelete"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.UNDERLINE,bab("Underline"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.UNDO,bab("Undo"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.UNINDENT,bab("Unindent"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.YES,bab("Yes"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ZOOM_100,bab("Zoom 100%"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ZOOM_FIT,bab("Zoom to Fit"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ZOOM_IN,bab("Zoom In"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.ZOOM_OUT,bab("Zoom Out"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.BUSY,bab("Busy"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.SHUTDOWN,bab("Shutdown"),null,null,null));
STK.Stock.Add(new STK.Stock.Item(STK.Stock.USER,bab("User"),null,null,null));
}};
STK.Stock.Item=function(id,_37,_38,_39,_3a){
this.stock_id=id;
this.label=_37;
this.modifier=_38;
this.keyval=_39;
this.translation_domain=_3a;
};
STK.String={WordWrap:function(_3b,_3c){
var _3d=new Array();
var sub;
var _3f=0;
var _40=_3c;
while(_3f<_3b.length){
if(_40>_3b.length){
_40=_3b.length;
}else{
while((_3b.charAt(_40)!=" ")&&(_40>_3f)){
_40--;
}
if(_40==_3f){
_40=_3f+_3c;
}
}
_3d.push(_3b.substring(_3f,_40));
_3f=_40;
_40=_3f+_3c;
}
return _3d;
},WordSplitNear:function(_41,_42){
var _43=new Array();
var _44=0;
var _45=_42;
if(_45>_41.length){
_45=_41.length;
}else{
while((_41.charAt(_45)!=" ")&&(_45>_44)){
_45--;
}
if(_45==_44){
_45=_44+_42;
}
}
_43.push(_41.substring(_44,_45));
_43.push(_41.substring(_45,_41.length));
return _43;
},HtmlWordWrap:function(_46,_47){
var _48="";
var _49=STK.String.WordWrap(_46,_47);
for(var i in _49){
_48+=STK.String.EscapeHtml(_49[i])+"<br/>\n";
}
return _48;
},HtmlWordSplitNear:function(_4b,_4c){
var _4d="";
var _4e=STK.String.WordSplitNear(_4b,_4c);
for(var i in _4e){
_4d+=STK.String.EscapeHtml(_4e[i])+"<br/>\n";
}
return _4d;
},EscapeHtml:function(_50){
if(!_50){
return "";
}
_50=_50.toString();
if(_50.length==0){
return "";
}
_50=_50.replace(/&/g,"&amp;");
_50=_50.replace(/</g,"&lt;");
_50=_50.replace(/>/g,"&gt;");
return _50;
},MarkupHtml:function(_51){
if(!_51){
return "";
}
_51=_51.toString();
if(_51.length==0){
return "";
}
_51=_51.replace(/\n/g,"<br/>");
return _51;
},RenderHtml:function(_52){
return STK.String.MarkupHtml(STK.String.EscapeHtml(_52));
},CanonicalSIUnits:function(_53){
if(typeof _53==Number){
return STK.String._CanonicalSIUnits31(_53);
}
_53=String(_53);
if(!/^\d+$/.test(_53)){
return "NaN bytes";
}
if(_53.length<=9){
return STK.String._CanonicalSIUnits31(Number(_53));
}
return STK.String._CanonicalSIUnitsBig(_53);
},_CanonicalSIUnits31:function(_54){
var out=STK.String._CanonicalSIUnitsInner(_54);
return out[0]+" "+out[1];
},_CanonicalSIUnitsBig:function(_56){
var _57="B";
var cnt=0;
while(_56.length>9){
_56=_56.substr(0,_56.length-3);
cnt++;
}
var s=Number(_56);
while(s>1024){
s/=1024;
cnt++;
}
switch(cnt){
default:
_57="B";
break;
case 0:
_57="B";
break;
case 1:
_57="KiB";
break;
case 2:
_57="MiB";
break;
case 3:
_57="GiB";
break;
case 4:
_57="TiB";
break;
case 5:
_57="PiB";
break;
case 6:
_57="EiB";
break;
case 7:
_57="ZiB";
break;
case 8:
_57="YiB";
break;
}
s=Math.round(s*100)/100;
var pad="";
switch(String(s-Math.floor(s)).length){
case 0:
pad="0.00";
break;
case 1:
pad=".00";
break;
case 2:
pad="00";
break;
case 3:
pad="0";
break;
default:
pad="";
break;
}
return String(s)+pad+" "+_57;
},_CanonicalSIUnitsInner:function(_5b){
var s=Number(_5b);
var _5d="B";
var cnt=0;
while(s>1024){
s/=1024;
cnt++;
}
switch(cnt){
default:
_5d="B";
break;
case 0:
_5d="B";
break;
case 1:
_5d="KiB";
break;
case 2:
_5d="MiB";
break;
case 3:
_5d="GiB";
break;
case 4:
_5d="TiB";
break;
case 5:
_5d="PiB";
break;
case 6:
_5d="EiB";
break;
case 7:
_5d="ZiB";
break;
case 8:
_5d="YiB";
break;
}
s=Math.round(s*100)/100;
var pad="";
switch(String(s-Math.floor(s)).length){
case 0:
pad="0.00";
break;
case 1:
pad=".00";
break;
case 2:
pad="00";
break;
case 3:
pad="0";
break;
default:
pad="";
break;
}
return [String(s)+pad,_5d];
},Format:function(_60){
var fmt=_60[0];
for(var i=1;i<_60.length;i++){
fmt=fmt.replace("%s",_60[i]);
}
return fmt;
}};
STK.UserAgent={_version:-1,_agent:"",_DoDetect:function(){
var ua=navigator.userAgent.toLowerCase();
var _64;
_64=ua.match(/msie\s(\d+|\d+\.\d+).*?win/);
if(_64!=null){
STK.UserAgent._agent="Explorer";
STK.UserAgent._version=Number(_64[1]);
return;
}
_64=ua.match(/applewebkit/);
if(_64!=null){
STK.UserAgent._agent="WebKit";
return;
}
_64=ua.match(/khtml/);
if(_64!=null){
STK.UserAgent._agent="KHTML";
return;
}
_64=ua.match(/opera/);
if(_64!=null){
STK.UserAgent._agent="Opera";
return;
}
_64=ua.match(/gecko/);
if(_64!=null){
STK.UserAgent._agent="Gecko";
return;
}
},IsExplorer:function(){
if(STK.UserAgent._agent.length==0){
STK.UserAgent._DoDetect();
}
return STK.UserAgent._agent=="Explorer";
},IsExplorer6:function(){
if(STK.UserAgent._agent.length==0){
STK.UserAgent._DoDetect();
}
return (STK.UserAgent._agent=="Explorer")&&(Math.floor(STK.UserAgent._version)==6);
},IsExplorer7:function(){
if(STK.UserAgent._agent.length==0){
STK.UserAgent._DoDetect();
}
return (STK.UserAgent._agent=="Explorer")&&(Math.floor(STK.UserAgent._version)==7);
},IsGecko:function(){
if(STK.UserAgent._agent.length==0){
STK.UserAgent._DoDetect();
}
return (STK.UserAgent._agent=="Gecko");
},IsKhtml:function(){
if(STK.UserAgent._agent.length==0){
STK.UserAgent._DoDetect();
}
return (STK.UserAgent._agent=="KHTML");
},IsOpera:function(){
if(STK.UserAgent._agent.length==0){
STK.UserAgent._DoDetect();
}
return (STK.UserAgent._agent=="Opera");
},IsWebKit:function(){
if(STK.UserAgent._agent.length==0){
STK.UserAgent._DoDetect();
}
return (STK.UserAgent._agent=="WebKit");
}};
if(STK.UserAgent.IsExplorer()){
STK._requeue_time=1;
}
if(!STK.Engines.Html){
STK.Engines.Html={};
}
STK.Engines.Html.win=window;
STK.Engines.Html.doc=document;
STK.Engines.Html.Element={Base:function(_1){
this.Destroy=function(){
this.Remove();
delete this.dom_elmt;
this.dom_elmt=null;
};
this.Add=function(_2){
if(_2==undefined){
_2=STK.Engine.Doc.GetRootElement();
}
_2.dom_elmt.appendChild(this.dom_elmt);
};
this.Remove=function(){
var _3=this.dom_elmt.parentNode;
if(!_3){
return;
}
_3.removeChild(this.dom_elmt);
};
this.Show=function(){
switch(this.GetAttribute("tagName").tolower()){
default:
case "div":
this.SetStyle("display","block");
break;
case "span":
this.SetStyle("display","inline");
break;
case "table":
this.SetStyle("display","table");
break;
}
};
this.Hide=function(){
this.SetStyle("display","none");
};
this.GetAttribute=function(_4){
return this.dom_elmt[_4];
};
this.SetAttribute=function(_5,_6){
var _7=this.dom_elmt[_5];
this.dom_elmt[_5]=_6;
return _7;
};
this.SetStyles=function(_8){
for(var s in _8){
this.SetStyle(s,_8[s]);
}
};
this.SetStyle=function(_a,_b){
this.dom_elmt.style[_a]=_b;
};
this.OverrideHandler=function(_c,_d){
this.dom_elmt[_c]=_d;
};
this.SetContent=function(_e){
this.dom_elmt.innerHTML=_e;
};
this.GetSize=function(){
var _f=(this.dom_elmt.offsetWidth===undefined)?0:this.dom_elmt.offsetWidth;
var _10=(this.dom_elmt.offsetHeight===undefined)?0:this.dom_elmt.offsetHeight;
return {"w":_f,"h":_10};
};
if(_1!==undefined){
this.dom_elmt=STK.Engines.Html.Doc.Get().dom_elmt.createElement(_1);
this.dom_elmt.style.display="none";
}
},Wrapper:function(_11){
STK.Engines.Html.Element.Base.apply(this);
this.dom_elmt=_11;
},Span:function(){
STK.Engines.Html.Element.Base.apply(this,["span"]);
}};
STK.Engines.Html.Doc={_doc:new STK.Engines.Html.Element.Wrapper(STK.Engines.Html.doc),_root:new STK.Engines.Html.Element.Wrapper(STK.Engines.Html.doc.getElementsByTagName("body")[0]),Get:function(){
return STK.Engines.Html.Doc._doc;
},RootElement:function(){
return STK.Engines.Html.Doc._root;
},GetScreenSize:function(){
var sz={w:750,h:550};
if(self.innerWidth){
sz.w=self.innerWidth;
sz.h=self.innerHeight;
}else{
if(STK.Engines.Html.doc.documentElement&&STK.Engines.Html.doc.documentElement.clientHeight){
sz.w=STK.Engines.Html.doc.documentElement.clientWidth;
sz.h=STK.Engines.Html.doc.documentElement.clientHeight;
}else{
if(STK.Engines.Html.doc.body){
sz.w=STK.Engines.Html.doc.body.clientWidth;
sz.h=STK.Engines.Html.doc.body.clientHeight;
}
}
}
return sz;
},GetScreenOffset:function(){
var _13={x:0,y:0};
if(STK.Engines.Html.win.pageXOffset!=undefined){
_13.x=STK.Engines.Html.win.pageXOffset;
_13.y=STK.Engines.Html.win.pageYOffset;
}
return _13;
},GetSize:function(){
var _14={w:0,h:0};
var _15;
if(STK.Engines.Html.doc.width){
_15=STK.Engines.Html.doc.width;
}else{
if(STK.Engines.Html.doc.body&&STK.Engines.Html.doc.body.offsetWidth){
_15=STK.Engines.Html.doc.body.offsetWidth;
}else{
if(STK.Engines.Html.doc.documentElement&&STK.Engines.Html.doc.documentElement.offsetWidth){
_15=STK.Engines.Html.doc.documentElement.offsetWidth;
}else{
_15=0;
}
}
}
var _16;
if(STK.Engines.Html.doc.height){
_16=STK.Engines.Html.doc.height;
}else{
if(STK.Engines.Html.doc.body&&STK.Engines.Html.doc.body.offsetHeight){
_16=STK.Engines.Html.doc.body.offsetHeight;
}else{
if(STK.Engines.Html.doc.documentElement&&STK.Engines.Html.doc.documentElement.offsetHeight){
_16=STK.Engines.Html.doc.documentElement.offsetHeight;
}else{
_16=0;
}
}
}
var _17;
if(STK.Engines.Html.doc.documentElement&&STK.Engines.Html.doc.documentElement.clientWidth){
_17=STK.Engines.Html.doc.documentElement.clientWidth;
}else{
if(STK.Engines.Html.doc.body&&STK.Engines.Html.doc.body.clientWidth){
_17=STK.Engines.Html.doc.body.clientWidth;
}else{
_17=0;
}
}
var _18;
if(STK.Engines.Html.doc.body&&STK.Engines.Html.doc.body.clientHeight){
_18=STK.Engines.Html.doc.body.clientHeight;
}else{
if(STK.Engines.Html.doc.documentElement&&STK.Engines.Html.doc.documentElement.clientHeight){
_18=STK.Engines.Html.doc.documentElement.clientHeight;
}else{
_18=0;
}
}
_14.w=Math.max(_17,_15);
_14.h=Math.max(_18,_16);
return _14;
}};
STK.Engines.Html.Event=function(_19){
this._event;
this.Location=function(){
return {"x":this.x(),"y":this.y()};
};
this.x=function(){
var _1a=0;
if(this._event.pageX){
_1a=this._event.pageX;
}else{
if(this._event.clientX){
if(!STK.Engines.Html.doc.body){
_1a=this._event.clientX;
}else{
_1a=this._event.clientX+STK.Engines.Html.doc.body.scrollLeft;
}
}
}
return _1a;
};
this.y=function(){
var _1b=0;
if(this._event.pageY){
_1b=this._event.pageY;
}else{
if(this._event.clientY){
if(!STK.Engines.Html.doc.body){
_1b=this._event.clientY;
}else{
_1b=this._event.clientY+STK.Engines.Html.doc.body.scrollTop;
}
}
}
return _1b;
};
this.IsBubbling=function(){
if(!this._event||!this._event.type){
return true;
}
if(this._event.eventPhase==3){
return true;
}
return false;
};
this.Target=function(){
var _1c=false;
if(this._event.target!=undefined){
_1c=this._event.target;
}else{
if(this._event.srcElement!=undefined){
_1c=this._event.srcElement;
}
}
if(_1c&&_1c.nodeType==3){
_1c=_1c.parentNode;
}
return _1c;
};
this.IsChar=function(){
return true;
};
this.GetChar=function(){
if(this._event.shiftKey){
return String.fromCharCode(this._event.keyCode);
}else{
return String.fromCharCode(this._event.keyCode).toLowerCase();
}
};
this.CharCode=function(){
return this._event.keyCode;
};
this.StopPropagation=function(){
if(this._event.stopPropagation){
this._event.stopPropagation();
}else{
this._event.cancelBubble=true;
}
};
this.PreventDefault=function(){
if(this._event.preventDefault){
this._event.preventDefault();
}else{
this._event.returnValue=false;
}
};
this.StopAll=function(){
this.StopPropagation();
this.PreventDefault();
};
this._event=_19;
if(this._event==null){
this._event=STK.Engines.Html.win.event;
}
};
STK.Engines.Html.Event.Register=function(_1d,_1e,_1f,_20){
if(_1d.addEventListener){
if(!_20){
_20=false;
}
_1d.addEventListener(_1e,_1f,_20);
}else{
_1d.attachEvent("on"+_1e,_1f);
}
};
STK.Engines.Html.Event.Unregister=function(_21,_22,_23,_24){
if(_21.removeEventListener){
if(!_24){
_24=false;
}
_21.removeEventListener(_22,_23,_24);
}else{
_21.detachEvent("on"+_22,_23);
}
};
STK.Engines.Html.Style={_icon_factories:[],AddIconFactory:function(_25){
STK.Engines.Html.Style._icon_factories.push(_25);
},LookupIconSet:function(_26){
if(STK.Engines.Html.Style._icon_factories.length==0){
STK.Engines.Html.Style.AddIconFactory(STK.IconFactory.CreateDefaultFactory());
}
for(var i in STK.Engines.Html.Style._icon_factories){
var cur=STK.Engines.Html.Style._icon_factories[i].Lookup(_26);
if(cur){
return cur;
}
}
return undefined;
},GetRootElement:function(){
var _29=STK.Engines.Html.doc.getElementsByTagName("body");
if(!_29){
return null;
}
return _29[0];
},GetDocument:function(){
return STK.Engines.Html.doc;
},GetElement:function(id){
if(id==undefined||String(id).length==0){
return undefined;
}
return STK.Engines.Html.doc.getElementById(id);
},PutPageElement:function(e){
var _2c=STK.Engines.Html.doc.getElementsByTagName("body")[0];
_2c.appendChild(e);
},PullPageElement:function(e){
if(!e){
return;
}
var _2e=e.parentNode;
if(!_2e){
return;
}
_2e.removeChild(e);
},CreateDiv:function(){
var e=STK.Engines.Html.doc.createElement("div");
e.id=STK.Engine.Style._GetUniqueID();
return e;
},CreateSpan:function(){
var e=STK.Engines.Html.doc.createElement("span");
e.id=STK.Engine.Style._GetUniqueID();
return e;
},CreateTable:function(){
var e=STK.Engines.Html.doc.createElement("table");
e.id=STK.Engine.Style._GetUniqueID();
return e;
},CreateInput:function(){
var e=STK.Engines.Html.doc.createElement("input");
e.id=STK.Engine.Style._GetUniqueID();
return e;
},CreateTextArea:function(){
var e=STK.Engines.Html.doc.createElement("textarea");
e.id=STK.Engine.Style._GetUniqueID();
return e;
},CreateImage:function(){
var e;
if(STK.UserAgent.IsWebKit()||STK.UserAgent.IsKhtml()){
e=STK.Engines.Html.doc.createElement("img");
}else{
e=new Image();
}
e.id=STK.Engine.Style._GetUniqueID();
return e;
},CreateSelect:function(){
var e=STK.Engines.Html.doc.createElement("select");
e.id=STK.Engine.Style._GetUniqueID();
return e;
},CreateOption:function(){
var e=STK.Engines.Html.doc.createElement("option");
e.id=STK.Engine.Style._GetUniqueID();
return e;
},DestroyElement:function(e){
this.PullPageElement(e);
delete e;
},GetElementPos:function(e){
var pos={x:0,y:0};
if(!e){
return pos;
}
if(e.offsetParent){
while(e&&e.offsetParent){
pos.x+=e.offsetLeft;
pos.y+=e.offsetTop;
e=e.offsetParent;
}
}else{
if(e.x){
pos.x+=e.x;
pos.y+=e.y;
}
}
return pos;
},GetElementPosRelative:function(e,_3b){
var pos={x:0,y:0};
if(!e){
return pos;
}
if(!_3b){
return pos;
}
if(!_3b.id){
return pos;
}
if(e.offsetParent){
while(e&&e.offsetParent&&(!e.id||e.id!=_3b.id)){
pos.x+=e.offsetLeft;
pos.y+=e.offsetTop;
e=e.offsetParent;
}
}
return pos;
},GetElementSize:function(e){
var _3e=(e.offsetWidth===undefined)?0:e.offsetWidth;
var _3f=(e.offsetHeight===undefined)?0:e.offsetHeight;
return {w:_3e,h:_3f};
},GetElementWidth:function(e){
return (e.offsetWidth===undefined)?0:e.offsetWidth;
},GetElementHeight:function(e){
return (e.offsetHeight===undefined)?0:e.offsetHeight;
},SetDisplayTable:function(e){
if(!e){
return;
}
if(STK.UserAgent.IsExplorer()){
e.style.display="block";
}else{
e.style.display="table";
}
},SetDisplayTableRow:function(e){
if(!e){
return;
}
if(STK.UserAgent.IsExplorer()){
e.style.display="";
}else{
e.style.display="table-row";
}
},SetDisplayTableCell:function(e){
if(!e){
return;
}
if(STK.UserAgent.IsExplorer()){
e.style.display="block";
}else{
e.style.display="table-cell";
}
},AppendChild:function(_45,_46){
if(!_45){
this.PutPageElement(_46);
_46.top_level=true;
}else{
_45.appendChild(_46);
_46.top_level=false;
}
},RemoveChild:function(_47){
if(_47.top_level){
this.PullPageElement(_47);
}else{
var _48=_47.parentNode;
_48.removeChild(_47);
}
},IntersectPoint:function(e,_4a){
var loc=this.GetElementPos(e);
var _4c=this.GetElementSize(e);
if(_4a.x>loc.x&&_4a.x<(loc.x+_4c.w)&&_4a.y>loc.y&&_4a.y<(loc.y+_4c.h)){
return true;
}
return false;
},_max_element:0,_GetUniqueID:function(){
var id="elem"+String(STK.Engine.Style._max_element);
STK.Engine.Style._max_element++;
return id;
}};
STK.Engines.Html.Text={_cache:{},_hit_count:0,_miss_count:0,_total:0,GetCacheHitRatio:function(){
return STK.Engines.Html.Text._hit_count/STK.Engines.Html.Text._total;
},Measure:function(str,_4f){
STK.Engines.Html.Text._total+=1;
var key="";
if(_4f!=undefined&&_4f.style!=undefined){
key=_4f.style.font;
}
if(key.length==0){
key="default";
}
if(str.length<=64){
if(STK.Engines.Html.Text._cache[key]!=undefined){
if(STK.Engines.Html.Text._cache[key][str]!=undefined){
STK.Engines.Html.Text._hit_count+=1;
return {"w":STK.Engines.Html.Text._cache[key][str]["w"],"h":STK.Engines.Html.Text._cache[key][str]["h"]};
}
}
}
STK.Engines.Html.Text._miss_count+=1;
var doc=STK.Engine.Style;
var e=doc.CreateSpan();
if(_4f!==undefined){
e.style.fontFamily=_4f.style.fontFamily;
e.style.fontSize=_4f.style.fontSize;
e.style.fontSizeAdjust=_4f.style.fontSizeAdjust;
e.style.fontStretch=_4f.style.fontStretch;
e.style.fontStyle=_4f.style.fontStyle;
e.style.fontVariant=_4f.style.fontVariant;
e.style.fontWeight=_4f.style.fontWeight;
}
e.innerHTML=str;
e.style.position="absolute";
e.style.visibility="hidden";
doc.PutPageElement(e);
var sz=doc.GetElementSize(e);
doc.PullPageElement(e);
delete e;
if(str.length<=64){
if(STK.Engines.Html.Text._cache[key]==undefined){
STK.Engines.Html.Text._cache[key]={};
}
STK.Engines.Html.Text._cache[key][str]=sz;
}
return {"w":sz.w,"h":sz.h};
},Ellipsize:function(w,str,_56){
var _57=STK.Engines.Html.Text.Measure(str,_56);
if(_57.w<w){
return str;
}
var tmp="...";
var _59=STK.Engines.Html.Text.Measure(tmp,_56);
if(_59.w>w){
tmp="..";
_59=STK.Engines.Html.Text.Measure(tmp,_56);
if(_59.w>w){
tmp=".";
_59=STK.Engines.Html.Text.Measure(tmp,_56);
if(_59.w>w){
return "";
}
return tmp;
}
return tmp;
}
var sub=str;
var _5b=_57.w;
var _5c=_5b+_59.w;
while(_5c>=w&&sub.length>0){
var _5d=sub.charAt(sub.length-1);
sub=sub.slice(0,sub.length-1);
var _5e=STK.Engines.Html.Text.Measure(_5d,_56);
_5b-=_5e.w;
_5c=_5b+_59.w;
}
return sub+"...";
},Wrap:function(w,str,_61){
}};
STK.Engines.Html.Timer={Start:function(_62,_63){
return STK.Engines.Html.win.setTimeout(_62,_63);
},Stop:function(id){
STK.Engines.Html.win.clearTimeout(id);
},StartRepeating:function(_65,_66){
return STK.Engines.Html.win.setInterval(_65,_66);
},StopRepeating:function(id){
STK.Engines.Html.win.clearInterval(id);
},GetTime:function(){
if(STK.UserAgent.IsGecko()){
return Date.now();
}else{
return (new Date()).getTime();
}
}};
STK.Catalyst.AnimationDef=function(){
this.stk_id;
this.html_id;
this.callable;
this.interval;
};
STK.Catalyst.AnimationManager={Register:function(_1,_2){
STK.Catalyst.AnimationManager._RegisterUnloader();
var _3=new STK.Catalyst.AnimationDef();
_3.stk_id=STK.Catalyst.AnimationManager._get_id();
_3.callable=_1;
_3.interval=_2;
STK.Catalyst.AnimationManager._managed[_3.stk_id]=_3;
return _3.stk_id;
},Unregister:function(id){
if(!STK.Catalyst.AnimationManager._managed[id]){
return;
}
STK.Catalyst.AnimationManager.Stop(id);
delete STK.Catalyst.AnimationManager._managed[id];
},Start:function(id){
if(!STK.Catalyst.AnimationManager._managed[id]){
return;
}
if(STK.Catalyst.AnimationManager._managed[id].html_id){
return;
}
STK.Catalyst.AnimationManager._managed[id].html_id=STK.Engine.Timer.StartRepeating(STK.Catalyst.AnimationManager._managed[id].callable,STK.Catalyst.AnimationManager._managed[id].interval);
},Stop:function(id){
if(!STK.Catalyst.AnimationManager._managed[id]){
return;
}
if(!STK.Catalyst.AnimationManager._managed[id].html_id){
return;
}
STK.Engine.Timer.StopRepeating(STK.Catalyst.AnimationManager._managed[id].html_id);
STK.Catalyst.AnimationManager._managed[id].html_id=null;
},OnUnload:function(id){
for(var i in STK.Catalyst.AnimationManager._managed){
STK.Catalyst.HtmlAnimationManager.Stop(i);
}
},_RegisterUnloader:function(){
if(STK.UserAgent.IsGecko()&&!STK.Engines.Html.win.onunload){
STK.Engines.Html.win.onunload=STK.Catalyst.AnimationManager.Unload;
}
},_managed:{},_num_managed:0,_get_id:function(){
return "rid"+String(STK.Catalyst.AnimationManager._num_managed++);
},guard:false};
STK.AnimatorFunction={LINEAR:0};
STK.Catalyst.Animator=function(_9,_a,_b,_c){
this.interval=50;
this.func=STK.AnimatorFunction.LINEAR;
this.callback=_9;
this.context=_a;
this.userdata=_b;
this.value=0;
this.duration=1000;
if(_c){
this.duration=parseInt(_c);
}
this.on_stopped_callback=null;
this.anim_id;
var _d=this.duration;
var _e=0;
var _f=0;
var _10=0;
var _11=1;
var _12=1;
var _13=0;
var _14=0;
var _15=STK.Delegate(this,"_OnTimeout");
this.StkAnimatorSetDuration=this.SetDuration=function(_16){
this.duration=parseInt(_16);
};
this.StkAnimatorGetDuration=this.GetDuration=function(){
return this.duration;
};
this.StkAnimatorSetFunction=this.SetFunction=function(_17){
this.func=_17;
};
this.StkAnimatorSetStoppedCallback=this.SetStoppedCallback=function(_18){
this.on_stopped_callback=_18;
};
this.StkAnimatorSet=this.Set=function(_19){
STK.Log.Msg("animator","Set: "+_19);
_19=parseFloat(_19);
if(_19<0){
_19=0;
}
if(_19>1){
_19=1;
}
this.value=_19;
this.Stop();
this._Apply();
};
this.StkAnimatorGet=this.Get=function(){
return this.value;
};
this.StkAnimatorMoveTo=this.MoveTo=function(_1a){
_1a=parseFloat(_1a);
if(_1a<0){
_1a=0;
}
if(_1a>1){
_1a=1;
}
this.Stop();
_10=this.value;
_11=_1a;
_d=Math.round(Number(this.duration)*(Math.abs(this.value-_1a)));
_e=STK.Engine.Timer.GetTime();
_f=_e+_d;
_12=1;
if(_11<this.value){
_12=-1;
}
_13=0;
STK.Log.Msg("animator","Animator::MoveTo: "+this.value+" => "+_1a+" over "+_d);
this._Run();
};
this.StkAnimatorStop=this.Stop=function(){
STK.Log.Msg("animator","Animator::Stop: @ "+this.value);
STK.Catalyst.AnimationManager.Stop(this.anim_id);
if(this.on_stopped_callback){
this.on_stopped_callback();
}
};
this.StkAnimator_Run=this._Run=function(){
STK.Catalyst.AnimationManager.Start(this.anim_id);
STK.Requeue(_15);
};
this.StkAnimator_OnTimeout=this._OnTimeout=function(){
var _1b=STK.Engine.Timer.GetTime();
if(_1b>_f||this.value==_11){
this.value=_11;
this.Stop();
this._Apply();
return;
}
var _1c=((_1b-_e)/_d);
this.value=(_1c*(_11-_10))+_10;
this._Apply();
_13=_1b;
};
this.StkAnimator_Apply=this._Apply=function(){
_14=this.value;
if(this.callback){
this.callback.apply(this.context,[_14,this.userdata]);
}
};
STK.Log.CreateTarget("animator");
STK.Log.Msg("animator","Animator::constructor: Created new animator");
this.anim_id=STK.Catalyst.AnimationManager.Register(_15,this.interval);
};
STK.Catalyst.Cursor={GetPosition:function(_1d){
if(_1d&&_1d!=0){
return null;
}
return {"x":STK.Catalyst.Cursor._x,"y":STK.Catalyst.Cursor._y};
},AddListener:function(){
STK.Catalyst.Cursor._users++;
if(!STK.Catalyst.Cursor._registered){
STK.Engine.Event.Register(STK.Engine.Style.GetDocument(),"mousemove",STK.Catalyst.Cursor._OnMouseMove);
STK.Catalyst.Cursor._registered=true;
}
},RemoveListener:function(){
STK.Catalyst.Cursor._users--;
if(STK.Catalyst.Cursor._users<=0&&STK.Catalyst.Cursor._registered){
STK.Engine.Event.Unregister(STK.Engine.Style.GetDocument(),"mousemove",STK.Catalyst.Cursor._OnMouseMove);
STK.Catalyst.Cursor._registered=false;
}
},_OnMouseMove:function(e){
var _1f=new STK.Engine.Event(e);
STK.Catalyst.Cursor._x=_1f.x();
STK.Catalyst.Cursor._y=_1f.y();
return false;
},_x:0,_y:0,_registered:false,_users:0};
function StkHtmlAnimateColor(_20,_21,_22){
STK.Catalyst.Animator.apply(this);
var _23=_20;
var _24=0;
var _25=0;
var _26=0;
var _27=255;
var _28=255;
var _29=255;
var _r;
var _g;
var _b;
var _2d="backgroundColor";
this.StkHtmlAnimateColorSetColors=this.SetColors=function(_2e,_2f){
var c1=_2e.replace("#","0x");
var _31=parseInt(c1);
_24=_31>>16;
_25=(_31>>8)&255;
_26=_31&255;
var c2=_2f.replace("#","0x");
_31=parseInt(c2);
_27=_31>>16;
_28=(_31>>8)&255;
_29=_31&255;
};
this.StkHtmlAnimateColorSetProperty=this.SetProperty=function(_33){
_2d=_33;
};
this.StkHtmlAnimateColor_Apply=this._Apply=function(){
this._Interpolate();
var clr=this.GetCurrentColor();
if(typeof _23=="string"){
var e=STK.Engine.Style.GetElement(_23);
if(!e){
return;
}
this._ApplyTo(e,clr);
}else{
for(var i in _23){
var e=_23[i];
if(typeof e=="string"){
e=STK.Engine.Style.GetElement(_23[i]);
}
if(!e){
continue;
}
this._ApplyTo(e,clr);
}
}
};
this.StkHtmlAnimateColor_ApplyTo=this._ApplyTo=function(_37,clr){
_37.style[_2d]=clr;
};
this.StkHtmlAnimateColor_Interpolate=this._Interpolate=function(){
_r=((_27-_24)*this.value)+_24;
_g=((_28-_25)*this.value)+_25;
_b=((_29-_26)*this.value)+_26;
};
this.StkHtmlAnimateColorGetCurrentColor=this.GetCurrentColor=function(){
return "#"+StkHtmlAnimateColor.NumberToColorStr(_r)+StkHtmlAnimateColor.NumberToColorStr(_g)+StkHtmlAnimateColor.NumberToColorStr(_b);
};
if(_21&&_22){
this.SetColors(_21,_22);
}
}
StkHtmlAnimateColor.NumberToColorStr=function(num){
var str=Math.floor(num).toString(16);
if(str.length==1){
str="0"+str;
}
return str;
};
function StkHtmlAnimateOpacity(_3b,_3c){
STK.Catalyst.Animator.apply(this);
var _3d=_3b;
this.value=_3c;
this.StkHtmlAnimateOpacityMoveTo=this.MoveTo=function(_3e){
if(!StkHtmlAnimateOpacity.UserAgentSupportsOpacity()){
if(_3e!=0){
this.ShowTarget();
}else{
this.HideTarget();
}
return;
}
this.StkAnimatorMoveTo(_3e);
};
this.StkHtmlAnimateOpacity_Apply=this._Apply=function(){
var e=STK.Engine.Style.GetElement(_3d);
if(!e){
return;
}
if(this.value!=0){
this.ShowTarget();
}else{
this.HideTarget();
}
if(!STK.UserAgent.IsExplorer()){
e.style.opacity=String(this.value);
}else{
var o=String(Math.round(this.value*100));
e.style.filter="alpha( opacity="+o+" )";
}
};
this.StkHtmlAnimateOpacityShowTarget=this.ShowTarget=function(){
var e=STK.Engine.Style.GetElement(_3d);
if(!e){
return;
}
e.style.visibility="visible";
};
this.StkHtmlAnimateOpacityHideTarget=this.HideTarget=function(){
var e=STK.Engine.Style.GetElement(_3d);
if(!e){
return;
}
e.style.visibility="hidden";
};
this.MoveTo(this.value);
if(StkHtmlAnimateOpacity.UserAgentSupportsOpacity()){
this._Apply();
}
}
StkHtmlAnimateOpacity.UserAgentSupportsOpacity=function(){
return STK.UserAgent.IsGecko()||STK.UserAgent.IsExplorer();
};
var StkHtmlDrag={doc:STK.Engines.Html.doc,win:STK.Engines.Html.win,grip:null,Install:function(_43,_44){
if(STK.UserAgent.IsExplorer()){
_43.onmousedown=StkHtmlDrag.Start;
}else{
STK.Engine.Event.Register(_43,"mousedown",StkHtmlDrag.Start,false);
}
_43.drag=Object();
_43.drag.clip_to_range=false;
_43.drag.use_mmap_callback=false;
_43.drag.use_start_callback=false;
_43.drag.use_drag_callback=false;
_43.drag.use_end_callback=false;
if(_44!=null){
_43.drag.target=_44;
}else{
_43.drag.target=_43;
}
if(isNaN(parseInt(_43.drag.target.style.left))){
_43.drag.target.style.left="0px";
}
if(isNaN(parseInt(_43.drag.target.style.top))){
_43.drag.target.style.top="0px";
}
},Uninstall:function(_45){
if(STK.UserAgent.IsExplorer()){
_45.onmousedown=null;
}else{
STK.Engine.Event.Unregister(_45,"mousedown",StkHtmlDrag.Start,false);
}
var tmp=_45.drag;
_45.drag=null;
delete tmp;
},SetClipBounds:function(_47,_48,_49,_4a,_4b){
_47.drag.clip_to_range=true;
_47.drag.minX=_48;
_47.drag.minY=_4a;
_47.drag.maxX=_49;
_47.drag.maxY=_4b;
},SetMotionMap:function(_4c,_4d,_4e){
_4c.drag.use_mmap_callback=true;
_4c.drag.motion_map_callback=_4d;
_4c.drag.motion_map_userdata=_4e;
},SetStartCallback:function(_4f,_50,_51){
_4f.drag.use_start_callback=true;
_4f.drag.start_callback=_50;
_4f.drag.start_userdata=_51;
},SetDragCallback:function(_52,_53,_54){
_52.drag.use_drag_callback=true;
_52.drag.drag_callback=_53;
_52.drag.drag_userdata=_54;
},SetEndCallback:function(_55,_56,_57){
_55.drag.use_end_callback=true;
_55.drag.end_callback=_56;
_55.drag.end_userdata=_57;
},Start:function(_58){
var _59=StkHtmlDrag.grip=this;
var _5a=_59.drag.target;
e=new STK.Engine.Event(_58);
var x=parseInt(_5a.style.left);
var y=parseInt(_5a.style.top);
if(_59.drag.start_callback){
var ret=_59.drag.start_callback(x,y,_59.drag.start_userdata);
if(ret===false){
return false;
}
}
_59.offset_x=e.x()-x;
_59.offset_y=e.y()-y;
if(_59.drag.minX!=null){
_59.drag.minMouseX=e.x()-x+_59.drag.minX;
_59.drag.maxMouseX=_59.drag.minMouseX+_59.drag.maxX-_59.drag.minX;
_59.drag.minMouseY=e.y()-y+_59.drag.minY;
_59.drag.maxMouseY=_59.drag.minMouseY+_59.drag.maxY-_59.drag.minY;
}
STK.Engine.Event.Register(STK.Engine.Style.GetDocument(),"mousemove",StkHtmlDrag.Drag);
STK.Engine.Event.Register(STK.Engine.Style.GetDocument(),"mouseup",StkHtmlDrag.End);
e.StopAll();
return false;
},Drag:function(e){
var _5f=e;
if(!_5f){
_5f=StkHtmlDrag.win.event;
}
if(!_5f){
return;
}
var mx=0;
var my=0;
if(_5f.pageX){
mx=_5f.pageX;
my=_5f.pageY;
}else{
if(_5f.clientX){
if(!StkHtmlDrag.doc.body){
mx=_5f.clientX;
my=_5f.clientY;
}else{
mx=_5f.clientX+StkHtmlDrag.doc.body.scrollLeft;
my=_5f.clientY+StkHtmlDrag.doc.body.scrollTop;
}
}
}
var _62=StkHtmlDrag.grip;
var _63=_62.drag.target;
if(_62.drag.clip_to_range){
if(mx<_62.drag.minMouseX){
mx=_62.drag.minMouseX;
}
if(mx>_62.drag.maxMouseX){
mx=_62.drag.maxMouseX;
}
if(my<_62.drag.minMouseY){
my=_62.drag.minMouseY;
}
if(my>_62.drag.maxMouseY){
my=_62.drag.maxMouseY;
}
}
var nx=mx-_62.offset_x;
var ny=my-_62.offset_y;
if(_62.drag.use_mmap_callback){
var _66=_62.drag.motion_map_callback(nx,ny,_62.drag.motion_map_userdata);
nx=_66.x;
ny=_66.y;
}
if(_62.drag.use_drag_callback){
_62.drag.drag_callback(nx,ny,mx,my,_62.drag.drag_userdata);
}else{
_63.style.left=nx+"px";
_63.style.top=ny+"px";
}
if(_5f.stopPropagation){
_5f.stopPropagation();
}else{
_5f.cancelBubble=true;
}
return false;
},End:function(){
STK.Engine.Event.Unregister(STK.Engine.Style.GetDocument(),"mousemove",StkHtmlDrag.Drag);
STK.Engine.Event.Unregister(STK.Engine.Style.GetDocument(),"mouseup",StkHtmlDrag.End);
var _67=StkHtmlDrag.grip;
var _68=_67.drag.target;
if(_67.drag.end_callback){
_67.drag.end_callback(parseInt(_68.style.left),parseInt(_68.style.top),_67.drag.end_userdata);
}
return true;
}};
var StkHtmlHeldAnimationHelper={_timeout:null,_position:1,_stepsize:1,_timedelta:200,_timescale:0.75,_direction:1,_callback:false,_userdata:null,_Interval:function(){
StkHtmlHeldAnimationHelper._position+=(StkHtmlHeldAnimationHelper._stepsize*StkHtmlHeldAnimationHelper._direction);
var ret=StkHtmlHeldAnimationHelper._callback(StkHtmlHeldAnimationHelper._position,StkHtmlHeldAnimationHelper._userdata);
if(ret===false){
return;
}
StkHtmlHeldAnimationHelper._timeout=STK.Engine.Timer.Start(StkHtmlHeldAnimationHelper._Interval,Number(StkHtmlHeldAnimationHelper._timedelta));
StkHtmlHeldAnimationHelper._timedelta*=StkHtmlHeldAnimationHelper._timescale;
if(StkHtmlHeldAnimationHelper._timedelta<15){
StkHtmlHeldAnimationHelper._timedelta=15;
}
},Start:function(_6a,_6b,_6c,_6d,_6e,_6f,_70){
STK.Log.Msg("held-animation","HeldAnimation::Start");
StkHtmlHeldAnimationHelper._callback=_6a;
StkHtmlHeldAnimationHelper._userdata=_6b;
StkHtmlHeldAnimationHelper._position=1;
if(_6c!==undefined){
StkHtmlHeldAnimationHelper._position=Number(_6c);
}
StkHtmlHeldAnimationHelper._stepsize=1;
if(_6d){
StkHtmlHeldAnimationHelper._stepsize=Number(_6d);
}
StkHtmlHeldAnimationHelper._direction=1;
if(_6e){
StkHtmlHeldAnimationHelper._direction=Number(_6e);
}
StkHtmlHeldAnimationHelper._timedelta=200;
if(_6f){
StkHtmlHeldAnimationHelper._timedelta=Number(_6f);
}
StkHtmlHeldAnimationHelper._timescale=0.75;
if(_70){
StkHtmlHeldAnimationHelper._timescale=Number(_70);
}
StkHtmlHeldAnimationHelper._Interval();
},Stop:function(){
STK.Log.Msg("held-animation","HeldAnimation::Stop");
if(StkHtmlHeldAnimationHelper._timeout){
STK.Engine.Timer.Stop(StkHtmlHeldAnimationHelper._timeout);
StkHtmlHeldAnimationHelper._timeout=null;
}
}};
STK.Theme.Misc=function(){
this.StkMiscThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
var _1=this._frame.parentNode;
if(!_1){
return;
}
var _2=this.GetData("xalign");
var _3=this.GetData("yalign");
var _4=this.GetData("xpad");
var _5=this.GetData("ypad");
if(_2<0.5){
_1.style.textAlign="left";
}else{
if(_2>0.5){
_1.style.textAlign="right";
}else{
_1.style.textAlign="center";
}
}
if(_3<0.5){
_1.style.verticalAlign="top";
}else{
if(_3>0.5){
_1.style.verticalAlign="bottom";
}else{
_1.style.verticalAlign="middle";
}
}
this._frame.style.paddingLeft=_4+"px";
this._frame.style.paddingRight=_4+"px";
this._frame.style.paddingTop=_5+"px";
this._frame.style.paddingBottom=_5+"px";
};
};
STK.Theme.Widget=function(){
this._frame=null;
this.StkWidgetThemeHide=this.ThemeHide=function(){
if(!this._frame){
return;
}
this._frame.style.display="none";
};
this.StkWidgetThemeShow=this.ThemeShow=function(){
if(!this._frame){
return;
}
switch(this._frame.tagName){
case "SPAN":
case "span":
this._frame.style.display="inline";
break;
case "TABLE":
case "table":
this.style.SetDisplayTable(this._frame);
break;
default:
this._frame.style.display="block";
break;
}
};
this.StkWidgetThemeIsMapped=this.ThemeIsMapped=function(){
return this._frame!=null;
};
this.StkWidgetThemeUnmap=this.ThemeUnmap=function(){
if(!this._frame){
return;
}
this.style.RemoveChild(this._frame);
this.style.DestroyElement(this._frame);
delete this._frame;
};
this.StkWidgetThemeMeasure=this.ThemeMeasure=function(){
if(!this._frame){
return {"w":0,"h":0};
}
return this.style.GetElementSize(this._frame);
};
};
STK.Theme.Button=function(){
var _6;
this._currentstyle="normal";
this._laststyle="normal";
var _7;
this.StkButtonThemeMap=this.ThemeMap=function(_8){
if(this._frame){
return _6;
}
this._frame=this.style.CreateTable();
this._frame.cellPadding="0px";
this._frame.cellSpacing="0px";
this._frame.widget_name=this.Name();
this._frame.style.cursor="pointer";
this._frame.style.display="none";
STK.Engine.Event.Register(this._frame,"mouseover",STK.Delegate(this,"_ThemeOnButtonMouseOver"));
STK.Engine.Event.Register(this._frame,"mouseout",STK.Delegate(this,"_ThemeOnButtonMouseOut"));
STK.Engine.Event.Register(this._frame,"mousedown",STK.Delegate(this,"_ThemeOnButtonMouseDown"));
STK.Engine.Event.Register(this._frame,"mouseup",STK.Delegate(this,"_ThemeOnButtonMouseUp"));
STK.Engine.Event.Register(this._frame,"click",STK.Delegate(this,"_ThemeOnButtonClick"));
var r=this._frame.insertRow(-1);
_6=r.insertCell(-1);
_6.id="_button_"+this.Name();
_6.style.backgroundColor="#61a1ff";
_6.style.borderTop="1px solid #5696df";
_6.style.borderLeft="1px solid #1970d3";
_6.style.borderRight="1px solid #1970d3";
_6.style.borderBottom="1px solid #0056ca";
_6.style.fontFamily="arial, sans-serif";
_6.style.fontWeight="bold";
_6.style.fontSize="10pt";
_6.align="center";
if(!STK.UserAgent.IsExplorer6()){
_6.style.backgroundImage="url("+STK.Path.FindImage("/theme/Plain/button/button/shine")+")";
_6.style.backgroundRepeat="repeat-x";
}
if(STK.UserAgent.IsGecko()){
_6.style.setProperty("-moz-border-radius",parseInt(this.GetData("border-radius"))+"px","");
}
this.style.AppendChild(_8,this._frame);
_7=new StkHtmlAnimateColor(_6.id,"#61a1ff","#61a1ff");
_7.SetDuration(300);
_7.Set(1);
this.ThemeUpdate();
return _6;
};
this.StkButtonThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame||!_6){
return;
}
if(this.GetData("sensitive")){
this._currentstyle="normal";
this._frame.style.cursor="pointer";
}else{
this._currentstyle="inactive";
this._frame.style.cursor="default";
}
var _a=parseInt(this.GetData("width_request"));
var _b=parseInt(this.GetData("height_request"));
if(_a>0){
this._frame.style.width=String(_a)+"px";
}else{
this._frame.style.width="";
}
if(_b>0){
this._frame.style.height=String(_b)+"px";
}else{
this._frame.style.height="";
}
_6.style.padding=this.GetData("inner-border")+"px";
this._UpdateBorderStyle();
};
this.StkButtonThemeMeasure=this.ThemeMeasure=function(){
var w=0;
var h=0;
var _e=parseInt(this.GetData("width_request"));
var _f=parseInt(this.GetData("height_request"));
if(_e>0){
w=_e;
}
if(_f>0){
h=_f;
}
innerborder=2*parseInt(this.GetData("inner-border"));
w+=innerborder;
h+=innerborder;
w+=2;
h+=2;
return {"w":w,"h":h};
};
this.StkButtonThemeReallocate=this.ThemeReallocate=function(w,h){
this._frame.style.width=String(w)+"px";
this._frame.style.height=String(h)+"px";
};
this.StkButtonThemeGetChildArea=this.ThemeGetChildArea=function(_12){
return _6;
};
this.StkButtonTheme_UpdateBorderStyle=this._UpdateBorderStyle=function(){
if(!this._frame){
return;
}
if(!_6){
return;
}
_7.SetColors(_7.GetCurrentColor(),STK.Theme.Button._styles[this._currentstyle].color);
if(this._currentstyle=="hover"&&this._laststyle!="active"){
_7.Set(1);
}else{
if(this._currentstyle=="active"){
_7.Set(1);
}else{
_7.Set(0);
_7.MoveTo(1);
}
}
_6.style.borderTop="1px solid "+STK.Theme.Button._styles[this._currentstyle].border.top;
_6.style.borderBottom="1px solid "+STK.Theme.Button._styles[this._currentstyle].border.bottom;
_6.style.borderLeft="1px solid "+STK.Theme.Button._styles[this._currentstyle].border.left;
_6.style.borderRight="1px solid "+STK.Theme.Button._styles[this._currentstyle].border.right;
this._laststyle=this._currentstyle;
};
this.StkButtonTheme_ThemeOnButtonClick=this._ThemeOnButtonClick=function(_13){
if(this.GetData("sensitive")==false){
return;
}
this.Clicked(_13);
this._UpdateBorderStyle();
};
this.StkButtonTheme_ThemeOnButtonMouseDown=this._ThemeOnButtonMouseDown=function(_14){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="active";
this.Pressed();
}
this._UpdateBorderStyle();
};
this.StkButtonTheme_ThemeOnButtonMouseUp=this._ThemeOnButtonMouseUp=function(_15){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="hover";
this.Released();
}
this._UpdateBorderStyle();
};
this.StkButtonTheme_ThemeOnButtonMouseOver=this._ThemeOnButtonMouseOver=function(_16){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="hover";
this.Enter();
}
this._UpdateBorderStyle();
};
this.StkButtonTheme_ThemeOnButtonMouseOut=this._ThemeOnButtonMouseOut=function(_17){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="normal";
this.Leave();
}
this._UpdateBorderStyle();
};
};
STK.Theme.Button._styles={normal:{color:"#61a1ff",border:{top:"#76b6df",bottom:"#287df2",left:"#348bed",right:"#2e85e8"}},active:{color:"#a1cff1",border:{top:"#b6e4d1",bottom:"#68abe4",left:"#74b9df",right:"#6eb3da"}},hover:{color:"#81c1ff",border:{top:"#96e6d1",bottom:"#489de4",left:"#54abdf",right:"#4ea5da"}},inactive:{color:"#888888",border:{top:"#8b8b8b",bottom:"#646464",left:"#6C6C6C",right:"#666666"}}};
STK.Theme.CheckButton=function(){
this._input_type="checkbox";
this._input=null;
this._content_area=null;
this.StkCheckButtonMap=this.ThemeMap=function(_18){
this._input=this.style.CreateInput();
this._input.type=this._input_type;
this._frame=this.style.CreateTable();
this._frame.style.display="none";
this._frame.cellPadding=0;
this._frame.cellSpacing=0;
STK.Engine.Event.Register(this._frame,"mouseover",STK.Delegate(this,"_ThemeOnButtonMouseOver"));
STK.Engine.Event.Register(this._frame,"mouseout",STK.Delegate(this,"_ThemeOnButtonMouseOut"));
STK.Engine.Event.Register(this._frame,"mousedown",STK.Delegate(this,"_ThemeOnButtonMouseDown"));
STK.Engine.Event.Register(this._frame,"mouseup",STK.Delegate(this,"_ThemeOnButtonMouseUp"));
STK.Engine.Event.Register(this._frame,"click",STK.Delegate(this,"_ThemeOnButtonClick"));
var row=this._frame.insertRow(-1);
var _1a=row.insertCell(-1);
_1a.appendChild(this._input);
this._content_area=row.insertCell(-1);
this.style.AppendChild(_18,this._frame);
this.ThemeUpdate();
return this._content_area;
};
this.StkCheckButtonThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame||!this._input||!this._content_area){
return;
}
if(this.GetData("sensitive")){
this._input.disabled=false;
this._frame.style.cursor="pointer";
}else{
this._input.disabled=true;
this._frame.style.cursor="default";
}
var _1b=parseInt(this.GetData("width_request"));
var _1c=parseInt(this.GetData("height_request"));
if(_1b>0){
this._frame.style.width=String(_1b)+"px";
}else{
this._frame.style.width="";
}
if(_1c>0){
this._frame.style.height=String(_1c)+"px";
}else{
this._frame.style.height="";
}
if(this._toggle_state){
this._input.checked="checked";
}else{
this._input.checked="";
}
};
this.StkCheckButtonThemeGetChildArea=this.ThemeGetChildArea=function(_1d){
return this._content_area;
};
this.StkCheckButtonThemeMeasure=this.ThemeMeasure=function(_1e){
return {"w":20,"h":23-_1e.h};
};
this.StkCheckButtonTheme_UpdateBorderStyle=this._UpdateBorderStyle=function(){
};
};
STK.Theme.RadioButton=function(){
this._input_type="radio";
};
STK.Theme.Button._styles["active-on"]={color:"#335033",border:{top:"#76b6df",bottom:"#287df2",left:"#348bed",right:"#2e85e8"}};
STK.Theme.Button._styles["hover-on"]={color:"#0aac21",border:{top:"#76b6df",bottom:"#287df2",left:"#348bed",right:"#2e85e8"}};
STK.Theme.Button._styles["normal-on"]={color:"#48f448",border:{top:"#76b6df",bottom:"#287df2",left:"#348bed",right:"#2e85e8"}};
STK.Theme.Button._styles["inactive-on"]={color:"#AAAAAA",border:{top:"#8b8b8b",bottom:"#646464",left:"#6C6C6C",right:"#666666"}};
STK.Theme.ToggleButton=function(){
this.StkToggleButtonTheme_UpdateBorderStyle=this._UpdateBorderStyle=function(){
if(this._toggle_state&&this._currentstyle.search(/-on$/)==-1){
this._currentstyle+="-on";
}
if(!this._toggle_state&&this._currentstyle.search(/-on$/)!=-1){
this._currentstyle=this._currentstyle.replace(/-on$/,"");
}
this.StkButtonTheme_UpdateBorderStyle();
};
};
STK.Theme.CellRenderer=function(){
this.StkCellRendererThemeRender=this.ThemeRender=function(_1f,_20,_21){
};
this.StkCellRendererThemeUpdate=this.ThemeUpdate=function(_22,_23,_24){
if(!_22){
return;
}
};
this._ThemeSetBackgroundColor=function(_25,_26,_27){
return;
};
};
STK.Theme.CellRendererPixbuf=function(){
this.StkCellRendererPixbufThemeRender=this.ThemeRender=function(_28,_29,_2a){
var img=this.style.CreateImage();
img.src=STK.Theme.CellRendererPixbuf._blank_src;
_28.appendChild(img);
return img;
};
this.StkCellRendererPixbufThemeUpdate=this.ThemeUpdate=function(_2c,_2d,_2e){
var w=16;
var h=16;
var _31=this.GetData("width");
if(_31){
_w=_2d.GetValue(_31);
if(_w!=undefined){
w=_w;
}
}
var _32=this.GetData("height");
if(_32){
_h=_2d.GetValue(_32);
if(_h!=undefined){
h=_h;
}
}
_2c.width=w;
_2c.height=h;
_2c.parentNode.style.width=(w+2)+"px";
_2c.parentNode.style.height=(h+2)+"px";
var _33=this.GetData("pixbuf");
if(_33){
var _34=_2d.GetValue(_33);
if(_34!=undefined&&_34.src){
_2c.src=_34.src;
}
return;
}
var _35=this.GetData("icon-name");
if(_35){
var _36=_2d.GetValue(_35);
if(_36!=undefined){
_2c.src=_36;
}
return;
}
var _37=this.GetData("stock-id");
if(_37){
var _38=_2d.GetValue(_37);
if(_38!=undefined){
var _39=this.GetData("stock-size");
if(typeof _39=="string"){
_39=Number(_2d.GetValue(_39));
if(_39==0){
_39=2;
}
}
var _3a=this.style.LookupIconSet(_38);
if(_3a){
_2c.src=_3a.GetLocation(_39);
}
}
}
};
this.StkCellRendererPixbufThemeMeasure=this.ThemeMeasure=function(_3b,_3c,_3d){
return {"w":parseInt(_3b.width)+2,"h":parseInt(_3b.height)+2};
};
this.StkCellRendererPixbufThemeReallocate=this.ThemeReallocate=function(w,h,_40,_41,_42){
};
};
STK.Theme.CellRendererPixbuf._blank_src=STK.Path.FindImage("/theme/icons/blank");
STK.Theme.CellRendererText=function(){
this.StkCellRendererTextThemeRender=this.ThemeRender=function(_43,_44,_45){
var e=this.style.CreateDiv();
e.style.fontFamily="arial, sans-serif";
e.style.fontSize="0.95em";
e.style.padding="2px";
e.style.overflow="hidden";
e.style.cursor="default";
e.onmousedown=function(e){
return false;
};
_43.appendChild(e);
return e;
};
this.StkCellRendererTextThemeUpdate=this.ThemeUpdate=function(_48,_49,_4a){
if(parseInt(_48.generation)==_49.Generation()){
return;
}
var _4b=this.GetData("markup");
if(_4b){
var _4c=_49.GetValue(_4b);
if(_4c!=undefined){
_48.innerHTML=String(_4c);
}
}else{
var _4d=this.GetData("text");
if(_4d){
var _4e=_49.GetValue(_4d);
if(_4e!=undefined){
var _4f=_4e;
_4f=STK.String.RenderHtml(_4f);
_48.innerHTML=_4f;
}
}
}
var _50=this.GetData("foreground");
if(_50){
var _51=_49.GetValue(_50);
if(_51){
_48.style.color=_51;
}
}
var _52=this.GetData("weight");
if(_52){
var _53=_49.GetValue(_52);
_48.style.fontWeight=Number(_53);
}
var _54=this.GetData("size");
if(_54){
var _55=_49.GetValue(_54);
if(_55!==null&&_55!==false&&_55!==undefined){
_48.style.fontSize=parseInt(_55)+"px";
}
}
var _56=this.GetData("sensitive");
if(_56){
var _57=_49.GetValue(_56);
if(_57!=undefined&&_57!=_48._last_sensitive){
if(!_57){
_48.style.fontStyle="italic";
_48.style.color="#555555";
}else{
_48.style.fontStyle="normal";
_48.style.color="#000000";
}
_48._last_sensitive=_57;
}
}
_48.generation=_49.Generation();
};
this.StkCellRendererTextThemeMeasure=this.ThemeMeasure=function(_58,_59,_5a){
var sz=STK.Engine.Text.Measure(_58.innerHTML,_58);
sz.w+=4;
sz.h+=4;
return sz;
};
this.StkCellRendererTextThemeReallocate=this.ThemeReallocate=function(w,h,_5e,_5f,_60){
w-=4;
h-=4;
if(STK.UserAgent.IsExplorer()){
w+=4;
h+=4;
}
if(w>0&&h>0){
_5e.style.width=w+"px";
_5e.style.height=h+"px";
}
};
};
STK.Theme.CellRendererToggle=function(){
var _61=null;
this.StkCellRendererToggleThemeRender=this.ThemeRender=function(_62,_63,_64){
_61=_64;
var e=this.style.CreateInput();
e.type="checkbox";
STK.Engine.Event.Register(e,"click",STK.Delegate(this,"_OnClick"));
STK.Engine.Event.Register(e,"mousedown",function(e){
return false;
});
this.style.AppendChild(_62,e);
return e;
};
this.StkCellRendererToggleThemeUpdate=this.ThemeUpdate=function(_67,_68,_69){
var _6a=this.GetData("active");
if(!_6a){
return;
}
var _6b=_68.GetValue(_6a);
if(_6b){
_67.checked=true;
}else{
_67.checked=false;
}
};
this.StkCellRendererToggleThemeMeasure=this.ThemeMeasure=function(_6c,_6d,_6e){
return {"w":20,"h":20};
};
this.StkCellRendererToggleThemeReallocate=this.ThemeReallocate=function(w,h,_71,_72,_73){
_71.parentNode.style.width=w+"px";
_71.parentNode.style.height=h+"px";
};
this._OnClick=function(e,_75){
var _76=this.GetData("active");
if(!_76){
return true;
}
var evt=new STK.Engine.Event(e);
var _78;
var _79=evt.Target();
while(_78===undefined&&_79){
_78=_79.treePathStr;
if(_79.parentNode){
_79=_79.parentNode;
}else{
_79=null;
}
}
var _7a=_61.GetModel().GetIter(_78);
var _7b=_7a.GetValue(_76);
var _7c=evt.Target().checked;
if(_7c!=_7b){
this.Emit("toggled",_7a.GetPath());
}
_7a.SetValue(_76,_7c);
};
};
STK.ExpanderState={NONE:0,COLLAPSED:1,EXPANDED:2};
STK.Theme.TreeView=function(){
var _7d;
var _7e;
var _7f;
var _80;
var _81=STK.Delegate(this,"OnRowMouseDown");
var _82=STK.Delegate(this,"OnRowDoubleClick");
this._expandstate={};
this.StkTreeViewThemeMap=this.ThemeMap=function(_83){
if(this._frame){
return;
}
this._frame=this.style.CreateTable();
this._frame.cellSpacing=0;
this._frame.cellPadding=0;
this._frame.style.display="none";
this._frame.style.verticalAlign="top";
_7d=this.style.CreateDiv();
_7d.style.overflow="hidden";
_7e=this.style.CreateTable();
_7e.cellSpacing=0;
_7e.cellPadding=0;
_7e.style.position="relative";
_7e.style.top="0px";
_7e.style.left="0px";
_7e.style.overflow="hidden";
_7d.appendChild(_7e);
_80=this.style.CreateDiv();
_80.style.overflow="hidden";
_7f=this.style.CreateTable();
_7f.cellSpacing=0;
_7f.cellPadding=0;
_7f.style.position="relative";
_7f.style.top="0px";
_7f.style.left="0px";
_80.appendChild(_7f);
var c;
c=this._frame.insertRow(-1).insertCell(-1);
c.appendChild(_7d);
c=this._frame.insertRow(-1).insertCell(-1);
c.appendChild(_80);
this.style.AppendChild(_83,this._frame);
var r;
r=_7e.insertRow(-1);
this._ThemeDrawHeadersIntoRow(r);
this.ThemeUpdate();
this._ThemeRedraw();
};
this.StkTreeViewThemeMeasure=this.ThemeMeasure=function(){
var _86=this.GetColumns();
var _87=0;
var _88=0;
for(var i in _86){
var sz=_86[i].Measure();
if(sz.h>_87){
_87=sz.h;
}
_88+=sz.w;
}
for(var i in _86){
_86[i].SetData("measured-h",_87);
}
this.SetData("-header-height",_87);
if(_7f.rows.length==0){
return {"w":_88,"h":_87};
}
var w={};
var h=_87;
var row=null;
var _8e=0;
var tv=this;
this._ThemeForeachIter(function(_90,_91){
row=_7f.rows[_8e];
if(!row){
STK.Log.Error("TreeViewTheme::Measure - attempted measure on non-existing row!");
return;
}
var sz=tv._ThemeMeasureRow(row,_90);
row.measuredH=sz.h;
if(!tv._ThemeIterIsHidden(_90)){
h+=sz.h;
for(var i in sz.w){
if(w[i]==undefined||sz.w[i]>w[i]){
w[i]=sz.w[i];
}
}
}
_8e++;
},null);
total_w=0;
for(var i in _86){
total_w+=w[i];
_86[i].SetData("measured-w",w[i]);
}
return {"w":total_w,"h":h};
};
this._ThemeMeasureRow=function(row,_95){
var w={};
var h=0;
var _98=this.GetColumns();
var _99=0;
for(var i in _98){
if(_99>=row.childNodes.length){
continue;
}
var col=_98[i];
var _9c=0;
var _9d=row.cells[_99];
if(_98[i].GetData("has-expander")&&this.GetData("show-expanders")){
var _9e=_9d.childNodes[0].rows[0].cells[0].firstChild;
_9c+=7;
if(_9e&&!isNaN(parseInt(_9e.style.marginLeft))){
_9c+=parseInt(_9e.style.marginLeft);
}
_9d=_9d.childNodes[0].rows[0].cells[1];
}
var sz=col.ThemeMeasureColumn(_9d,_95,self);
sz.w+=parseInt(this.GetData("horizontal-separator"));
sz.h+=parseInt(this.GetData("vertical-separator"));
sz.w+=_9c;
if(sz.h>h){
h=sz.h;
}
w[i]=sz.w;
_99++;
}
return {"w":w,"h":h};
};
this.StkTreeViewThemeReallocate=this.ThemeReallocate=function(w,h){
var _a2=this.GetColumns();
var _a3=w;
var _a4=_a2.length-1;
for(var i in _a2){
var mW=_a2[i].GetData("measured-w");
var _a7=mW-1;
if(i==0){
_a7-=1;
}else{
if(i==_a4){
_a7=_a3;
}
}
_a3-=mW;
if(_a7>0){
_7e.rows[0].cells[i].style.width=_a7+"px";
}else{
_7e.rows[0].cells[i].style.width="";
}
_a2[i].Reallocate(_a7,_a2[i].GetData("measured-h"));
}
var _a8=0;
var tv=this;
this._ThemeForeachIter(function(_aa,_ab){
row=_7f.rows[_a8];
if(!row){
STK.Log.Error("TreeViewTheme::Reallocate - attempted reallocate to non-existing row!");
return;
}
tv._ThemeReallocateRow(w,row.measuredH,row,_aa);
_a8++;
},null);
_7d.style.width=w+"px";
_80.style.width=w+"px";
var _ac=this.GetVAdjustment();
if(_ac&&h!==undefined){
_ac.SetData("upper",h);
_ac.Changed();
}
var _ad=this.GetHAdjustment();
if(_ad&&w!==undefined){
_ad.SetData("upper",w);
_ad.Changed();
}
};
this._ThemeReallocateRow=function(w,h,row,_b1){
var _b2=this.GetColumns();
var _b3=w;
var _b4=_b2.length-1;
for(var i in _b2){
var mW=_b2[i].GetData("measured-w");
var mH=h;
var _b8=mW;
if(i==_b4){
mW=_b3;
}
_b8=mW-parseInt(this.GetData("horizontal-separator"));
mH-=parseInt(this.GetData("vertical-separator"));
area=row.cells[i];
if(_b2[i].GetData("has-expander")&&this.GetData("show-expanders")){
var _b9=area.childNodes[0].rows[0].cells[0].firstChild;
area=area.childNodes[0].rows[0].cells[1];
_b8-=7;
if(_b9&&!isNaN(parseInt(_b9.style.marginLeft))){
_b8-=parseInt(_b9.style.marginLeft);
}
}
_b2[i].ReallocateColumn(_b8,mH,area,_b1,this);
_b3-=mW;
}
};
this.ThemeUpdate=function(){
if(!this._frame){
return;
}
var _ba=this.GetColumns();
for(var i in _ba){
if(_ba[i].GetData("has-expander")){
_ba[i].ThemeClear();
}
_ba[i].SetData("has-expander",false);
}
if(this.GetData("show-expanders")){
var col=this.GetData("expander-column");
if(_ba[col]){
_ba[col].SetData("has-expander",true);
}
}
for(var i in _ba){
if(!_ba[i].GetVisible()){
_7e.rows[0].cells[i].style.display="none";
}else{
}
}
};
this._ThemeDrawHeadersIntoRow=function(row){
var _be=this.GetColumns();
for(var i in _be){
var _c0=row.insertCell(-1);
_c0.style.borderRight="1px solid #666666";
_c0.style.borderTop="1px solid #666666";
_c0.style.borderBottom="1px solid #666666";
if(_c0.cellIndex==0){
_c0.style.borderLeft="1px solid #666666";
}
_c0.style.backgroundColor="#A0A0A0";
_c0.style.backgroundImage="url("+STK.Path.FindImage("/theme/Plain/dataview/treeviewcolumn/header-shine")+")";
_c0.style.backgroundRepeat="repeat-x";
_be[i].Map(_c0);
_be[i].Show();
}
};
this.ThemeUpdateRowBaseColor=function(row,_c2){
var _c3="#ffffff";
if(this.GetSelection().PathIsSelected(_c2.GetPath())){
_c3="#cfd9fb";
}else{
if(this.GetData("allow-rules")){
var _c4=(row.rowOffset%2)==0;
if(_c4){
_c3=this.GetData("even-row-color");
}else{
_c3=this.GetData("odd-row-color");
}
}
}
row.style.backgroundColor=_c3;
};
this._ThemeUpdateRow=function(row,_c6){
STK.Log.Msg("treeviewtheme","TreeViewTheme::_ThemeUpdateRow: %s",_c6.GetPath().ToString());
var _c7=this.GetColumns();
var _c8=0;
for(var i in _c7){
var _ca;
var _cb=row.style.display!="none";
while(_c8>=row.childNodes.length){
_ca=row.insertCell(-1);
_ca.id=row.id+"_cell"+_c8;
_ca.style.verticalAlign="middle";
var _cc=this.GetData("horizontal-separator");
_ca.style.paddingRight=String(Math.floor(_cc/2))+"px";
_ca.style.paddingLeft=String(Math.floor(_cc/2))+"px";
var _cd=this.GetData("vertical-separator");
_ca.style.paddingBottom=String(Math.floor(_cd/2))+"px";
_ca.style.paddingTop=String(Math.floor(_cd/2))+"px";
_cb=true;
}
if(!_cb){
STK.Log.Msg("treeviewtheme","TreeViewTheme::_ThemeUpdateRow: quitting early at: %s",_c6.GetPath().ToString());
return;
}
_ca=row.cells[_c8];
if(!_c7[i].GetVisible()){
_ca.style.display="none";
}
if(_c7[i].GetData("has-expander")&&this.GetData("show-expanders")){
_ca=this._ThemeUpdateExpander(_ca,_c6);
}
this._columns[i].ThemeUpdateColumn(_ca,_c6,this);
_c8++;
}
};
this._ThemeUpdateExpander=function(_ce,_cf){
var tbl;
var _d1;
var _d2;
if(_ce.childNodes.length==0){
tbl=this.style.CreateTable();
tbl.cellPadding=0;
tbl.cellSpacing=0;
tbl.style.overflow="hidden";
var r=tbl.insertRow(-1);
var _d4=r.insertCell(-1);
_d2=r.insertCell(-1);
_d1=this.style.CreateImage();
_d1.id=_ce.id+"_expander";
_d1.width=7;
_d1.height=7;
STK.Engine.Event.Register(_d1,"click",STK.Delegate(this,"OnExpanderClick"));
STK.Engine.Event.Register(_d1,"mouseover",STK.Delegate(this,"OnExpanderMouseOver"));
STK.Engine.Event.Register(_d1,"mouseout",STK.Delegate(this,"OnExpanderMouseOut"));
_d4.appendChild(_d1);
_ce.appendChild(tbl);
}else{
tbl=_ce.childNodes[0];
_d1=tbl.rows[0].cells[0].childNodes[0];
_d2=tbl.rows[0].cells[1];
}
_d1.style.marginLeft=String((_cf.GetPath().GetDepth()-1)*10)+"px";
_d1.iterID=_cf.ID();
_d1.treePathStr=_cf.GetPath().ToString();
if(this._expandstate[_cf.ID()]===undefined){
if(_cf.HasChild()){
_d1.src=STK.Theme.TreeView._img_src_expander_collapsed;
this._expandstate[_cf.ID()]=STK.ExpanderState.COLLAPSED;
}else{
_d1.src=STK.Theme.TreeView._img_src_expander_none;
this._expandstate[_cf.ID()]=STK.ExpanderState.NONE;
}
}else{
var req;
switch(this._expandstate[_cf.ID()]){
case STK.ExpanderState.NONE:
req=STK.Theme.TreeView._img_src_expander_none;
if(_cf.HasChild()){
req=STK.Theme.TreeView._img_src_expander_collapsed;
this._expandstate[_cf.ID()]=STK.ExpanderState.COLLAPSED;
}
break;
case STK.ExpanderState.COLLAPSED:
req=STK.Theme.TreeView._img_src_expander_collapsed;
break;
case STK.ExpanderState.EXPANDED:
req=STK.Theme.TreeView._img_src_expander_expanded;
break;
}
if(!_cf.HasChild()){
req=STK.Theme.TreeView._img_src_expander_none;
this._expandstate[_cf.ID()]=STK.ExpanderState.NONE;
}
if(req!=_d1.src){
_d1.src=req;
}
}
return _d2;
};
this._ThemeIterIsHidden=function(_d6){
_d6=_d6.Parent();
while(_d6){
var id=_d6.ID();
if(this._expandstate[id]&&this._expandstate[id]==STK.ExpanderState.COLLAPSED){
return true;
}
_d6=_d6.Parent();
}
return false;
};
this._ThemeSetDisplayRow=function(row,_d9){
if(this._ThemeIterIsHidden(_d9)){
row.style.display="none";
return false;
}
this.style.SetDisplayTableRow(row);
return true;
};
this._ThemeSetupNewRow=function(row){
STK.Engine.Event.Register(row,"mousedown",_81);
STK.Engine.Event.Register(row,"dblclick",_82);
};
this._ThemeSetupRowForIter=function(row,_dc,_dd){
row.rowOffset=_dc;
row.treePathStr=_dd.GetPath().ToString();
};
this._ThemeRedraw=function(){
if(!this._frame){
return;
}
STK.Log.Msg("treeviewtheme","TreeViewTheme::_ThemeRedraw");
var _de=0;
var _df=0;
var row=null;
var tv=this;
this._ThemeForeachIter(function(_e2,_e3){
if(_de>=_7f.rows.length){
row=_7f.insertRow(-1);
tv._ThemeSetupNewRow(row);
}else{
row=_7f.rows[_de];
}
tv._ThemeSetupRowForIter(row,_df,_e2);
if(tv._ThemeSetDisplayRow(row,_e2)){
_df++;
}
tv._ThemeUpdateRow(row,_e2);
_de++;
},null);
while(_de<_7f.rows.length){
_7f.deleteRow(_de);
}
this._ThemeUpdateSelection();
};
this._Theme_RowAdded=function(_e4){
if(_7f.rows.length>0&&_7f.rows[_7f.rows.length-1]){
var _e5=new STK.TreePath(_7f.rows[_7f.rows.length-1].treePathStr);
var _e6=_7f.rows[_7f.rows.length-1].rowOffset;
var _e7=_e4.GetPath();
if(_e5.IsBefore(_e7)){
row=_7f.insertRow(-1);
this._ThemeSetupNewRow(row);
this._ThemeSetupRowForIter(row,_e6+1,_e4);
this._ThemeUpdateRow(row,_e4);
this.ThemeUpdateRowBaseColor(row,_e4);
this._ThemeSetDisplayRow(row,_e4);
return;
}
}
this._ThemeRedraw();
};
this._Theme_RowChanged=function(_e8){
if(_e8!=null){
var _e9=_e8.GetPath().ToString();
var row=null;
for(var i in _7f.rows){
if(_7f.rows[i]&&_7f.rows[i].treePathStr==_e9){
this._ThemeUpdateRow(_7f.rows[i],_e8);
return;
}
}
}
this._ThemeRedraw();
};
this._Theme_RowDeleted=function(_ec,id){
this._ThemeRedraw();
};
this._Theme_RowsReordered=function(_ee,_ef){
this._ThemeRedraw();
};
this._ThemeUpdateSelection=function(_f0,_f1,_f2){
var _f3=0;
var tv=this;
this._ThemeForeachIter(function(_f5,_f6){
tv.ThemeUpdateRowBaseColor(_7f.rows[_f3],_f5);
_f3++;
},null);
};
this._ThemeOnVAdjustmentValueChanged=function(){
var adj=this.GetVAdjustment();
var _f8=-Number(adj.GetData("value"));
_7f.style.top=_f8+"px";
};
this._ThemeOnHAdjustmentValueChanged=function(){
var adj=this.GetHAdjustment();
var _fa=-Number(adj.GetData("value"));
_7f.style.left=_fa+"px";
_7e.style.left=_fa+"px";
};
this._ThemeForeachIter=function(_fb,_fc){
var _fd=this.GetModel();
if(!_fd){
return;
}
var _fe=_fd.GetIterFirst();
if(!_fe){
return;
}
this._ThemeForeachIterUnder(_fe,_fb,_fc);
};
this._ThemeForeachIterUnder=function(_ff,_100,_101){
if(!_ff){
return;
}
while(_ff){
var ret=_100(_ff,_101);
if(ret===false){
return false;
}
if(_ff.HasChild()){
var _103=_ff.Children();
if(_103!=false){
ret=this._ThemeForeachIterUnder(_103,_100,_101);
if(ret===false){
return false;
}
}
}
_ff=_ff.Next();
}
};
this.__FindPathForEvent=function(_104){
var evt=new STK.Engine.Event(_104);
var tgt=evt.Target();
while(tgt&&tgt.treePathStr===undefined){
tgt=tgt.parentNode;
}
if(!tgt){
return false;
}
return new STK.TreePath(tgt.treePathStr);
};
this.OnRowMouseDown=function(_107){
var path=this.__FindPathForEvent(_107);
if(!path){
STK.Log.Error("TreeViewTheme::OnRowMouseDown - received event for element without row parent");
return;
}
this.GetSelection().SelectPath(path);
};
this.OnRowDoubleClick=function(_109){
var path=this.__FindPathForEvent(_109);
if(!path){
STK.Log.Error("TreeViewTheme::OnRowMouseDown - received event for element without row parent");
return;
}
this.RowActivated(path,null);
};
this.OnExpanderClick=function(_10b){
var path=this.__FindPathForEvent(_10b);
var iter=this.GetModel().GetIter(path);
switch(this._expandstate[iter.ID()]){
case STK.ExpanderState.EXPANDED:
this._expandstate[iter.ID()]=STK.ExpanderState.COLLAPSED;
break;
case STK.ExpanderState.COLLAPSED:
this._expandstate[iter.ID()]=STK.ExpanderState.EXPANDED;
break;
default:
break;
}
this._ThemeRedraw();
};
this.OnExpanderMouseOver=function(_10e){
};
this.OnExpanderMouseOut=function(_10f){
};
STK.Log.CreateTarget("treeviewtheme");
};
STK.Theme.TreeView._img_src_expander_expanded=STK.Path.FindImage("/theme/Plain/dataview/treeview/treeview_expander_down");
STK.Theme.TreeView._img_src_expander_collapsed=STK.Path.FindImage("/theme/Plain/dataview/treeview/treeview_expander_up");
STK.Theme.TreeView._img_src_expander_expanded_hover=STK.Path.FindImage("/theme/Plain/dataview/treeview/treeview_expander_down_hover");
STK.Theme.TreeView._img_src_expander_collapsed_hover=STK.Path.FindImage("/theme/Plain/dataview/treeview/treeview_expander_up_hover");
STK.Theme.TreeView._img_src_expander_none=STK.Path.FindImage("/theme/Plain/dataview/treeview/treeview_expander_blank");
STK.Theme.TreeViewColumn=function(){
var _110;
var _111;
this.StkTreeViewColumnThemeMap=this.ThemeMap=function(_112){
if(this._frame){
return this._frame;
}
STK.Assert(_112!=null);
this._frame=this.style.CreateTable();
this._frame.cellPadding=0;
this._frame.cellSpacing=0;
this._frame.height="100%";
_112.appendChild(this._frame);
var r=this._frame.insertRow(-1);
_110=this.style.CreateDiv();
_110.style.fontWeight="bold";
_110.style.fontFamily="arial, sans-serif";
_110.style.fontSize="0.75em";
_110.style.color="#000000";
_110.style.cursor="default";
_110.style.overflow="hidden";
_110.style.paddingLeft="4px";
var c=r.insertCell(-1);
c.appendChild(_110);
_111=this.style.CreateImage();
_111.style.paddingLeft="2px";
_111.style.paddingRight="2px";
_111.src=STK.Theme.TreeViewColumn._img_src_order_down;
c=r.insertCell(-1);
c.appendChild(_111);
this.ThemeUpdate();
};
this.StkTreeViewColumnThemeMeasure=this.ThemeMeasure=function(){
var w=8;
var h=2;
switch(this.GetData("sort-order")){
default:
case STK.SortType.NONE:
w+=1;
break;
case STK.SortType.DESCENDING:
case STK.SortType.ASCENDING:
w+=7;
break;
}
var _117=STK.Engine.Text.Measure(_110.innerHTML,_110);
_117.w+=w;
_117.h+=h;
return {"w":_117.w,"h":_117.h};
};
this.StkTreeViewColumnThemeMeasureColumn=this.ThemeMeasureColumn=function(cell,iter,view){
var w=0;
var h=0;
var _11d=0;
for(var _11e in this.renderers){
if(_11d>=cell.childNodes.length){
continue;
}
var ren=this.renderers[_11e];
var area=cell.childNodes[_11d];
var sz=ren.Measure(area,iter,view);
if(sz.h>h){
h=sz.h;
}
w+=sz.w;
_11d+=1;
}
return {"w":w,"h":h};
};
this.StkTreeViewColumnThemeClear=this.ThemeClear=function(cell){
while(cell.childNodes.length>0){
cell.removeChild(cell.childNodes[0]);
}
};
this.StkTreeViewColumnThemeReallocate=this.Reallocate=function(w,h){
var _125=8;
switch(this.GetData("sort-order")){
default:
case STK.SortType.NONE:
_125+=1;
break;
case STK.SortType.DESCENDING:
case STK.SortType.ASCENDING:
_125+=7;
break;
}
w-=_125;
var _126=this.GetData("title");
var _127=STK.Engine.Text.Ellipsize(w,_126,_110);
var safe=STK.String.RenderHtml(_127);
_110.innerHTML=safe;
};
this.StkTreeViewColumnReallocateColumn=this.ReallocateColumn=function(w,h,cell,iter,view){
var _12e=w;
var _12f=0;
for(var _130 in this.renderers){
if(_12f>=cell.childNodes.length){
continue;
}
var ren=this.renderers[_130];
var area=cell.childNodes[_12f];
var _133=ren.Reallocate(_12e,h,area,iter,view);
_12e-=_133;
_12f+=1;
}
cell.style.width=w+"px";
};
this.StkTreeViewColumnThemeUpdateColumn=this.ThemeUpdateColumn=function(cell,iter,view){
STK.Log.Msg("treeviewtheme","TreeViewColumnTheme::_ThemeUpdateColumn: %s",iter.GetPath().ToString());
if(!this.GetVisible()){
this.ThemeClear(cell);
return;
}
var _137=0;
var _138=this.GetCellRenderers();
for(var i in _138){
if(_137<cell.childNodes.length){
STK.Log.Msg("treeviewtheme","TreeViewColumnTheme::_ThemeUpdateColumn: at cell: %s",_137);
_138[i].Update(cell.childNodes[_137],iter,view);
}else{
_138[i].Render(cell,iter,view);
}
_137++;
}
};
this.StkTreeViewColumnThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
if(!this.GetData("visible")){
this._frame.style.display="none";
}
this.ThemeUpdateTitle();
this.ThemeUpdateClickable();
this.ThemeUpdateOrder();
};
this.StkTreeViewColumnThemeUpdateTitle=this.ThemeUpdateTitle=function(){
if(!this._frame){
return;
}
var _13a=STK.String.RenderHtml(this.GetData("title"));
_13a=_13a.replace(" ","&nbsp;");
this._frame.style.display="block";
_110.innerHTML=_13a;
};
this.StkTreeViewColumnThemeUpdateClickable=this.ThemeUpdateClickable=function(){
if(!this._frame){
return;
}
var _13b=this._frame.parentNode;
if(this.GetData("clickable")){
_13b.onclick=STK.Delegate(this,"ThemeOnClick");
}else{
_13b.onclick=null;
_13b.onmouseover=null;
_13b.onmouseout=null;
}
};
this.StkTreeViewColumnThemeUpdateOrder=this.ThemeUpdateOrder=function(){
if(!this._frame){
return;
}
switch(this.GetData("sort-order")){
default:
case STK.SortType.NONE:
_111.src=STK.Theme.TreeViewColumn._img_src_order_none;
break;
case STK.SortType.DESCENDING:
_111.src=STK.Theme.TreeViewColumn._img_src_order_up;
break;
case STK.SortType.ASCENDING:
_111.src=STK.Theme.TreeViewColumn._img_src_order_down;
break;
}
};
this.ThemeOnClick=function(){
this.Clicked();
};
};
STK.Theme.TreeViewColumn._img_src_order_down=STK.Path.FindImage("/theme/Plain/dataview/treeviewcolumn/treeviewcolumn_sortorder_down");
STK.Theme.TreeViewColumn._img_src_order_up=STK.Path.FindImage("/theme/Plain/dataview/treeviewcolumn/treeviewcolumn_sortorder_up");
STK.Theme.TreeViewColumn._img_src_order_none=STK.Path.FindImage("/theme/Plain/dataview/treeviewcolumn/treeviewcolumn_sortorder_none");
STK.Theme.TreeViewColumn._img_src_bg=STK.Path.FindImage("/theme/Plain/dataview/treeviewcolumn/header-shine");
STK.Theme.Image=function(){
this.ThemeSourceChanged=function(){
if(!this._frame){
return;
}
this._frame.src=this.GetData("url");
var w=this.GetData("url-width");
if(w!=undefined){
this._frame.width=parseInt(w);
}else{
this._frame.width="";
}
var h=this.GetData("url-height");
if(h!=undefined){
this._frame.height=parseInt(h);
}else{
this._frame.height="";
}
};
this.StkImageThemeMap=this.ThemeMap=function(_13e){
if(this._frame){
return null;
}
this._frame=this.style.CreateImage();
this._frame.src=this.GetData("url");
var w=this.GetData("url-width");
var h=this.GetData("url-height");
if(w!=undefined){
this._frame.width=w;
this._frame.style.width=w;
}
if(h!=undefined){
this._frame.height=h;
this._frame.style.height=h;
}
this._frame.style.display="none";
this.style.AppendChild(_13e,this._frame);
return null;
};
this.StkLabelThemeMeasure=this.ThemeMeasure=function(){
var misc=this.StkMiscMeasure();
var self=this.style.GetElementSize(this._frame);
misc.w+=self.w;
misc.h+=self.h;
return misc;
};
this.StkLabelThemeReallocate=this.ThemeReallocate=function(w,h){
};
};
STK.Theme.Label=function(){
this.StkLabelThemeMap=this.ThemeMap=function(_145){
if(this._frame){
return null;
}
this._frame=this.style.CreateSpan();
this._frame.style.display="none";
this._frame.style.fontFamily="arial, sans-serif";
this._frame.style.fontSize="0.9em";
this._frame.onmousedown=function(e){
return false;
};
this._frame.onselectstart=function(e){
return false;
};
this.style.AppendChild(_145,this._frame);
this.ThemeUpdate();
return null;
};
this.StkLabelThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
this.StkMiscThemeUpdate();
this.ThemeUpdateText();
this.ThemeUpdateSensitive();
this.ThemeUpdateAngle();
var sz=this.GetSizeRequest();
if(sz.w>=0){
this._frame.style.width=sz.w+"px";
}
if(sz.h>=0){
this._frame.style.height=sz.h+"px";
}
var _149=false;
var p=this._frame.parentNode;
while(p){
if(p.style&&p.style.cursor&&p.style.cursor.length>0){
_149=true;
}
p=p.parentNode;
}
if(!_149){
this._frame.style.cursor="default";
}
};
this.ThemeUpdateText=function(){
if(!this._frame){
return;
}
this._frame.innerHTML=this.GetText();
};
this.ThemeUpdateAngle=function(){
if(!this._frame){
return;
}
if(this.GetAngle()==90){
this._frame.style.writingMode="tb-rl";
this._frame.style.filter="flipv fliph";
}
};
this.ThemeUpdateSensitive=function(){
if(!this._frame){
return;
}
if(this.GetData("sensitive")){
this._frame.style.color="#000000";
}else{
this._frame.style.color="#3a3a3a";
}
};
this.StkLabelThemeMeasure=this.ThemeMeasure=function(){
var base=this.StkMiscMeasure();
var sz=STK.Engine.Text.Measure(this.GetText(),this._frame);
if(STK.UserAgent.IsExplorer()){
base.w+=sz.w+2;
base.h+=sz.h+2;
}else{
base.w+=sz.w;
base.h+=sz.h;
}
return base;
};
this.StkLabelThemeReallocate=this.ThemeReallocate=function(w,h){
this._frame.style.width=w+"px";
this._frame.style.height=h+"px";
};
};
STK.Theme.ProgressBar=function(){
var _14f;
var _150;
var _151=100;
var _152=26;
var _153=_151;
var _154=_152;
this.StkProgressBarThemeMap=this.ThemeMap=function(_155){
if(this._frame){
return;
}
this._frame=this.style.CreateTable();
this._frame.style.display="none";
this._frame.cellPadding="0px";
this._frame.cellSpacing="0px";
var r=this._frame.insertRow(-1);
_14f=r.insertCell(-1);
_150=this.style.CreateSpan();
_150.style.fontSize="0.8em";
_150.style.fontStyle="italic";
_14f.appendChild(_150);
r=this._frame.insertRow(-1);
this.style.AppendChild(_155,this._frame);
this.ThemeUpdateText();
this.ThemeUpdate();
return null;
};
this.StkProgressBarThemeMeasure=this.ThemeMeasure=function(){
var _157=this.style.GetElementSize(_150);
return {"w":Math.max(_151,_157.w),"h":26+_157.h};
};
this.StkProgressBarThemeReallocate=this.ThemeReallocate=function(w,h){
_153=w;
_154=h;
this.ThemeUpdate();
};
this.StkProgressBarThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
var _15a=_153;
var cnt=Math.floor(_15a/14);
var _15c=1/cnt;
for(var i=this._frame.rows[1].cells.length;i<cnt;i++){
var cell=this._frame.rows[1].insertCell(-1);
cell.style.paddingTop="2px";
cell.style.width="14px";
var _15f=this.style.CreateDiv();
_15f.style.backgroundColor="#BBBBBB";
_15f.style.marginLeft="2px";
_15f.style.marginTop="2px";
_15f.style.marginBottom="2px";
_15f.style.height="20px";
_15f.style.width="12px";
if(!STK.UserAgent.IsExplorer6()){
_15f.style.backgroundImage="url("+STK.Path.FindImage("/theme/Plain/display/progressbar/shine")+")";
_15f.style.backgroundRepeat="repeat-x";
}
if(STK.UserAgent.IsGecko()){
_15f.style.setProperty("-moz-border-radius","3px","");
}
cell.appendChild(_15f);
}
for(var i=this._frame.rows[1].cells.length-cnt;i>0;i--){
this.style.DestroyElement(this._frame.rows[1].cells[i].firstChild);
this._frame.rows[1].deleteCell(0);
}
if(_14f){
_14f.colSpan=cnt;
}
if(this._mode==STK.ProgressBarModeType.ACTIVITY){
var _160=5;
if(cnt<10){
_160=Math.floor(cnt/3);
}
if(_160<2){
_160=2;
}
for(var i=0;i<this._frame.rows[1].cells.length;i++){
var c=this._frame.rows[1].cells[i];
if(!c){
continue;
}
var d=c.firstChild;
if(!d){
continue;
}
var left=(i*_15c);
var dist=(this._activity_position-left)/_15c;
if(dist<0){
dist+=cnt;
}
if(dist>_160){
d.style.backgroundColor="#C0C0C0";
continue;
}
var _165=1-(Math.ceil(dist)/(_160+1));
_165=Math.sqrt(_165);
var red=192-((192-0)*_165);
var _167=192-((192-97)*_165);
var blue=192+((207-192)*_165);
var cout="#"+StkHtmlAnimateColor.NumberToColorStr(red)+StkHtmlAnimateColor.NumberToColorStr(_167)+StkHtmlAnimateColor.NumberToColorStr(blue);
d.style.backgroundColor=cout;
}
}else{
for(var i=0;i<this._frame.rows[1].cells.length;i++){
var c=this._frame.rows[1].cells[i];
if(!c){
continue;
}
var d=c.firstChild;
if(!d){
continue;
}
var left=(i*_15c);
var _16a=left+_15c;
if(this._percent_fract<=left){
d.style.backgroundColor="#C0C0C0";
}else{
if(this._percent_fract>=_16a){
d.style.backgroundColor="#0061CF";
}else{
var _165=(this._percent_fract-left)/_15c;
var red=192-((192-0)*_165);
var _167=192-((192-97)*_165);
var blue=192+((207-192)*_165);
var cout="#"+StkHtmlAnimateColor.NumberToColorStr(red)+StkHtmlAnimateColor.NumberToColorStr(_167)+StkHtmlAnimateColor.NumberToColorStr(blue);
d.style.backgroundColor=cout;
}
}
}
}
};
this.StkProgressBarThemeUpdateText=this.ThemeUpdateText=function(){
if(!_150){
return;
}
_150.innerHTML=this._text;
};
};
STK.Theme.Statusbar=function(){
var _16b;
var _16c;
this.StkStatusbarThemeMap=this.ThemeMap=function(_16d){
if(this._frame){
return _16c;
}
this._frame=this.style.CreateTable();
this._frame.cellPadding=0;
this._frame.cellSpacing=0;
this._frame.style.width="100%";
this._frame.style.height="12px";
this._frame.style.borderTop="1px solid #555555";
this._frame.style.backgroundColor="CFCFEF";
var r=this._frame.insertRow(-1);
_16b=r.insertCell(-1);
_16b.style.fontSize="0.9em";
_16c=r.insertCell(-1);
this.style.AppendChild(_16d,this._frame);
this.ThemeUpdate();
return _16c;
};
this.StkStatusbarThemeMeasure=this.ThemeMeasure=function(){
var sz=this.style.GetElementSize(this._frame);
return sz;
};
this.StkStatusbarThemeReallocate=this.ThemeReallocate=function(w,h){
if(w<=0||h<=0){
return;
}
this._frame.width=w+"px";
this._frame.height=h+"px";
};
this.StkStatusbarThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
this.ThemeUpdateMessage();
};
this.StkStatusbarThemeUpdateMessage=this.ThemeUpdateMessage=function(){
if(!_16b){
return;
}
var last="";
for(var i in this.messages){
last=this.messages[i][1];
}
_16b.innerHTML=last;
};
};
STK.Theme.Entry=function(){
this.StkEntryThemeMap=this.ThemeMap=function(_174){
if(this._frame){
return null;
}
var type="text";
if(!this.GetData("visibility")){
type="password";
}
this._frame=this.style.CreateInput();
this._frame.style.display="none";
this._frame.type=type;
STK.Engine.Event.Register(this._frame,"blur",STK.Delegate(this,"_ThemeOnBlur"));
STK.Engine.Event.Register(this._frame,"keyup",STK.Delegate(this,"_ThemeOnKeyup"));
STK.Engine.Event.Register(this._frame,"change",STK.Delegate(this,"_ThemeOnChange"));
STK.Engine.Event.Register(this._frame,"focus",STK.Delegate(this,"_ThemeOnFocus"));
STK.Engine.Event.Register(this._frame,"select",STK.Delegate(this,"_ThemeOnSelect"));
STK.Engine.Event.Register(this._frame,"mousedown",STK.Delegate(this,"_ThemeOnMouseDown"));
this.style.AppendChild(_174,this._frame);
this.ThemeUpdate();
this.ThemeUpdateText();
return null;
};
this.StkWidgetThemeMeasure=this.ThemeMeasure=function(){
if(!this._frame){
return {"w":0,"h":0};
}
var sz=this.style.GetElementSize(this._frame);
if(STK.UserAgent.IsExplorer()){
sz.h+=2;
}
return sz;
};
this.StkEntryThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
if(this.GetData("visibility")){
this._frame.type="text";
}else{
this._frame.type="password";
}
var w=parseInt(this.GetData("width-chars"));
if(w>0){
this._frame.size=w;
}
if(this.GetData("sensitive")){
this._frame.disabled=false;
}else{
this._frame.disabled=true;
}
};
this.ThemeUpdateText=function(){
if(!this._frame){
return;
}
this._frame.value=this.GetData("text");
};
this._ThemeGetValue=function(){
if(!this._frame){
return "";
}
return this._frame.value;
};
this._ThemeOnBlur=function(_178){
this._OnFocusOutEvent(_178);
return true;
};
this._ThemeOnKeyup=function(_179){
var e=new STK.Engine.Event(_179);
if(e.CharCode()==STK.Keycode.ENTER){
this._OnActivateEvent();
return;
}
if(e.IsChar()){
this._OnInsertAtCursorEvent(e.GetChar());
}
this.SetText(this._frame.value);
delete e;
return true;
};
this._ThemeOnChange=function(_17b){
return true;
};
this._ThemeOnFocus=function(_17c){
return true;
};
this._ThemeOnSelect=function(_17d){
return true;
};
this._ThemeOnMouseDown=function(_17e){
var e=new STK.Engine.Event(_17e);
e.StopPropagation();
};
};
STK.Theme.Scale=function(){
this._start_side;
this._adj_size;
this._maj_axis;
this._maj_dim;
this._scale_value;
this._scale_bar;
this._scale_grip;
this.DELAY_TIMEOUT=150;
this._min_size=60;
this._currentstyle="normal";
this._laststyle="normal";
var _180;
this._bar_min_value=0;
this._bar_max_value=0;
var _181=false;
var _182;
var _183;
this.StkScaleThemeMap=this.ThemeMap=function(_184){
if(this._frame){
return this._frame;
}
this._frame=this.style.CreateDiv();
this._frame.style.display="none";
if(!STK.UserAgent.IsExplorer()){
this._frame.style.paddingRight="2px";
}
this._scale_value=this.style.CreateDiv();
this._scale_value.style.fontWeight="bold";
this._scale_value.style.fontSize="0.9em";
this._scale_bar=this.style.CreateDiv();
this._scale_bar.style.overflow="visible";
this._scale_bar.style.backgroundColor="#CCCCCC";
this._scale_bar.style.borderLeft="1px solid #AAAAAA";
this._scale_bar.style.borderRight="1px solid #AAAAAA";
this._scale_bar.style.borderTop="1px solid #AAAAAA";
this._scale_bar.style.borderBottom="1px solid #AAAAAA";
this._scale_bar.style.fontSize="1px";
STK.Engine.Event.Register(this._scale_bar,"click",STK.Delegate(this,"_ThemeOnBarClick"));
STK.Engine.Event.Register(this._scale_bar,"mousedown",STK.Delegate(this,"_ThemeOnBarMouseDown"));
STK.Engine.Event.Register(this._scale_bar,"mouseup",STK.Delegate(this,"_ThemeOnBarMouseUp"));
STK.Engine.Event.Register(this._scale_bar,"mouseover",STK.Delegate(this,"_ThemeOnBarMouseOver"));
STK.Engine.Event.Register(this._scale_bar,"mouseout",STK.Delegate(this,"_ThemeOnBarMouseOut"));
if(STK.UserAgent.IsGecko()&&!this.GetData("draw-inline")){
this._scale_bar.style.setProperty("-moz-border-radius","3px","");
}
this._scale_grip=this.style.CreateDiv();
this._scale_grip.style.backgroundColor="#61a1ff";
this._scale_grip.style.position="relative";
this._scale_grip.style.left="0px";
this._scale_grip.style.top="0px";
STK.Engine.Event.Register(this._scale_grip,"click",STK.Delegate(this,"_ThemeOnGripClick"));
STK.Engine.Event.Register(this._scale_grip,"mousedown",STK.Delegate(this,"_ThemeOnGripMouseDown"));
STK.Engine.Event.Register(this._scale_grip,"mouseup",STK.Delegate(this,"_ThemeOnGripMouseUp"));
STK.Engine.Event.Register(this._scale_grip,"mouseover",STK.Delegate(this,"_ThemeOnGripMouseOver"));
STK.Engine.Event.Register(this._scale_grip,"mouseout",STK.Delegate(this,"_ThemeOnGripMouseOut"));
if(STK.UserAgent.IsGecko()&&!this.GetData("draw-inline")){
this._scale_grip.style.setProperty("-moz-border-radius","3px","");
}
this._scale_bar.appendChild(this._scale_grip);
if(this.GetData("value-pos")==STK.PositionType.TOP){
this._frame.appendChild(this._scale_value);
this._frame.appendChild(this._scale_bar);
}else{
this._frame.appendChild(this._scale_bar);
this._frame.appendChild(this._scale_value);
}
_183=new StkHtmlAnimateColor(this._scale_grip.id,"#61a1ff","#61a1ff");
_183.SetDuration(300);
this.style.AppendChild(_184,this._frame);
StkHtmlDrag.Install(this._scale_grip,null);
StkHtmlDrag.SetStartCallback(this._scale_grip,STK.Delegate(this,"_ThemeOnDragStart"),null);
StkHtmlDrag.SetEndCallback(this._scale_grip,STK.Delegate(this,"_ThemeOnDragEnd"),null);
StkHtmlDrag.SetDragCallback(this._scale_grip,STK.Delegate(this,"_ThemeOnDragUpdate"),null);
if(!this.GetSensitive()){
this._currentstyle="inactive";
}
this.ThemeUpdate();
_183.Set(1);
return this._frame;
};
this.StkScaleThemeUpdate=this.ThemeUpdate=function(){
this.ThemeUpdateSliderLength();
this.ThemeUpdateColor();
this.ThemeUpdateDrawValue();
this.ThemeUpdateValue();
this.ThemeUpdatePosition();
};
this.StkScaleThemeUpdateDrawValue=this.ThemeUpdateDrawValue=function(){
if(!this._scale_value){
return;
}
var vis=this.GetDrawValue();
if(!vis){
this._scale_value.style.display="none";
}else{
this._scale_value.style.display="block";
}
};
this.StkScaleThemeUpdateValuePos=this.ThemeUpdateValuePos=function(){
if(!this._frame){
return;
}
if(!this._scale_value){
return;
}
this._frame.removeChild(this._scale_value);
if(this.GetValuePos()==STK.PositionType.BOT){
this._frame.appendChild(this._scale_value);
}else{
if(!this._scale_bar){
return;
}
this._frame.removeChild(this._scale_bar);
this._frame.appendChild(this._scale_value);
this._frame.appendChild(this._scale_bar);
}
};
this.StkScaleThemeUpdateValue=this.ThemeUpdateValue=function(){
if(!this._scale_value||!this.GetData("draw-value")){
return;
}
var num=this.GetValue();
var _187=this.GetDigits();
var _188=num-Math.floor(num);
var _189=num-_188;
var _18a=String(_188).substr(2,_187);
while(_18a.length<_187){
_18a+="0";
}
this._scale_value.innerHTML=String(_189)+"."+_18a;
};
this.StkScaleThemeUpdatePosition=this.ThemeUpdatePosition=function(){
if(!this._scale_grip){
return;
}
var off=this.ValueToOffset(this.GetAdjustment().GetValue());
if(!isNaN(off)){
this._scale_grip.style[this._start_side]=String(off)+"px";
}
this._scale_grip.style[this._adj_size]="0px";
};
this.StkScaleThemeUpdateColor=this.ThemeUpdateColor=function(){
if(!this._scale_grip){
return;
}
_183.Stop();
_183.SetColors(_183.GetCurrentColor(),STK.Theme.Scale._styles[this._currentstyle].color);
if(this._currentstyle=="hover"&&this._laststyle!="active"){
_183.Set(1);
}else{
if(this._currentstyle=="active"){
_183.Set(1);
}else{
_183.Set(0);
_183.MoveTo(1);
}
}
this._scale_grip.style.borderTop="1px solid "+STK.Theme.Scale._styles[this._currentstyle].border.top;
this._scale_grip.style.borderBottom="1px solid "+STK.Theme.Scale._styles[this._currentstyle].border.bottom;
this._scale_grip.style.borderLeft="1px solid "+STK.Theme.Scale._styles[this._currentstyle].border.left;
this._scale_grip.style.borderRight="1px solid "+STK.Theme.Scale._styles[this._currentstyle].border.right;
this._laststyle=this._currentstyle;
};
this.ThemeUpdateSliderLength=function(){
if(!this._scale_grip){
return false;
}
var len=this.GetData("slider-length");
if(!isNaN(len)&&len>0){
this._scale_grip.style[this._maj_dim]=String(len)+"px";
this.ThemeRecomputeClipBounds();
}
};
this.ThemeGetBarSize=function(){
if(!this._scale_bar){
return this._min_size;
}
var str=this._scale_bar.style[this._maj_dim];
if(!str){
return this._min_size;
}
return parseInt(str);
};
this.StkScaleTheme_ThemeOnGripClick=this._ThemeOnGripClick=function(_18e){
if(this.GetData("sensitive")==false){
return;
}
this.ThemeUpdateColor();
return false;
};
this.StkScaleTheme_ThemeOnGripMouseDown=this._ThemeOnGripMouseDown=function(_18f){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="active";
}
this.ThemeUpdateColor();
};
this.StkScaleTheme_ThemeOnGripMouseUp=this._ThemeOnGripMouseUp=function(_190){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="hover";
}
this.ThemeUpdateColor();
};
this.StkScaleTheme_ThemeOnGripMouseOver=this._ThemeOnGripMouseOver=function(_191){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="hover";
}
this.ThemeUpdateColor();
StkHtmlHeldAnimationHelper.Stop();
_181=true;
};
this.StkScaleTheme_ThemeOnGripMouseOut=this._ThemeOnGripMouseOut=function(_192){
if(this.GetData("sensitive")==false){
this._currentstyle="inactive";
}else{
this._currentstyle="normal";
}
this.ThemeUpdateColor();
_181=false;
};
this.StkScaleTheme_ThemeOnBarClick=this._ThemeOnBarClick=function(_193){
if(_181){
return;
}
};
this.StkScaleTheme_ThemeOnBarMouseDown=this._ThemeOnBarMouseDown=function(_194){
if(!this.GetSensitive()){
return;
}
if(_181){
return;
}
var e=new STK.Engine.Event(_194);
var ePos=e.Location();
var _197=this.style.GetElementPos(this._scale_bar);
var _198=this.style.GetElementPos(this._scale_grip);
var dir=1;
if(_198[this._maj_axis]>ePos[this._maj_axis]){
dir=-1;
}
var _19a=this.GetData("slider-length")/2;
var _19b=(ePos[this._maj_axis]-_19a)-_197[this._maj_axis];
var _19c=this.OffsetToValue(_19b);
var adj=this.GetAdjustment();
var step=(adj.GetData("upper")-adj.GetData("lower"))/40;
StkHtmlHeldAnimationHelper.Start(_182,[dir,_19c],this.GetValue(),step,dir,200,0.75);
};
this.StkScaleTheme_ThemeOnBarMouseUp=this._ThemeOnBarMouseUp=function(_19f){
if(_181){
return;
}
StkHtmlHeldAnimationHelper.Stop();
};
this.StkScaleTheme_ThemeOnBarMouseOver=this._ThemeOnBarMouseOver=function(_1a0){
if(_181){
return;
}
};
this.StkScaleTheme_ThemeOnBarMouseOut=this._ThemeOnBarMouseOut=function(_1a1){
if(_181){
return;
}
StkHtmlHeldAnimationHelper.Stop();
};
this.OnBarMove=function(_1a2,_1a3){
if(_1a3[0]>0){
if(_1a2>_1a3[1]){
return false;
}
}else{
if(_1a2<_1a3[1]){
return false;
}
}
this.SetValue(_1a2);
this.ThemeUpdateValue();
this.ThemeUpdatePosition();
return true;
};
this._ThemeOnDragStart=function(x,y,_1a6){
if(!this.GetData("sensitive")){
return false;
}
var _1a7=this.GetData("update-policy");
if(_1a7==STK.UpdateType.DELAYED){
_last_update=STK.Engine.Timer.GetTime();
}
return true;
};
this.ThemeOnValueChanged=function(_1a8,_1a9){
this.ThemeUpdateValue();
this.ThemeUpdatePosition();
};
this.OffsetToValue=function(_1aa){
var adj=this.GetAdjustment();
var l=adj.GetData("lower");
var u=adj.GetData("upper");
var ps=adj.GetData("page-size");
if((u-l)<=0){
return 0;
}
var s=adj.GetData("step-increment");
var f=_1aa/(this._bar_max_value-this._bar_min_value);
var val=l+(((u-l)-ps)*f);
if(s>0){
val=val-(val%s);
}
if(_1aa<=this._bar_min_value){
val=l;
}
if(_1aa>=this._bar_max_value){
val=u-ps;
}
return val;
};
this.ValueToOffset=function(val){
var adj=this.GetAdjustment();
var l=adj.GetData("lower");
var u=adj.GetData("upper");
var ps=adj.GetData("page-size");
if((u-l)<=0){
return 0;
}
var _1b7=(val-l)/((u-l)-ps);
var off=_1b7*(this._bar_max_value-this._bar_min_value);
if(isNaN(off)){
off=this._bar_min_value;
}else{
if(off<this._bar_min_value){
off=this._bar_min_value;
}else{
if(off>this._bar_max_value){
off=this._bar_max_value;
}
}
}
return Math.floor(off);
};
_182=STK.Delegate(this,"OnBarMove");
};
STK.Theme.Scale._styles={normal:{color:"#61a1ff",border:{right:"#76b6df",left:"#287df2",top:"#348bed",bottom:"#2e85e8"}},active:{color:"#a1cff1",border:{right:"#b6e4d1",left:"#68abe4",top:"#74b9df",bottom:"#6eb3da"}},hover:{color:"#81c1ff",border:{right:"#96e6d1",left:"#489de4",top:"#54abdf",bottom:"#4ea5da"}},inactive:{color:"#888888",border:{right:"#8b8b8b",left:"#646464",top:"#6C6C6C",bottom:"#666666"}}};
STK.Theme.HScale=function(){
STK.Theme.Scale.apply(this);
this._start_side="left";
this._adj_size="top";
this._maj_axis="x";
this._maj_dim="width";
this.StkHScaleThemeMap=this.ThemeMap=function(_1b9){
var e=this.StkScaleThemeMap(_1b9);
this._scale_bar.style.height="17px";
this._scale_grip.style.height="16px";
if(this.GetData("draw-inline")){
this._scale_bar.style.borderLeft="";
this._scale_bar.style.borderRight="";
this._frame.style.padding="0px";
}
if(!STK.UserAgent.IsExplorer6()){
this._scale_grip.style.backgroundImage="url("+STK.Path.FindImage("/theme/Plain/entry/hscale/shine")+")";
this._scale_grip.style.backgroundRepeat="repeat-x";
}
return e;
};
this.StkHScaleThemeMeasure=this.Measure=function(){
var _1bb={"w":0,"h":0};
if(this.GetData("draw-value")){
_1bb=STK.Engine.Text.Measure(this._scale_value.innerHTML);
}
var _1bc=2;
if(this.GetData("draw-inline")){
_1bc=0;
}
return {"w":Math.max(this._min_size+_1bc,_1bb.w),"h":_1bb.h+19};
};
this.StkHScaleThemeReallocate=this.Reallocate=function(w,h){
var _1bf=w;
if(!this.GetData("draw-inline")){
_1bf-=2;
}
this._frame.style.width=_1bf+"px";
this.ThemeRecomputeClipBounds();
var off=parseInt(this._scale_grip.style.left);
var val=this.OffsetToValue(off);
this.SetValue(val);
};
this.StkHScaleThemeRecomputeClipBounds=this.ThemeRecomputeClipBounds=function(){
if(!this._frame){
return;
}
var w=this._frame.style.width;
if(!w){
w=this._min_size;
}
w=parseInt(w);
var _1c3=parseInt(this.GetData("slider-length"));
var wBar=w;
this._scale_bar.style.width=wBar;
this._bar_min_value=0;
this._bar_max_value=wBar-_1c3;
if(!STK.UserAgent.IsExplorer()){
this._bar_max_value-=2;
}
StkHtmlDrag.SetClipBounds(this._scale_grip,this._bar_min_value,this._bar_max_value,0,0);
this.ThemeUpdatePosition();
};
this.StkHScaleThemeUpdate=this.ThemeUpdate=function(){
return this.StkScaleThemeUpdate();
};
this._ThemeOnDragEnd=function(x,y,_1c7){
var off=this.OffsetToValue(x);
this.SetValue(off);
};
this._ThemeOnDragUpdate=function(x,y,_1cb,_1cc,_1cd){
this._scale_grip.style.left=x+"px";
var off=this.OffsetToValue(x);
var _1cf=this.GetData("update-policy");
if(_1cf==STK.UpdateType.CONTINUOUS){
this.SetValue(off);
}else{
if(_1cf==STK.UpdateType.DELAYED){
var _1d0=STK.Engine.Timer.GetTime();
if((_1d0-_last_update)>this.DELAY_TIMEOUT){
this.SetValue(off);
_last_update=_1d0;
}
}
}
};
};
STK.Theme.SpinButton=function(){
var _1d1;
var _1d2;
var _1d3;
var _1d4;
this.StkSpinButtonThemeMap=this.ThemeMap=function(_1d5){
_1d1=this.style.CreateTable();
_1d1.cellPadding=0;
_1d1.cellSpacing=0;
_1d1.style.display="none";
var r1=_1d1.insertRow(-1);
var r2=_1d1.insertRow(-1);
_1d2=r1.insertCell(-1);
_1d2.rowSpan=2;
_1d3=r1.insertCell(1);
_1d4=r2.insertCell(0);
this.style.AppendChild(_1d5,_1d1);
return _1d2;
};
this.StkSpinButtonThemeIsMapped=this.ThemeIsMapped=function(){
return _1d1!=null;
};
this.StkSpinButtonThemeShow=this.ThemeShow=function(){
if(!_1d1){
return;
}
_1d1.style.display="block";
};
this.StkSpinButtonThemeHide=this.ThemeHide=function(){
if(!_1d1){
return;
}
_1d1.style.display="none";
};
this.ThemeGetEntryArea=function(){
return _1d2;
};
this.ThemeGetButtonUpArea=function(){
return _1d3;
};
this.ThemeGetButtonDownArea=function(){
return _1d4;
};
};
STK.Theme.VScale=function(){
STK.Theme.Scale.apply(this);
this._start_side="top";
this._adj_size="left";
this._maj_axis="y";
this._maj_dim="height";
this.StkVScaleThemeMap=this.ThemeMap=function(_1d8){
var e=this.StkScaleThemeMap(_1d8);
this._frame.style.overflow="visible";
this._scale_bar.style.width="16px";
this._scale_grip.style.width="12px";
if(this.GetData("draw-inline")){
this._scale_bar.style.borderBottom="";
this._scale_bar.style.borderTop="";
this._frame.style.padding="0px";
}
if(!STK.UserAgent.IsExplorer6()){
this._scale_grip.style.width="14px";
this._scale_grip.style.backgroundImage="url("+STK.Path.FindImage("/theme/Plain/entry/vscale/shine")+")";
this._scale_grip.style.backgroundPosition="top right";
this._scale_grip.style.backgroundRepeat="repeat-y";
}
return e;
};
this.StkVScaleThemeMeasure=this.ThemeMeasure=function(){
var _1da={"w":0,"h":0};
if(this.GetData("draw-value")){
_1da=STK.Engine.Text.Measure(this._scale_value.innerHTML);
}
var _1db=2;
if(this.GetData("draw-inline")){
_1db=0;
}
var _1dc=this.style.GetElementSize(this._frame);
return {"w":Math.max(_1da.w,16)+2,"h":this._min_size+_1db};
};
this.StkVScaleThemeReallocate=this.ThemeReallocate=function(w,h){
var _1df=h;
if(!this.GetData("draw-inline")){
_1df-=2;
}
this._frame.style.height=_1df+"px";
this.ThemeRecomputeClipBounds();
var off=parseInt(this._scale_grip.style.top);
var val=this.OffsetToValue(off);
this.SetValue(val);
};
this.StkVScaleThemeRecomputeClipBounds=this.ThemeRecomputeClipBounds=function(){
if(!this._frame){
return;
}
var h=this._frame.style.height;
if(!h){
h=this._min_size;
}
h=parseInt(h);
var _1e3={"w":0,"h":0};
if(this.GetData("draw-value")){
_1e3=STK.Engine.Text.Measure(this._scale_value.innerHTML);
}
var _1e4=this.GetData("slider-length");
var hBar=h-_1e3.h;
if(STK.UserAgent.IsGecko()&&!this.GetData("draw-inline")){
hBar-=2;
}
this._scale_bar.style.height=hBar+"px";
this._bar_min_value=0;
this._bar_max_value=hBar-_1e4;
if(!STK.UserAgent.IsExplorer()){
this._bar_max_value-=2;
}
StkHtmlDrag.SetClipBounds(this._scale_grip,0,0,this._bar_min_value,this._bar_max_value);
this.ThemeUpdatePosition();
};
this.StkVScaleThemeUpdate=this.ThemeUpdate=function(){
return this.StkScaleThemeUpdate();
};
this._ThemeOnDragEnd=function(x,y,_1e8){
var off=this.OffsetToValue(y);
this.SetValue(off);
};
this._ThemeOnDragUpdate=function(x,y,_1ec,_1ed,_1ee){
this._scale_grip.style.top=y+"px";
var off=this.OffsetToValue(y);
var _1f0=this.GetData("update-policy");
if(_1f0==STK.UpdateType.CONTINUOUS){
this.SetValue(off);
}else{
if(_1f0==STK.UpdateType.DELAYED){
var _1f1=STK.Engine.Timer.GetTime();
if((_1f1-_last_update)>this.DELAY_TIMEOUT){
this.SetValue(off);
_last_update=_1f1;
}
}
}
};
};
STK.Theme.Alignment=function(){
this.StkAlignmentThemeMap=this.ThemeMap=function(_1f2){
if(this._frame){
return;
}
this._frame=this.style.CreateDiv();
this._frame.style.display="none";
this.style.AppendChild(_1f2,this._frame);
this.ThemeUpdate();
return this._frame;
};
this.StkAlignmentThemeReallocate=this.ThemeReallocate=function(w,h){
var cld=this.GetChild();
var remW=w-parseInt(this.GetData("left-padding")+this.GetData("right-padding"));
var remH=h-parseInt(this.GetData("top-padding")+this.GetData("bottom-padding"));
var xs=parseFloat(this.GetData("xscale"));
var ys=parseFloat(this.GetData("yscale"));
var modW=Math.max(this.GetData("measured-w"),Math.round(remW*xs));
var modH=Math.max(this.GetData("measured-h"),Math.round(remH*ys));
if(cld){
cld.Reallocate(modW,modH);
}
remW-=modW;
remH-=modH;
var _1fc=modW-this.GetData("measured-w");
var _1fd=modH-this.GetData("measured-h");
var xa=parseFloat(this.GetData("xalign"));
var ya=parseFloat(this.GetData("yalign"));
var _200=Math.floor((remW-_1fc)*xa);
var _201=Math.floor((remH-_1fd)*ya);
this.SetData("left-align",_200);
this.SetData("top-align",_201);
this.ThemeUpdate();
if(STK.UserAgent.IsExplorer()){
this._frame.style.width=w+"px";
this._frame.style.height=h+"px";
}else{
var _202=parseInt(this._frame.style.paddingLeft)+parseInt(this._frame.style.paddingRight);
var _203=parseInt(this._frame.style.paddingTop)+parseInt(this._frame.style.paddingBottom);
this._frame.style.width=(w-_202)+"px";
this._frame.style.height=(h-_203)+"px";
}
};
this.StkAlignmentThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
var ta=this.GetData("top-align");
var la=this.GetData("left-align");
if(ta==undefined){
ta=0;
}
if(la==undefined){
la=0;
}
var tp=this.GetData("top-padding");
var bp=this.GetData("bottom-padding");
var lp=this.GetData("left-padding");
var rp=this.GetData("right-padding");
this._frame.style.paddingTop=parseInt(tp)+parseInt(ta)+"px";
this._frame.style.paddingBottom=parseInt(bp)+"px";
this._frame.style.paddingLeft=parseInt(lp)+parseInt(la)+"px";
this._frame.style.paddingRight=parseInt(rp)+"px";
};
};
STK.Theme.HBox=function(){
var _20a;
var _20b="hbox_cell_"+this.Name();
var _20c=0;
var _20d={};
this.StkHBoxThemeMap=this.ThemeMap=function(_20e){
if(this._frame){
return this._frame;
}
this._frame=this.style.CreateTable();
this._frame.style.display="none";
this._frame.cellSpacing="0px";
this._frame.cellPadding="0px";
_20a=this._frame.insertRow(-1);
this.style.AppendChild(_20e,this._frame);
};
this.StkHBoxThemeMapChildArea=this.ThemeMapChildArea=function(_20f,_210){
if(!_20a){
return;
}
var cell=_20a.insertCell(_210);
cell.id=_20b+"_"+_20c;
_20c++;
_20d[cell.id]=cell;
this.SetChildProperty(_20f,"_cell_id",cell.id);
return cell;
};
this.StkHBoxThemeGetChildArea=this.ThemeGetChildArea=function(_212){
if(!_20a){
return null;
}
return _20a.cells[_212];
};
this.StkHBoxThemeGetChildAreaById=this.ThemeGetChildAreaById=function(_213){
if(!_20a){
return null;
}
if(!_20d[_213]){
return null;
}
return _20d[_213];
};
this.StkHBoxThemeSetChildExpansion=this.ThemeSetChildExpansion=function(_214,_215){
if(!this._frame){
return;
}
var cell=this.ThemeGetChildArea(_214);
if(_215<=0){
cell.style.width="";
}else{
cell.style.width=_215+"px";
}
};
this.StkHBoxThemeUnmapChildArea=this.ThemeUnmapChildArea=function(_217){
if(!_20a){
return null;
}
if(!_20d[_217]){
return null;
}
var cell=_20d[_217];
cell.parentNode.removeChild(cell);
delete _20d[_217];
};
this.StkHBoxThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
if(!_20a){
return;
}
var _219=0;
var tmp=this.GetData("spacing");
if(tmp!=undefined){
_219+=parseInt(tmp);
}
var sz=this.GetSizeRequest();
if(sz.w>0){
this._frame.style.width=String(sz.w)+"px";
}
if(sz.h>0){
this._frame.style.height=String(sz.h)+"px";
}
for(var i in this._container_widgets){
var _21d=this._container_widgets[i];
var _21e=this.GetChildProperty(_21d,"_cell_id");
var cell=this.ThemeGetChildAreaById(_21e);
if(!cell){
continue;
}
padding=parseInt(this.GetChildProperty(_21d,"padding"));
if(isNaN(padding)){
padding=0;
}
cell.style.padding=String(_219+padding)+"px";
}
};
this.StkHBoxReallocate=this.ThemeReallocate=function(w,h){
this._frame.style.width=w+"px";
this._frame.style.height=h+"px";
};
};
STK.Theme.HButtonBox=function(){
this.StkHButtonBoxThemeReallocate=this.ThemeReallocate=function(w,h){
this._frame.style.width="";
this._frame.style.height="";
var _224=0;
var _225=0;
var _226=this.GetChildren();
for(var name in _226){
var _228=this.GetChildProperty(_226[name],"last-measured-w");
if(_228>_224){
_224=_228;
}
_225++;
}
var _229=w-(_224*_225);
if(_229<=0){
return;
}
var lo=this.GetLayout();
if(lo==STK.ButtonBoxStyle.END){
var cell=this.ThemeGetChildArea(0);
if(cell){
cell.style.paddingLeft=_229+"px";
}
}else{
if(lo==STK.ButtonBoxStyle.SPREAD){
var _22c=Math.floor(_229/(_225+1));
var _22d=0;
var _226=this.GetChildren();
for(var name in _226){
var cell=this.ThemeGetChildArea(_22d);
cell.style.paddingLeft=_22c+"px";
_22d++;
}
}else{
if(lo==STK.ButtonBoxStyle.EDGE){
if(_225<=1){
return;
}
var _22c=Math.floor(_229/(_225-1));
var _22d=0;
var _226=this.GetChildren();
for(var name in _226){
if(_22d!=0){
var cell=this.ThemeGetChildArea(_22d);
cell.style.paddingLeft=_22c+"px";
}
_22d++;
}
}
}
}
};
};
STK.Theme.Table=function(){
var _22e;
this.StkTableThemeMap=this.ThemeMap=function(_22f){
if(_22e){
return null;
}
_22e=this.style.CreateTable();
_22e.cellPadding="0px";
_22e.cellSpacing="0px";
_22e.style.display="none";
this.style.AppendChild(_22f,_22e);
return null;
};
this.StkTableThemeIsMapped=this.ThemeIsMapped=function(){
if(_22e){
return true;
}
return false;
};
this.StkTableThemeMapCell=this.ThemeMapCell=function(_230,left,_232,top,_234,_235,_236,_237,_238){
if(!_22e){
return null;
}
for(var i=0;i<_234;i++){
if(!_22e.rows[i]){
_22e.insertRow(-1);
}
}
var cell=_22e.rows[top].insertCell(-1);
cell.colSpan=_232-left;
cell.rowSpan=_234-top;
cell.style.paddingLeft=_235+"px";
cell.style.paddingRight=_235+"px";
cell.style.paddingTop=_236+"px";
cell.style.paddingBottom=_236+"px";
if(_237<0.5){
cell.align="left";
}else{
if(_237>0.5){
cell.align="right";
}else{
cell.align="center";
}
}
if(_238<0.5){
cell.vAlign="top";
}else{
if(_238>0.5){
cell.vAlign="bottom";
}else{
cell.vAlign="middle";
}
}
return cell;
};
this.StkTableThemeGetChildArea=this.ThemeGetChildArea=function(left,_23c,top,_23e){
if(!_22e){
return null;
}
return _22e.rows[left].cells[top];
};
this.StkTableThemeShow=this.ThemeShow=function(){
if(!_22e){
return;
}
this.style.SetDisplayTable(_22e);
};
this.StkTableThemeHide=this.ThemeHide=function(){
if(!_22e){
return;
}
_22e.style.display="none";
};
};
STK.Theme.VBox=function(){
var _23f={};
var _240="vbox_cell_"+this.Name();
var _241=0;
this.StkVBoxThemeMap=this.ThemeMap=function(_242){
if(this._frame){
return this._frame;
}
this._frame=this.style.CreateTable();
this._frame.cellPadding="0px";
this._frame.cellSpacing="0px";
this._frame.style.display="none";
this.style.AppendChild(_242,this._frame);
return this._frame;
};
this.StkVBoxThemeMapChildArea=this.ThemeMapChildArea=function(_243,_244){
if(!this._frame){
return false;
}
var row=this._frame.insertRow(_244);
var cell=row.insertCell(-1);
cell.id=_240+"_"+_241;
_241++;
_23f[cell.id]=cell;
this.SetChildProperty(_243,"_cell_id",cell.id);
return cell;
};
this.StkVBoxThemeGetChildArea=this.ThemeGetChildArea=function(_247){
if(!this._frame){
return false;
}
var row=this._frame.rows[_247];
if(!row){
return;
}
return row.cells[0];
};
this.StkVBoxThemeGetChildAreaById=this.ThemeGetChildAreaById=function(_249){
if(!this._frame){
return;
}
if(!_23f[_249]){
return;
}
return _23f[_249];
};
this.StkVBoxThemeSetChildExpansion=this.ThemeSetChildExpansion=function(_24a,_24b){
if(!this._frame){
return;
}
var cell=this.ThemeGetChildArea(_24a);
if(_24b<=0){
cell.style.height="";
}else{
cell.style.height=_24b+"px";
}
};
this.StkVBoxThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
var _24d=parseInt(this.GetData("spacing"));
var sz=this.GetSizeRequest();
if(sz.w>0){
this._frame.style.width=String(sz.w)+"px";
}
if(sz.h>0){
this._frame.style.height=String(sz.h)+"px";
}
for(var i in this._container_widgets){
var _250=this._container_widgets[i];
var _251=this.GetChildProperty(_250,"_cell_id");
var cell=this.ThemeGetChildAreaById(_251);
if(!cell){
continue;
}
var _253;
var fill;
var _255=parseInt(this.GetChildProperty(_250,"padding"));
if(isNaN(_255)){
_255=0;
}
_255+=_24d;
cell.style.padding=String(_255)+"px";
}
};
this.StkVBoxThemeUnmapChildArea=this.ThemeUnmapChildArea=function(_256){
if(!this._frame){
return;
}
if(!_23f[_256]){
return;
}
this._frame.removeChild(_23f[_256]);
delete _23f[_256];
};
this.StkVBoxReallocate=this.ThemeReallocate=function(w,h){
this._frame.style.width=w+"px";
this._frame.style.height=h+"px";
};
};
STK.Theme.VButtonBox=function(){
this.StkVButtonBoxThemeReallocate=this.ThemeReallocate=function(w,h){
this._frame.style.width="";
this._frame.style.height="";
this._frame.parentNode.style.verticalAlign="top";
var _25b=0;
var _25c=0;
var _25d=this.GetChildren();
for(var name in _25d){
var _25f=this.GetChildProperty(_25d[name],"last-measured-h");
if(_25f>_25b){
_25b=_25f;
}
_25c++;
}
var _260=h-(_25b*_25c);
if(_260<=0){
return;
}
var lo=this.GetLayout();
if(lo==STK.ButtonBoxStyle.END){
var cell=this.ThemeGetChildArea(0);
cell.style.paddingTop=_260+"px";
}else{
if(lo==STK.ButtonBoxStyle.SPREAD){
var _263=Math.floor(_260/(_25c+1));
var _264=0;
var _25d=this.GetChildren();
for(var name in _25d){
var cell=this.ThemeGetChildArea(_264);
cell.style.paddingTop=_263+"px";
_264++;
}
}else{
if(lo==STK.ButtonBoxStyle.EDGE){
if(_25c<=1){
return;
}
var _263=Math.floor(_260/(_25c-1));
var _264=0;
var _25d=this.GetChildren();
for(var name in _25d){
if(_264!=0){
var cell=this.ThemeGetChildArea(_264);
cell.style.paddingTop=_263+"px";
}
_264++;
}
}
}
}
};
};
function StkMenuTheme(){
var _265;
this.StkMenuThemeShow=this.ThemeShow=function(){
if(!_265){
return;
}
this.style.SetDisplayTable(_265);
StkWindowManager.Show(_265);
};
this.StkMenuThemeHide=this.ThemeHide=function(){
if(!_265){
return;
}
_265.style.display="none";
StkWindowManager.Hide(_265);
};
this.StkMenuThemeIsMapped=this.ThemeIsMapped=function(){
return _265!=null;
};
this.StkMenuThemeMap=this.ThemeMap=function(_266){
if(_265){
return _265;
}
_265=this.style.CreateTable();
_265.cellPadding=0;
_265.cellSpacing=0;
_265.style.display="none";
_265.style.backgroundColor="#FF00FF";
_265.stk_window_tag=_265.id;
var cur=_266;
var _268=null;
while(cur!=null&&_268==null){
if(cur.stk_window_tag){
_268=document.getElementById(cur.stk_window_tag);
}
cur=cur.parentNode;
}
StkWindowManager.Setup(_265,_268,"",StkWindowType.TEMP,StkWindowTypeHint.MENU,true);
this.ThemeUpdate();
return _265;
};
this.StkMenuThemeMapChildArea=this.MapChildArea=function(){
if(!_265){
return;
}
var r=_265.insertRow(-1);
r.className="plain-menu-row";
var _26a=r.insertCell(-1);
_26a.className="plain-menu-icon";
var _26b=r.insertCell(-1);
_26b.className="plain-menu-cell";
var _26c=r.insertCell(-1);
_26c.className="plain-menu-accel";
var _26d=r.insertCell(-1);
_26d.className="plain-menu-expand";
return [_265,[_26a,_26b,_26c,_26d]];
};
this.StkMenuThemeUpdate=this.ThemeUpdate=function(){
};
this.ThemeIntersectMenu=function(_26e){
return false;
};
this._ThemePositionSubmenu=function(_26f){
var pos=_26f.ThemeGetPosition();
var size=_26f.ThemeGetSize();
pos.x+=size.w;
return pos;
};
this._ThemeSetPosition=function(pos){
StkWindowManager.Move(_265,pos.x,pos.y);
};
this._ThemeOnMouseOver=function(e){
};
this._ThemeOnMouseOut=function(e){
};
}
function StkMenuBarTheme(){
var _275;
var _276;
var _277;
this.StkMenuBarThemeShow=this.ThemeShow=function(){
if(!_275){
return;
}
this.style.SetDisplayTable(_275);
};
this.StkMenuBarThemeHide=this.ThemeHide=function(){
if(!_275){
return;
}
_275.style.display="none";
};
this.StkMenuBarThemeMap=this.ThemeMap=function(_278){
if(_275){
return;
}
_275=this.style.CreateTable();
_275.cellPadding=0;
_275.cellSpacing=0;
_275.style.display="none";
_275.style.backgroundColor="#F8F8FF";
_275.style.fontFamily="arial, sans-serif";
_275.style.borderBottom="1px solid #888888";
_275.style.width="100%";
_275._widget_name=this.Name();
var r=_275.insertRow(-1);
var c=r.insertCell(-1);
_276=this.style.CreateTable();
_276.cellPadding=2;
_276.cellSpacing=0;
_276.style.backgroundColor="#F8F8FF";
_276.style.fontFamily="arial, sans-serif";
c.appendChild(_276);
_277=_276.insertRow(-1);
_277.style.backgroundColor="#F8F8FF";
this.style.AppendChild(_278,_275);
this._ThemeMenuBarDrawToplevel();
return _276;
};
this._ThemeMenuBarDrawToplevel=function(){
while(_277.cells&&_277.cells.length>0){
_277.deleteCell(0);
}
var iter=this.children.First();
while(iter.HasMoreElements()){
var c=_277.insertCell(-1);
var _27d=iter.Data();
if(_27d&&_27d.Map){
_27d.Map(_275,[null,c,null,null]);
}
iter.MoveNext();
}
};
this.ThemePositionSubmenu=function(_27e,_27f){
var _280=StkObjectManager.Query(_27f);
var pos=_280.ThemeGetPosition();
var size=_280.ThemeGetSize();
pos.y+=size.h;
return pos;
};
}
function StkMenuItemTheme(){
var _283;
var _284;
var _285;
var _286;
var _287=null;
this.StkMenuItemThemeShow=this.ThemeShow=function(){
if(!_284){
return;
}
this.style.SetDisplayTable(_283);
this.style.SetDisplayTable(_284);
this.style.SetDisplayTable(_285);
this.style.SetDisplayTable(_286);
};
this.StkMenuItemThemeHide=this.ThemeHide=function(){
if(!_284){
return;
}
_283.style.display="none";
_284.style.display="none";
_285.style.display="none";
_286.style.display="none";
};
this.StkMenuItemThemeIsMapped=this.ThemeIsMapped=function(){
return _284!=null;
};
this.StkMenuItemThemeMap=this.ThemeMap=function(_288,_289,_28a,_28b){
if(_284){
return;
}
var _28c=STK.Delegate(this.Name(),"_ThemeOnClick");
var _28d=STK.Delegate(this.Name(),"_ThemeOnMouseOver");
var _28e=STK.Delegate(this.Name(),"_ThemeOnMouseOut");
_283=this.style.CreateImage();
_283.style.display="none";
_283.style.backgroundPosition="top left";
_283.style.backgroundRepeat="repeat-x";
_283.style.cursor="pointer";
_283._widget_name=this.Name();
_283.src=STK.Path.FindImage("/theme/Plain/icons/16x16/blank");
_283.onclick=_28c;
_283.onmouseover=_28d;
_283.onmouseout=_28e;
if(_288){
_288.appendChild(_283);
}
_284=this.style.CreateDiv();
_284.style.display="none";
_284.style.backgroundPosition="top left";
_284.style.backgroundRepeat="repeat-x";
_284.style.cursor="pointer";
_284.style.paddingLeft="2px";
_284.style.paddingRight="4px";
_284._widget_name=this.Name();
_284.onclick=_28c;
_284.onmouseover=_28d;
_284.onmouseout=_28e;
if(_289){
_289.appendChild(_284);
}
_285=this.style.CreateDiv();
_285.style.display="none";
_285.style.backgroundPosition="top left";
_285.style.backgroundRepeat="repeat-x";
_285.style.cursor="pointer";
_285._widget_name=this.Name();
_285.onclick=_28c;
_285.onmouseover=_28d;
_285.onmouseout=_28e;
if(_28a){
_28a.appendChild(_285);
}
_286=this.style.CreateImage();
_286.width=7;
_286.height=7;
_286.src=STK.Path.FindImage("/theme/Plain/menu/menuitem/menuitem_expander_blank.gif");
_286.style.display="none";
_286.style.backgroundPosition="top left";
_286.style.backgroundRepeat="repeat-x";
_286.style.cursor="pointer";
_286.style.paddingLeft="2px";
_286.style.paddingRight="2px";
_286._widget_name=this.Name();
_286.onclick=_28c;
_286.onmouseover=_28d;
_286.onmouseout=_28e;
if(_28b){
_28b.appendChild(_286);
}
this.ThemeUpdate();
return _284;
};
this.StkMenuItemThemeUpdate=this.ThemeUpdate=function(){
this._ThemeSetDisplay("normal");
if(this.GetSubmenu()){
_286.src=STK.Path.FindImage("/theme/Plain/menu/menuitem/menuitem_expander.png");
}else{
_286.src=STK.Path.FindImage("/theme/Plain/menu/menuitem/menuitem_expander_blank.gif");
}
};
this._ThemeSetDisplay=function(_28f){
var _290=StkMenuItemTheme._styles[_28f].bgcolor;
var clr=StkMenuItemTheme._styles[_28f].color;
if(_283.parentNode){
_283.parentNode.style.backgroundColor=_290;
_283.parentNode.style.color=clr;
}
if(_284.parentNode){
_284.parentNode.style.backgroundColor=_290;
_284.parentNode.style.color=clr;
}
if(_285.parentNode){
_285.parentNode.style.backgroundColor=_290;
_285.parentNode.style.color=clr;
}
if(_286.parentNode){
_286.parentNode.style.backgroundColor=_290;
_286.parentNode.style.color=clr;
}
};
this.ThemeGetPosition=function(){
return this.style.GetElementPos(_284);
};
this.ThemeGetSize=function(){
var szi=this.style.GetElementSize(_283);
var szm=this.style.GetElementSize(_284);
var sza=this.style.GetElementSize(_285);
var sze=this.style.GetElementSize(_286);
return {"w":(szi.w+szm.w+sza.w+sze.w),"h":szm.h};
};
this._ThemeOnClick=function(e){
if(this.owner_menu){
this.owner_menu._ActivateItem(this);
}
};
this._ThemeOnMouseOver=function(e){
this._ThemeSetDisplay("hover");
this.Select();
if(this.owner_menu){
this.owner_menu._EnterItem(this);
}
};
this._ThemeOnMouseOut=function(e){
this._ThemeSetDisplay("normal");
this.Deselect();
if(this.owner_menu){
this.owner_menu._LeaveItem(this);
}
};
this._ThemeOnSubmenuPopout=function(){
_287=null;
this.Activate();
};
this._ThemeParentType=function(){
if(!this.owner_menu){
return "none";
}
if(this.owner_menu._type=="STK_TYPE_MENU"){
return "normal";
}
if(this.owner_menu._type=="STK_TYPE_MENUBAR"){
return "bar";
}
return "none";
};
}
StkMenuItemTheme.AUTO_POPOUT_DELAY=100;
StkMenuItemTheme._styles={normal:{bgcolor:"transparent",color:"#000000",border:{top:"#76b6df",bottom:"#287df2",left:"#348bed",right:"#2e85e8"}},active:{bgcolor:"#a1cff1",color:"#000000",border:{top:"#b6e4d1",bottom:"#68abe4",left:"#74b9df",right:"#6eb3da"}},hover:{bgcolor:"#81c1ff",color:"#000000",border:{top:"#96e6d1",bottom:"#489de4",left:"#54abdf",right:"#4ea5da"}},inactive:{bgcolor:"#5b5b5b",color:"#000000",border:{top:"#8b8b8b",bottom:"#646464",left:"#6C6C6C",right:"#666666"}}};
STK.Theme.SimpleComboBox=function(){
this.StkSimpleComboBoxThemeMap=this.ThemeMap=function(_299){
STK.Log.Debug("PARENT: %s",_299.tagName);
if(this._frame){
return;
}
this._frame=this.style.CreateSelect();
STK.Engine.Event.Register(this._frame,"change",STK.Delegate(this,"_ThemeOnChanged"));
STK.Engine.Event.Register(this._frame,"mousedown",STK.Delegate(this,"_ThemeOnMouseDown"));
if(STK.UserAgent.IsExplorer6()){
STK.Requeue(STK.Delegate(this,"ThemeUpdate"));
}else{
this.ThemeUpdate();
}
this.style.AppendChild(_299,this._frame);
};
this.StkSimpleComboBoxThemeMeasure=this.ThemeMeasure=function(){
return this.style.GetElementSize(this._frame);
};
this.StkSimpleComboBoxThemeReallocate=this.ThemeReallocate=function(w,h){
};
this.StkSimpleComboBoxThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
for(var i=this._frame.length-1;i>=0;i--){
this._frame.remove(i);
}
for(var i in this._items){
var opt=this.style.CreateOption();
opt.text=this._items[i][0];
opt.value=this._items[i][1];
if(STK.UserAgent.IsExplorer()){
this._frame.add(opt);
}else{
this._frame.add(opt,null);
}
}
this._frame.selectedIndex=this._active;
this._frame.disabled=!this.GetData("sensitive");
};
this._ThemeOnMouseDown=function(e){
var evt=new STK.Engine.Event(e);
evt.StopPropagation();
};
this._ThemeOnChanged=function(_2a0){
for(var i=this._frame.length-1;i>=0;i--){
if(this._frame.options[i].selected){
this._active=Number(i);
this.Emit("changed");
}
}
};
};
STK.Theme.EventBox=function(){
this.StkEventBoxThemeMap=this.ThemeMap=function(_2a2){
if(this._frame){
return;
}
this._frame=this.style.CreateDiv();
this._frame.style.display="none";
this.style.AppendChild(_2a2,this._frame);
return this._frame;
};
};
STK.Theme.Tooltips=function(){
var _2a3;
var _2a4=STK.Delegate(this,"_ThemeOnShowTimeout");
var _2a5=null;
var _2a6=null;
var _2a7;
var _2a8;
var _2a9;
this.StkTooltipsTheme_ThemeOnWidgetEnter=this._ThemeOnWidgetEnter=function(_2aa){
if(_2a6!=null){
return;
}
_2a5=_2aa;
_2a6=STK.Engine.Timer.Start(_2a4,STK.Theme.Tooltips.Delay);
};
this.StkTooltipsTheme_ThemeOnWidgetLeave=this._ThemeOnWidgetLeave=function(_2ab){
if(_2a6!=null){
STK.Engine.Timer.Stop(_2a6);
_2a6=null;
}
this.ThemeHide();
};
this.StkTooltipsTheme_ThemeOnShowTimeout=this._ThemeOnShowTimeout=function(){
var _2ac=_2a5;
if(!_2ac){
return;
}
var _2ad=this.DataGet(_2ac);
if(!_2ad){
return;
}
_2a7=_2ad.tip_text;
var pos=STK.Catalyst.Cursor.GetPosition();
_2a8=pos.x;
_2a9=pos.y;
this.ThemeMap();
this.ThemeShow();
this.ThemeUpdate();
_2a6=null;
};
this.StkTooltipsThemeMap=this.ThemeMap=function(){
if(this._frame){
return;
}
this._frame=this.style.CreateDiv();
this._frame.style.display="none";
this._frame.style.position="absolute";
this._frame.style.backgroundColor="#FFFFDF";
this._frame.style.border="1px solid #555555";
this._frame.style.paddingTop="1px";
this._frame.style.paddingBottom="1px";
this._frame.style.paddingLeft="4px";
this._frame.style.paddingRight="4px";
this._frame.style.fontSize="80%";
this._frame.style.zIndex=STK.Theme.Tooltips.ZIndex;
this.style.PutPageElement(this._frame);
};
this.StkTooltipsThemeUpdate=this.ThemeUpdate=function(){
if(!this._frame){
return;
}
this._frame.style.top=String(Number(_2a9)+5)+"px";
this._frame.style.left=String(Number(_2a8)+8)+"px";
this._frame.innerHTML=_2a7;
};
STK.Catalyst.Cursor.AddListener();
};
STK.Theme.Tooltips.Delay=1000;
STK.Theme.Tooltips.ZIndex=100000000;
STK.Theme.Frame=function(){
var _2af;
var _2b0;
this.StkFrameThemeMap=this.ThemeMap=function(_2b1){
if(this._frame){
return;
}
this._frame=this.style.CreateTable();
this._frame.cellPadding="0px";
this._frame.cellSpacing="0px";
var r=this._frame.insertRow(-1);
_2af=r.insertCell(-1);
r=this._frame.insertRow(-1);
_2b0=r.insertCell(-1);
this.style.AppendChild(_2b1,this._frame);
this.ThemeUpdate();
return _2b0;
};
this.StkFrameThemeMeasure=this.ThemeMeasure=function(){
var sz=this.GetChild().Measure();
var _2b4=this.GetLabelWidget().Measure();
sz.w=Math.max(sz.w,_2b4.w);
sz.h+=_2b4.h;
return sz;
};
this.StkFrameThemeReallocate=this.ThemeReallocate=function(w,h){
};
this.StkFrameThemeGetLabelArea=this.GetLabelArea=function(){
return _2af;
};
this.StkFrameThemeUpdate=this.ThemeUpdate=function(){
};
};
STK.Theme.HSeparator=function(){
this.StkHSeparatorThemeMap=this.ThemeMap=function(_2b7){
if(this._frame){
return;
}
this._frame=this.style.CreateDiv();
this._frame.style.height="1px";
this._frame.style.maxHeight="1px";
this._frame.style.minHeight="1px";
this._frame.style.fontSize="1pt";
this._frame.style.marginTop="1px";
this._frame.style.borderTop="1px solid #C0C0C0";
this._frame.style.backgroundColor="#AAAAAA";
this._frame.style.borderBottom="1px solid #909090";
this._frame.style.marginBottom="1px";
this.style.AppendChild(_2b7,this._frame);
};
this.StkHSeparatorThemeMeasure=this.ThemeMeasure=function(){
return {"w":1,"h":5};
};
this.StkHSeparatorThemeReallocate=this.ThemeReallocate=function(w,h){
this._frame.width=w+"px";
};
};
STK.Theme.VSeparator=function(){
this.StkVSeparatorThemeMap=this.ThemeMap=function(_2ba){
this._frame=this.style.CreateDiv();
if(!STK.UserAgent.IsExplorer()){
this._frame.style.height="100%";
this._frame.style.width="1px";
this._frame.style.maxWidth="1px";
this._frame.style.minWidth="1px";
this._frame.style.marginLeft="1px";
this._frame.style.borderLeft="1px solid #C0C0C0";
this._frame.style.backgroundColor="#AAAAAA";
this._frame.style.borderRight="1px solid #C0C0C0";
this._frame.style.marginRight="1px";
}
this.style.AppendChild(_2ba,this._frame);
return null;
};
this.StkVSeparatorThemeMeasure=this.ThemeMeasure=function(){
return {"w":5,"h":1};
};
this.StkVSeparatorThemeReallocate=this.ThemeReallocate=function(w,h){
this._frame.height=h+"px";
};
};
STK.Theme.HScrollbar=function(){
STK.Theme.Scrollbar.apply(this);
};
STK.Theme.Scrollbar=function(){
this