var OxOd889=["","sel_align","sel_valign","sel_justify","sel_letter","tb_letter","sel_letter_unit","sel_line","tb_line","sel_line_unit","tb_indent","sel_indent_unit","sel_direction","sel_writingmode","outer","div_demo","disabled","selectedIndex","cssText","style","value","textAlign","verticalAlign","textJustify","letterSpacing","length","options","lineHeight","textIndent","direction","writingMode"];function ParseFloatToString(Ox24){var Ox8=parseFloat(Ox24);if(isNaN(Ox8)){return OxOd889[0];} ;return Ox8+OxOd889[0];} ;var sel_align=Window_GetElement(window,OxOd889[1],true);var sel_valign=Window_GetElement(window,OxOd889[2],true);var sel_justify=Window_GetElement(window,OxOd889[3],true);var sel_letter=Window_GetElement(window,OxOd889[4],true);var tb_letter=Window_GetElement(window,OxOd889[5],true);var sel_letter_unit=Window_GetElement(window,OxOd889[6],true);var sel_line=Window_GetElement(window,OxOd889[7],true);var tb_line=Window_GetElement(window,OxOd889[8],true);var sel_line_unit=Window_GetElement(window,OxOd889[9],true);var tb_indent=Window_GetElement(window,OxOd889[10],true);var sel_indent_unit=Window_GetElement(window,OxOd889[11],true);var sel_direction=Window_GetElement(window,OxOd889[12],true);var sel_writingmode=Window_GetElement(window,OxOd889[13],true);var outer=Window_GetElement(window,OxOd889[14],true);var div_demo=Window_GetElement(window,OxOd889[15],true);UpdateState=function UpdateState_Text(){tb_letter[OxOd889[16]]=sel_letter_unit[OxOd889[16]]=(sel_letter[OxOd889[17]]>0);tb_line[OxOd889[16]]=sel_line_unit[OxOd889[16]]=(sel_line[OxOd889[17]]>0);div_demo[OxOd889[19]][OxOd889[18]]=element[OxOd889[19]][OxOd889[18]];} ;SyncToView=function SyncToView_Text(){sel_align[OxOd889[20]]=element[OxOd889[19]][OxOd889[21]];sel_valign[OxOd889[20]]=element[OxOd889[19]][OxOd889[22]];sel_justify[OxOd889[20]]=element[OxOd889[19]][OxOd889[23]];sel_letter[OxOd889[20]]=element[OxOd889[19]][OxOd889[24]];sel_letter_unit[OxOd889[17]]=0;if(sel_letter[OxOd889[17]]==-1){if(ParseFloatToString(element[OxOd889[19]].letterSpacing)){tb_letter[OxOd889[20]]=ParseFloatToString(element[OxOd889[19]].letterSpacing);for(var i=0;i<sel_letter_unit[OxOd889[26]][OxOd889[25]];i++){var Ox142=sel_letter_unit[OxOd889[26]][i][OxOd889[20]];if(Ox142&&element[OxOd889[19]][OxOd889[24]].indexOf(Ox142)!=-1){sel_letter_unit[OxOd889[17]]=i;break ;} ;} ;} ;} ;sel_line[OxOd889[20]]=element[OxOd889[19]][OxOd889[27]];sel_line_unit[OxOd889[17]]=0;if(sel_line[OxOd889[17]]==-1){if(ParseFloatToString(element[OxOd889[19]].lineHeight)){tb_line[OxOd889[20]]=ParseFloatToString(element[OxOd889[19]].lineHeight);for(var i=0;i<sel_line_unit[OxOd889[26]][OxOd889[25]];i++){var Ox142=sel_line_unit[OxOd889[26]][i][OxOd889[20]];if(Ox142&&element[OxOd889[19]][OxOd889[27]].indexOf(Ox142)!=-1){sel_line_unit[OxOd889[17]]=i;break ;} ;} ;} ;} ;sel_indent_unit[OxOd889[17]]=0;if(!isNaN(ParseFloatToString(element[OxOd889[19]].textIndent))){tb_indent[OxOd889[20]]=ParseFloatToString(element[OxOd889[19]].textIndent);for(var i=0;i<sel_indent_unit[OxOd889[26]][OxOd889[25]];i++){var Ox142=sel_indent_unit[OxOd889[26]][i][OxOd889[20]];if(Ox142&&element[OxOd889[19]][OxOd889[28]].indexOf(Ox142)!=-1){sel_indent_unit[OxOd889[17]]=i;break ;} ;} ;} ;sel_direction[OxOd889[20]]=element[OxOd889[19]][OxOd889[29]];sel_writingmode[OxOd889[20]]=element[OxOd889[19]][OxOd889[30]];} ;SyncTo=function SyncTo_Text(element){element[OxOd889[19]][OxOd889[21]]=sel_align[OxOd889[20]];element[OxOd889[19]][OxOd889[22]]=sel_valign[OxOd889[20]];element[OxOd889[19]][OxOd889[23]]=sel_justify[OxOd889[20]];if(sel_letter[OxOd889[17]]>0){element[OxOd889[19]][OxOd889[24]]=sel_letter[OxOd889[20]];} else {if(ParseFloatToString(tb_letter.value)){element[OxOd889[19]][OxOd889[24]]=ParseFloatToString(tb_letter.value)+sel_letter_unit[OxOd889[20]];} else {element[OxOd889[19]][OxOd889[24]]=OxOd889[0];} ;} ;if(sel_line[OxOd889[17]]>0){element[OxOd889[19]][OxOd889[27]]=sel_line[OxOd889[20]];} else {if(ParseFloatToString(tb_line.value)){element[OxOd889[19]][OxOd889[27]]=ParseFloatToString(tb_line.value)+sel_line_unit[OxOd889[20]];} else {element[OxOd889[19]][OxOd889[27]]=OxOd889[0];} ;} ;if(ParseFloatToString(tb_indent.value)){element[OxOd889[19]][OxOd889[28]]=ParseFloatToString(tb_indent.value)+sel_indent_unit[OxOd889[20]];} else {element[OxOd889[19]][OxOd889[28]]=OxOd889[0];} ;element[OxOd889[19]][OxOd889[29]]=sel_direction[OxOd889[20]]||OxOd889[0];element[OxOd889[19]][OxOd889[30]]=sel_writingmode[OxOd889[20]]||OxOd889[0];} ;