<!--//--><![CDATA[//><!--
				  
function check(){

	var msg = '';

	
	if(document.formDaten.comment.value == ''){
		msg += '- Kommentar fehlt\n';
	}
	
	if(document.formDaten.nickName.value == ''){
		msg += '- Nickname fehlt\n';
	}
	
	if(	msg != '') {
		alert("Bitte Formular vervollständigen:\n\n"+msg);
		return false;
	}
	
	return true;
	
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height) {

  if(left == 1) left = (screen.width/2) - width/2;
  if(top == 1) top = (screen.height/2) - height/2;

  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  if(popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'')){
	  	popUpWin.focus();
  } else {
		alert('Diese Seite wird in einem PopUp Fenster angezeigt.\nDeaktivieren Sie bitte Ihren PopUp Blocker.');  
  }
}

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_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

// Die DW Funktion findObj() muss vorher eingefügt werden
function switchDiv(id) {
	obj = MM_findObj(id);
	if (obj!=null) {
   		obj.style.visibility = obj.style.visibility == 'visible' ?  'hidden' : 'visible';
		obj.style.display = obj.style.display == 'inline' ?  'none' : 'inline' ;
	}
}


function expandsub(id){
	
	switchDiv('sub_'+id);
	
}

/*

// Sponsorenbanner

*/

$(function() {
    $("#rotator").jCarouselLite({
        vertical: true,
		auto: 2000,
    	speed: 1000,
		visible: 5
    });
});
