/* basics.js */
var suffixStyleFocus = 'Focused'; if (typeof('globalLocation') == 'undefined' || !globalLocation) { var globalLocation = window.location.href.substr(0, window.location.href.lastIndexOf('/')) + '/';} var docLocation = globalLocation; var imgLocation = globalLocation + 'img' + '/'; var ua = navigator.userAgent; var isALL = ( (document.all) ? true : false ); var isDOM = ( (document.getElementById) ? true : false ); var isIE = (navigator.appName == "Microsoft Internet Explorer"); var isIE5 = isIE && (ua.indexOf('MSIE 5') != -1); var isIE50 = isIE && (ua.indexOf('MSIE 5.0') != -1); var isIE7 = isIE && (ua.indexOf('MSIE 7') != -1); var oldIE = false; var isGecko = ua.indexOf('Gecko') != -1; var isNS7 = ua.indexOf('Netscape/7') != -1; var isNS71 = ua.indexOf('Netscape/7.1') != -1; var isSafari = ua.indexOf('Safari') != -1; var isOpera = ua.indexOf('Opera') != -1; var isMac = ua.indexOf('Mac') != -1; if (isOpera) { isIE = true; isGecko = false; isSafari = false;} if (isIE && !isIE7 && !isOpera) { oldIE = true;} var isRealIE = isIE && !isOpera; function jsCookieLib() {} jsCookieLib.prototype = { set : function(name, val, expires) { var realhost = window.location.hostname; if (realhost.substring(0,4).toLowerCase() == 'www.') { realhost = realhost.substring(4, realhost.length); } var expires_gmt = new Date(); var expires_day = 0; if (typeof(expires) != 'undefined') { if (expires > 0) { expires_day = expires_gmt.getTime() + (60 * 60 * 1000 * 24 * parseInt(expires, 10)); expires_gmt.setTime(expires_day); expires_gmt = expires_gmt.toGMTString(); } else if (expires === 0) { expires_gmt = 0; } else if (expires < 0) { expires_gmt = 'Thu, 01-Jan-1970 00:00:01 GMT'; } } else { expires_gmt = 0; } document.cookie = name + '=' + ((val !== '') ? val : '') + '; expires=' + expires_gmt + '; path=/; domain=' + realhost; }, get : function(name) { if (document.cookie) { var nameEQ = name + '='; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } } return null; }, del : function(name) { if (document.cookie) { this.set(name, '', -1); } }}; var jsCookie = 0; if (typeof(jsCookieLib)!=='undefined') { jsCookie = new jsCookieLib();} function jsEventsLib() { this.dom = ( (document.getElementById) ? true : false ); this.styleFocus = suffixStyleFocus; this.focusedObj = null; } jsEventsLib.prototype = { add: function(obj, typ, fun, cap) { var ret = false; if (obj.addEventListener) { if (obj.addEventListener(typ, fun, cap)) { ret = true; } } else if (obj.attachEvent) { if (document.compatMode != 'CSS1compat') { obj['e' + typ + fun] = fun; obj[typ + fun] = function() { obj['e' + typ + fun]( window.event ); }; ret = obj.attachEvent('on' + typ, obj[typ + fun]); } else { ret = obj.attachEvent('on' + typ, fun); } } return ret; }, del: function removeEvent(obj, typ, fun) { if (obj.removeEventListener) { obj.removeEventListener(typ, fun, false ); } else if (obj.detachEvent) { if (document.compatMode != 'CSS1compat') { obj.detachEvent('on' + typ, obj[typ + fun]); obj[typ + fun] = null; obj['e' + typ + fun] = null; } else { obj.detachEvent('on' + typ, fun); } } }, innerSize : function(what) { var val = 0; var x = 800; var y = 600; if (self.innerHeight) { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } else if (document.body) { x = document.body.clientWidth; y = document.body.clientHeight; } if (what == 'x') { val = x; } else if (what == 'y') { val = y; } return val; }, scrollPos : function(what) { var x = 0; var y = 0; var val = 0; if (document.documentElement.scrollTop || document.body.scrollTop) { if (document.documentElement.scrollTop) { x = document.documentElement.scrollLeft; y = document.documentElement.scrollTop; } else if (document.body.scrollTop) { x = document.body.scrollLeft; y = document.body.scrollTop; } } else if (this.dom) { if (pageYOffset) { x = pageXOffset; y = pageYOffset; } } if (what == 'x') { val = x; } else if (what == 'y') { val = y; } return val; }, set: function(objs, what, clickhandle){ var check = ((what && what != '') ? what.substring(0, 3).toLowerCase() : 0); var objIDX = 0, objIMG = 0, objTXT = 0, objALT = 0, objCSS = 0; var cnt = 0, i = 0; var me = this; if (objs && me.dom) { cnt = objs.length; switch (check) { case 'img': case 'ima': for (i = 0; i < cnt; i++) { objs[i].idx = 0; objs[i].img = 0; objs[i].txt = 0; objs[i].css = ''; objIMG = ((typeof(objs[i].getElementsByTagName('img')[0]) != 'undefined' && objs[i].getElementsByTagName('img')[0] !== '') ? objs[i].getElementsByTagName('img')[0] : 0); objCSS = ((typeof(objs[i].getAttribute('class')) != 'undefined' && objs[i].getAttribute('class') != '') ? objs[i].getAttribute('class') : 0); if (!objCSS) { objCSS = ((typeof(objs[i].className) != 'undefined' && objs[i].className != '') ? objs[i].className : 0); } if (objIMG) { objIDX = ((typeof(objIMG.getAttribute('id')) != 'undefined' && objIMG.getAttribute('id') != '') ? objIMG.getAttribute('id') : 0); if (objIDX) { objs[i].idx = objIDX; objs[i].img = 1; } } if (objCSS) { objs[i].css = objCSS; } } break; case 'inp': for (i = 0; i < cnt; i++) { objIDX = ((typeof(objs[i].getAttribute('id')) !== 'undefined' && objs[i].getAttribute('id') !== null) ? objs[i].getAttribute('id') : 0); objIMG = ((typeof(objs[i].getAttribute('src')) !== 'undefined' && objs[i].getAttribute('src') !== null) ? objs[i].getAttribute('src') : 0); objTXT = ((typeof(objs[i].getAttribute('type')) !== 'undefined' && (objs[i].getAttribute('type') == 'text' || objs[i].getAttribute('type') == 'password')) ? 1 : 0); objCSS = ((typeof(objs[i].getAttribute('class')) !== 'undefined' && objs[i].getAttribute('class') !== null) ? objs[i].getAttribute('class') : 0); if (!objIMG) { objIMG = ((typeof(objs[i].tagName) !== 'undefined' && objs[i].tagName.toLowerCase() == 'button') ? 'button' + i : 0); objs[i].style.cursor = 'pointer'; objTXT = 'button'; } if (!objCSS) { objCSS = ((typeof(objs[i].className) !== 'undefined' && objs[i].className !== null) ? objs[i].className : 0); } objs[i].idx = objIDX; objs[i].img = objIMG; objs[i].txt = objTXT; objs[i].css = ''; if (objCSS) { objs[i].css = objCSS; } } break; } cnt = objs.length; for (i = 0; i < cnt; i++) { if (objs[i].idx !== 0) { if (objs[i].txt !== 0) { if (clickhandle == 1) { me.add(objs[i], 'blur', function() { this.className = this.css; }); me.add(objs[i], 'click', function() { this.focus(); }); } if (objs[i].txt !== 'button') { if (clickhandle == 1) { me.add(objs[i], 'focus', function() { this.select(); if (typeof(this.css) !== 'undefined' && this.css.indexOf(me.styleFocus) == -1) { this.className = this.css + me.styleFocus; } }); } me.add(objs[i], 'keydown', function() { if (typeof(this.css) !== 'undefined' && this.css.indexOf(me.styleFocus) == -1) { this.className = this.css + me.styleFocus; } }); } else if (objs[i].txt == 'button') { if (clickhandle == 1) { me.add(objs[i], 'focus', function() { if (typeof(this.css) !== 'undefined' && this.css.indexOf(me.styleFocus) == -1) { this.className = this.css + me.styleFocus; } }); } else { me.add(objs[i], 'focus', function() { if (typeof(this.css) !== 'undefined' && this.css.indexOf(me.styleFocus) == -1) { this.className = this.css + me.styleFocus; } }); } me.add(objs[i], 'mouseover', function() { this.className = this.css + me.styleFocus; }); me.add(objs[i], 'mouseout', function() { this.className = this.css; }); } } else { if (objs[i].img) { me.add(objs[i], 'focus', function() { me.over(this.idx); }); me.add(objs[i], 'blur', function() { me.out(this.idx); }); me.add(objs[i], 'mouseover', function() { me.over(this.idx); }); me.add(objs[i], 'mouseout', function() { me.out(this.idx); }); } else { if (clickhandle == 1) { me.add(objs[i], 'focus', function() { if (typeof(this.css) !== 'undefined' && this.css.indexOf(me.styleFocus) == -1) { this.className = this.css + me.styleFocus; } }); me.add(objs[i], 'blur', function() { this.className = this.css; }); } } } } else { if (objs[i].txt !== 0) { if (objs[i].txt !== 'button') { if (clickhandle == 1) { me.addEvent(objs[i], 'focus', function() { this.select(); if (typeof(this.css) !== 'undefined' && this.css.indexOf(me.styleFocus) == -1) { this.className = this.css + me.styleFocus; } }); } me.add(objs[i], 'keydown', function() { if (typeof(this.css) !== 'undefined' && this.css.indexOf(me.styleFocus) == -1) { this.className = this.css + me.styleFocus; } }); } if (clickhandle == 1) { me.add(objs[i], 'click', function() { this.focus(); }); me.add(objs[i], 'blur', function() { this.className = this.css; }); } } else { if (clickhandle == 1) { me.add(objs[i], 'focus', function() { this.className = this.css + me.styleFocus; }); me.add(objs[i], 'blur', function() { this.className = this.css; }); } } } } } }, swap: function(id, typ){ if (!this.dom) { return; } var obj = ((typeof(document.getElementById(id)) != 'undefined') ? document.getElementById(id) : 0); if (obj) { var strLen = obj.src.length; var strVal = obj.src; var oldTyp = strVal.substring((strLen - 5), (strLen - 3)); var oldSrc = strVal.substring(0, (strLen - 4)); var newSrc = oldSrc; var imgTyp = strVal.substring((strLen - 4), strLen); switch (parseInt(typ, 10)) { case 0: if (oldTyp == '2.' || oldTyp == '1.') { newSrc = oldSrc.substring(0, (oldSrc.length - 1)); } break; case 1: case 2: if (oldTyp == '2.' || oldTyp == '1.') { newSrc = oldSrc.substring(0, (oldSrc.length - 1)) + '' + typ; } else { newSrc = oldSrc + '' + typ; } break; } obj.src = newSrc + '' + imgTyp; } }, over: function(id){ this.swap(id, 1); }, out: function(id){ this.swap(id, 0); }, act: function(id){ this.swap(id, 2); }, autoComplete: function(AutoComplete, theForm, theInput) { var obj = 0; if (theInput && typeof(document.getElementById(theInput)) != 'undefined') { obj = document.getElementById(theInput); } if (theForm) { if (theInput) { if (typeof(document.forms[theForm]) != 'undefined' && typeof(document.forms[theForm].elements[theInput]) != 'undefined') { obj = document.forms[theForm].elements[theInput]; } } else { if (typeof(document.getElementById(theForm)) != 'undefined') { obj = document.getElementById(theForm); } else if (typeof(document.forms[theForm]) != 'undefined') { obj = document.forms[theForm]; } } } if (obj) { obj.setAttribute('autocomplete', AutoComplete); } else { var myForms = document.forms; var numForms = myForms.length; if (numForms > 0) { for (var n = 0; n < numForms; n++) { myForms[n].setAttribute('autocomplete', AutoComplete); } } } }, cssCheck : function(cssObj) { var iscss = false; var obj = ( (typeof(document.getElementById(cssObj)) != 'undefined') ? document.getElementById(cssObj) : 0 ); if (obj && document.styleSheets) { var height = parseInt(obj.offsetHeight, 10); if (height <= 1) { iscss = true; } } return iscss; } }; var jsEvents = 0; var isCSS = false; if (typeof(jsEventsLib) !== 'undefined') { jsEvents = new jsEventsLib();} function cancelEvents(e) { if (e.preventDefault) { e.preventDefault(); } else { e.returnValue = false; }} function stopEvents(e) { if (e.stopPropagation) { e.stopPropagation(); } else { e.cancelBubble = true; }} function newWinObj(id, typ, src, index, width, height, opacity) { var obj = 0, winheight = 0, winwidth = 0; var _typ = 0; if (typ && (typ.toLowerCase() == 'div' || typ.toLowerCase() == 'iframe')) { _typ = typ; } if (document.getElementById) { obj = ( (typeof(document.getElementById(id))!='undefined') ? document.getElementById(id) : 0 ); if (typeof(jsEvents) != 'undefined' && typeof(jsEvents.innerSize) == 'function') { winheight = jsEvents.innerSize('y'); winwidth = jsEvents.innerSize('x'); } if (!obj && _typ) { obj = document.createElement(_typ); if (src && src!='' && src!=0 && src!='body') { document.getElementById(src).appendChild(obj); } else { document.getElementsByTagName('body')[0].appendChild(obj); } obj.setAttribute('id', id); } if (obj) { if (_typ.toLowerCase().indexOf('iframe') != -1) { obj.setAttribute('frameborder', '0'); obj.setAttribute('border', 'no'); } else { obj.style.display = 'none'; if (height != 'css') { if (height < 1) { obj.style.height = winheight + 'px'; obj.style.top = '0px'; } else { height = parseInt(height, 10); obj.style.height = height + 'px'; obj.style.top = Math.floor((winheight - height ) * 0.5) + 'px'; } } if (width != 'css') { if (width < 1) { obj.style.width = winwidth + 'px'; obj.style.left = '0px'; } else { width = parseInt(width, 10); obj.style.width = width + 'px'; obj.style.left = Math.floor((winwidth - width ) * 0.5) + 'px'; } } if (opacity > 0) { if (isRealIE) { obj.style.filter = 'alpha(opacity=' + opacity + ')'; } else if (isGecko && !isSafari) { obj.style.MozOpacity = (opacity * 0.01); } else { obj.style.opacity = (opacity * 0.01); } } } if (oldIE) { obj.style.position = 'absolute'; } else { obj.style.position = 'fixed'; } obj.style.zIndex = index; } } return obj;} function delWinObj(id, src) { var obj = 0; if (document.getElementById) { obj = ( (typeof(document.getElementById(id))!='undefined') ? document.getElementById(id) : 0 ); if (obj) { obj.innerHTML = '&nbsp;'; obj.style.display = 'none'; if (src && src!='' && src!=0 && src!='body') { if (typeof(document.getElementById(src))!='undefined') { document.getElementById(src).removeChild(obj); } } else { if (document.getElementsByTagName) { document.getElementsByTagName('body')[0].removeChild(obj); } } } }} function hideWinObj(id) { var obj = 0; if (document.getElementById) { obj = ( (typeof(document.getElementById(id))!='undefined') ? document.getElementById(id) : 0 ); if (obj) { obj.style.display = 'none'; } }} function showWinObj(id) { var obj = 0; if (document.getElementById) { obj = ( (typeof(document.getElementById(id))!='undefined') ? document.getElementById(id) : 0 ); if (obj) { obj.style.display = 'block'; } }} function externWindow(externUri, externTarget) { var winH = 400, winW = 620; var winL = 0, winT = 0; var winF = 'status=yes,scrollbars=yes,menubar=yes,location=yes'; winL = Math.floor((screen.availWidth - winW) / 2); winT = Math.floor((screen.availHeight - winH) / 2); if (externUri && externUri !== '') { var win = window.open(externUri, externTarget, 'height=' + winH + ',width=' + winW + ',left=' + winL + ',top=' + winT + ',' + winF); if (win && !isOpera) { setTimeout(function(){ win.focus();}, 250); } }} if (oldIE) { var staticPos=0, staticOldPos=-1, staticSmooth=0, staticTimer=83, staticTimed=0, staticStartBack=0, staticStartBody=0;} var flashChecks = new Array(); flashChecks['inst'] = 0; flashChecks['isok'] = false; flashChecks['last'] = 10; flashChecks['need'] = 8; var flash2 = false; var flash3 = false; var flash4 = false; var flash5 = false; var flash6 = false; var flash7 = false; var flash8 = false; var flash9 = false; var flash10 = false; if (navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.indexOf("Windows") != -1) { var strVBS = '' + '<scr' + 'ipt language="vbscr' + 'ipt" type="text/vbscr' + 'ipt"\> \n' + ' on error resume next\n' + ' flash2 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2")))\n' + ' flash3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n' + ' flash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n' + ' flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n' + ' flash6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n' + ' flash7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n' + ' flash8 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))\n' + ' flash9 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")))\n' + ' flash10 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.10")))\n' + '</scr' + 'ipt\>\n'; document.write(strVBS);} function detectFlash(flashRequiredVers) { var i = 0; if (typeof(navigator.plugins) != 'undefined') { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var flashVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashName = navigator.plugins["Shockwave Flash" + flashVer2].description; var flashVers = 0; var reg_exp = /[^0-9\.]/g; var flashVers = parseInt(flashName.replace(reg_exp, ""), 10); flash2 = flashVers == 2; flash3 = flashVers == 3; flash4 = flashVers == 4; flash5 = flashVers == 5; flash6 = flashVers == 6; flash7 = flashVers == 7; flash8 = flashVers >= 8; } } for (i = 2; i <= flashChecks['last']; i++) { if (eval('flash' + i) == true) { flashChecks['inst'] = i; } } if (navigator.userAgent.indexOf("WebTV") != -1) { flashChecks['inst'] = 3; } if (flashChecks['inst'] >= flashRequiredVers) { flashChecks['isok'] = true; } else { flashChecks['isok'] = false; }} function writeFlash(flashOutputString, flashOutputObject) { var obj = 0; if (document.getElementById && document.getElementsByTagName && flashOutputObject && flashOutputObject != '') { obj = ( (typeof(document.getElementById(flashOutputObject)) !== 'undefined') ? document.getElementById(flashOutputObject) : 0 ); if (!obj) { obj = document.createElement('div'); document.getElementsByTagName('body')[0].appendChild(obj); obj.setAttribute('id', flashOutputObject); } } if (obj) { obj.innerHTML = flashOutputString; } else { document.write(flashOutputString); }} function checkFlash(flashOutputString, flashRequiredVers) { var posVersion = flashOutputString.search(/#version=.+/); var is_flash = false; if (posVersion != -1) { var objectTagVersion = flashOutputString.substring(posVersion+9, posVersion+10); if (objectTagVersion != flashRequiredVers) { flashRequiredVersion = objectTagVersion; } } detectFlash(flashRequiredVers); if (flashChecks['isok']) { is_flash = true; } else { is_flash = false; } return is_flash;} function initFlashMenu(uriFlash, uriImage, thisPage) { var timeNow = new Date(); var width = 804, height = 119; var stringFlash = '' + '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"' + ' width="' + width + '" height="' + height + '">' + '<param name="movie" value="' + uriFlash + '" ' + '/' + '>' + '<param name="loop" value="true" ' + '/' + '>' + '<param name="menu" value="false" ' + '/' + '>' + '<param name="quality" value="best" ' + '/' + '>' + '<param name="bgcolor" value="#577e99" ' + '/' + '>' + '<param name="play" value="true" ' + '/' + '>' + '<parem name="wmode" value="transparent" ' + '/' + '>' + '<param name="FlashVars" value="page=' + thisPage + '" ' + '/' + '>' + '<embed type="application/x-shockwave-flash"' + ' pluginspage="http://www.macromedia.com/go/getflashplayer"' + ' src="' + uriFlash + '"' + ' width="' + width + '" height="' + height + '"' + ' loop="true" menu="false" play="true"' + ' FlashVars="page=' + thisPage + '"' + ' quality="best" bgcolor="#577e99" wmode="transparent">' + '<' + '/' + 'embed>' + '<' + '/' + 'object>'; var is_flash = checkFlash(stringFlash, flashChecks['need']); var stringNoFlash = '&nbsp;'; if (uriImage!='') { stringNoFlash = uriImage; } var is_css = false; if ( typeof(jsEvents) !== 'undefined' && jsEvents !== 0 ) { is_css = ( (jsEvents.cssCheck('topofthispage') == true) ? true : false ); } if (is_flash && is_css) { writeFlash(stringFlash, ''); } else { writeFlash(stringNoFlash, ''); }} function formStatus(txt) { var html = ''; var objBack = 0, objBody = 0; var is_css = false, done = false; if ( typeof(jsEvents) !== 'undefined' && jsEvents !== 0 ) { is_css = ( (jsEvents.cssCheck('topofthispage') == true) ? true : false ); } var msg = ''; if (!txt || txt == '') { msg = 'Bitte haben Sie einen Moment Geduld. Unter Umst&auml;nden kann die<br \/>' + '&Uuml;berpr&uuml;fung und Verarbeitung Ihre Daten einige Sekunden dauern.'; } else { msg = txt; } if (document.getElementById && is_css) { objBack = newWinObj('winblockback', 'div', 'body', 197, 0, 0, 50); objBody = newWinObj('wininfo', 'div', 'body', 199, 'css', 'css', 0); if (objBody) { html = '' + '<table border="0" cellpadding="0" cellspacing="0" summary="Information">' + '<tr>' + '<td class="winhead">Bitte warten ...<\/td>' + '<td class="right" rowspan="2">&nbsp;<\/td>' + '<\/tr>' + '<tr>' + '<td class="winbody">' + '<div class="formstatus"><strong>... Anfrage wird gesendet ...<\/strong><\/div>' + '<div class="formstatus">&nbsp;<br \/><div class="throbber"><\/div><\/div>' + '<span class="small">&nbsp;<br \/>' + msg + '<\/span>' + '<\/td>' + '<\/tr>' + '<tr><td class="bottom"><\/td><td class="corner"><\/td><\/tr>' + '<\/table>'; objBody.innerHTML = html; showWinObj('winblockback'); showWinObj('wininfo'); if (oldIE) { if (objBack) { staticStartBack = objBack.offsetTop; } staticStartBody = objBody.offsetTop; window.attachEvent('onscroll', moveStatus); moveStatus(); } done = true; } } if (done!=true) { var obj = ( (typeof(document.getElementById('buttonsubmit')) != 'undefined') ? document.getElementById('buttonsubmit') : 0 ); if (obj) { obj.innerHTML = ''; obj.innerHTML = '<div class="formstatus"><strong>Anfrage wird gesendet ...<' + '/' + 'strong><' + '/' + 'div>'; } }} function moveStatus(e) { e = e || window.event; if (oldIE) { var winY = 0; var objBack = ( (typeof(document.getElementById('winblockback')) != 'undefined') ? document.getElementById('winblockback') : 0 ); var objBody = ( (typeof(document.getElementById('wininfo')) != 'undefined') ? document.getElementById('wincover') : 0 ); if (document.documentElement && document.documentElement.scrollTop) { winY = document.documentElement.scrollTop; } else { winY = document.body.scrollTop; } if (winY!=staticPos && staticOldPos!=staticPos) { staticOldPos = staticPos + staticStartBack; staticSmooth = (winY - (staticPos + staticStartBack)); if (staticSmooth > 0) { staticSmooth = Math.ceil(staticSmooth); } else { staticSmooth = Math.floor(staticSmooth); } staticPos = staticPos + staticSmooth; if (objBack) { objBack.style.marginTop = '0px'; objBack.style.marginBottom = '0px'; objBack.style.top = staticPos + 'px'; } if (objBody) { objBody.style.marginTop = '0px'; objBody.style.marginBottom = '0px'; objBody.style.top = (staticPos + staticStartBody) + 'px'; } } }}

/* ajax.js */
function jsAjaxLib() { this.url = ''; this.params = ''; this.method = 'POST'; this.onSuccess = null; this.onError = function(errorMessage) { alert(errorMessage); };} jsAjaxLib.prototype.doRequest = function() { if (!this.url) { this.onError('Es wurde keine URL angegeben. Der Request wird abgebrochen.'); return false; } if (!this.method) { this.method = 'POST'; } else { this.method = this.method.toUpperCase(); } var xmlHttpRequest = ajaxGetXMLHttpRequest(); if (!xmlHttpRequest) { this.onError('Es konnte kein XMLHttpRequest-Objekt erstellt werden.\nIhr Browser scheint diese Methode der asynchronen Datenverbindung nicht zu unterstützen.'); return false; } var _this = this; switch (this.method) { case 'GET': xmlHttpRequest.open(this.method, this.url + ( (this.params !== '') ? '?' + this.params : '' ), true); xmlHttpRequest.onreadystatechange = readyStateHandler; xmlHttpRequest.send(null); break; case 'POST': xmlHttpRequest.open(this.method, this.url, true); xmlHttpRequest.onreadystatechange = readyStateHandler; xmlHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlHttpRequest.send(this.params); break; } function readyStateHandler() { if (xmlHttpRequest.readyState == 4) { try { if (xmlHttpRequest.status == 200 || xmlHttpRequest.status == 304) { if (_this.onSuccess) { _this.onSuccess(xmlHttpRequest.responseText, xmlHttpRequest.responseXML); } } else { if (_this.onError) { _this.onError('Es trat ein Fehler bei der Datenübertragung auf.\n\nStatus: ' + xmlHttpRequest.status + '\n\nInfos:\n' + xmlHttpRequest.statusText); } } } catch(e) { } } else if (xmlHttpRequest.readyState < 4) { return false; } return ''; } return null;}; jsAjaxLib.prototype.sendRequest = function (myUrl, myParams, myMethod) { if (myUrl.indexOf('http://') == -1 && myUrl.indexOf('https://') == -1) { myUrl = docLocation + myUrl; } this.url = myUrl; this.method = myMethod; this.params = myParams; /*this.onError = ajaxErrorHandler;*/ this.doRequest(); }; function ajaxGetXMLHttpRequest() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if (window.ActiveXObject) { try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { return null; } } } return null;} function isAjax() { var val = false; if (window.XMLHttpRequest) { val = true; } else if (window.ActiveXObject) { try { val = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { val = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { val = false; } } } if (val!==false) { val = true; } return val;} function ajaxErrorHandler(errorMessage) { if (typeof(ajaxDebugMode) == 'undefined' || !ajaxDebugMode) { if (isDOM) { if (!document.getElementById('dynamicErrorBox')) { document.createElement('div'); } } else { alert(errorMessage); } }}

/* suggest.js */
function jsSuggestLib() { this.Items = []; this.ActiveItem = 0; this.FirstItem = 0; this.LastItem = 0; this.OptionValue = 'title'; this.OptionField = 0; this.SearchValue = ''; this.SearchField = 0; this.SearchFieldID = ''; this.Layer = 0; this.Frame = 0; this.SearchChars = 1; this.BoxOffsetX = 0; this.BoxOffsetY = -1; this.BoxOffsetH = 2; this.BoxOffsetW = 0; if (!isIE || isIE7) { this.BoxOffsetW = -2; } this.DontDisplay = false; this.StyleFilter = 90; this.StyleSaved = ''; this.ajax = new jsAjaxLib(); this.footerSpecialInfos = ( (typeof(document.getElementById('footerSpecialInfos'))!='undefined') ? document.getElementById('footerSpecialInfos') : 0 ); } jsSuggestLib.prototype.Load = function () { var _this = this; function decodeEntity(value) { var counter = 0; var chars = new Array ( ' ','!','"','#','$','%','&',"'",'(',')','*','+',',','-','.','/','0','1','2','3', '4','5','6','7','8','9',':',';','<','=','>','?','@','A','B','C','D','E','F','G', 'H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','[', '\\',']','^','_','`','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o', 'p','q','r','s','t','u','v','w','x','y','z','{','|','}','~',' ','c','u','e','a', 'a','a','a','c','e','e','e','i','i','i','a','a','e','ae','ae','o','o','o','u','u', 'y','u','u','o','l','0','x','f','a','i','o','u','n','n','*','O','?','r','_','?', '?','!','<','>','_','_','_','|','|','a','a','a','c','|','|','+','+','c','y','+', '+','-','-','+','-','+','a','a','+','+','-','-','|','-','+','.','.','d','e','e', 'e','i','i','i','i','+','+','_','_','|','i','_','o','o','o','o','o','o','u','p', 'p','u','u','u','y','y','_',"'",'-','?','_','?','?','S','÷','¸','°','¨','·','¹', '³','²','_',' ' ); if (value && value!='') { var decoded = value; decoded = decoded.replace(new RegExp("\\=\r\n","gim"), ""); decoded = unescape(decoded); for (counter = 32; counter < 256; counter++){ decoded = decoded.replace(new RegExp("\\[" + counter + "," ,"gim"), "[" + chars[counter-32] + ","); decoded = decoded.replace(new RegExp("\\[" + counter + ",","gim"), "[" + chars[counter-32] + ","); } for (counter = 32; counter < 256; counter++){ decoded = decoded.replace(new RegExp("," + counter + "\\]","gim"), "," + chars[counter-32] + "]"); decoded = decoded.replace(new RegExp("," + counter + "\\]","gim"), "," + chars[counter-32] + "]"); } for (counter = 32; counter < 256; counter++){ decoded = decoded.replace(new RegExp("," + counter + ",","gim"), "," + chars[counter-32] + ","); decoded = decoded.replace(new RegExp("," + counter + ",","gim"), "," + chars[counter-32] + ","); } var saved = decoded; decoded = decoded.replace(new RegExp("(\\[[^\\]]+)\\,([^\\]]+\\])","gim"), "$1$2"); while (saved !== decoded) { saved = decoded; decoded = decoded.replace(new RegExp("(\\[[^\\]]+)\\,([^\\]]+\\])","gim"), "$1$2"); } for (counter = 32; counter < 100; counter++){ decoded = decoded.replace(new RegExp("&#" + counter + ";","gim"), chars[counter-32]); decoded = decoded.replace(new RegExp("&#0" + counter + ";","gim"), chars[counter-32]); decoded = decoded.replace(new RegExp("&#00" + counter + ";","gim"), chars[counter-32]); } for (counter = 100; counter < 256; counter++){ decoded = decoded.replace(new RegExp("&#" + counter + ";","gim"), chars[counter-32]); decoded = decoded.replace(new RegExp("&#0" + counter + ";","gim"), chars[counter-32]); } } return decoded; } function getValue(item) { var val = ''; if (_this.OptionValue!='ean') { if (typeof(item.getAttribute) !== 'undefined' && typeof(item.getAttribute('title')) !== 'undefined') { if (item.getAttribute('title') !== null && item.getAttribute('title') !== '') { val = item.getAttribute('title'); } } } if (val === '') { val = item.innerHTML; if (isIE) { val = item.innerText; } else { val = item.textContent; } if (!val) { val = item.innerHTML; } } return val; } function getPosX() { var obj = _this.SearchField; var val = parseInt(obj.offsetLeft, 10); while ((obj = obj.offsetParent) !== null) { val += parseInt(obj.offsetLeft, 10); } return val; } function getPosY() { var obj = _this.SearchField; var val = parseInt(obj.offsetTop, 10); while ((obj = obj.offsetParent) !== null) { val += parseInt(obj.offsetTop, 10); } return val; } function getWidth() { var obj = _this.SearchField; var val = parseInt(obj.offsetWidth, 10); return val; } function getHeight() { var obj = _this.SearchField; var val = parseInt(obj.offsetHeight, 10); return val; } function hideBox() { if (_this.Layer) { _this.Layer.style.display = 'none'; var e = _this.Layer.getElementsByTagName('a'); var num = e.length; for (var n = 0; n < num; n++) { var d = _this.Layer.removeChild(_this.Layer.firstChild); } } if (_this.Frame) { _this.Frame.style.display = 'none'; } if (_this.footerSpecialInfos) { _this.footerSpecialInfos.innerHTML = '&nbsp;'; _this.footerSpecialInfos.style.display = 'none'; } } function showBox() { var num = _this.Items.length, h = 20, w = 100, m = 16, x = 0, y = 0; if (_this.Layer) { _this.Layer.style.position = 'absolute'; _this.Layer.style.display = 'block'; if (num < 6) { h = (14 * num) + 4; } else { h = 100; } h += _this.BoxOffsetH; m = getHeight(); w = getWidth() + _this.BoxOffsetW; x = getPosX() + _this.BoxOffsetX; y = getPosY() + _this.BoxOffsetY + m; _this.Layer.style.height = h + 'px'; _this.Layer.style.left = x + 'px'; _this.Layer.style.top = y + 'px'; _this.Layer.style.width = w + 'px'; if (_this.Frame && isIE && !isIE7) { _this.Frame.style.position = 'absolute'; _this.Frame.style.height = h + 'px'; _this.Frame.style.left = x + 'px'; _this.Frame.style.top = y + 'px'; _this.Frame.style.width = w + 'px'; _this.Frame.style.filter = 'alpha(opacity=1)'; _this.Frame.style.display = 'block'; } if (isIE) { _this.Layer.style.filter = 'alpha(opacity=' + _this.StyleFilter + ')'; } else if (isGecko) { _this.Layer.style.MozOpacity = (_this.StyleFilter / 100); } } } function resizeHandler() { if (_this.Layer) { var m = getHeight(); var x = getPosX() + _this.BoxOffsetX; var y = getPosY() + _this.BoxOffsetY + m; _this.Layer.style.left = x + 'px'; _this.Layer.style.top = y + 'px'; if (_this.Frame && isIE && !isIE7) { _this.Frame.style.left = x + 'px'; _this.Frame.style.top = y + 'px'; } } } function selectItem(item, fromKeyBoard, fromEvent, copyValue) { var inp = _this.SearchField; var css = ((typeof(inp.className) !== 'undefined' && inp.className !== null && inp.className.indexOf(suffixStyleFocus) == -1) ? inp.className : 0); if (!item) { item = this; } if (_this.ActiveItem) { _this.ActiveItem.className = _this.StyleSaved; } _this.StyleSaved = item.className; item.className = suffixStyleFocus; _this.ActiveItem = item; if (_this.footerSpecialInfos) { _this.footerSpecialInfos.innerHTML = '&nbsp;'; _this.footerSpecialInfos.innerHTML = item.title; _this.footerSpecialInfos.style.display = 'block'; } var cval = getValue(item); if (cval && cval!='') { cval = decodeEntity(cval); } else { cval = ''; } if (fromKeyBoard) { if ((_this.ActiveItem.offsetTop+_this.ActiveItem.offsetTop) > _this.Layer.offsetHeight) { _this.Layer.scrollTop = _this.ActiveItem.offsetTop - _this.Layer.offsetHeight + _this.ActiveItem.offsetHeight + 2; } if (_this.ActiveItem.offsetTop < _this.Layer.scrollTop) { _this.Layer.scrollTop = 0; } } if (fromEvent && copyValue) { if (isSafari || cval === '') { return; } var sval = _this.SearchValue; inp.value = cval; if (inp.setSelectionRange) { inp.setSelectionRange(sval.length, cval.length); } else { /*alert(sval + '\n' + cval);*/ var rng = inp.createTextRange(); rng.moveStart("character", sval.length); rng.moveEnd("character", cval.length - sval.length); rng.select(); } inp.onfocus = function() { this.className = css + suffixStyleFocus; }; inp.focus(); if (!fromKeyBoard) { hideBox(); } } } function makeBox() { var n = 0, num = 0; var obj = []; if (!_this.Layer) { var layerObj = document.createElement('div'); document.getElementsByTagName('body')[0].appendChild(layerObj); layerObj.setAttribute('id', 'suggestionLayer'); _this.Layer = layerObj; if (isIE && !isIE7) { if (!_this.Frame) { var frameObj = document.createElement('iframe'); document.getElementsByTagName('body')[0].appendChild(frameObj); frameObj.setAttribute('id', 'suggestionFrame'); frameObj.setAttribute('frameborder', '0'); frameObj.setAttribute('border', 'no'); _this.Frame = frameObj; } } } obj = document.getElementsByTagName('INPUT'); num = obj.length; var sof = null; for (n = 0; n < num; n++) { if (!(obj[n].name.toLowerCase().indexOf('search') > -1)) { sof = obj[n].onfocus; if (typeof(sof) != 'function') { obj[n].onfocus = function() { hideBox(); }; } else { obj[n].onfocus = function() { sof(); hideBox(); }; } } } obj = document.getElementsByTagName('SELECT'); num = obj.length; for (n = 0; n < num; n++) { sof = obj[n].onfocus; if (typeof(sof) != 'function') { obj[n].onfocus = function() { hideBox(); }; } else { obj[n].onfocus = function() { sof(); hideBox(); }; } } obj = document.getElementsByTagName('TEXTAREA'); num = obj.length; for (n = 0; n < num; n++) { sof = obj[n].onfocus; if (typeof(sof) != 'function') { obj[n].onfocus = function() { hideBox(); }; } else { obj[n].onfocus = function() { sof(); hideBox(); }; } } var srh = window.onresize; if (typeof(srh) != 'function') { window.onresize = function(){ resizeHandler(); }; } else { window.onresize = function(){ srh(); resizeHandler(); }; } if (_this.SearchField.value.length < _this.SearchChars) { hideBox(); return; } } function stringLength(str) { var num = 0, n = 0, val = '', chr = ''; var sw = 0; var ow = getWidth() + _this.BoxOffsetW; num = str.length; for (n = 0; n < num; n++) { chr = str.substring(n, n + 1); switch (chr) { case 'l': case 'i': case '!': case '|': case ',': case ';': case '.': case ':': sw += 3; break; case 'w': case 'm': case 'W': case 'M': case 'T': case 'G': case 'D': sw += 11; break; default: sw += 8; break; } if (sw < ow) { val += chr; } else { break; } } if (str != val) { val += ' ...'; } return val; } function parseXML(txt, xml){ var n = 0, num = 0, cnt = 0; var done = false; _this.Items = []; itemList = ((typeof(xml.getElementsByTagName('result')[0]) != 'undefined') ? xml.getElementsByTagName('result')[0] : 0); if (itemList) { num = itemList.getElementsByTagName('item').length; if (num > 0) { for (n = 0; n < num; n++) { var node = itemList.getElementsByTagName('item')[n]; if (typeof(node.getAttribute('value')) !== 'undefined' && node.getAttribute('value') !== null) { var myval = node.getAttribute('value'); myval = decodeURI(myval); _this.Items[cnt] = myval; cnt++; } } } } if (_this.Layer) { _this.Layer.innerHTML = ''; num = _this.Items.length; if (num > 0 && _this.DontDisplay !== true) { n = 0; for (n = 0; n < num; n++) { var as = _this.StyleFilter; var ao = document.createElement('a'); ao.id = 'suggestionItemNr' + n; if (_this.OptionValue !== 'ean') { ao.title = _this.Items[n]; ao.innerHTML = stringLength(_this.Items[n]); } else { var tmp_arr = _this.Items[n].split(';;'); ao.title = tmp_arr[1]; ao.innerHTML = tmp_arr[0]; } ao.style.cursor = 'pointer'; if (isIE) { ao.style.filter = 'alpha(opacity=' + (_this.StyleFilter) + ')'; } else if (isGecko) { ao.style.MozOpacity = (_this.StyleFilter / 100); } ao.onmouseover = function(){ selectItem(this, false, true, false); }; ao.onclick = function() { selectItem(this, false, true, true); }; if (n < 1) { _this.FirstItem = ao; } else if (n == (num - 1)) { _this.LastItem = ao; } _this.Layer.appendChild(ao); } _this.Layer.onselectstart = function(){ return false; }; showBox(); done = true; } } if (done !== true) { hideBox(); } } function makeRequest(){ var ts = new Date(); var uri = 'ajax.php'; var opt = 'ajax=true&' + 'option=' + encodeURIComponent(_this.OptionValue) + '&search=' + encodeURIComponent(_this.SearchValue) + '&nocache=' + ts.getTime() + '' + ts.getUTCMilliseconds(); _this.ajax.sendRequest(uri, opt, 'POST'); _this.ajax.onSuccess = parseXML; } function updateOption() { if (typeof(_this.OptionField) != 'undefined' && _this.OptionField !== null) { _this.OptionValue = _this.OptionField.value; } } function updateSearch(theSearchField, theOptionField) { var foundOption = false; _this.SearchValue = theSearchField.value; if (theOptionField) { _this.OptionValue = theOptionField.value; } else { var arr = document.getElementsByTagName('input'); var num = arr.length; for (var n=0; n < num; n++) { if (typeof(arr[n].name) != 'undefined' && typeof(arr[n].id) != 'undefined' && typeof(arr[n].type) != 'undefined' && arr[n].type == 'radio' && arr[n].name.toLowerCase().indexOf('option') != -1) { foundOption = true; if (arr[n].checked==true) { _this.OptionValue = arr[n].value; break; } } else { if (!foundOption && typeof(arr[n].name) != 'undefined' && typeof(arr[n].id) != 'undefined' && arr[n].id.toLowerCase().indexOf('searchoption') != -1 && typeof(arr[n].type) != 'undefined' && arr[n].type == 'hidden' && arr[n].name.toLowerCase().indexOf('option') != -1) { _this.OptionValue = arr[n].value; foundOption = true; break; } } } } if (_this.SearchValue !== '') { makeRequest(); } else { _this.DontDisplay = false; _this.ActiveItem = 0; _this.FirstItem = 0; _this.LastItem = 0; hideBox(); } } function autoHideBox(e) { var sr = 0; var ee = e || window.event; if (ee.target) { sr = ee.target; } else if (ee.srcElement) { sr = ee.srcElement; } if (sr.nodeType == 3) { sr = source.parentNode; } if (sr.tagName.toLowerCase() != 'input') { hideBox(); } } function handleKeyEvents(e) { var ee = (window.event) ? window.event : e; var et = ee.type; var kc = (ee.charCode) ? ee.charCode : ee.keyCode; if (et == 'keyup' && et != 'keydown') { switch (kc) { case 9: if (_this.Layer && _this.Layer.style.display !== 'none') { hideBox(); cancelEvents(ee); } break; case 27: hideBox(); _this.DontDisplay = true; cancelEvents(ee); break; case 38: case 40: cancelEvents(ee); break; default: updateSearch(_this.SearchField, _this.OptionField); break; } } else if (et == 'keydown' && et != 'keypress' && et != 'keyup') { switch (kc) { case 9: if (_this.Layer && _this.Layer.style.display !== 'none') { hideBox(); } break; case 13: if (_this.Layer && _this.Layer.style.display !== 'none') { hideBox(); } break; case 27: hideBox(); _this.DontDisplay = true; cancelEvents(ee); break; case 38: if (_this.Layer) { _this.DontDisplay = false; if (_this.ActiveItem && _this.ActiveItem.previousSibling) { selectItem(_this.ActiveItem.previousSibling, true, true, true); } cancelEvents(ee); } break; case 40: if (_this.Layer) { _this.DontDisplay = false; if (!_this.ActiveItem) { selectItem(_this.FirstItem, true, true, true); } else { if (_this.ActiveItem.nextSibling) { selectItem(_this.ActiveItem.nextSibling, true, true, true); } } cancelEvents(ee); } break; } } } if (_this.OptionField) { var savedOnBlur = _this.OptionField.onblur; if (typeof(savedOnBlur) != 'function') { _this.OptionField.onblur = updateOption; } else { _this.OptionField.onblur = function() { savedOnBlur(); updateOption(); }; } var savedOnChange = _this.OptionField.onchange; if (typeof(savedOnChange) != 'function') { _this.OptionField.onchange = updateOption; } else { _this.OptionField.onchange = function(){ savedOnChange(); updateOption(); }; } } if (_this.SearchField) { _this.SearchField.onkeyup = handleKeyEvents; _this.SearchField.onkeydown = handleKeyEvents; if (isIE) { _this.SearchField.onkeypress = handleKeyEvents; } } if (document.documentElement) { document.documentElement.onclick = autoHideBox; } else if (document.body) { document.body.onclick = autoHideBox; } makeBox(); }; jsSuggestLib.prototype.Init = function(uf) { var arr = []; var ui = 0, us = 0, n = 0, num = 0; if (uf && typeof(uf.name)!='undefined' && uf.name.toLowerCase().indexOf('search') != -1) { arr = uf.getElementsByTagName('INPUT'); num = arr.length; for (n=0; n < num; n++) { if (typeof(arr[n].name) != 'undefined' && typeof(arr[n].id) != 'undefined' && arr[n].name.toLowerCase().indexOf('search') != -1) { ui = arr[n]; break; } } arr = uf.getElementsByTagName('SELECT'); num = arr.length; for (n=0; n < num; n++) { if (typeof(arr[n].name) != 'undefined' && typeof(arr[n].id) != 'undefined' && arr[n].name.toLowerCase().indexOf('option') != -1) { us = arr[n]; break; } } if (ui && this.SearchField != ui) { if (us) { this.OptionField = us; } this.SearchField = ui; this.SearchFieldID = ui.id; } this.Load(); } }; function suggestInit(theForm) { var is_css = false; if ( typeof(jsEvents) !== 'undefined' && jsEvents !== 0 ) { is_css = ( (jsEvents.cssCheck('topofthispage') == true) ? true : false ); } if (is_css) { var uf = 0; if (!theForm) { uf = this.form; } else { uf = theForm; } var jsSuggest = new jsSuggestLib(); jsSuggest.Init(uf); }} function jsTopTenLib(get) { this.get = get; this.ajax = new jsAjaxLib(); this.prefix = 'topTenBox'; this.topbox = ( (typeof(document.getElementById(this.prefix + 'Content')) != 'undefined') ? document.getElementById(this.prefix + 'Content') : 0 ); this.topbtn = ( (typeof(document.getElementById(this.prefix + 'Buttons')) != 'undefined') ? document.getElementById(this.prefix + 'Buttons') : 0 ); if (this.topbox) { this.topbox.innerHTML = '<div class="btntopten" id="btntoptenlast"><div>Daten werden geladen ...<\/div><\/div>'; }} jsTopTenLib.prototype.Load = function() { var _this = this; function parseXML(txt, xml){ var n = 0, num = 0, exturi = 0, knop = '', knops = [], trailer=false; var str = '<div class="btntopten" id="btntoptenlast"><div>Es sind leider keine Daten verf&uuml;gbar.<\/div><\/div>'; if (_this.topbox) { var itemList = ((typeof(xml.getElementsByTagName('result')[0]) != 'undefined') ? xml.getElementsByTagName('result')[0] : 0); if (itemList) { if (typeof(itemList.getAttribute('option')) !== 'undefined' && itemList.getAttribute('option') !== null) { extopt = itemList.getAttribute('option'); exturi = itemList.getAttribute('gotouri'); if (exturi) { switch (extopt) { case 'shop': knop = '<img id="topTenBoxKnop1" name="topTenBoxKnop1" src="' + imgLocation + 'nav-left/btn-top10-shop1.jpg" width="58" height="21" alt=" Bestseller " title="Shop Bestseller" border="0" \/>' + '<a href="javascript:void();" onclick="toptenInit(\'trailer\'); return false;"><img id="topTenBoxKnop2" name="topTenBoxKnop2" src="' + imgLocation + 'nav-left/btn-top10-trailer.jpg" width="47" height="21" alt=" Trailer " title="Die neuesten Trailer" border="0" \/><\/a>' + '<a href="javascript:void();" onclick="toptenInit(\'movies\'); return false;"><img id="topTenBoxKnop3" name="topTenBoxKnop3" src="' + imgLocation + 'nav-left/btn-top10-favs.jpg" width="84" height="21" alt=" Favoriten " title="Favoriten" border="0" \/><\/a>'; break; case 'trailer': trailer = true; knop = '<a href="javascript:void();" onclick="toptenInit(\'shop\'); return false;"><img id="topTenBoxKnop1" name="topTenBoxKnop1" src="' + imgLocation + 'nav-left/btn-top10-shop.jpg" width="58" height="21" alt=" Bestseller " title="Shop Bestseller" border="0" \/><\/a>' + '<img id="topTenBoxKnop2" name="topTenBoxKnop2" src="' + imgLocation + 'nav-left/btn-top10-trailer1.jpg" width="47" height="21" alt=" Trailer " title="Die neuesten Trailer" border="0" \/>' + '<a href="javascript:void();" onclick="toptenInit(\'movies\'); return false;"><img id="topTenBoxKnop3" name="topTenBoxKnop3" src="' + imgLocation + 'nav-left/btn-top10-favs.jpg" width="84" height="21" alt=" Favoriten " title="Favoriten" border="0" \/><\/a>'; break; case 'movies': knop = '<a href="javascript:void();" onclick="toptenInit(\'shop\'); return false;"><img id="topTenBoxKnop1" name="topTenBoxKnop1" src="' + imgLocation + 'nav-left/btn-top10-shop.jpg" width="58" height="21" alt=" Bestseller " title="Shop Bestseller" border="0" \/><\/a>' + '<a href="javascript:void();" onclick="toptenInit(\'trailer\'); return false;"><img id="topTenBoxKnop2" name="topTenBoxKnop2" src="' + imgLocation + 'nav-left/btn-top10-trailer.jpg" width="47" height="21" alt=" Trailer " title="Die neuesten Trailer" border="0" \/><\/a>' + '<img id="topTenBoxKnop3" name="topTenBoxKnop3" src="' + imgLocation + 'nav-left/btn-top10-favs1.jpg" width="84" height="21" alt=" Favoriten " title="Favoriten" border="0" \/>'; break; } if (_this.topbtn) { _this.topbtn.innerHTML = knop; jsEvents.set(_this.topbtn.getElementsByTagName('a'), 'images', 1); } } } num = itemList.getElementsByTagName('item').length; } if (num > 0) { str = ''; for (n = 0; n < num; n++) { var node = itemList.getElementsByTagName('item')[n]; if (typeof(node.getAttribute('value')) !== 'undefined' && node.getAttribute('value') !== null && typeof(node.getAttribute('id')) !== 'undefined' && node.getAttribute('id') !== null) { val = node.getAttribute('value'); if (val.length > 20) { val = val.substring(0, 16) + ' ...'; } else { val = val.substring(0, 20); } str += '' + '<div class="btntopten"' + ( (n < 9) ? '' : ' id="btntoptenlast"' ) + '>' + '<a id="toptenitem' + n + '" name="toptenitem' + n + '"' + ' href="' + exturi + node.getAttribute('id') + '" title="' + node.getAttribute('value') + '"' + ( (trailer == true) ? ' target="trailer" onclick="showTrailer(this.href, \'' + node.getAttribute('value').replace('\'', '\\\'') + '\');return false;"' : '' ) + '>' + ( (n < 9) ? '&nbsp;&nbsp;' : '' ) + (n + 1) + '.&nbsp;' + val + '<\/a><\/div>'; } } done = true; } _this.topbox.innerHTML = str; } var is_css = false; if ( typeof(jsEvents) !== 'undefined' && jsEvents !== 0 ) { is_css = ( (jsEvents.cssCheck('topofthispage') == true) ? true : false ); if (typeof(setLayout) !== 'undefined' && typeof(setLayout) == 'function' && is_css) { setLayout(); } } } function makeRequest() { var ts = new Date(); var uri = 'ajax.php'; var opt = 'ajax=true&' + 'topten=' + escape(_this.get) + '&nocache=' + ts.getTime() + '' + ts.getUTCMilliseconds(); _this.ajax.sendRequest(uri, opt, 'POST'); _this.ajax.onSuccess = parseXML; } makeRequest(); }; function toptenInit(get) { var jscVal = 0; var jscDef = 'movies'; if (typeof(window.location.href)!='undefined') { if (window.location.href.indexOf('trailer')!=-1) { jscDef = 'trailer'; } else if (window.location.href.indexOf('shop')!=-1) { jscDef = 'shop'; } } if (!get || get === '') { jscVal = jscDef; if (typeof(jsCookie) !== 'undefined' && jsCookie) { jscVal = jsCookie.get('toptenbox'); if (!jscVal || jscVal === null) { jscVal = jscDef; } } } else { jscVal = get; } if (typeof(jsCookie) !== 'undefined' && jsCookie) { jsCookie.del('toptenbox'); jsCookie.set('toptenbox', jscVal, 1); } var jsTopTen = new jsTopTenLib(jscVal); jsTopTen.Load();}

/* trailer.js */
function showTrailer(uri, title) { var height=600, width=740, left=0, top=0, win=0; var is_css = false; if ( typeof(jsEvents) !== 'undefined' && jsEvents !== 0 ) { is_css = ( (jsEvents.cssCheck('topofthispage') == true) ? true : false ); } left = Math.floor((screen.availWidth - width) * 0.5); top = Math.floor((screen.availHeight - height) * 0.5); var features ='left=' + left + ',top=' + top + 'width=' + width + ',height=' + height + ',scrollbars=no,resizable=no,' + ',dialog=yes,minimizable=no,modal=yes,status=yes' + ',menubar=no,toolbar=no,location=no'; if (document.getElementById && !oldIE && is_css) { if (typeof(parent.frames)!='undefined' && typeof( parent.frames['trailer'])!='undefined') { parent.frames['trailer'].location.replace(uri); } if (typeof(document.getElementById('winheadleft')) != 'undefined' && document.getElementById('winheadleft')) { document.getElementById('winheadleft').innerHTML = 'Trailer &quot;' + title + '&quot;'; } showWinObj('winblockback'); showWinObj('wintrailer'); } else { if (isRealIE) { features = 'resizable:no;scroll:no;status:yes;center:yes;help:no;' + 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;' + 'menubar:no;toolbar:no;location:no'; win = window.showModalDialog(uri,'trailerwin',features); } else { win = window.open(uri, 'trailerwin', features+',depend=yes'); } if (win) { eval('try { win.resizeTo(width, height); } catch(e) { }'); win.moveTo( ((screen.availWidth - width) / 2),((screen.availHeight - height) / 2)); win.focus(); } }} function hideTrailer() { if (typeof(parent.frames)!='undefined' && typeof( parent.frames['trailer'])!='undefined') { parent.frames['trailer'].location.replace('about:blank'); } hideWinObj('wintrailer'); hideWinObj('winblockback');} function initTrailer() { var is_css = false; if ( typeof(jsEvents) !== 'undefined' && jsEvents !== 0 ) { is_css = ( (jsEvents.cssCheck('topofthispage') == true) ? true : false ); } var html = ''; var done = false; var objBack = 0, objBody = 0; if (document.getElementById && is_css==true) { objBack = newWinObj('winblockback', 'div', 'body', 197, 0, 0, 50); objBody = newWinObj('wintrailer', 'div', 'body', 199, 'css', 'css', 0); objBody.style.display = 'none'; if (objBody) { html = '' + '<table border="0" cellpadding="0" cellspacing="0" class="cover">' + '<tr><td class="winhead"><div id="winheadleft">Trailer ansehen<\/div>' + '<div id="winheadright" title="Trailer-Fenster schlie&szlig;en"><a href="javascript:hideTrailer();" class="winclose" accesskey="0">Fenster schlie&szlig;en<\/a><\/div><\/td>' + '<td class="right" rowspan="2">&nbsp;<\/td><\/tr>' + '<tr><td class="winbody" id="winbody">' + '<iframe name="trailer" id="trailer" frameborder="0" framespacing="0" height="100%" width="100%" src="about:blank" scroll="no"></iframe>' + '<\/td>' + '<tr><td class="bottom"><\/td><td class="corner"><\/td><\/tr>' + '<\/table>'; objBody.innerHTML = html; } }}

/* cover.js */
function showCover(uri, title) { var html = ''; var done = false; var objBack = 0, objBody = 0; var is_css = false; if ( typeof(jsEvents) !== 'undefined' && jsEvents !== 0 ) { is_css = ( (jsEvents.cssCheck('topofthispage') == true) ? true : false ); } if (document.getElementById && is_css) { objBack = newWinObj('winblockback', 'div', 'body', 197, 0, 0, 50); objBody = newWinObj('wincover', 'div', 'body', 199, 'css', 'css', 0); if (objBody) { html = '' + '<table border="0" cellpadding="0" cellspacing="0" class="cover"' + ' summary="Cover zum Film &quot;' + title + '&quot;" title="Cover zum Film &quot;' + title + '&quot;">' + '<tr><td class="winhead"><div id="winheadleft">Gro&szlig;bild-Ansicht<\/div>' + '<div id="winheadright" title="Cover-Fenster schlie&szlig;en"><a href="javascript:hideCover();" class="winclose">Fenster schlie&szlig;en<\/a><\/div><\/td>' + '<td class="right" rowspan="2">&nbsp;<\/td><\/tr>' + '<tr><td class="winbody"><iframe border="0" frameborder="0" framespacing="0" height="100%" width="100%"' + ' src="' + uri + '"><\/iframe><\/td>' + '<tr><td class="bottom"><\/td><td class="corner"><\/td><\/tr>' + '<\/table>'; objBody.innerHTML = html; showWinObj('winblockback'); showWinObj('wincover'); if (oldIE) { if (objBack) { staticStartBack = objBack.offsetTop; } staticStartBody = objBody.offsetTop; window.attachEvent('onscroll', moveCover); } done = true; } } if (!done) { var win = window.open(uri, 'cover', 'width=350,height=520,left=0,top=0,status=no,scrollbars=no'); if (win) { setTimeout(function(){win.focus();}, 100); } }} function hideCover() { delWinObj('wincover', 'body'); hideWinObj('winblockback'); if (oldIE) { staticStartBack = 0; staticStartBody = 0; window.detachEvent('onscroll', moveCover); }} function moveCover(e) { e = e || window.event; if (oldIE) { var winY = 0; var objBack = ( (typeof(document.getElementById('winblockback')) != 'undefined') ? document.getElementById('winblockback') : 0 ); var objBody = ( (typeof(document.getElementById('wincover')) != 'undefined') ? document.getElementById('wincover') : 0 ); if (document.documentElement && document.documentElement.scrollTop) { winY = document.documentElement.scrollTop; } else { winY = document.body.scrollTop; } if (winY!=staticPos && staticOldPos!=staticPos) { staticOldPos = staticPos + staticStartBack; staticSmooth = (winY - (staticPos + staticStartBack)); if (staticSmooth > 0) { staticSmooth = Math.ceil(staticSmooth); } else { staticSmooth = Math.floor(staticSmooth); } staticPos = staticPos + staticSmooth; if (objBack) { objBack.style.marginTop = '0px'; objBack.style.marginBottom = '0px'; objBack.style.top = staticPos + 'px'; } if (objBody) { objBody.style.marginTop = '0px'; objBody.style.marginBottom = '0px'; objBody.style.top = (staticPos + staticStartBody) + 'px'; } } }}