function swapit(a,b)
		{
		if (document.images && loaded == 1 && clicked!=a) swapimg(a,b);
		}
	
function swapimg(a,b)
	{
	document.images[a].src = b.src;
	}
	
function clickedimg(a, b)
	{
	if (document.images && loaded==1 && clicked!=a)
		{
		for (i = 0; i < numImages; i++)
			{
			swapimg('b'+i, eval('m'+i));
			}
		
		swapimg(a,b);
		clicked = a;
		}
	}
	

function galerie(theURL,winName,features) 
	{
	var win=window.open(theURL,winName,features);
 	win.focus();
 	
	}


function friend_form(theURL,winName,features) 
	{
	var win=window.open(theURL,winName,features);
	win.moveTo((screen.availWidth-400)/2,(screen.availHeight-300)/2);
 	win.focus();
 	
	}


function popupstart(_url)
    {
    var fenster = window.open(_url,"popup","height=564,width=400,toolbar=no,scrollbars=no");
    if(screen.availWidth >= 400 && screen.availHeight >= 564)
      {
      fenster.moveTo((screen.availWidth-400)/2,(screen.availHeight-564)/2);
      }
    fenster.focus();
    }
    
    
function popup(_url)
    {
    var fenster = window.open(_url,"popup","height=564,width=400,toolbar=no,scrollbars=no");
    if(screen.availWidth >= 400 && screen.availHeight >= 564)
      {
      fenster.moveTo((screen.availWidth-400)/2,(screen.availHeight-564)/2);
      }
    fenster.focus();
    }
    
    
function legoland(_url)
    {
    var fenster = window.open(_url,"popup","height=430,width=700,toolbar=no,scrollbars=no");
    if(screen.availWidth >= 700 && screen.availHeight >= 430)
      {
      fenster.moveTo((screen.availWidth-700)/2,(screen.availHeight-430)/2);
      }
    fenster.focus();
    }
    

function sauna(_url)
    {
    var fenster = window.open(_url,"popup","height=561,width=400,toolbar=no,scrollbars=no");
    if(screen.availWidth >= 400 && screen.availHeight >= 561)
      {
      fenster.moveTo((screen.availWidth-400)/2,(screen.availHeight-561)/2);
      }
    fenster.focus();
    }