var swfVersion = new Array(3); function init() { groupsel_show(); print_show(); dlvy_check(); if ( null == swfVersion[0] ) swfVersion = swf_version(); if( !move_banner() ) { if ( 5 < swfVersion[0] ) swf_show(); } var hash = document.location.hash; if( hash ) { hash = 'group'+hash.substring(1); var chk = document.getElementById(hash); chk.checked = true; groupsel_change(chk); } } function openwin(url, name, feat){ win = window.open(url, name, feat); win.focus(); } function infoClose(){ self.close(); } function infoGo() { win = window.open('/go/place'); win.focus(); self.close(); } function popup(breite,hoehe,name) // popup-Funktion mit allen Browsermenus weggenommen { fenster=window.open('',name,'width=' + breite + ',height=' + hoehe +',resizable=yes,scrollbars=no,toolbar=no,status=no,menubar=no,location=no'); fenster.focus(); } function popup2(breite,hoehe,name) // popup-Funktion mit allen Browsermenus weggenommen { fenster=window.open('',name,'width=' + breite + ',height=' + hoehe +',resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,location=no'); fenster.focus(); } function print_show() { var printText=document.getElementById('printText'); var printScript=document.getElementById('printScript'); var orderPrint=document.getElementById('orderPrint'); if ( null == printText || null == printScript || null == orderPrint ) return; printText.className='hidden'; printScript.className=''; orderPrint.className=''; } function groupsel_show() { var hide=document.getElementById('groupSelHide'); var show=document.getElementById('groupSelForm'); if (null!=hide){hide.className='hidden';} if (null!=show){show.className='';} } function groupsel_check(hash) { var chk = document.getElementById(hash); if(!chk) return; var fromElems = chk.form.elements; for( var i=0; i 1 ) { item.style.borderTop = "1px solid white"; } else { item.style.borderTop = "1px dotted #ccc"; } } } } function dlvy_check() { var dlvyCheck = document.getElementById('wantDlvy'); var dlvyAddr = document.getElementById('dlvyAddress'); if( null != dlvyCheck && null != dlvyAddr ) { if( dlvyCheck.checked ){ dlvyAddr.style.display = "block"; } else { dlvyAddr.style.display = "none"; } } } function wantdlvy_change(that) { if ( null == that ) return; var field = document.getElementById('dlvyAddress'); if ( null == field ) return; if( that.checked ) { field.style.display = "block"; } else{ field.style.display = "none"; } } function swf_show () { var div = document.getElementsByTagName("div"); var swfImg = new Array(); var swf = new Array(); var cnt = 0; for ( var i = 0; i < div.length; ++i ) { var did = div[i].id; if ( null == did || 0 == did.length ) continue; if ( 6 < did.length && "swfImg" == did.substring(0,6) ) swfImg[cnt] = div[i]; else if ( 3 < did.length && "swf" == did.substring(0,3) ) swf[cnt++] = div[i]; } for ( var i = 0; i < swf.length; ++i ) { var cn = swfImg[i].className; if ( null == cn ) continue; swfImg[i].style.display = "none"; cn = swf[i].className; if ( null == cn ) continue; swf[i].style.display = 'block'; } var bannerSwf = document.getElementById('banner_right_swf'); if( bannerSwf ) { bannerSwf.style.display = "block"; } var bannerImg = document.getElementById('banner_right_img'); if( bannerImg ) { bannerImg.style.display = "none"; } } function swf_version () { if ( navigator.plugins && navigator.mimeTypes.length ) { var x = navigator.plugins["Shockwave Flash"]; if ( x && x.description ) return x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."); } else { var x = null; try { var x = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); } catch( e ) { try { var x = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); ver[0] = 6; ver[1] = 0; ver[2] = 21; x.AllowScriptAccess="always"; } catch(e) { if ( 6 == ver[0] ) { return ver; } } try { x = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); } catch(e) {} } if ( null != x ) return x.GetVariable("$version").split(" ")[1].split(","); } var ver = new Array(3); ver[0] = -1; ver[1] = -1; ver[2] = -1; return ver; } function close_banner() { var div = document.getElementById('banner_content'); if( div ) { div.style.display = 'none'; } if ( 5 < swfVersion[0] ) swf_show(); } function move_banner() { var div = document.getElementById('banner_content'); if( div ) { var left = div.style.left.replace('px', '') / 1; if(left >= 60 ) { div.style.left = '64px'; return; } left = left + 10; div.style.left = left + 'px'; setTimeout(move_banner, 50); return true; } }