
//MOuse over IMG-Changer
function flip(img){
	//aufruf: onMouseOver="flip(eval(this))" onMouseOut="flip(eval(this))"
	var src_str=img.src;
	//Sucht, ob in src des files der String "_over.jpg" vorkommt...
	if (src_str.match(/_over\.jpg$/)){
		var ausdruck = /^(.*)_over\.jpg$/;
		ausdruck.exec(src_str);
		//...und ersetzt ihn wenn ja durch ".jpg"
		img.src = RegExp.$1 + ".jpg";
		
	} else {
		//wenn nicht wird ".jpg"...
		var ausdruck = /^(.*)\.jpg$/;
		ausdruck.exec(src_str);
		//...durch "_over.jpg" ersetzt
		img.src = RegExp.$1 + "_over.jpg";
	}
}

function popfunc(URL, breite, hoehe, scrollbars)
{
  if (!breite){var breite=420;}
  if (!hoehe)  {var hoehe=415;}

  var top=(screen.availHeight-hoehe)/2;
  var left=(screen.availWidth-breite)/2;
  if(scrollbars == ''){
    scrollbars = 0;
  }
  
  popwin=window.open(URL,'popWinName',"height="+hoehe+",width="+breite+",menubar=0,resizable=1,scrollbars="+scrollbars+",status=1,titlebar=0,toolbar=0,left="+left+",top="+top+"");
  popwin.focus();
}
/*
function popfunc(URL, breite, hoehe)
{
  if (!breite){var breite=420;}
  if (!hoehe)  {var hoehe=415;}

  var top=(screen.availHeight-hoehe)/2;
  var left=(screen.availWidth-breite)/2;

  popwin=window.open(URL,'popWinName',"height="+hoehe+",width="+breite+",menubar=0,resizable=1,scrollbars=0,status=1,titlebar=0,toolbar=0,left="+left+",top="+top+"");
  popwin.focus();
}*/
