var bigpicWin = null;

function ViewPic(url, picwidth, picheight, bildunterschrift, text_de, text_en, sprache, video)
{
  if (!bigpicWin || bigpicWin.closed)
  {
    // Zur Positionierung des Fensters wird die Bildschirmauflösung ermittelt
    // und damit die XY-Position der linken oberen Ecke berechnet

    textheight =0; 
   
    usrwidth = screen.width;
    usrheight = screen.height;
   
    winwidth = picwidth;
    winheight = picheight + textheight ;
   

    var X = (usrwidth - winwidth) / 2;
    var Y = (usrheight - winheight) / 2;


    properties =

"toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+winwidth+",height="+winheight+",";

    checkie = navigator.appName.indexOf("microsoft");
    if (checkie == -1)
    {
      properties = properties+"screenX="+X+",screenY="+Y;
    }
    else
    {
   properties = properties+"left="+X+",top="+Y;
 
   properties = properties+" ,menubar=no, toolbar=no";
    }

    bigpicWin = window.open('','bigpicWin',properties);

    bigpicWin.document.open();
    bigpicWin.document.write('<HTML><HEAD>');
    bigpicWin.document.write('<TITLE>'+bildunterschrift+'</TITLE>');
    bigpicWin.document.write('<link  rel="stylesheet" href="_my_style.css"><style type="text/css"></style>');
    bigpicWin.document.write('</HEAD>');
    bigpicWin.document.write('<BODY class="Pic_Comment" bgcolor="#000000" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">');
	if (video)
  {
	  bigpicWin.document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='502' height='411' id='FLVPlayer'>");
bigpicWin.document.write("<param name='movie' value='FLVPlayer_Progressive.swf' \/>");
bigpicWin.document.write("<param name='salign' value='lt' \/>");
bigpicWin.document.write("<param name='quality' value='high' \/>");
bigpicWin.document.write("<param name='scale' value='noscale' \/>");
bigpicWin.document.write("<param name='FlashVars' value='&MM_ComponentVersion=1&skinName=Halo_Skin_2&streamName="+url+"&autoPlay=true&autoRewind=false' \/>");
bigpicWin.document.write("<embed src='FLVPlayer_Progressive.swf' flashvars='&MM_ComponentVersion=1&skinName=Halo_Skin_2&streamName="+url+"&autoPlay=true&autoRewind=false' quality='high' scale='noscale' width='502' height='411' name='FLVPlayer' salign='LT' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' \/>");
bigpicWin.document.write("<\/object>");
  }
	  
	  else
	  {
    bigpicWin.document.write('<A HREF="JavaScript:self.close()"><IMG SRC="'+url+'" HSPACE="0" VSPACE="0" BORDER="0"></A>');
	  }
	  
	if (sprache =='de') 
	{
	  bigpicWin.document.write('<BR>&nbsp; &nbsp;'+text_de);
	}
	else
	{
	  bigpicWin.document.write('<BR>&nbsp; &nbsp;'+text_en);
	}

    bigpicWin.document.write('</BODY>');
    bigpicWin.document.write('</HTML>');
    bigpicWin.document.close()

    bigpicWin.focus();
  }
  else
  {
    bigpicWin.focus();
  }
}


