Subversion Repositories ALCASAR

Rev

Rev 3100 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log











































































































Rev 3100 Rev 3179
Line 27... Line 27...
27
 
27
 
28
var langxml = [], filesystemTable, current_language = "", plugin_liste = [], blocks = [], langarr = [],
28
var langxml = [], filesystemTable, current_language = "", plugin_liste = [], blocks = [], langarr = [],
29
     showCPUListExpanded, showCPUInfoExpanded, showNetworkInfosExpanded, showMemoryInfosExpanded, showNetworkActiveSpeed, showCPULoadCompact, showTotals, increaseWidth, oldnetwork = [];
29
     showCPUListExpanded, showCPUInfoExpanded, showNetworkInfosExpanded, showMemoryInfosExpanded, showNetworkActiveSpeed, showCPULoadCompact, showTotals, increaseWidth, oldnetwork = [];
30
 
30
 
31
/**
31
/**
-
 
32
 * Fix potential XSS vulnerability in jQuery
-
 
33
 */
-
 
34
jQuery.htmlPrefilter = function( html ) {
-
 
35
	return html;
-
 
36
};
-
 
37
 
-
 
38
/**
32
 * Fix PNG loading on IE6 or below
39
 * Fix PNG loading on IE6 or below
33
 */
40
 */
34
function PNGload(png) {
41
function PNGload(png) {
35
    if (typeof(png.ifixpng)==='function') { //IE6 PNG fix
42
    if (typeof(png.ifixpng)==='function') { //IE6 PNG fix
36
        png.ifixpng('./gfx/blank.gif');
43
        png.ifixpng('./gfx/blank.gif');
Line 119... Line 126...
119
            }
126
            }
120
        });
127
        });
121
    } else {
128
    } else {
122
        $('link[rel*=style][title]').each(function getTitle(i) {
129
        $('link[rel*=style][title]').each(function getTitle(i) {
123
            if (this.getAttribute('title') === 'PSI_Template') {
130
            if (this.getAttribute('title') === 'PSI_Template') {
124
                this.setAttribute('href', './templates/' + template + ".css");  
131
                this.setAttribute('href', './templates/' + template + ".css");
125
            }
132
            }
126
        });
133
        });
127
    }
134
    }
128
}
135
}
129
 
136
 
Line 619... Line 626...
619
< 1000)) {/**
626
< 1000)) {/**
620
< 1000)) { * create a visual HTML bar from a given size, the layout of that bar can be costumized through the bar css-class
627
< 1000)) { * create a visual HTML bar from a given size, the layout of that bar can be costumized through the bar css-class
621
< 1000)) { * @param {Number} size barclass
628
< 1000)) { * @param {Number} size barclass
622
< 1000)) { * @return {String} HTML string which contains the full layout of the bar
629
< 1000)) { * @return {String} HTML string which contains the full layout of the bar
623
< 1000)) { */
630
< 1000)) { */
624
< 1000)) {function createBar(size, barclass) {
631
< 1000)) {function createBar(size, barclass, sizeused) {
-
 
632
< 1000)) {    var percsize = 0, percsizeused = 0;
625
< 1000)) {    if (barclass === undefined) {
633
< 1000)) {    if (barclass === undefined) {
626
< 1000)) {        barclass = "bar";
634
< 1000)) {        barclass = "bar";
627
< 1000)) {    }
635
< 1000)) {    }
-
 
636
< 1000)) {    percsize = Math.max(Math.min(Math.ceil(size), 100), 0);
-
 
637
< 1000)) {    if (sizeused === undefined) {
-
 
638
< 1000)) {        percsizeused = percsize;
-
 
639
< 1000)) {    } else {
-
 
640
< 1000)) {        percsizeused = Math.max(Math.min(Math.ceil(sizeused), size), 0);
-
 
641
< 1000)) {    }
-
 
