function swap(obj, over)
{
        var src = new String(obj.src);
        obj.src = (over) ?  src.substring(0, src.indexOf('.gif')) + '_act.gif' : src.substring(0, src.indexOf('_act.gif')) +'.gif';
}

function lang(my_lang)
{
		var my_url = document.location.href
        var my_string = new String(my_url);
        if(my_lang=="en"){
        	my_string = my_string.replace(/_de.html/, "_en.html");
        } else {
       		my_string = my_string.replace(/_en.html/, "_de.html");
        }
        window.location.href = my_string
}
function murl(t) {
	t = t.replace(/_xyz_/, "@");
	t = t.replace(/_abc_/, ".");
	location.href='mailto:'+t;
}


function pop_img(img_url,img_width,img_height){
	img_width = img_width+ 18
	img_height = img_height+ 18
    newWin = window.open("img/popup/grossbild.html?" + img_url, "fenstername", "scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=1,width=" + img_width + " ,height=" + img_height + '"');
    yscr=(screen.height - img_height)/2;
	xscr=(screen.width - img_width)/2;
    newWin.moveBy(xscr,yscr);

}
function PopUp(w,h,ziel) {
  h = h - 20; var x=0, y=0, parameter="";
  if (w < screen.availWidth || h < screen.availHeight) {
    x = (screen.availWidth - w - 12) / 2;
    y = (screen.availHeight - h - 104) / 2;
    if (window.opera) y = 0; // Opera positioniert unter den Symbolleisten
    if (x<0 || y<0) { x=0; y=0; }
    else parameter = "width=" + w + ",height=" + h + ",";
  }
  parameter += "left=" + x + ",top=" + y;
  parameter += ",menubar=no,location=no,toolbar=no,status=no";
  parameter += ",resizable=no,scrollbars=no";
  var Fenster = window.open(ziel,"PopUp",parameter);
  if (Fenster) Fenster.focus();
  return !Fenster;
}
