function ChangeUrl(Url)
{
	if(Url == "-") return;
	window.location.href=Url;
}

function ShowGalleryPic(Comment,Picture,p_width,p_height,PhotoBy,Stuff)
{
var features;
var Fenster;
// var x = p_width  + 160;
// var y = p_height + 190;
var x_offset = 70;
var y_offset = 130;
var screen_x = screen.width;
var screen_y = screen.height - 20;

var x = p_width + x_offset;
var y = p_height + y_offset;

    if(y > screen_y)
    {
        y = screen_y - 80;
    }

var x_pos = screen_x/2 - x/2;
var y_pos = screen_y/2 - y/2;

//    features = 'width="+x+",height="+y+",left="+x_pos+",top="+y_pos+",resizable=0,status=0,scrollbars=1,dependent=1,x=0,y=0';
    Fenster = window.open("","picture","width="+x+",height="+y+",left="+x_pos+",top="+y_pos+",resizable=1,status=0,scrollbars=1,dependent=1,x=0,y=0");
//    Fenster = open("","",features);

    Fenster.document.open();
    with(Fenster.document)
    {
//        writeln("<html><head><title>"+ Title +"");
// 15.09        writeln("<html><head><title>"+ Comment +"");
        writeln("<html><head><title>Gallery Picture");
        writeln("</title>");
        writeln("<style type=\"text/css\">");
        writeln("<!--");
        writeln("a:link    { text-decoration:none; font-size: 8pt; font-weight:bold; color:#235BA0; }");
        writeln("a:visited { text-decoration:none; font-size: 8pt; font-weight:bold; color:#235BA0; }");
        writeln("a:hover   { text-decoration:none; font-size: 8pt; font-weight:bold; color:#ffffff; }");
        writeln("a:active  { text-decoration:none; font-size: 8pt; font-weight:bold; color:#235BA0; }");
        writeln("-->");
        writeln("</style>");
        writeln("</head>");

        writeln("<body bgcolor=\"Black\" text=\"#808080\" link=\"#cccccc\" vlink=\"#cccccc\" alink=\"#cccccc\" topmargin=\"0\">");
        writeln("<br>"); 
// 23.01.2003                writeln("<HR ALIGN=LEFT NOSHADE WIDTH=100%>");
        writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%>");
//        writeln("<TD ALIGN=LEFT VALIGN=middle WIDTH=15%><B><FONT SIZE=+1>" + Title + "</FONT></B></TD><td width=5%></TD>");
//        writeln("<td width=10>&#160;</td>");
// 15.09        writeln("<TD ALIGN=LEFT VALIGN=middle width=80%>");
        writeln("<TD ALIGN=LEFT VALIGN=middle width=100%>");
// 31.10        writeln("<div style=\"font-family: Comic Sans MS; color: #cccccc; font-size: 7pt;\">");
// 09.01        writeln("<div style=\"font-family: Comic Sans MS; color: #cccccc; font-size: 8pt;\">");
        writeln("<div style=\"font-family: Comic Sans MS; color: #ffffff; font-size: 9pt;\">");
        writeln(""+ Comment +"</DIV></TD>");
        //writeln("« "+ Comment +" »</DIV></TD>");
        //writeln("<TD VALIGN=BOTTOM width=60%><FONT COLOR=#2f4f4f> « "+ Comment +" »</font></TD>");

// 15.09        writeln("<td width=10>&#160;</td>");
// 15.09        writeln("<TD ALIGN=RIGHT WIDTH=20%><FONT SIZE=+2>Zedler<B><FONT COLOR=#CCCCCC SIZE=+1>online</B></FONT></TD>");
        writeln("</TABLE>");
// 08.02.2004   writeln("<HR ALIGN=LEFT NOSHADE WIDTH=100%>");
        writeln("<br><br>");

        writeln("<table border=0 width=100%>");
        writeln("<TR><td width=100% valign=\"middle\" align=\"center\">");

//        writeln("<A><IMG BORDER=1 SRC="+ Picture +"><BR><BR></A>");
        writeln("<A HREF=\"#\" onMousedown=\"window.close();return true;\"><IMG alt=\"close\" title=\"close\" BORDER=1 SRC="+ Picture +"><BR><BR></A>");

        writeln("<table border=0 width="+ p_width +" cellspacing=5>");
        writeln("<TR><TD align=\left\" width=80%>");
        writeln("<div style=\"font-family: Arial; color: #cccccc; font-size: 7pt;\">");
        writeln("" + Stuff + "</div></TD>");

        writeln("<TD align=\"right\" valign=\"top\" width=20%>");

        writeln("<table border=0 width=100%");
        writeln("<TR><TD align=right>");
        writeln("<div style=\"font-family: Arial; color: #CCCCCC; font-size: 7pt;\">");
        writeln("Photo by:</div>");
        writeln("</TD></TR>");

        writeln("<TR><TD align=right>");
        writeln("<div style=\"font-family: Arial; color: #f2f200; font-size: 7pt;\">");
        writeln("<i>" + PhotoBy + "</i></div>");
        writeln("</TD></TR>");
        writeln("</table>");

        writeln("</TD></TR>");
        writeln("</table>");

        writeln("</td></TR></table>");

        // writeln("<HR ALIGN=LEFT NOSHADE WIDTH=100%>");

        writeln("</body>");
        writeln("</html>");
    }
    Fenster.document.close();
    Fenster.focus();
}


