function chg ( obj, num, act ) { switch ( num ) { case 0: nam = 'start'; break; case 1: nam = 'ueber'; break; case 2: nam = 'kontakt'; break; case 3: nam = 'mitglieder'; break; case 4: nam = 'plattler'; break; case 5: nam = 'auftritte'; break; case 6: nam = 'photos'; break; case 7: nam = 'gaestebuch'; break; } if ( act == 1 ) { obj.style.backgroundImage = 'url(seiten/img/aufbau/' + nam + '.jpg)'; } else if ( act == 2 ) { obj.style.backgroundImage = 'url(seiten/img/aufbau/' + nam + '_c.jpg)'; } else { obj.style.backgroundImage = 'url(seiten/img/aufbau/' + nam + '_h.jpg)'; } } /*stata = 0; Speed = 8; sSpeed = 8; auth = 1; int = 1; moTimeout = 0; mcTimeout = 0; function sc ( act ) { if ( ( stata == 1 ) && ( auth == 1 ) ) { auth = 0; scTimeout = setTimeout ( 'sca(' + act + ')', 222 ); } } function scw ( act ) { if ( ( stata == 1 ) && ( auth == 1 ) ) { auth = 0; scTimeout = setTimeout ( 'sca(' + act + ')', 0 ); } } function sca ( act ) { stata = 0; obj = document.getElementById ( 'topf' ).style; oba = document.getElementById ( 'conthei' ).style; if ( act == 0 ) { closem (); } else { openm (); } } function closemf ( ) { document.getElementById ( 'topf' ).style.top = '-264px'; document.getElementById ( 'conthei' ).style.height = '39px'; auth = 1; stata = 1; } function closem ( ) { obj = document.getElementById ( 'topf' ).style; oba = document.getElementById ( 'conthei' ).style; if ( parseInt ( obj.top ) > -264 ) { //sSpeed = sSpeed +1; obj.top = parseInt ( obj.top ) - sSpeed + 'px'; oba.height = parseInt ( oba.height ) - Speed + 'px'; auth = 0; stata = 0; mcTimeout = setTimeout ( 'closem(0)', int ); } else { clearTimeout ( mcTimeout ); obj.top = '-264px'; oba.height = '39px'; auth = 1; stata = 1; } } function openm ( ) { obj = document.getElementById ( 'topf' ).style; oba = document.getElementById ( 'conthei' ).style; if ( parseInt ( obj.top ) < 0 ) { //Speed = Speed +1; obj.top = parseInt ( obj.top ) + sSpeed + 'px'; oba.height = parseInt ( oba.height ) + Speed + 'px'; auth = 0; stata = 0; moTimeout = setTimeout ( 'openm(0)', int ); } else { clearTimeout ( moTimeout ); obj.top = '0px'; oba.height = '303px'; auth = 1; stata = 1; } } */ /*function FensterBreite() { if (self.innerWidth) return self.innerWidth; else if (document.body && document.body.clientWidth) return document.body.clientWidth; else return 0; } */ /*function FensterHoehe() { if (self.innerHeight) return self.innerHeight; else if (document.body && document.body.clientHeight) return document.body.clientHeight; else return 0; } function pruefBreite ( ) { if ( FensterBreite() <= 1024 ) { window.resizeTo ( ( FensterBreite() + 51 ), 9999 ); window.moveTo ( screen.availWidth / 2 - FensterBreite() / 2, 0 ); } } if ( window.name != 'entf' ) { window.resizeTo ( 1080, 9999 ); window.moveTo ( screen.availWidth / 2 - FensterBreite() / 2, 0 ); window.focus ( ); } if ( readCookie ( 'groesze' ) ) { groesze ( readCookie ( 'groesze' ) ); } */ function fix ( ) { if ( auth == 1 ) { auth = 0; } else { auth = 1; } } /*function groesze ( size ) { writeCookie ( 'groesze', size, 1 ); document.getElementById ( 'contai' ).style.fontSize = size + 'px'; } */ function writeCookie(name, value, Years) { var expire = ""; if(Years != null) { expire = new Date((new Date()).getTime() + Years * 3600000 * 24 * 365 ); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value) + expire; } function readCookie(name) { var cookieValue = ""; var search = name + "="; if(document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; cookieValue = unescape(document.cookie.substring(offset, end)) } } return cookieValue; } var pImages = new Array(); function preloadimages ( ) { for ( i = 0; i < preloadimages.arguments.length; i++ ) { pImages[i] = new Image ( ); pImages[i].src = preloadimages.arguments[i]; } } preloadimages ( '/img/aufbau/m_local_h.jpg', '/img/aufbau/m_mitglied_h.jpg', '/img/aufbau/m_startseite_h.jpg', '/img/aufbau/m_uber_h.jpg', '/img/aufbau/m_gb_h.jpg', '/img/aufbau/m_photos_h.jpg', '/img/aufbau/m_plattler_h.jpg', '/img/aufbau/m_auftritte_h.jpg' ) gesperrt = new Object ( ); zaehler = 0; letzter = 0; function chgform ( act, obj ) { if ( act == -1 ) //hover { if ( ( letzter ) && ( zaehler == 1 ) ) { if ( obj.name != letzter.name ) { gesperrt[letzter.name] = null; letzter.className = 'itext'; letzter = null; zaehler = 0; } } } else if ( act == -2 ) //hover { if ( ( letzter ) && ( zaehler == 1 ) ) { gesperrt[letzter.name] = null; letzter.className = 'itext'; letzter = null; zaehler = 0; } } else if ( act == 0 ) //hover { if ( gesperrt[obj.name] != true ) { obj.className = 'itextH'; } letzter = obj; } else if ( act == 1 ) //focus { obj.className = 'itextA'; gesperrt[obj.name] = true; letzter = obj; setTimeout ( 'zaehler=1;', 111 ); } else if ( act == 2 ) //out { if ( gesperrt[obj.name] != true ) { obj.className = 'itext'; } } else if ( act == 4 ) //hover red { if ( gesperrt[obj.name] != true ) { obj.className = 'itextHr'; } letzter = obj; } else if ( act == 5 ) //out red { if ( gesperrt[obj.name] != true ) { obj.className = 'itextr'; } } else //blur { letzter = obj; } } document.onclick = new Function("chgform(-2)");