//defining position of javascript source code and loading /* * 0) insideWSC :Im WSC und nicht deployed * Es gibt 3 verschiedene Modi im WSC: * 1) locParams.gloPre :Ansicht in Designauswahl * 2) !locParams.gloPre && !locParams.ediWin :Vorschau im Editor inline * 3) locParams.ediWin :Vorschau im Editor neues Fenster * 4) veröffentlicht */ /*here everythng is defined to decide where the sources and the context the page is shown*/ var locParams = function() { } /*here everythng is defined needed for the html elements*/ var elemParams = function() { } elemParams.CONTENTIFRAME = "myiframe"; elemParams.OBJECTMENU = "objFlashMenue"; elemParams.divList = new Array(); elemParams.totalWidth = 760; elemParams.menueHeight = 500; elemParams.menueOffsetTop = 50; elemParams.mainbuttonHeight = 25; elemParams.subbuttonHeight = 25; elemParams.scrollContent = -1; /*this values are choosen in the design selection context, when no user sitetree is choosen for content*/ elemParams.n_main = 4; elemParams.n_sub = 4; if (typeof(decodeURIComponent) == "undefined") { elemParams.decodeURIComponent = function(s) { return unescape(s); } } else { elemParams.decodeURIComponent = decodeURIComponent; } elemParams.jdecode = function(s) { var re = /\+/g; s = s.replace(re, "%20"); return elemParams.decodeURIComponent(s); } locParams.url = new URL(document.location.href); locParams.srcUrl = new URL(URL.jdecode(locParams.url.getParameter("src", ""))); locParams.insWSC = document.location.href.indexOf("/servlet/CMServeRES") >= 0; locParams.preview2 = (locParams.srcUrl.getParameter("show", "") == "Preview2"); locParams.pathprefix = locParams.insWSC ? "/servlet/CMServeRES" : "."; locParams.gloPre = document.location.href.indexOf("globalPreview") >= 0; locParams.ediWin = parent.document.location.href.indexOf(jencode("/servlet/Show")) >= 0; locParams.prefix = locParams.insWSC ? "/servlet/CMServeRES/" : ""; locParams.prefixSrc = locParams.gloPre ? jdecode(locParams.url.getParameter("srcPrefix")) : ""; locParams.dataSrc = locParams.gloPre ? locParams.prefixSrc+".js" : locParams.prefix + "include/sitetree.js"; locParams.stdImgDir = ""; locParams.palDir = ""; locParams.imgDir = locParams.prefix; /* * in sitetree.js ist der sitetree und neuerdings auch einige Template-Eigenschaften definiert */ document.write('