642
< 1000)) {    if (percsizeused == percsize) {
628
< 1000)) {    return "
 div>&nbsp;" + size + "%";
643
< 1000)) {        return "
 div>&nbsp;" + size + "%";
-
 
644
< 1000)) {
} else {
-
 
645
< 1000)) {
return "<div class=\"" + barclass + "\" style=\"float:left; width: " + percsizeused + "px;\">&nbsp;</div><div class=\"barrest\" style=\"float:left; width: " + (percsize-percsizeused) + "px;\">&nbsp;</div>&nbsp;" + size + "%";
-
 
646
< 1000)) {
}
629
< 1000)) {
}
647
< 1000)) {
}
630
< 1000)) {
648
< 1000)) {
631
< 1000)) {
/**
649
< 1000)) {
/**
632
< 1000)) {
* (re)fill the vitals block with the values from the given xml
650
< 1000)) {
* (re)fill the vitals block with the values from the given xml
633
< 1000)) {
* @param {jQuery} xml phpSysInfo-XML
651
< 1000)) {
* @param {jQuery} xml phpSysInfo-XML
Line 661... Line 679...
661
< 1000)) {
});
679
< 1000)) {
});
662
< 1000)) {
return;
680
< 1000)) {
return;
663
< 1000)) {
}
681
< 1000)) {
}
664
< 1000)) {
682
< 1000)) {
665
< 1000)) {
var kernel = "", distro = "", icon = "", uptime = "", users = 0, loadavg = "", os = "";
683
< 1000)) {
var kernel = "", distro = "", icon = "", uptime = "", users = 0, loadavg = "", os = "";
666
< 1000)) {
var processes = 0, prunning = 0, psleeping = 0, pstopped = 0, pzombie = 0, pwaiting = 0, pother = 0;
684
< 1000)) {
var processes = 0, psarray = [0,0,0,0,0,0];
667
< 1000)) {
var syslang = "", codepage = "";
685
< 1000)) {
var syslang = "", codepage = "";
668
< 1000)) {
var lastboot = 0;
686
< 1000)) {
var lastboot = 0;
669
< 1000)) {
var timestamp = parseInt($("Generation", xml).attr("timestamp"), 10)*1000; //server time
687
< 1000)) {
var timestamp = parseInt($("Generation", xml).attr("timestamp"), 10)*1000; //server time
670
< 1000)) {
var not_first = false;
688
< 1000)) {
var not_first = false;
671
< 1000)) {
var datetimeFormat = "";
689
< 1000)) {
var datetimeFormat = "";
Line 700... Line 718...
700
< 1000)) {
//processes
718
< 1000)) {
//processes
701
< 1000)) {
if ($(this).attr("Processes") !== undefined) {
719
< 1000)) {
if ($(this).attr("Processes") !== undefined) {
702
< 1000)) {
processes = parseInt($(this).attr("Processes"), 10);
720
< 1000)) {
processes = parseInt($(this).attr("Processes"), 10);
703
< 1000)) {
}
721
< 1000)) {
}
704
< 1000)) {
if ($(this).attr("ProcessesRunning") !== undefined) {
722
< 1000)) {
if ($(this).attr("ProcessesRunning") !== undefined) {
705
< 1000)) {
prunning = parseInt($(this).attr("ProcessesRunning"), 10);
723
< 1000)) {
psarray[0] = parseInt($(this).attr("ProcessesRunning"), 10);
706
< 1000)) {
}
724
< 1000)) {
}
707
< 1000)) {
if ($(this).attr("ProcessesSleeping") !== undefined) {
725
< 1000)) {
if ($(this).attr("ProcessesSleeping") !== undefined) {
708
< 1000)) {
psleeping = parseInt($(this).attr("ProcessesSleeping"), 10);
726
< 1000)) {
psarray[1] = parseInt($(this).attr("ProcessesSleeping"), 10);
709
< 1000)) {
}
727
< 1000)) {
}
710
< 1000)) {
if ($(this).attr("ProcessesStopped") !== undefined) {
728
< 1000)) {
if ($(this).attr("ProcessesStopped") !== undefined) {
711
< 1000)) {
pstopped = parseInt($(this).attr("ProcessesStopped"), 10);
729
< 1000)) {
psarray[2] = parseInt($(this).attr("ProcessesStopped"), 10);
712
< 1000)) {
}
730
< 1000)) {
}
713
< 1000)) {
if ($(this).attr("ProcessesZombie") !== undefined) {
731
< 1000)) {
if ($(this).attr("ProcessesZombie") !== undefined) {
714
< 1000)) {
pzombie = parseInt($(this).attr("ProcessesZombie"), 10);
732
< 1000)) {
psarray[3] = parseInt($(this).attr("ProcessesZombie"), 10);
715
< 1000)) {
}
733
< 1000)) {
}
716
< 1000)) {
if ($(this).attr("ProcessesWaiting") !== undefined) {
734
< 1000)) {
if ($(this).attr("ProcessesWaiting") !== undefined) {
717
< 1000)) {
pwaiting = parseInt($(this).attr("ProcessesWaiting"), 10);
735
< 1000)) {
psarray[4] = parseInt($(this).attr("ProcessesWaiting"), 10);
718
< 1000)) {
}
736
< 1000)) {
}
719
< 1000)) {
if ($(this).attr("ProcessesOther") !== undefined) {
737
< 1000)) {
if ($(this).attr("ProcessesOther") !== undefined) {
720
< 1000)) {
pother = parseInt($(this).attr("ProcessesOther"), 10);
738
< 1000)) {
psarray[5] = parseInt($(this).attr("ProcessesOther"), 10);
721
< 1000)) {
}
739
< 1000)) {
}
722
< 1000)) {
740
< 1000)) {
723
< 1000)) {
document.title = "System information: " + hostname + " (" + ip + ")";
741
< 1000)) {
document.title = "System information: " + hostname + " (" + ip + ")";
724
< 1000)) {
$("#s_hostname_title").html(hostname);
742
< 1000)) {
$("#s_hostname_title").html(hostname);
725
< 1000)) {
$("#s_ip_title").html(ip);
743
< 1000)) {
$("#s_ip_title").html(ip);
726
< 1000)) {
setAndStrip("#s_hostname", hostname);
744
< 1000)) {
setAndStrip("#s_hostname", hostname);
727
< 1000)) {
setAndStrip("#s_ip", ip);
745
< 1000)) {
setAndStrip("#s_ip", ip);
728
< 1000)) {
setAndStrip("#s_kernel", kernel);
746
< 1000)) {
setAndStrip("#s_kernel", kernel);
729
< 1000)) {
setAndStrip("#s_distro", "<img src='./gfx/images/" + icon + "' alt='Icon' title='' style='width:16px;height:16px;vertical-align:middle;' onload='PNGload($(this));' /> " + distro); //onload IE6 PNG fix
747
< 1000)) {
setAndStrip("#s_distro", "<img src='./gfx/images/" + icon + "' alt='Icon' title='" + icon + "' style='width:16px;height:16px;vertical-align:middle;' onload='PNGload($(this));' />&nbsp;" + distro); //onload IE6 PNG fix
730
< 1000)) {
setAndStrip("#s_os", "</FONT></B>OSIcon<B><FONT COLOR="#BC8F8F">
748
< 1000)) {
setAndStrip("#s_os", "<img src='./gfx/images/" + os + ".png' alt='OSIcon' title='" + os + ".png' style='width:16px;height:16px;vertical-align:middle;' onload='PNGload($(this));' />&nbsp;" + os); //onload IE6 PNG fix
731
< 1000)) {
if ((datetimeFormat !== undefined) && (datetimeFormat.toLowerCase() === "locale")) {
750
< 1000)) {
if ((datetimeFormat !== undefined) && (datetimeFormat.toLowerCase() === "locale")) {
733
< 1000)) {
} else {
752
< 1000)) {
} else {
735
< 1000)) {
setAndStrip("#s_users", users);
760
< 1000)) {
setAndStrip("#s_users", users);
743
< 1000)) {
setAndStrip("#s_syslang", syslang);
762
< 1000)) {
setAndStrip("#s_syslang", syslang);
745
< 1000)) {
setAndStrip("#s_processes", processes);
764
< 1000)) {
setAndStrip("#s_processes", processes);
747
< 1000)) {
$("#s_processes").append(" (");
766
< 1000)) {
$("#s_processes").append(" (");
749
< 1000)) {
for (var proc_type in typelist) {
768
< 1000)) {
for (var proc_type in idlist) {
751
< 1000)) {
if (not_first) {
770
< 1000)) {
if (not_first) {
753
< 1000)) {
}
772
< 1000)) {
}
755
< 1000)) {
not_first = true;
774
< 1000)) {
not_first = true;
757
< 1000)) {
}
776
< 1000)) {
}
759
< 1000)) {
}
778
< 1000)) {
}
Line 822... Line 840...
822
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(14) + ":</span></div></td><td>" + formatHertz(bus) + "</td></tr>\n";
841
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(14) + ":</span></div></td><td>" + formatHertz(bus) + "</td></tr>\n";
824
< 1000)) {
}
843
< 1000)) {
}
826
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(52) + ":</span></div></td><td>" + round(voltage, 2) + " " + genlang(82) + "</td></tr>\n";
845
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(52) + ":</span></div></td><td>" + round(voltage, 2) + String.fromCharCode(160) + genlang(62) + "</td></tr>\n";
828
< 1000)) {
}
847
< 1000)) {
}
830
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(16) + ":</span></div></td><td>" + bogo.toString() + "</td></tr>\n";
849
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(16) + ":</span></div></td><td>" + bogo.toString() + "</td></tr>\n";
832
< 1000)) {
if (!isNaN(speed)) {
920
< 1000)) {
if (!isNaN(speed)) {
903
< 1000)) {
tree.push(devcoreposition);
922
< 1000)) {
tree.push(devcoreposition);
905
< 1000)) {
if (isFinite(voltage)) {
924
< 1000)) {
if (isFinite(voltage)) {
907
< 1000)) {
tree.push(devcoreposition);
926
< 1000)) {
tree.push(devcoreposition);
909
< 1000)) {
if (serial !== undefined) {
928
< 1000)) {
if (serial !== undefined) {
911
< 1000)) {
tree.push(devcoreposition);
930
< 1000)) {
tree.push(devcoreposition);
Line 1029... Line 1047...
1029
< 1000)) {
});
1048
< 1000)) {
});
1031
< 1000)) {
1050
< 1000)) {
1033
< 1000)) {
var name = "", rx = 0, tx = 0, er = 0, dr = 0, info = "", networkindex = 0, htmlrx = '', htmltx = '', rxr = 0, txr = 0;
1052
< 1000)) {
var name = "", rx = 0, tx = 0, er = 0, dr = 0, info = "", bridge = "", networkindex = 0, htmlrx = '', htmltx = '', rxr = 0, txr = 0;
1035
< 1000)) {
rx = parseInt($(this).attr("RxBytes"), 10);
1055
< 1000)) {
rx = parseInt($(this).attr("RxBytes"), 10);
1037
< 1000)) {
er = parseInt($(this).attr("Err"), 10);
1057
< 1000)) {
er = parseInt($(this).attr("Err"), 10);
1039
< 1000)) {
rxr = parseInt($(this).attr("RxRate"), 10);
1059
< 1000)) {
rxr = parseInt($(this).attr("RxRate"), 10);
Line 1072... Line 1091...
1072
< 1000)) {
}
1092
< 1000)) {


}

1074
< 1000)) {
}
1094
< 1000)) {


}

1076
< 1000)) {
html +="<tr><td><div class=\"treediv\"><span class=\"treespan\">" + name + "</span></div></td><td class=\"right\">" + formatBytes(rx, xml) + htmlrx + "</td><td class=\"right\">" + formatBytes(tx, xml) + htmltx +"</td><td class=\"right\">" + er.toString() + "/<wbr>" + dr.toString() + "</td></tr>";
1097
< 1000)) {


html +="
" + name + " (" + bridge +")span></div>td><td class=\"right\">" + formatBytes(rx, xml) + htmlrx + "</td><td class=\"right\">" + formatBytes(tx, xml) + htmltx +"</td><td class=\"right\">" + er.toString() + "/<wbr>" + dr.toString() + "</td></tr>";
-
 
1098
< 1000)) {


} else {
1078
< 1000)) {
networkindex = tree.push(0);
1101
< 1000)) {


networkindex = tree.push(0);
1080
< 1000)) {
if (showNetworkActiveSpeed) {
1103
< 1000)) {


if (showNetworkActiveSpeed) {
1082
< 1000)) {
preoldnetwork[name] = {timestamp:timestamp, rx:rx, tx:tx};
1105
< 1000)) {


preoldnetwork[name] = {timestamp:timestamp, rx:rx, tx:tx};
Line 1260... Line 1282...
1260
< 1000)) {
filesystem', blocks) < 0))) {
1282
< 1000)) {


if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('filesystem', blocks) < 0))) {
1261
< 1000)) {
return;
1284
< 1000)) {


return;
1263
< 1000)) {
1286
< 1000)) {


1265
< 1000)) {
1288
< 1000)) {


1267
< 1000)) {
1290
< 1000)) {


1269
< 1000)) {
threshold = parseInt($(this).attr("threshold"), 10);
1292
< 1000)) {


threshold = parseInt($(this).attr("threshold"), 10);
Line 1295... Line 1317...
1295
< 1000)) {
if (type === undefined) {
1318
< 1000)) {


if (type === undefined) {
1297
< 1000)) {
}
1320
< 1000)) {


}
1299
< 1000)) {
if (!isNaN(ignore) && (ignore > 0) && showTotals) {
1323
< 1000)) {


if (!isNaN(ignore) && (ignore > 0) && showTotals) {
1301
< 1000)) {
if ((ignore == 3) && !isNaN(threshold) && (percent >= threshold)) {
1325
< 1000)) {


if ((ignore == 3) && !isNaN(threshold) && (percent >= threshold)) {
1303
< 1000)) {
} else {
1327
< 1000)) {


} else {
1305
< 1000)) {
}
1329
< 1000)) {


}
1307
< 1000)) {
if (!isNaN(threshold) && (percent >= threshold)) {
1331
< 1000)) {


if (!isNaN(threshold) && (percent >= threshold)) {
1309
< 1000)) {
} else {
1333
< 1000)) {


} else {
1311
< 1000)) {
}
1335
< 1000)) {


}
1313
< 1000)) {
} else {
1337
< 1000)) {


} else {
1315
< 1000)) {
filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent, "barwarn") + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span>" + formatBytes(free, xml), "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span>" + formatBytes(size, xml)]);
1339
< 1000)) {


filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent, "barwarn", usage) + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span>" + formatBytes(free, xml), "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span>" + formatBytes(size, xml)]);
1317
< 1000)) {
filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent) + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span>" + formatBytes(free, xml), "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span>" + formatBytes(size, xml)]);
1341
< 1000)) {


filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent, "bar", usage) + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span>" + formatBytes(free, xml), "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span>" + formatBytes(size, xml)]);
1319
< 1000)) {
}
1343
< 1000)) {


}
1321
< 1000)) {
if (!isNaN(ignore) && (ignore > 0)) {
1345
< 1000)) {


if (!isNaN(ignore) && (ignore > 0)) {
1323
< 1000)) {
} else {
1352
< 1000)) {


} else {
1330
< 1000)) {
total_free += free;
1354
< 1000)) {


total_free += free;
1332
< 1000)) {
}
1356
< 1000)) {


}
1334
< 1000)) {
}
1357
< 1000)) {


}
1336
< 1000)) {
1359
< 1000)) {


1338
< 1000)) {
if (!isNaN(threshold) && (total_usage >= threshold)) {
1363
< 1000)) {


if (!isNaN(threshold) && (total_usage >= threshold)) {
1340
< 1000)) {
} else {
1365
< 1000)) {


} else {
1342
< 1000)) {
}
1367
< 1000)) {


}
1344
< 1000)) {
$("#s_fs_tused").html(formatBytes(total_used, xml));
1369
< 1000)) {


$("#s_fs_tused").html(formatBytes(total_used, xml));
1346
< 1000)) {
}
1371
< 1000)) {


}
Line 1449... Line 1473...
1449
< 1000)) {
_min = round(min,0) + "%";
1474
< 1000)) {


_min = round(min,0) + "%";
1451
< 1000)) {
$("#fansTable tbody").append("<tr><td>" + label + "</td><td>" + createBar(round(value,0)) + "</td><td class=\"right\">" + _min + "</td></tr>");
1476
< 1000)) {


$("#fansTable tbody").append("<tr><td>" + label + "</td><td>" + createBar(round(value,0)) + "</td><td class=\"right\">" + _min + "</td></tr>");
1453
< 1000)) {
$("#fansTable tbody").append("<tr><td>" + label + "</td><td>---%</td><td class=\"right\">" + _min + "</td></tr>");
1478
< 1000)) {


$("#fansTable tbody").append("<tr><td>" + label + "</td><td>---%</td><td class=\"right\">" + _min + "</td></tr>");
1455
< 1000)) {
if (isFinite(min))
1480
< 1000)) {


if (isFinite(min))
1457
< 1000)) {
if (isFinite(value))
1482
< 1000)) {


if (isFinite(value))
1459
< 1000)) {
event = $(this).attr("Event");
1591
< 1000)) {


event = $(this).attr("Event");
1568
< 1000)) {
label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1593
< 1000)) {


label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1570
< 1000)) {
if (unit === "%") {
1595
< 1000)) {


if (unit === "%") {
-
 
1596
< 1000)) {


if (isFinite(value))
1572
< 1000)) {
} else {
1600
< 1000)) {


} else {
1574
< 1000)) {
}
1602
< 1000)) {


}
1576
< 1000)) {
});
1604
< 1000)) {


});
Line 1869... Line 1896...
1869
< 1000)) {
old_template = $("#template").val();
1897
< 1000)) {


old_template = $("#template").val();
1871
< 1000)) {
if ($("#template").val() === null) {
1899
< 1000)) {


if ($("#template").val() === null) {
1873
< 1000)) {
}
1901
< 1000)) {


}
1875
< 1000)) {
switchStyle($("#template").val().toString());
1903
< 1000)) {


switchStyle($("#template").val().toString());
1877
< 1000)) {
1904
< 1000)) {


$('#template').show();
1878
< 1000)) {
1905
< 1000)) {


$('span[class=lang_044]').show();
1879
< 1000)) {