var CT_SOURCE_URL="http://suedpfalz.city-tiger.de";var CT_MAINSOURCE_URL ="main.city-tiger.de";/** * Diese Datei wird als erstes includiert und stellt die Basis Funktionen die benötigt * werden zur Verfügung */ // Globale Variablen var var_name = null; var key_string = null; var div_name = null var is_init = false; var timer = null; var _slide_event = null; var count = 0; //var CT_SOURCE_URL = 'http://tiger.selfip.org'; /** * Initialisiert den Tigerviewer und erstellt die Instanz * * @param {string} div * @param {string} key * @param {string} variable_name * @param {int} slide_event */ function TigerViewerInit(div, key, variable_name, slide_event) { //Aller übergebenen Werte den globalen Variablen zuweisen if(!div_name) { div_name = div; } if(!key_string) { key_string = key; } if(!var_name) { var_name = variable_name; } if(!_slide_event) { _slide_event = slide_event; } // Wenn Browser nicht kompatibel, dann Meldung ausgeben if(!isBrowserCompatible()) { displayMessage(div_name, '

Der von Ihnen verwendete Browser ist zur Zeit leider ' + 'nicht mit dem TigerViewer kompatibel.

' + '

Bitte nutzen Sie einen anderen Browser z.B. Firefox, Safari oder ' + 'Internet Explorer ab Version 6.

' ); window.clearTimeout(timer); return; } // Prüfen ob schon alle klassen geladen wurden if(is_init) { if(timer) { window.clearTimeout(timer); } eval(var_name + ' = new TigerViewer("' + div_name + '", "' + key_string + '", "' + var_name + '", ' + slide_event + ')'); } else { if(count >= 60) { window.clearTimeout(timer); } else { timer = window.setTimeout('TigerViewerInit("' + div_name +'","' + key_string + '" ,"' + var_name + '")', 1000); } } count++; } /** * Bindet ein neues Skript ein */ function TigerViewerScript(source) { document.write(''); } /** * Prüft ob der genutzte Browser von dem TigerViewer unterstützt wird. * Sollte dies nicht der Fall sein, so wird eine Fehlermeldung ausgegeben */ function isBrowserCompatible() { var browser = new Browser(); switch(browser.getBrowserName()) { case 'Opera': return false; break; default: return true; break; } } /** * Schreibt einen Text * * @param {string} div_name * @param {string} message */ function displayMessage(div_name, message) { var mbox = document.getElementById(div_name); mbox.style.position = 'relative'; mbox.style.width = MAIN_CONTAINER_WIDTH + 'px'; mbox.style.height = MAIN_CONTAINER_HEIGHT + 'px'; mbox.style.background = 'url(' + MAIN_CONTAINER_BACKGROUND_IMAGE + ') no-repeat'; var mdiv = document.createElement('div'); mdiv.style.width = (MAIN_CONTAINER_WIDTH - 100) + 'px'; mdiv.style.margin = 'auto'; mdiv.style.textAlign = 'center'; mdiv.style.paddingTop = '20px'; mdiv.innerHTML = message; mbox.appendChild(mdiv); var copyright = document.getElementById('tv_copyright'); copyright.style.position = 'absolute'; copyright.style.textAlign = 'right'; copyright.style.top = (MAIN_CONTAINER_HEIGHT - 16) + 'px'; copyright.style.width = (MAIN_CONTAINER_WIDTH) + 'px'; var link = copyright.getElementsByTagName('a')[0]; link.style.textDecoration = 'none'; link.style.color = '#555'; link.style.marginRight = '10px'; link.style.fontSize = '11px'; link.style.fontFamily = 'Verdana, Arial, sans-serif'; } /** * Initialisiert alle wichtigen Elemente */ function init() { TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/jsonrequest.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/consts.js'); TigerViewerScript(CT_SOURCE_URL + '/js/basic_functions.js'); TigerViewerScript(CT_SOURCE_URL + '/js/utf8_utils.js'); TigerViewerScript(CT_SOURCE_URL + '/js/browser.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tools/flashplayer/swfobject.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tools/overlib/overlib.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/tpanoviewer.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/timage.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/tflashplayer.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/tmarker.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/tmarkermanager.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/tinfobox.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/tslideinfobox.js'); TigerViewerScript(CT_SOURCE_URL + '/js/tigerviewer/tigerviewer.js'); } init(); // Init ausführen