var iconp = -1; var iconCookie = 1; var icon_start=1; var icon_end=46; ; var icon_index=1; var iconnum = icon_end-icon_start+1; var iconmp = ((iconnum%16)==0)?parseInt(iconnum/16)-1:parseInt(iconnum/16); var edt_face_pg = 16; var icon_layer; function icon_set(i,min,max) { if(icon_index==i)return; icon_start = min; icon_end = max; icon_index = i; iconnum = max-min+1; iconmp = ((iconnum%16)==0)?parseInt(iconnum/16)-1:parseInt(iconnum/16); IconPage(0); IconPageLst(); LD.Cookie.Add(DEF_MasterCookies + "_iconG",i); } function IconLoad(elm) { elm.onload=null; if(Browser.safari || Browser.is_ie_lower || Browser.ie6 ) { if (elm.width>32) { var oldVW = elm.width,oldVH=elm.height*(32 /oldVW); elm.width=32; elm.height = oldVH; } if (elm.height>32) { var oldVH = elm.height,oldVW=elm.width*(32 /oldVH); elm.height=32; elm.width = oldVW; } } } function IconPage(pn) { if(isUndef(pn)){iconp ++ ;}else{iconp=pn;} if(iconp<0)iconp=0; if(iconp>iconmp)iconp=0; var n,m=iconp*edt_face_pg+edt_face_pg,str,t; if(m>iconnum)m=iconnum; str = ""; for(n=iconp*edt_face_pg+icon_start;n
"; } str+=""; $("Icon0").innerHTML=str; icon_layer = null; icon_layer = new LayerMenu('icon_min','icon_min_value','prompt'); } function IconPageLst() { var s=""; if(iconmp>0) for(var n=0;n<=iconmp;n++) s+="" + (n + 1) + ""; if(iconmp>0)s+=""; $('j_page_icon').innerHTML=s; $('j_page_icon').style.display=iconmp>0?'':'none'; } function IconInitSel() { var T = $('menu_info_icon'); if(T) { iconCookie = LD.Cookie.Get(DEF_MasterCookies + "_iconG"); if(iconCookie!="") { iconCookie = parseInt(iconCookie); if(iconCookie>=1&&iconCookie<=T.options.length){ T.options[iconCookie-1].selected=true; icon_index = 0; eval("icon_set("+T.value+");"); } } } } var wstr=''; wstr+='
'; wstr+='
'; wstr+='
'; wstr+='
'; wstr+='
'; wstr+=''; wstr+='
'; wstr+='
'; if($('editor_icon'))$('editor_icon').innerHTML = wstr; IconInitSel(); layer_initselect(); IconPageLst(); IconPage();