function ShowGalleryPic_Blank(Picture,p_width,p_height,PhotoBy,Stuff)
{
var features;
var Fenster;
// var x = p_width  + 160;
// var y = p_height + 190;
var x_offset = 70;
var y_offset = 100;
var screen_x = screen.width;
var screen_y = screen.height - 20;

var x = p_width + x_offset;
var y = p_height + y_offset;

    if(y > screen_y)
    {
        y = screen_y - 80;
    }

var x_pos = screen_x/2 - x/2;
var y_pos = screen_y/2 - y/2;

//    features = 'width="+x+",height="+y+",left="+x_pos+",top="+y_pos+",resizable=0,status=0,scrollbars=1,dependent=1,x=0,y=0';
    Fenster = window.open("","picture","width="+x+",height="+y+",left="+x_pos+",top="+y_pos+",resizable=1,status=0,scrollbars=1,dependent=1,x=0,y=0");
//    Fenster = open("","",features);

    Fenster.document.open();
    with(Fenster.document)
    {
        writeln("<html><head><title>Gallery Picture");
        writeln("</title>");
        writeln("<style type=\"text/css\">");
        writeln("<!--");
        writeln("a:link    { text-decoration:none; font-size: 8pt; font-weight:bold; color:#235BA0; }");
        writeln("a:visited { text-decoration:none; font-size: 8pt; font-weight:bold; color:#235BA0; }");
        writeln("a:hover   { text-decoration:none; font-size: 8pt; font-weight:bold; color:#ffffff; }");
        writeln("a:active  { text-decoration:none; font-size: 8pt; font-weight:bold; color:#235BA0; }");
        writeln("-->");
        writeln("</style>");
        writeln("</head>");

        writeln("<body bgcolor=\"Black\" text=\"#808080\" link=\"#cccccc\" vlink=\"#cccccc\" alink=\"#cccccc\" topmargin=\"0\">");
        writeln("<br>"); 
        writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%>");
        writeln("<TD ALIGN=LEFT VALIGN=middle width=100%>");
        writeln("</TABLE>");

        writeln("<table border=0 width=100%>");
        writeln("<TR><td width=100% valign=\"middle\" align=\"center\">");

        writeln("<A HREF=\"#\" onMousedown=\"window.close();return true;\"><IMG alt=\"close\" title=\"close\" BORDER=1 SRC="+ Picture +"><BR><BR></A>");

        writeln("<table border=0 width="+ p_width +" cellspacing=5>");
        writeln("<TR><TD align=\left\" width=80%>");
        writeln("<div style=\"font-family: Arial; color: #cccccc; font-size: 7pt;\">");
        writeln("" + Stuff + "</div></TD>");

        writeln("<TD align=\"right\" valign=\"top\" width=20%>");

        writeln("<table border=0 width=100%");
        writeln("<TR><TD align=left>");
        writeln("<div style=\"font-family: Arial; color: #CCCCCC; font-size: 7pt;\">");
        writeln("Photo by:</div>");
        writeln("</TD></TR>");

        writeln("<TR><TD align=left>");
        writeln("<div style=\"font-family: Arial; color: #f2f200; font-size: 7pt;\">");
        writeln("<i>" + PhotoBy + "</i></div>");
        writeln("</TD></TR>");
        writeln("</table>");

        writeln("</TD></TR>");
        writeln("</table>");

        writeln("</td></TR></table>");

        writeln("</body>");
        writeln("</html>");
    }
    Fenster.document.close();
    Fenster.focus();
}
