/**
 * Created with JetBrains PhpStorm.
 * User: xuheng
 * Date: 12-9-26
 * Time: 下午1:09
 * To change this template use File | Settings | File Templates.
 */
var charsContent = [
    { name:"tsfh", title:lang.tsfh, content:toArray("、,。,·,ˉ,ˇ,¨,〃,々,—,～,‖,…,‘,’,“,”,〔,〕,〈,〉,《,》,「,」,『,』,〖,〗,【,】,±,×,÷,∶,∧,∨,∑,∏,∪,∩,∈,∷,√,⊥,∥,∠,⌒,⊙,∫,∮,≡,≌,≈,∽,∝,≠,≮,≯,≤,≥,∞,∵,∴,♂,♀,°,′,″,℃,＄,¤,￠,￡,‰,§,№,☆,★,○,●,◎,◇,◆,□,■,△,▲,※,→,←,↑,↓,〓,〡,〢,〣,〤,〥,〦,〧,〨,〩,㊣,㎎,㎏,㎜,㎝,㎞,㎡,㏄,㏎,㏑,㏒,㏕,︰,￢,￤,℡,ˊ,ˋ,˙,–,―,‥,‵,℅,℉,↖,↗,↘,↙,∕,∟,∣,≒,≦,≧,⊿,═,║,╒,╓,╔,╕,╖,╗,╘,╙,╚,╛,╜,╝,╞,╟,╠,╡,╢,╣,╤,╥,╦,╧,╨,╩,╪,╫,╬,╭,╮,╯,╰,╱,╲,╳,▁,▂,▃,▄,▅,▆,▇,�,█,▉,▊,▋,▌,▍,▎,▏,▓,▔,▕,▼,▽,◢,◣,◤,◥,☉,⊕,〒,〝,〞")},
    { name:"lmsz", title:lang.lmsz, content:toArray("ⅰ,ⅱ,ⅲ,ⅳ,ⅴ,ⅵ,ⅶ,ⅷ,ⅸ,ⅹ,Ⅰ,Ⅱ,Ⅲ,Ⅳ,Ⅴ,Ⅵ,Ⅶ,Ⅷ,Ⅸ,Ⅹ,Ⅺ,Ⅻ")},
    { name:"szfh", title:lang.szfh, content:toArray("⒈,⒉,⒊,⒋,⒌,⒍,⒎,⒏,⒐,⒑,⒒,⒓,⒔,⒕,⒖,⒗,⒘,⒙,⒚,⒛,⑴,⑵,⑶,⑷,⑸,⑹,⑺,⑻,⑼,⑽,⑾,⑿,⒀,⒁,⒂,⒃,⒄,⒅,⒆,⒇,①,②,③,④,⑤,⑥,⑦,⑧,⑨,⑩,㈠,㈡,㈢,㈣,㈤,㈥,㈦,㈧,㈨,㈩")},
    { name:"rwfh", title:lang.rwfh, content:toArray("ぁ,あ,ぃ,い,ぅ,う,ぇ,え,ぉ,お,か,が,き,ぎ,く,ぐ,け,げ,こ,ご,さ,ざ,し,じ,す,ず,せ,ぜ,そ,ぞ,た,だ,ち,ぢ,っ,つ,づ,て,で,と,ど,な,に,ぬ,ね,の,は,ば,ぱ,ひ,び,ぴ,ふ,ぶ,ぷ,へ,べ,ぺ,ほ,ぼ,ぽ,ま,み,む,め,も,ゃ,や,ゅ,ゆ,ょ,よ,ら,り,る,れ,ろ,ゎ,わ,ゐ,ゑ,を,ん,ァ,ア,ィ,イ,ゥ,ウ,ェ,エ,ォ,オ,カ,ガ,キ,ギ,ク,グ,ケ,ゲ,コ,ゴ,サ,ザ,シ,ジ,ス,ズ,セ,ゼ,ソ,ゾ,タ,ダ,チ,ヂ,ッ,ツ,ヅ,テ,デ,ト,ド,ナ,ニ,ヌ,ネ,ノ,ハ,バ,パ,ヒ,ビ,ピ,フ,ブ,プ,ヘ,ベ,ペ,ホ,ボ,ポ,マ,ミ,ム,メ,モ,ャ,ヤ,ュ,ユ,ョ,ヨ,ラ,リ,ル,レ,ロ,ヮ,ワ,ヰ,ヱ,ヲ,ン,ヴ,ヵ,ヶ")},
    { name:"xlzm", title:lang.xlzm, content:toArray("Α,Β,Γ,Δ,Ε,Ζ,Η,Θ,Ι,Κ,Λ,Μ,Ν,Ξ,Ο,Π,Ρ,Σ,Τ,Υ,Φ,Χ,Ψ,Ω,α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ,ν,ξ,ο,π,ρ,σ,τ,υ,φ,χ,ψ,ω")},
    { name:"ewzm", title:lang.ewzm, content:toArray("А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я")},
    { name:"pyzm", title:lang.pyzm, content:toArray("ā,á,ǎ,à,ē,é,ě,è,ī,í,ǐ,ì,ō,ó,ǒ,ò,ū,ú,ǔ,ù,ǖ,ǘ,ǚ,ǜ,ü")},
    { name:"yyyb", title:lang.yyyb, content:toArray("i:,i,e,æ,ʌ,ə:,ə,u:,u,ɔ:,ɔ,a:,ei,ai,ɔi,əu,au,iə,εə,uə,p,t,k,b,d,g,f,s,ʃ,θ,h,v,z,ʒ,ð,tʃ,tr,ts,dʒ,dr,dz,m,n,ŋ,l,r,w,j,")},
    { name: "zyzf", title: lang.zyzf, content: toArray("ㄅ,ㄆ,ㄇ,ㄈ,ㄉ,ㄊ,ㄋ,ㄌ,ㄍ,ㄎ,ㄏ,ㄐ,ㄑ,ㄒ,ㄓ,ㄔ,ㄕ,ㄖ,ㄗ,ㄘ,ㄙ,ㄚ,ㄛ,ㄜ,ㄝ,ㄞ,ㄟ,ㄠ,ㄡ,ㄢ,ㄣ,ㄤ,ㄥ,ㄦ,ㄧ,ㄨ") },
    //{ name: "fontAwesome", title: lang.fontAwesome, content: toArray('<i class="fa address-book"></li>,<i class="fa address-book-o"></li>,<i class="fa address-card"></li>,<i class="fa address-card-o"></li>,<i class="fa adjust"></li>,<i class="fa american-sign-language-interpreting"></li>,<i class="fa anchor"></li>,<i class="fa archive"></li>,<i class="fa area-chart"></li>,<i class="fa arrows"></li>,<i class="fa arrows-h"></li>,<i class="fa arrows-v"></li>,<i class="fa asl-interpreting"></li>,<i class="fa assistive-listening-systems"></li>,<i class="fa asterisk"></li>,<i class="fa at"></li>,<i class="fa audio-description"></li>,<i class="fa automobile"></li>,<i class="fa balance-scale"></li>,<i class="fa ban"></li>,<i class="fa bank"></li>,<i class="fa bar-chart"></li>,<i class="fa bar-chart-o"></li>,<i class="fa barcode"></li>,<i class="fa bars"></li>,<i class="fa bath"></li>,<i class="fa bathtub"></li>,<i class="fa battery"></li>,<i class="fa battery-0"></li>,<i class="fa battery-1"></li>,<i class="fa battery-2"></li>,<i class="fa battery-3"></li>,<i class="fa battery-4"></li>,<i class="fa battery-empty"></li>,<i class="fa battery-full"></li>,<i class="fa battery-half"></li>,<i class="fa battery-quarter"></li>,<i class="fa battery-three-quarters"></li>,<i class="fa bed"></li>,<i class="fa beer"></li>,<i class="fa bell"></li>,<i class="fa bell-o"></li>,<i class="fa bell-slash"></li>,<i class="fa bell-slash-o"></li>,<i class="fa bicycle"></li>,<i class="fa binoculars"></li>,<i class="fa birthday-cake"></li>,<i class="fa blind"></li>,<i class="fa bluetooth"></li>,<i class="fa bluetooth-b"></li>,<i class="fa bolt"></li>,<i class="fa bomb"></li>,<i class="fa book"></li>,<i class="fa bookmark"></li>,<i class="fa bookmark-o"></li>,<i class="fa braille"></li>,<i class="fa briefcase"></li>,<i class="fa bug"></li>,<i class="fa building"></li>,<i class="fa building-o"></li>,<i class="fa bullhorn"></li>,<i class="fa bullseye"></li>,<i class="fa bus"></li>,<i class="fa cab"></li>,<i class="fa calculator"></li>,<i class="fa calendar"></li>,<i class="fa calendar-check-o"></li>,<i class="fa calendar-minus-o"></li>,<i class="fa calendar-o"></li>,<i class="fa calendar-plus-o"></li>,<i class="fa calendar-times-o"></li>,<i class="fa camera"></li>,<i class="fa camera-retro"></li>,<i class="fa car"></li>,<i class="fa caret-square-o-down"></li>,<i class="fa caret-square-o-left"></li>,<i class="fa caret-square-o-right"></li>,<i class="fa caret-square-o-up"></li>,<i class="fa cart-arrow-down"></li>,<i class="fa cart-plus"></li>,<i class="fa cc"></li>,<i class="fa certificate"></li>,<i class="fa check"></li>,<i class="fa check-circle"></li>,<i class="fa check-circle-o"></li>,<i class="fa check-square"></li>,<i class="fa check-square-o"></li>,<i class="fa child"></li>,<i class="fa circle"></li>,<i class="fa circle-o"></li>,<i class="fa circle-o-notch"></li>,<i class="fa circle-thin"></li>,<i class="fa clock-o"></li>,<i class="fa clone"></li>,<i class="fa close"></li>,<i class="fa cloud"></li>,<i class="fa cloud-download"></li>,<i class="fa cloud-upload"></li>,<i class="fa code"></li>,<i class="fa code-fork"></li>,<i class="fa coffee"></li>,<i class="fa cog"></li>,<i class="fa cogs"></li>,<i class="fa comment"></li>,<i class="fa comment-o"></li>,<i class="fa commenting"></li>,<i class="fa commenting-o"></li>,<i class="fa comments"></li>,<i class="fa comments-o"></li>,<i class="fa compass"></li>,<i class="fa copyright"></li>,<i class="fa creative-commons"></li>,<i class="fa credit-card"></li>,<i class="fa credit-card-alt"></li>,<i class="fa crop"></li>,<i class="fa crosshairs"></li>,<i class="fa cube"></li>,<i class="fa cubes"></li>,<i class="fa cutlery"></li>,<i class="fa dashboard"></li>,<i class="fa database"></li>,<i class="fa deaf"></li>,<i class="fa deafness"></li>,<i class="fa desktop"></li>,<i class="fa diamond"></li>,<i class="fa dot-circle-o"></li>,<i class="fa download"></li>,<i class="fa drivers-license"></li>,<i class="fa drivers-license-o"></li>,<i class="fa edit"></li>,<i class="fa ellipsis-h"></li>,<i class="fa ellipsis-v"></li>,<i class="fa envelope"></li>,<i class="fa envelope-o"></li>,<i class="fa envelope-open"></li>,<i class="fa envelope-open-o"></li>,<i class="fa envelope-square"></li>,<i class="fa eraser"></li>,<i class="fa exchange"></li>,<i class="fa exclamation"></li>,<i class="fa exclamation-circle"></li>,<i class="fa exclamation-triangle"></li>,<i class="fa external-link"></li>,<i class="fa external-link-square"></li>,<i class="fa eye"></li>,<i class="fa eye-slash"></li>,<i class="fa eyedropper"></li>,<i class="fa fax"></li>,<i class="fa feed"></li>,<i class="fa female"></li>,<i class="fa fighter-jet"></li>,<i class="fa file-archive-o"></li>,<i class="fa file-audio-o"></li>,<i class="fa file-code-o"></li>,<i class="fa file-excel-o"></li>,<i class="fa file-image-o"></li>,<i class="fa file-movie-o"></li>,<i class="fa file-pdf-o"></li>,<i class="fa file-photo-o"></li>,<i class="fa file-picture-o"></li>,<i class="fa file-powerpoint-o"></li>,<i class="fa file-sound-o"></li>,<i class="fa file-video-o"></li>,<i class="fa file-word-o"></li>,<i class="fa file-zip-o"></li>,<i class="fa film"></li>,<i class="fa filter"></li>,<i class="fa fire"></li>,<i class="fa fire-extinguisher"></li>,<i class="fa flag"></li>,<i class="fa flag-checkered"></li>,<i class="fa flag-o"></li>,<i class="fa flash"></li>,<i class="fa flask"></li>,<i class="fa folder"></li>,<i class="fa folder-o"></li>,<i class="fa folder-open"></li>,<i class="fa folder-open-o"></li>,<i class="fa frown-o"></li>,<i class="fa futbol-o"></li>,<i class="fa gamepad"></li>,<i class="fa gavel"></li>,<i class="fa gear"></li>,<i class="fa gears"></li>,<i class="fa gift"></li>,<i class="fa glass"></li>,<i class="fa globe"></li>,<i class="fa graduation-cap"></li>,<i class="fa group"></li>,<i class="fa hand-grab-o"></li>,<i class="fa hand-lizard-o"></li>,<i class="fa hand-paper-o"></li>,<i class="fa hand-peace-o"></li>,<i class="fa hand-pointer-o"></li>,<i class="fa hand-rock-o"></li>,<i class="fa hand-scissors-o"></li>,<i class="fa hand-spock-o"></li>,<i class="fa hand-stop-o"></li>,<i class="fa handshake-o"></li>,<i class="fa hard-of-hearing"></li>,<i class="fa hashtag"></li>,<i class="fa hdd-o"></li>,<i class="fa headphones"></li>,<i class="fa heart"></li>,<i class="fa heart-o"></li>,<i class="fa heartbeat"></li>,<i class="fa history"></li>,<i class="fa home"></li>,<i class="fa hotel"></li>,<i class="fa hourglass"></li>,<i class="fa hourglass-1"></li>,<i class="fa hourglass-2"></li>,<i class="fa hourglass-3"></li>,<i class="fa hourglass-end"></li>,<i class="fa hourglass-half"></li>,<i class="fa hourglass-o"></li>,<i class="fa hourglass-start"></li>,<i class="fa i-cursor"></li>,<i class="fa id-badge"></li>,<i class="fa id-card"></li>,<i class="fa id-card-o"></li>,<i class="fa image"></li>,<i class="fa inbox"></li>,<i class="fa industry"></li>,<i class="fa info"></li>,<i class="fa info-circle"></li>,<i class="fa institution"></li>,<i class="fa key"></li>,<i class="fa keyboard-o"></li>,<i class="fa language"></li>,<i class="fa laptop"></li>,<i class="fa leaf"></li>,<i class="fa legal"></li>,<i class="fa lemon-o"></li>,<i class="fa level-down"></li>,<i class="fa level-up"></li>,<i class="fa life-bouy"></li>,<i class="fa life-buoy"></li>,<i class="fa life-ring"></li>,<i class="fa life-saver"></li>,<i class="fa lightbulb-o"></li>,<i class="fa line-chart"></li>,<i class="fa location-arrow"></li>,<i class="fa lock"></li>,<i class="fa low-vision"></li>,<i class="fa magic"></li>,<i class="fa magnet"></li>,<i class="fa mail-forward"></li>,<i class="fa mail-reply"></li>,<i class="fa mail-reply-all"></li>,<i class="fa male"></li>,<i class="fa map"></li>,<i class="fa map-marker"></li>,<i class="fa map-o"></li>,<i class="fa map-pin"></li>,<i class="fa map-signs"></li>,<i class="fa meh-o"></li>,<i class="fa microchip"></li>,<i class="fa microphone"></li>,<i class="fa microphone-slash"></li>,<i class="fa minus"></li>,<i class="fa minus-circle"></li>,<i class="fa minus-square"></li>,<i class="fa minus-square-o"></li>,<i class="fa mobile"></li>,<i class="fa mobile-phone"></li>,<i class="fa money"></li>,<i class="fa moon-o"></li>,<i class="fa mortar-board"></li>,<i class="fa motorcycle"></li>,<i class="fa mouse-pointer"></li>,<i class="fa music"></li>,<i class="fa navicon"></li>,<i class="fa newspaper-o"></li>,<i class="fa object-group"></li>,<i class="fa object-ungroup"></li>,<i class="fa paint-brush"></li>,<i class="fa paper-plane"></li>,<i class="fa paper-plane-o"></li>,<i class="fa paw"></li>,<i class="fa pencil"></li>,<i class="fa pencil-square"></li>,<i class="fa pencil-square-o"></li>,<i class="fa percent"></li>,<i class="fa phone"></li>,<i class="fa phone-square"></li>,<i class="fa photo"></li>,<i class="fa picture-o"></li>,<i class="fa pie-chart"></li>,<i class="fa plane"></li>,<i class="fa plug"></li>,<i class="fa plus"></li>,<i class="fa plus-circle"></li>,<i class="fa plus-square"></li>,<i class="fa plus-square-o"></li>,<i class="fa podcast"></li>,<i class="fa power-off"></li>,<i class="fa print"></li>,<i class="fa puzzle-piece"></li>,<i class="fa qrcode"></li>,<i class="fa question"></li>,<i class="fa question-circle"></li>,<i class="fa question-circle-o"></li>,<i class="fa quote-left"></li>,<i class="fa quote-right"></li>,<i class="fa random"></li>,<i class="fa recycle"></li>,<i class="fa refresh"></li>,<i class="fa registered"></li>,<i class="fa remove"></li>,<i class="fa reorder"></li>,<i class="fa reply"></li>,<i class="fa reply-all"></li>,<i class="fa retweet"></li>,<i class="fa road"></li>,<i class="fa rocket"></li>,<i class="fa rss"></li>,<i class="fa rss-square"></li>,<i class="fa s15"></li>,<i class="fa search"></li>,<i class="fa search-minus"></li>,<i class="fa search-plus"></li>,<i class="fa send"></li>,<i class="fa send-o"></li>,<i class="fa server"></li>,<i class="fa share"></li>,<i class="fa share-alt"></li>,<i class="fa share-alt-square"></li>,<i class="fa share-square"></li>,<i class="fa share-square-o"></li>,<i class="fa shield"></li>,<i class="fa ship"></li>,<i class="fa shopping-bag"></li>,<i class="fa shopping-basket"></li>,<i class="fa shopping-cart"></li>,<i class="fa shower"></li>,<i class="fa sign-in"></li>,<i class="fa sign-language"></li>,<i class="fa sign-out"></li>,<i class="fa signal"></li>,<i class="fa signing"></li>,<i class="fa sitemap"></li>,<i class="fa sliders"></li>,<i class="fa smile-o"></li>,<i class="fa snowflake-o"></li>,<i class="fa soccer-ball-o"></li>,<i class="fa sort"></li>,<i class="fa sort-alpha-asc"></li>,<i class="fa sort-alpha-desc"></li>,<i class="fa sort-amount-asc"></li>,<i class="fa sort-amount-desc"></li>,<i class="fa sort-asc"></li>,<i class="fa sort-desc"></li>,<i class="fa sort-down"></li>,<i class="fa sort-numeric-asc"></li>,<i class="fa sort-numeric-desc"></li>,<i class="fa sort-up"></li>,<i class="fa space-shuttle"></li>,<i class="fa spinner"></li>,<i class="fa spoon"></li>,<i class="fa square"></li>,<i class="fa square-o"></li>,<i class="fa star"></li>,<i class="fa star-half"></li>,<i class="fa star-half-empty"></li>,<i class="fa star-half-full"></li>,<i class="fa star-half-o"></li>,<i class="fa star-o"></li>,<i class="fa sticky-note"></li>,<i class="fa sticky-note-o"></li>,<i class="fa street-view"></li>,<i class="fa suitcase"></li>,<i class="fa sun-o"></li>,<i class="fa support"></li>,<i class="fa tablet"></li>,<i class="fa tachometer"></li>,<i class="fa tag"></li>,<i class="fa tags"></li>,<i class="fa tasks"></li>,<i class="fa taxi"></li>,<i class="fa television"></li>,<i class="fa terminal"></li>,<i class="fa thermometer"></li>,<i class="fa thermometer-0"></li>,<i class="fa thermometer-1"></li>,<i class="fa thermometer-2"></li>,<i class="fa thermometer-3"></li>,<i class="fa thermometer-4"></li>,<i class="fa thermometer-empty"></li>,<i class="fa thermometer-full"></li>,<i class="fa thermometer-half"></li>,<i class="fa thermometer-quarter"></li>,<i class="fa thermometer-three-quarters"></li>,<i class="fa thumb-tack"></li>,<i class="fa thumbs-down"></li>,<i class="fa thumbs-o-down"></li>,<i class="fa thumbs-o-up"></li>,<i class="fa thumbs-up"></li>,<i class="fa ticket"></li>,<i class="fa times"></li>,<i class="fa times-circle"></li>,<i class="fa times-circle-o"></li>,<i class="fa times-rectangle"></li>,<i class="fa times-rectangle-o"></li>,<i class="fa tint"></li>,<i class="fa toggle-down"></li>,<i class="fa toggle-left"></li>,<i class="fa toggle-off"></li>,<i class="fa toggle-on"></li>,<i class="fa toggle-right"></li>,<i class="fa toggle-up"></li>,<i class="fa trademark"></li>,<i class="fa trash"></li>,<i class="fa trash-o"></li>,<i class="fa tree"></li>,<i class="fa trophy"></li>,<i class="fa truck"></li>,<i class="fa tty"></li>,<i class="fa tv"></li>,<i class="fa umbrella"></li>,<i class="fa universal-access"></li>,<i class="fa university"></li>,<i class="fa unlock"></li>,<i class="fa unlock-alt"></li>,<i class="fa unsorted"></li>,<i class="fa upload"></li>,<i class="fa user"></li>,<i class="fa user-circle"></li>,<i class="fa user-circle-o"></li>,<i class="fa user-o"></li>,<i class="fa user-plus"></li>,<i class="fa user-secret"></li>,<i class="fa user-times"></li>,<i class="fa users"></li>,<i class="fa vcard"></li>,<i class="fa vcard-o"></li>,<i class="fa video-camera"></li>,<i class="fa volume-control-phone"></li>,<i class="fa volume-down"></li>,<i class="fa volume-off"></li>,<i class="fa volume-up"></li>,<i class="fa warning"></li>,<i class="fa wheelchair"></li>,<i class="fa wheelchair-alt"></li>,<i class="fa wifi"></li>,<i class="fa window-close"></li>,<i class="fa window-close-o"></li>,<i class="fa window-maximize"></li>,<i class="fa window-minimize"></li>,<i class="fa window-restore"></li>,<i class="fa wrench"></li>')},
];
(function createTab(content) {
    for (var i = 0, ci; ci = content[i++];) {
        var span = document.createElement("span");
        span.setAttribute("tabSrc", ci.name);
        span.innerHTML = ci.title;
        if (i == 1)span.className = "focus";
        domUtils.on(span, "click", function () {
            var tmps = $G("tabHeads").children;
            for (var k = 0, sk; sk = tmps[k++];) {
                sk.className = "";
            }
            tmps = $G("tabBodys").children;
            for (var k = 0, sk; sk = tmps[k++];) {
                sk.style.display = "none";
            }
            this.className = "focus";
            $G(this.getAttribute("tabSrc")).style.display = "";
        });
        $G("tabHeads").appendChild(span);
        domUtils.insertAfter(span, document.createTextNode("\n"));
        var div = document.createElement("div");
        div.id = ci.name;
        div.style.display = (i == 1) ? "" : "none";
        var cons = ci.content;
        for (var j = 0, con; con = cons[j++];) {
            var charSpan = document.createElement("span");
            charSpan.innerHTML = con;
            domUtils.on(charSpan, "click", function () {
                editor.execCommand("insertHTML", this.innerHTML);
                dialog.close();
            });
            div.appendChild(charSpan);
        }
        $G("tabBodys").appendChild(div);
    }
})(charsContent);
function toArray(str) {
    return str.split(",");
}
