#!/usr/bin/perl
require "create_page.pl";
require "lib.pl";
%xdata = xsplit_query(); #die Auswertefunktion fuer die uebergebenen Parameter

print "Content-type: text/html\n\n"; #Man beachte 2x \n, sonst laeuft es nicht!!!

if (!defined $xdata{page} || $xdata{page} == "1" ){
  create_page(1,7,"Hinter-Gruener-Jaeger.jpg","s",
	      "Wittmar-Wald-Sonne2.jpg","s",
	      "Torfhaus-Hochmoor-Harz.jpg","s",
	      "Riddagshausen-Seen-Hochwaser.jpg","s",
	      "Strand-Nordsee-Holland.jpg","s","landscape");
}
elsif ($xdata{page} == 2){
  create_page(2,7,"Baum-SW.jpg","s",
	      "Raitlingstal-Herbst.jpg","s",
	      "Riddagshausen1.jpg","s",
	      "Brocken-blau.jpg","s",
	      "Riddagshausen-Seen-Hochwaser.jpg","s","landscape");
}elsif($xdata{page} == 3){
  create_page(3,7,"bei_tvelve_appostels.jpg","q",
	      "Blick_ins_Tal.jpg","q",
	      "Whitsundays.jpg","q",
	      "Fraser_Island2.jpg","q",
	      "Fraser_Island3.jpg","q","landscape");
}
elsif($xdata{page} == 4){
  create_page(4,7,"Fraser_Island4.jpg","q",
	      "Great_Ocean_RD.jpg","q",
	      "knifeblade_sandblow.jpg","q",
	      "Landscape_Appostel.jpg","q",
	      "Newcastle_Beach.jpg","q","landscape");
#}elsif($xdata{page} == 5){
#  create_page(5,8,"riddagshausen.jpg","q",
#	      "frueh_morgens.jpg","q",
#	      "Schlangenstrasse.jpg","q",
#	      "Strand.jpg","q",
#	      "Waldbrand.jpg","q","landscape");
}elsif($xdata{page} == 5){
  create_page(5,7,"Gegen_die_Sonne_Lemmon_Tree.jpg","h",
	      "Regenwald.jpg","h",
	      "riddagshausen2.jpg","h",
	      "riddagshausen3.jpg","h",
	      "Whitsundays1.jpg","h","landscape");
}elsif($xdata{page} == 6){
  create_page(6,7,"12_appostels.jpg","q",
	      "Barbeach_Morgenrot.jpg","q",
      	      "Barington_tops.jpg","q",
	      "Barington_tops2.jpg","q",
	      "Bei_Surfers_paradise.jpg","q","landscape");
}elsif($xdata{page} == 7){
  create_page(7,7,"riddagshausen.jpg","q",
	      "frueh_morgens.jpg","q",
	      "Schlangenstrasse.jpg","q",
	      "Strand.jpg","q",
	      "Waldbrand.jpg","q","landscape");
}


exit(0);
