function FNP_180408(){
	myleft=(screen.width)?(screen.width-1018)/2:100;mytop=(screen.height)?(screen.height-544)/2:100;
	settings="width=1008,height=504,top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes,dependent=yes";
	win=window.open("news_paper_fnp_180408.html","fnp_180408",settings);
	win.focus();
}
function WN_050508(){
	myleft=(screen.width)?(screen.width-470)/2:100;mytop=(screen.height)?(screen.height-796)/2:100;
	settings="width=460,height=790,top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes,dependent=yes";
	win=window.open("news_paper_wn_050508.html","wn_050508",settings);
	win.focus();
}

function countlines(str)
{
var i=0;
var nblines=2;
do
        {
        i= str.indexOf("<br>",i);
        if (i>=0)
             nblines = nblines +1;
        i++;
        } while(i>0);
return(nblines);
}
//			openwindowlink
// => url of the media
//    width of the window
//    height of the window
//    title related to the media (not the window title) can be empty
//    date  related to the media can be empty
//    comment  related to the media can be empty
//    iptcexif data  related to the media can be empty
//    media name (name of the original file) this is used to generate one window per media
//    quicktime is 1 if the media is displayed using QuickTime
function openwindowlink(url, w, h,title,date,comment,iptcexif,medianame,quicktime)
{
var top=0;
var left=0;
var realheight;
// Defining default line height
var lineheightInPixel=17;
var exist=0;

// Computing height along displayed string
if(quicktime!=0) h+=17;
    realheight=h;
if (title.length !=0)
    {
    realheight += countlines(title)* lineheightInPixel;
    exist=1;
    }
if (date.length !=0)
    {
    realheight += countlines(date)* lineheightInPixel;
    exist=1;
    }
if (comment.length !=0)
    {
    realheight += countlines(comment)* lineheightInPixel;
    exist=1;
    }
if (iptcexif.length !=0)
    {
    realheight += countlines(iptcexif)* lineheightInPixel;
    exist=1;
    }
if(exist)
    realheight +=17;
// Coordinates of centered window
top=Math.floor((screen.height-realheight-40)/2);
left=Math.floor((screen.width-w-15)/2);
popup = window.open("", medianame, "top="+top+",left="+left+",width="+w+",height="+realheight+",toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0");
popup_html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
popup_html += '<html>';
popup_html += '<head>';
popup_html += '<meta http-equiv="content-type" content="text/html; charset=utf-8">';
if(quicktime!=0)
    {
    if( medianame.length==0)
        popup_html += "<title>Media</title>";
    else
        popup_html += "<title>"+ medianame +"</title>";
    }
else
popup_html += "<title>Klicken Sie auf das Bild um zu schlie&szlig;en.</title>";
popup_html += '<meta http-equiv="imagetoolbar" content="no">';
popup_html += '<style type="text/css">';
popup_html += '<!-- ';
popup_html += 'body  { font-size: 14px; color: #ffffff; } ';
popup_html += '.iptcexif { color: #a0a0a0; } ';
popup_html += '-->';
popup_html += '</style>';
popup_html += '</head>';
popup_html += '<body bgcolor="#000000" text="#ffffff" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" rightmargin="0">';
// Not a quicktime media file
if(quicktime==0)
    {
    // Click will close
    popup_html += '<a href="javascript:self.close();">';
    popup_html += '<img src="'+url+'" width="'+w+'" height="'+h+'" border="0" alt="Klick um das Fenster zu schlie&szlig;en!" title="Klick um das Fenster zu schlie&szlig;en!">';
    popup_html += '</a>';
    }
else
    {
    // Opening it using Quicktime
    popup_html += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"  ';
    popup_html += 'width="'+w+'" height="'+h+'" codebase="http://www.apple.com/qtactivex/qtplugin.cab">';
    popup_html += '<param name="SRC" value="'+ url+'">';
    popup_html += '<param name="CONTROLLER" value="TRUE">';
    popup_html += '<param name="AUTOPLAY" value="FALSE">';
    popup_html += '<param name="CACHE" value="FALSE">';
    popup_html += '<embed src="'+url+'" width="'+w+'" height="'+h+'"';
    popup_html += ' controller="TRUE"';
    popup_html += ' autoplay="TRUE"';
    popup_html += ' cache="FALSE"';
    popup_html += ' type="video/quicktime"';
    popup_html += ' pluginspage="http://www.apple.com/quicktime/download/">';
    popup_html += '</embed>';
    popup_html += '</object>';
    }
popup_html += '<div align="center"><small>';
if (title.length !=0)
    {
    popup_html += '<br>';
    popup_html += title;
    popup_html += '<br>';
    }
if (date.length !=0)
    {
    popup_html += '<br>';
    popup_html += date;
    popup_html += '<br>';
    }
if (comment.length !=0)
    {
    popup_html += '<br>';
    popup_html += comment;
    popup_html += '<br>';
    }
if (iptcexif. length !=0)
    {
    popup_html += '<br>';
    popup_html +='<span class="iptcexif">';
    popup_html += iptcexif;
    popup_html +='</span>';
    popup_html += '<br>';
    }
popup_html += '</small></div>';
popup_html += '</body>';
popup_html += '</html>';
popup.document.open();
popup.document.write(popup_html);
popup.document.close();
}