diff --git a/web/root/ecWeb/themes/blacktastic/layout.ssjs b/web/root/ecWeb/themes/blacktastic/layout.ssjs
index fd20ee2182fde72205705a5dc8b2c8528d6e22d2..2fe63470294a52ffc743f67a6258764bb27ecb7c 100644
--- a/web/root/ecWeb/themes/blacktastic/layout.ssjs
+++ b/web/root/ecWeb/themes/blacktastic/layout.ssjs
@@ -26,6 +26,7 @@ function openPage(pageTitle) {
 	var c = 0;
 	var d = directory(webIni.webRoot + "/sidebar/*");
 	for(var f in d) {
+		if(file_isdir(d[f])) continue;
 		print("<div class='sidebarBox standardBorder standardPadding underMargin'>");
 		if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]);
 		if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") {
diff --git a/web/root/ecWeb/themes/blocktastic-r/layout.ssjs b/web/root/ecWeb/themes/blocktastic-r/layout.ssjs
index fd20ee2182fde72205705a5dc8b2c8528d6e22d2..2fe63470294a52ffc743f67a6258764bb27ecb7c 100644
--- a/web/root/ecWeb/themes/blocktastic-r/layout.ssjs
+++ b/web/root/ecWeb/themes/blocktastic-r/layout.ssjs
@@ -26,6 +26,7 @@ function openPage(pageTitle) {
 	var c = 0;
 	var d = directory(webIni.webRoot + "/sidebar/*");
 	for(var f in d) {
+		if(file_isdir(d[f])) continue;
 		print("<div class='sidebarBox standardBorder standardPadding underMargin'>");
 		if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]);
 		if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") {
diff --git a/web/root/ecWeb/themes/blocktastic/layout.ssjs b/web/root/ecWeb/themes/blocktastic/layout.ssjs
index fd20ee2182fde72205705a5dc8b2c8528d6e22d2..2fe63470294a52ffc743f67a6258764bb27ecb7c 100644
--- a/web/root/ecWeb/themes/blocktastic/layout.ssjs
+++ b/web/root/ecWeb/themes/blocktastic/layout.ssjs
@@ -26,6 +26,7 @@ function openPage(pageTitle) {
 	var c = 0;
 	var d = directory(webIni.webRoot + "/sidebar/*");
 	for(var f in d) {
+		if(file_isdir(d[f])) continue;
 		print("<div class='sidebarBox standardBorder standardPadding underMargin'>");
 		if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]);
 		if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") {
diff --git a/web/root/ecWeb/themes/hotdogstand/layout.ssjs b/web/root/ecWeb/themes/hotdogstand/layout.ssjs
index fd20ee2182fde72205705a5dc8b2c8528d6e22d2..2fe63470294a52ffc743f67a6258764bb27ecb7c 100644
--- a/web/root/ecWeb/themes/hotdogstand/layout.ssjs
+++ b/web/root/ecWeb/themes/hotdogstand/layout.ssjs
@@ -26,6 +26,7 @@ function openPage(pageTitle) {
 	var c = 0;
 	var d = directory(webIni.webRoot + "/sidebar/*");
 	for(var f in d) {
+		if(file_isdir(d[f])) continue;
 		print("<div class='sidebarBox standardBorder standardPadding underMargin'>");
 		if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]);
 		if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") {
diff --git a/web/root/ecWeb/themes/shitenade/layout.ssjs b/web/root/ecWeb/themes/shitenade/layout.ssjs
index fd20ee2182fde72205705a5dc8b2c8528d6e22d2..2fe63470294a52ffc743f67a6258764bb27ecb7c 100644
--- a/web/root/ecWeb/themes/shitenade/layout.ssjs
+++ b/web/root/ecWeb/themes/shitenade/layout.ssjs
@@ -26,6 +26,7 @@ function openPage(pageTitle) {
 	var c = 0;
 	var d = directory(webIni.webRoot + "/sidebar/*");
 	for(var f in d) {
+		if(file_isdir(d[f])) continue;
 		print("<div class='sidebarBox standardBorder standardPadding underMargin'>");
 		if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]);
 		if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") {
diff --git a/web/root/ecWeb/themes/stocktastic-r/layout.ssjs b/web/root/ecWeb/themes/stocktastic-r/layout.ssjs
index fd20ee2182fde72205705a5dc8b2c8528d6e22d2..2fe63470294a52ffc743f67a6258764bb27ecb7c 100644
--- a/web/root/ecWeb/themes/stocktastic-r/layout.ssjs
+++ b/web/root/ecWeb/themes/stocktastic-r/layout.ssjs
@@ -26,6 +26,7 @@ function openPage(pageTitle) {
 	var c = 0;
 	var d = directory(webIni.webRoot + "/sidebar/*");
 	for(var f in d) {
+		if(file_isdir(d[f])) continue;
 		print("<div class='sidebarBox standardBorder standardPadding underMargin'>");
 		if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]);
 		if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") {
diff --git a/web/root/ecWeb/themes/stocktastic/layout.ssjs b/web/root/ecWeb/themes/stocktastic/layout.ssjs
index fd20ee2182fde72205705a5dc8b2c8528d6e22d2..2fe63470294a52ffc743f67a6258764bb27ecb7c 100644
--- a/web/root/ecWeb/themes/stocktastic/layout.ssjs
+++ b/web/root/ecWeb/themes/stocktastic/layout.ssjs
@@ -26,6 +26,7 @@ function openPage(pageTitle) {
 	var c = 0;
 	var d = directory(webIni.webRoot + "/sidebar/*");
 	for(var f in d) {
+		if(file_isdir(d[f])) continue;
 		print("<div class='sidebarBox standardBorder standardPadding underMargin'>");
 		if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]);
 		if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") {