//"www.mdf-berlin.de/2012"; window.settings = { root_dir: "/", media_url: "/media/", jetson_media_url: "/jetson-media/8791/", css_url: "/media/css/default/", img_url: "/media/img/website/", STATIC_URL: "/static/8985/", UPLOADS_URL: "/media/", FILEBROWSER_ROOT_DIR: "", website_url: "http://www.mdf-berlin.de/2012/", website_ssl_url: "http://www.mdf-berlin.de/2012/", URL_ID_PERSON: "person", URL_ID_PEOPLE: "people", URL_ID_INSTITUTION: "institution", URL_ID_INSTITUTIONS: "institutions", URL_ID_EVENT: "event", URL_ID_EVENTS: "events", URL_ID_DOCUMENT: "document", URL_ID_DOCUMENTS: "documents", URL_ID_PERSONGROUP: "group", URL_ID_PERSONGROUPS: "groups", URL_ID_PORTFOLIO: "portfolio", lang: "de", languages: { 'de': 'German','en': 'English' } }; window.website = { path: window.location.pathname.replace( /^\/(de|en)\//, "/" ) }; window.cancelEvent = function(e) { if (!e) var e = window.event; e.cancelBubble = true; e.returnValue = false; if (e.stopPropagation) e.stopPropagation(); if (e.preventDefault) e.preventDefault(); }; window.getCausingElement = function(e) { if (!e) var e = window.event; return e.target || e.srcElement; }; window.open_new_window = function(e) { oLink = window.getCausingElement(e); while(oLink && oLink.tagName!="A") { oLink = oLink.parentNode; } window.open(oLink.href, '_blank', 'scrollbars=1,menubar=1,toolbar=1,location=1,resizable=1,status=1'); window.cancelEvent(e); }; window.redirect = function(sURL) { document.location.href = sURL; }; window.submit_form = function(sFormId) { document.getElementById(sFormId).submit(); }; window.dyn_css_rule = function(sSelector, sCssText) { try { var aSS = document.styleSheets; var i; for (i=aSS.length-1; i>=0; i--) { var oCss = document.styleSheets[i]; var sMedia = (typeof(oCss.media) == "string")? oCss.media: oCss.media.mediaText; if (!sMedia || sMedia.indexOf("screen") != -1 || sMedia.indexOf("all") != -1 ) { break; } } if (oCss.insertRule) { oCss.insertRule(sSelector + " {" + sCssText + "}", oCss.cssRules.length); } else if (oCss.addRule) { oCss.addRule(sSelector, sCssText); } } catch(err) { var tag = document.createElement('style'); tag.type = 'text/css'; try { tag.innerHTML = sSelector + " {" + sCssText + "}"; } catch(err) { tag.innerText = sSelector + " {" + sCssText + "}"; } document.getElementsByTagName('head')[0].appendChild(tag); } return sSelector + "{" + sCssText + "}"; }; window.append_to_params = function(sParams, oDict, bReturn) { var oParams = {}; var aPairs = sParams.slice(1).split("&"); var sSep = sParams.slice(0, 1); // "?" or "#" var iLen = aPairs.length; for (i=0; i