
/* Rollover-Script ( für neuen Button Array-Element hinfzufügen ! achte auf die Syntax im HTML-Quellcode [name] ) */

n=new Array();a=new Array();i=new Array('home','druginfos','angebote','kontakt','ueberuns','specials','impressum','links');
        for (j=0;j<i.length;j++){
                  n[i[j]]=new Image();n[i[j]].src="gfx/n-"+i[j]+".gif";
                  a[i[j]]=new Image();a[i[j]].src="gfx/n-"+i[j]+"-h.gif";
                }
        function mou(i) {window.document.images[i].src=n[i].src;}
        function mov(i) {window.document.images[i].src=a[i].src;}


// kurzer Browsercheck

    if (navigator.userAgent.indexOf('MSIE')!=-1 && window.location.href.indexOf('kontakt')){
        document.write('<link rel="stylesheet" href="css_js/contact-ie.css" type="text/css" />');
    }


// neues Fenster öffnen

    function winop(daurl,name,features) {
        window.open(daurl,name,features);
    }

// Layer Texte werden definiert

var linktext=new Array()

                linktext[0]='Startseite mit aktuellen Infos'
                linktext[1]='Informationen rund um das Thema Drogenkonsum'
                linktext[2]='Was wir f&uuml;r dich tun k&ouml;nnen!'
                linktext[3]='Unser Kontaktformular + E-Mail-Adressen'
                linktext[4]='Wer wir sind und was wir wollen!'
                linktext[5]='Mediathek, Adressen, Berichte, Archiv ...'
                linktext[6]='Die Verantwortlichen des Party Projects'
                linktext[7]='Hier findest du unsere Linksammlung!'
                linktext[8]=''



var ns=document.getElementById&&!document.all
var ie=document.all
var timer = 0

// (timer auf 0 setzen wenn er läuft) - Ebene einblenden und Text in HTML schreiben und

function show_text(thetext, whichdiv) {

    if (typeof(aktiv)!="undefined" && timer >= 1) {
        window.clearTimeout(aktiv);
        timer = 0;
     }
    document.getElementById("infolayer").style.visibility  = "visible";

    if (ie) {
        eval("document.all."+whichdiv).innerHTML=linktext[thetext];
     }
    else if (ns) {
        document.getElementById(whichdiv).innerHTML=linktext[thetext];
     }
    }

// Texte löschen

function reset(whichdiv) {

    count();
    if (ie) {
        eval("document.all."+whichdiv).innerHTML='';
     }
    else if (ns) {
        document.getElementById(whichdiv).innerHTML='';
     }
    }

// Timer starten

function count() {

   if (timer == 50){
        document.getElementById("infolayer").style.visibility  = "hidden";
    }

   else {
        timer ++;
        aktiv=window.setTimeout("count()",10);
    }
   }

/* Sonics-Webring Script

Author: Eric King
                http://redrival.com/eak/index.shtml

This script is free to use as long as this info is left in
Featured on Dynamic Drive script library
  http://www.dynamicdrive.com
*/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,"_blank",settings);}