// Statuszeile
	
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
	if(screen.availWidth>width)
	{
		move_width = (screen.availWidth/2)-(width/2);
	} else {
		move_width = 0;
	}
	
	if(screen.availHeight>height)
	{
		move_height = (screen.availHeight/2)-(height/2);
	} else {
		move_height = 0;
	}
	
	if(popUpWin)
	{
		if(!popUpWin.closed) popUpWin.close();
	}
 
	if(move_width==0 || move_height==0)
	{
		popUpWin = window.open('img.php?file_name_gross='+URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,center=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');		
	} else {
		popUpWin = window.open('img.php?file_name_gross='+URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,center=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	}

	popUpWin.moveTo(move_width, move_height);
	popUpWin.focus();
}

function popUpWindow2(URLStr, left, top, width, height)
{
	if(screen.availWidth>width)
	{
		width = screen.availWidth;
	} else {
		width = width;
	}
	
	if(screen.availHeight>height)
	{
		height = screen.availHeight;
	} else {
		height = height;
	}
	

	
	if(popUpWin)
	{
		if(!popUpWin.closed) popUpWin.close();
	}
 
	if(screen.availWidth<width+20 || screen.availHeight<height+20)
	{
		popUpWin = window.open('img.php?file_name_gross='+URLStr+'&width='+width+'&height='+height, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,center=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');		
	} else {
		popUpWin = window.open('img.php?file_name_gross='+URLStr+'&width='+width+'&height='+height, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,center=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	}

	popUpWin.focus();
}

function sound(soundfile)
{
	var so = new SWFObject('/flashvideo/mediaplayer.swf','jstest','0','0','8');
	so.addParam('allowscriptaccess','always');
	so.addParam('allowfullscreen','false');
	so.addVariable('width','0');
	so.addVariable('height','0');
	so.addVariable('file','/sound/'+soundfile+'.mp3');
	so.addVariable('javascriptid','jstest');
	so.addVariable('enablejs','true');
	so.addVariable('autostart','true');
	so.addVariable('backcolor','0x888888');
	so.addVariable('frontcolor','0x333333');
	so.write('sound_modul');

}



	

