/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {	
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

















































/*
Extra info - Coolmenus reference/help - Extra links to help files **** 
CSS help: http://192.168.1.31/projects/coolmenus/reference.asp?m=37
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
*/

function aqHMakeit () {
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=7
oCMenu.fromLeft=7
oCMenu.fromTop=118  
oCMenu.rows=0 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="file:///E|/Andreas/B Webdesigner/G Hospiz" 
oCMenu.onlineRoot="http://www.optima-immobilien.de/stiftung_hospiz_de/aqHospiz" 
oCMenu.resizeCheck=1 
oCMenu.wait=500 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=135
oCMenu.level[0].height=35 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=3
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=1
oCMenu.level[0].arrowWidth=5
oCMenu.level[0].arrowHeight=5
oCMenu.level[0].align="right"

oCMenu.level[1]=new cm_makeLevel()
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"

oCMenu.level[2]=new cm_makeLevel()
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"


oCMenu.makeMenu('top0','','&nbsp;Vorwort','/theatre.php?stage=t&opera=1','')

	
oCMenu.makeMenu('top1','','&nbsp;Aktuelles','/theatre.php?stage=n&opera=2')
	oCMenu.makeMenu('sub10','top1','aktuelle Termine','/theatre.php?stage=t&opera=2')
	oCMenu.makeMenu('sub11','top1','Hof Sanders','/theatre.php?stage=t&opera=141')
	oCMenu.makeMenu('sub12','top1','Backen fürs Hospiz 2005','/theatre.php?stage=t&opera=142')
		oCMenu.makeMenu('sub121','sub12','Bericht','/theatre.php?stage=t&opera=142')
		oCMenu.makeMenu('sub122','sub12','Fotostrecke','/theatre.php?stage=b&opera=10')
	oCMenu.makeMenu('sub20','top1','Weihnachtsmarkt 2005','/theatre.php?stage=n&opera=14')
		oCMenu.makeMenu('sub201','sub20','Bericht','/theatre.php?stage=n&opera=14')
		oCMenu.makeMenu('sub202','sub20','Fotostrecke','/theatre.php?stage=b&opera=9')
	oCMenu.makeMenu('sub21','top1','Golfturnier 2005','/theatre.php?stage=n&opera=10')
		oCMenu.makeMenu('sub211','sub21','Bericht','/theatre.php?stage=n&opera=10')
		oCMenu.makeMenu('sub212','sub21','Fotostrecke','/theatre.php?stage=b&opera=8')
	oCMenu.makeMenu('sub13','top1','Archiv','#')
		oCMenu.makeMenu('sub131','sub13','Weihnachtsmarkt 2004','/theatre.php?stage=t&opera=9')
		oCMenu.makeMenu('sub132','sub13','Weihnachtsmarkt 2003','/theatre.php?stage=t&opera=3')
			oCMenu.makeMenu('sub1321','sub132','Übersicht','/theatre.php?stage=t&opera=3')
			oCMenu.makeMenu('sub1322','sub132','Bildergalerie','/theatre.php?stage=b&opera=1&page=1&ppp=6')
			oCMenu.makeMenu('sub1323','sub132','Die Helfer','/theatre.php?stage=b&opera=2&page=1&ppp=6')
		oCMenu.makeMenu('sub133','sub13','Backen (2003)','/theatre.php?stage=b&opera=6&page=1&ppp=6')
	
	

	

oCMenu.makeMenu('top3','','&nbsp;Hospiz?!','/theatre.php?stage=t&opera=5')
	oCMenu.makeMenu('sub30','top3','Was ist ein Hospiz?','/theatre.php?stage=t&opera=5')
	oCMenu.makeMenu('sub31','top3','Empfindungen Sterbender','/theatre.php?stage=t&opera=6')
		oCMenu.makeMenu('sub310','sub31','Ängste Sterbender','/theatre.php?stage=t&opera=61')
	oCMenu.makeMenu('sub32','top3','soziale Bedürfnisse','/theatre.php?stage=t&opera=7')
	    oCMenu.makeMenu('sub321','sub32','verbale und nonverbale Kommunikation','/theatre.php?stage=t&opera=7')
	    oCMenu.makeMenu('sub322','sub32','Körperkontakt','/theatre.php?stage=t&opera=71')
	    oCMenu.makeMenu('sub323','sub32','Wahrhaftigkeit und Information','/theatre.php?stage=t&opera=72')
	    oCMenu.makeMenu('sub324','sub32','Seele und Religion','/theatre.php?stage=t&opera=83')
	    oCMenu.makeMenu('sub325','sub32','Ruhe','/theatre.php?stage=t&opera=84')
	    oCMenu.makeMenu('sub326','sub32','vertraute Umgebung','/theatre.php?stage=t&opera=85')
	    oCMenu.makeMenu('sub327','sub32','Hoffnungen','/theatre.php?stage=t&opera=86')
	oCMenu.makeMenu('sub33','top3','körperliche Bedürfnisse','/theatre.php?stage=t&opera=8')
	    oCMenu.makeMenu('sub331','sub33','Hunger und Durst','/theatre.php?stage=t&opera=8')
	    oCMenu.makeMenu('sub332','sub33','Sauberkeit, Körperpflege','/theatre.php?stage=t&opera=81')
		oCMenu.makeMenu('sub333','sub33','Medikamente und Therapien','/theatre.php?stage=t&opera=82')
	//Opera 9 ist vergeben. ctn? oCMenu.makeMenu('sub34','top3','Warum ist Hospizarbeit nötig?','/theatre.php?stage=t&opera=9')
	
	
oCMenu.makeMenu('top4','','&nbsp;Projektierung','/theatre.php?stage=t&opera=10')
	oCMenu.makeMenu('sub41','top4','Bildergalerie','/theatre.php?stage=b&opera=3&page=1&ppp=6') 
	oCMenu.makeMenu('sub42','top4','große Bilder','/theatre.php?stage=b&opera=4&page=1&ppp=1') 

oCMenu.makeMenu('top5','','&nbsp;Urkunde','/theatre.php?stage=t&opera=11')
	
oCMenu.makeMenu('top6','','&nbsp;Chronik','/theatre.php?stage=t&opera=12')


oCMenu.makeMenu('top7','','&nbsp;Vorstand','/theatre.php?stage=t&opera=13')
	oCMenu.makeMenu('sub77','top7','Vorstand (Bildergalerie)','/theatre.php?stage=b&opera=5&page=1&ppp=alle')
	oCMenu.makeMenu('sub71','top7','Elisabeth Grümer','/theatre.php?stage=t&opera=14')
	oCMenu.makeMenu('sub73','top7','Hans-Hugo Kurrek','/theatre.php?stage=t&opera=16')
	oCMenu.makeMenu('sub75','top7','Josef Küper','/theatre.php?stage=t&opera=18')
	oCMenu.makeMenu('sub76','top7','Beirat','/theatre.php?stage=t&opera=19')
		oCMenu.makeMenu('sub761','sub76','Annette Samassa','/theatre.php?stage=t&opera=19')

oCMenu.makeMenu('top8','','&nbsp;Spenden','/theatre.php?stage=t&opera=21')
	oCMenu.makeMenu('sub81','top8','Shop','/theatre.php?stage=t&opera=101')
	oCMenu.makeMenu('sub82','top8','Bankverbindung','/theatre.php?stage=t&opera=22')

oCMenu.makeMenu('top9','','&nbsp;Impressum','/theatre.php?stage=t&opera=23')
	oCMenu.makeMenu('sub91','top9','Stiftung','/theatre.php?stage=t&opera=23')
	oCMenu.makeMenu('sub92','top9','Webmaster','/theatre.php?stage=t&opera=24')
		
//Leave this line
oCMenu.construct()
}







function MM_validateForm() { //v3.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' muss eine e-mail Adresse enthalten.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (val!=''+num) errors+='- '+nm+' muss eine Zahl enthalten.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' muss eine Zahl zwischen '+min+' und '+max+' enthalten.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' muss angegeben werden.\n'; }
  } if (errors) alert('Die Angaben sind nicht korrekt:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


