/*********************************************************************
	Copyright (c) 2007 Timo Zincke IST WERBETEAM AG (info@istwerbeteam.ch)
	JavaScript IST-Photo Impression Version 0.1
	Here are placed all important functions for Photo Impression
**********************************************************************/
/**********************************************************************
Imagereloading: Functions, Variables etc.
***********************************************************************/
/* Variablen: werden später wie gewünscht integriert */

//Hintergrund für einzelne Rubriken (Podest)
var photo_bg = "<img align=\"center\" id=\"basis\" src=\"./images/photo_ansicht.jpg\" width=\"955px\" height=\"600px\" usemap=\"#istmap\"><map name=\"istmap\"><area shape=\"rect\" coords=\"30,40,77,75\" href=\"index.html\" alt=\"Home\"><area shape=\"rect\" coords=\"76,50,263,66\" href=\"index.html\" alt=\"Home\"></map> ";

//Imagemaps für Preview der einzelnen Rubriken
//People
var map_people = "<img src=\"images/photo/people/photo_people.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('people',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('people',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('people',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('people',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('people',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('people',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('people',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('people',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('people',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('people',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('people',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('people',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('people',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('people',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('people',15)\" alt=\"Picture 15\" title=\"Picture 15\"><area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('people',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('people',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('people',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('people',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('people',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('people',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";

//Food
var map_food = "<img src=\"images/photo/food/photo_food.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('food',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('food',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('food',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('food',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('food',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('food',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('food',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('food',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('food',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('food',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('food',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('food',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('food',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('food',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('food',15)\" alt=\"Picture 15\" title=\"Picture 15\"><area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('food',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('food',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('food',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('food',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('food',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('food',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";

//Sport
var map_sport = "<img src=\"images/photo/sport/photo_sport.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('sport',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('sport',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('sport',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('sport',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('sport',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('sport',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('sport',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('sport',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('sport',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('sport',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('sport',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('sport',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('sport',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('sport',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('sport',15)\" alt=\"Picture 15\" title=\"Picture 15\"><area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('sport',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('sport',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('sport',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('sport',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('sport',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('sport',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";

//Hygiene
var map_hygiene = "<img src=\"images/photo/hygiene/photo_hygiene.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('hygiene',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('hygiene',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('hygiene',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('hygiene',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('hygiene',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('hygiene',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('hygiene',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('hygiene',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('hygiene',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('hygiene',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('hygiene',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('hygiene',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('hygiene',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('hygiene',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('hygiene',15)\" alt=\"Picture 15\" title=\"Picture 15\"></map>";/*<area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('hygiene',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('hygiene',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('hygiene',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('hygiene',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('hygiene',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('hygiene',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";*/

//Special
var map_special = "<img src=\"images/photo/special/photo_special.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('special',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('special',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('special',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('special',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('special',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('special',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('special',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('special',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('special',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('special',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('special',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('special',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('special',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('special',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('special',15)\" alt=\"Picture 15\" title=\"Picture 15\"><area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('special',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('special',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('special',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('special',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('special',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('special',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";

//Accesspires
var map_accessoires = "<img src=\"images/photo/accessoires/photo_accessoires.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('accessoires',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('accessoires',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('accessoires',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('accessoires',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('accessoires',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('accessoires',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('accessoires',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('accessoires',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('accessoires',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('accessoires',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('accessoires',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('accessoires',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('accessoires',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('accessoires',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('accessoires',15)\" alt=\"Picture 15\" title=\"Picture 15\"></map>";/*<area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('accessoires',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('accessoires',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('accessoires',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('accessoires',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('accessoires',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('accessoires',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";*/

//Kunst
var map_kunst = "<img src=\"images/photo/kunst/photo_kunst.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('kunst',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('kunst',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('kunst',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('kunst',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('kunst',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('kunst',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('kunst',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('kunst',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('kunst',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('kunst',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('kunst',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('kunst',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('kunst',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('kunst',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('kunst',15)\" alt=\"Picture 15\" title=\"Picture 15\"><area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('kunst',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('kunst',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('kunst',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('kunst',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('kunst',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('kunst',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";

//Technology
var map_technology = "<img src=\"images/photo/technology/photo_technology.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('technology',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('technology',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('technology',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('technology',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('technology',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('technology',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('technology',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('technology',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('technology',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('technology',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('technology',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('technology',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('technology',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('technology',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('technology',15)\" alt=\"Picture 15\" title=\"Picture 15\"><area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('technology',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('technology',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('technology',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('technology',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('technology',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('technology',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";

//Retouche
var map_retouche = "<img src=\"images/photo/retouche/photo_retouche.gif\" name=\"photo_small\" width=\"158px\" height=\"374px\" usemap=\"#map_photo_preview\"><map name=\"map_photo_preview\"><area shape=\"rect\" coords=\"0,0,50,50\" href=\"#\" onClick=\"showPicture('retouche',1)\" alt=\"Picture 1\" title=\"Picture 1\"><area shape=\"rect\" coords=\"54,0,104,50\" href=\"#\" onClick=\"showPicture('retouche',2)\" alt=\"Picture 2\" title=\"Picture 2\"><area shape=\"rect\" coords=\"108,0,158,50\"   href=\"#\" onClick=\"showPicture('retouche',3)\" alt=\"Picture 3\" title=\"Picture 3\"><area shape=\"rect\" coords=\"0,54,50,104\"    href=\"#\" onClick=\"showPicture('retouche',4)\" alt=\"Picture 4\" title=\"Picture 4\"><area shape=\"rect\" coords=\"54,54,104,104\"  href=\"#\" onClick=\"showPicture('retouche',5)\" alt=\"Picture 5\" title=\"Picture 5\"><area shape=\"rect\" coords=\"108,54,158,104\" href=\"#\" onClick=\"showPicture('retouche',6)\" alt=\"Picture 6\" title=\"Picture 6\"><area shape=\"rect\" coords=\"0,108,50,158\"   href=\"#\" onClick=\"showPicture('retouche',7)\" alt=\"Picture 7\" title=\"Picture 7\"><area shape=\"rect\" coords=\"54,108,104,158\"  href=\"#\" onClick=\"showPicture('retouche',8)\" alt=\"Picture 8\" title=\"Picture 8\"><area shape=\"rect\" coords=\"108,108,158,158\" href=\"#\" onClick=\"showPicture('retouche',9)\" alt=\"Picture 9\" title=\"Picture 9\"><area shape=\"rect\" coords=\"0,162,50,212\"    href=\"#\" onClick=\"showPicture('retouche',10)\" alt=\"Picture 10\" title=\"Picture 10\"><area shape=\"rect\" coords=\"54,162,104,212\"  href=\"#\" onClick=\"showPicture('retouche',11)\" alt=\"Picture 11\" title=\"Picture 11\"><area shape=\"rect\" coords=\"108,162,158,212\" href=\"#\" onClick=\"showPicture('retouche',12)\" alt=\"Picture 12\" title=\"Picture 12\"><area shape=\"rect\" coords=\"0,216,51,266\"    href=\"#\" onClick=\"showPicture('retouche',13)\" alt=\"Picture 13\" title=\"Picture 13\"><area shape=\"rect\" coords=\"54,216,104,266\"  href=\"#\" onClick=\"showPicture('retouche',14)\" alt=\"Picture 14\" title=\"Picture 14\"><area shape=\"rect\" coords=\"108,216,158,266\" href=\"#\" onClick=\"showPicture('retouche',15)\" alt=\"Picture 15\" title=\"Picture 15\"><area shape=\"rect\" coords=\"0,270,51,320\"    href=\"#\" onClick=\"showPicture('retouche',16)\" alt=\"Picture 16\" title=\"Picture 16\"><area shape=\"rect\" coords=\"54,270,104,320\"  href=\"#\" onClick=\"showPicture('retouche',17)\" alt=\"Picture 17\" title=\"Picture 17\"><area shape=\"rect\" coords=\"108,270,158,320\" href=\"#\" onClick=\"showPicture('retouche',18)\" alt=\"Picture 18\" title=\"Picture 18\"><area shape=\"rect\" coords=\"0,324,51,374\"    href=\"#\" onClick=\"showPicture('retouche',19)\" alt=\"Picture 19\" title=\"Picture 19\"><area shape=\"rect\" coords=\"54,324,104,374\"  href=\"#\" onClick=\"showPicture('retouche',20)\" alt=\"Picture 20\" title=\"Picture 20\"><area shape=\"rect\" coords=\"108,324,158,374\" href=\"#\" onClick=\"showPicture('retouche',21)\" alt=\"Picture 21\" title=\"Picture 21\"></map> ";


// Photo Controllbuttons
var button_play =  "<a id=\"a_play\" alt=\"Play\" title=\"Play\"><img src=\"images/photo/photo_play.gif\" name=\"img_play\"></a>";
var button_pause = "<a id=\"a_pause\" alt=\"Pause\" title=\"Pause\"><img src=\"images/photo/photo_pause.gif\" name=\"img_pause\"></a>";
var button_back =  "<a id=\"a_back\" alt=\"Rubrik zurück\" title=\"Rubrik zurück\"><img src=\"images/photo/photo_back.gif\" name=\"img_back\"></a>";
var button_next =  "<a id=\"a_next\" alt=\"Rubrik weiter\" title=\"Rubrik weiter\"><img src=\"images/photo/photo_next.gif\" name=\"img_next\"></a>";

// Index für PictureShow
var index_acc = 1;
var index_foo = 1;
var index_hyg = 1;
var index_kun = 1;
var index_peo = 1;
var index_ret = 1;
var index_spe = 1;
var index_spo = 1;
var index_tec = 1;

// Variablen für Intervalle der PictureShow
var active_acc = 0;
var active_foo = 0;
var active_hyg = 0;
var active_kun = 0;
var active_peo = 0;
var active_ret = 0;
var active_spe = 0;
var active_spo = 0;
var active_tec = 0;

var loading = 0;


//Arrays für ImagePreloading
var photo_accessoires = new Array(23);
var photo_food = new Array(23);
var photo_hygiene = new Array(23);
var photo_kunst = new Array(23);
var photo_people = new Array(23);
var photo_retouche = new Array(23);
var photo_special = new Array(23);
var photo_sport = new Array(23);
var photo_technology = new Array(23);

//Preloading von Steuerungselementen, wird für jede Rubrik benöttigt --> keine Fkt
var photo_control = new Array(11);
photo_control[0] = new Image();
photo_control[0].src = "./images/photo/photo_back.gif";
photo_control[1] = new Image();
photo_control[1].src = "./images/photo/photo_back_active.gif";
photo_control[2] = new Image();
photo_control[2].src = "./images/photo/photo_next.gif";
photo_control[3] = new Image();
photo_control[3].src = "./images/photo/photo_next_active.gif";
photo_control[4] = new Image();
photo_control[4].src = "./images/photo/photo_play.gif";
photo_control[5] = new Image();
photo_control[5].src = "./images/photo/photo_play_active.gif";
photo_control[6] = new Image();
photo_control[6].src = "./images/photo/photo_pause.gif";
photo_control[7] = new Image();
photo_control[7].src = "./images/photo/photo_pause_active.gif";
photo_control[8] = new Image();
photo_control[8].src = "./images/photo_ansicht.jpg";
photo_control[9] = new Image();
photo_control[9].src = "./images/loading.gif";
photo_control[10] = new Image();
photo_control[10].src = "./images/1px.gif";

// Überschriften
var head_accessoires = "<p id=\"blau_spez\">Accessoires</p>";
var head_food = "<p id=\"blau_spez\">Food</p>";
var head_hygiene = "<p id=\"blau_spez\">Hygiene</p>";
var head_kunst = "<p id=\"blau_spez\">Mode</p>";
var head_people = "<p id=\"blau_spez\">People</p>";
var head_retouche = "<p id=\"blau_spez\">Retouche</p>";
var head_special = "<p id=\"blau_spez\">Special</p>";
var head_sport = "<p id=\"blau_spez\">Sport</p>";
var head_technology = "<p id=\"blau_spez\">Technology</p>";

/***************************************************************************************
Image Preloading Funktionen für PhotoImpression
***************************************************************************************/
/* Accessoires */
function preloadingAccessoires(){
	photo_accessoires[0] = new Image();
	photo_accessoires[0].src = "./images/photo/accessoires/photo_accessoires.gif";
	photo_accessoires[1] = new Image();
	photo_accessoires[1].src = "./images/photo/accessoires/photo_accessoires_1.jpg";
	photo_accessoires[2] = new Image();
	photo_accessoires[2].src = "./images/photo/accessoires/photo_accessoires_2.jpg";
	photo_accessoires[3] = new Image();
	photo_accessoires[3].src = "./images/photo/accessoires/photo_accessoires_3.jpg";
	photo_accessoires[4] = new Image();
	photo_accessoires[4].src = "./images/photo/accessoires/photo_accessoires_4.jpg";
	photo_accessoires[5] = new Image();
	photo_accessoires[5].src = "./images/photo/accessoires/photo_accessoires_5.jpg";
	photo_accessoires[6] = new Image();
	photo_accessoires[6].src = "./images/photo/accessoires/photo_accessoires_6.jpg";
	photo_accessoires[7] = new Image();
	photo_accessoires[7].src = "./images/photo/accessoires/photo_accessoires_7.jpg";
	photo_accessoires[8] = new Image();
	photo_accessoires[8].src = "./images/photo/accessoires/photo_accessoires_8.jpg";
	photo_accessoires[9] = new Image();
	photo_accessoires[9].src = "./images/photo/accessoires/photo_accessoires_9.jpg";
	photo_accessoires[10] = new Image();
	photo_accessoires[10].src = "./images/photo/accessoires/photo_accessoires_10.jpg";
	photo_accessoires[11] = new Image();
	photo_accessoires[11].src = "./images/photo/accessoires/photo_accessoires_11.jpg";
	photo_accessoires[12] = new Image();
	photo_accessoires[12].src = "./images/photo/accessoires/photo_accessoires_12.jpg";
	photo_accessoires[13] = new Image();
	photo_accessoires[13].src = "./images/photo/accessoires/photo_accessoires_13.jpg";
	photo_accessoires[14] = new Image();
	photo_accessoires[14].src = "./images/photo/accessoires/photo_accessoires_14.jpg";
	photo_accessoires[15] = new Image();
	photo_accessoires[15].src = "./images/photo/accessoires/photo_accessoires_15.jpg";
	/*photo_accessoires[16] = new Image();
	photo_accessoires[16].src = "./images/photo/accessoires/photo_accessoires_16.jpg";
	photo_accessoires[17] = new Image();
	photo_accessoires[17].src = "./images/photo/accessoires/photo_accessoires_17.jpg";
	photo_accessoires[18] = new Image();
	photo_accessoires[18].src = "./images/photo/accessoires/photo_accessoires_18.jpg";
	photo_accessoires[19] = new Image();
	photo_accessoires[19].src = "./images/photo/accessoires/photo_accessoires_19.jpg";
	photo_accessoires[20] = new Image();
	photo_accessoires[20].src = "./images/photo/accessoires/photo_accessoires_20.jpg";
	photo_accessoires[21] = new Image();
	photo_accessoires[21].src = "./images/photo/accessoires/photo_accessoires_21.jpg";*/
}

/* Food */
function preloadingFood(){
	photo_food[0] = new Image();
	photo_food[0].src = "./images/photo/food/photo_food.gif";
	photo_food[1] = new Image();
	photo_food[1].src = "./images/photo/food/photo_food_1.jpg";
	photo_food[2] = new Image();
	photo_food[2].src = "./images/photo/food/photo_food_2.jpg";
	photo_food[3] = new Image();
	photo_food[3].src = "./images/photo/food/photo_food_3.jpg";
	photo_food[4] = new Image();
	photo_food[4].src = "./images/photo/food/photo_food_4.jpg";
	photo_food[5] = new Image();
	photo_food[5].src = "./images/photo/food/photo_food_5.jpg";
	photo_food[6] = new Image();
	photo_food[6].src = "./images/photo/food/photo_food_6.jpg";
	photo_food[7] = new Image();
	photo_food[7].src = "./images/photo/food/photo_food_7.jpg";
	photo_food[8] = new Image();
	photo_food[8].src = "./images/photo/food/photo_food_8.jpg";
	photo_food[9] = new Image();
	photo_food[9].src = "./images/photo/food/photo_food_9.jpg";
	photo_food[10] = new Image();
	photo_food[10].src = "./images/photo/food/photo_food_10.jpg";
	photo_food[11] = new Image();
	photo_food[11].src = "./images/photo/food/photo_food_11.jpg";
	photo_food[12] = new Image();
	photo_food[12].src = "./images/photo/food/photo_food_12.jpg";
	photo_food[13] = new Image();
	photo_food[13].src = "./images/photo/food/photo_food_13.jpg";
	photo_food[14] = new Image();
	photo_food[14].src = "./images/photo/food/photo_food_14.jpg";
	photo_food[15] = new Image();
	photo_food[15].src = "./images/photo/food/photo_food_15.jpg";
	photo_food[16] = new Image();
	photo_food[16].src = "./images/photo/food/photo_food_16.jpg";
	photo_food[17] = new Image();
	photo_food[17].src = "./images/photo/food/photo_food_17.jpg";
	photo_food[18] = new Image();
	photo_food[18].src = "./images/photo/food/photo_food_18.jpg";
	photo_food[19] = new Image();
	photo_food[19].src = "./images/photo/food/photo_food_19.jpg";
	photo_food[20] = new Image();
	photo_food[20].src = "./images/photo/food/photo_food_20.jpg";
	photo_food[21] = new Image();
	photo_food[21].src = "./images/photo/food/photo_food_21.jpg";
}

/* Hygiene */
function preloadingHygiene(){
	photo_hygiene[0] = new Image();
	photo_hygiene[0].src = "./images/photo/hygiene/photo_hygiene.gif";
	photo_hygiene[1] = new Image();
	photo_hygiene[1].src = "./images/photo/hygiene/photo_hygiene_1.jpg";
	photo_hygiene[2] = new Image();
	photo_hygiene[2].src = "./images/photo/hygiene/photo_hygiene_2.jpg";
	photo_hygiene[3] = new Image();
	photo_hygiene[3].src = "./images/photo/hygiene/photo_hygiene_3.jpg";
	photo_hygiene[4] = new Image();
	photo_hygiene[4].src = "./images/photo/hygiene/photo_hygiene_4.jpg";
	photo_hygiene[5] = new Image();
	photo_hygiene[5].src = "./images/photo/hygiene/photo_hygiene_5.jpg";
	photo_hygiene[6] = new Image();
	photo_hygiene[6].src = "./images/photo/hygiene/photo_hygiene_6.jpg";
	photo_hygiene[7] = new Image();
	photo_hygiene[7].src = "./images/photo/hygiene/photo_hygiene_7.jpg";
	photo_hygiene[8] = new Image();
	photo_hygiene[8].src = "./images/photo/hygiene/photo_hygiene_8.jpg";
	photo_hygiene[9] = new Image();
	photo_hygiene[9].src = "./images/photo/hygiene/photo_hygiene_9.jpg";
	photo_hygiene[10] = new Image();
	photo_hygiene[10].src = "./images/photo/hygiene/photo_hygiene_10.jpg";
	photo_hygiene[11] = new Image();
	photo_hygiene[11].src = "./images/photo/hygiene/photo_hygiene_11.jpg";
	photo_hygiene[12] = new Image();
	photo_hygiene[12].src = "./images/photo/hygiene/photo_hygiene_12.jpg";
	photo_hygiene[13] = new Image();
	photo_hygiene[13].src = "./images/photo/hygiene/photo_hygiene_13.jpg";
	photo_hygiene[14] = new Image();
	photo_hygiene[14].src = "./images/photo/hygiene/photo_hygiene_14.jpg";
	photo_hygiene[15] = new Image();
	photo_hygiene[15].src = "./images/photo/hygiene/photo_hygiene_15.jpg";
	photo_hygiene[16] = new Image();
	photo_hygiene[16].src = "./images/photo/hygiene/photo_hygiene_16.jpg";
	photo_hygiene[17] = new Image();
	photo_hygiene[17].src = "./images/photo/hygiene/photo_hygiene_17.jpg";
	photo_hygiene[18] = new Image();
	photo_hygiene[18].src = "./images/photo/hygiene/photo_hygiene_18.jpg";
	photo_hygiene[19] = new Image();
	photo_hygiene[19].src = "./images/photo/hygiene/photo_hygiene_19.jpg";
	photo_hygiene[20] = new Image();
	photo_hygiene[20].src = "./images/photo/hygiene/photo_hygiene_20.jpg";
	photo_hygiene[21] = new Image();
	photo_hygiene[21].src = "./images/photo/hygiene/photo_hygiene_21.jpg";
}

/* Kunst */
function preloadingKunst(){
	photo_kunst[0] = new Image();
	photo_kunst[0].src = "./images/photo/kunst/photo_kunst.gif";
	photo_kunst[1] = new Image();
	photo_kunst[1].src = "./images/photo/kunst/photo_kunst_1.jpg";
	photo_kunst[2] = new Image();
	photo_kunst[2].src = "./images/photo/kunst/photo_kunst_2.jpg";
	photo_kunst[3] = new Image();
	photo_kunst[3].src = "./images/photo/kunst/photo_kunst_3.jpg";
	photo_kunst[4] = new Image();
	photo_kunst[4].src = "./images/photo/kunst/photo_kunst_4.jpg";
	photo_kunst[5] = new Image();
	photo_kunst[5].src = "./images/photo/kunst/photo_kunst_5.jpg";
	photo_kunst[6] = new Image();
	photo_kunst[6].src = "./images/photo/kunst/photo_kunst_6.jpg";
	photo_kunst[7] = new Image();
	photo_kunst[7].src = "./images/photo/kunst/photo_kunst_7.jpg";
	photo_kunst[8] = new Image();
	photo_kunst[8].src = "./images/photo/kunst/photo_kunst_8.jpg";
	photo_kunst[9] = new Image();
	photo_kunst[9].src = "./images/photo/kunst/photo_kunst_9.jpg";
	photo_kunst[10] = new Image();
	photo_kunst[10].src = "./images/photo/kunst/photo_kunst_10.jpg";
	photo_kunst[11] = new Image();
	photo_kunst[11].src = "./images/photo/kunst/photo_kunst_11.jpg";
	photo_kunst[12] = new Image();
	photo_kunst[12].src = "./images/photo/kunst/photo_kunst_12.jpg";
	photo_kunst[13] = new Image();
	photo_kunst[13].src = "./images/photo/kunst/photo_kunst_13.jpg";
	photo_kunst[14] = new Image();
	photo_kunst[14].src = "./images/photo/kunst/photo_kunst_14.jpg";
	photo_kunst[15] = new Image();
	photo_kunst[15].src = "./images/photo/kunst/photo_kunst_15.jpg";
	photo_kunst[16] = new Image();
	photo_kunst[16].src = "./images/photo/kunst/photo_kunst_16.jpg";
	photo_kunst[17] = new Image();
	photo_kunst[17].src = "./images/photo/kunst/photo_kunst_17.jpg";
	photo_kunst[18] = new Image();
	photo_kunst[18].src = "./images/photo/kunst/photo_kunst_18.jpg";
	photo_kunst[19] = new Image();
	photo_kunst[19].src = "./images/photo/kunst/photo_kunst_19.jpg";
	photo_kunst[20] = new Image();
	photo_kunst[20].src = "./images/photo/kunst/photo_kunst_20.jpg";
	photo_kunst[21] = new Image();
	photo_kunst[21].src = "./images/photo/kunst/photo_kunst_21.jpg";
}

/* People */
function preloadingPeople(){
	photo_people[0] = new Image();
	photo_people[0].src = "./images/photo/people/photo_people.gif";
	photo_people[1] = new Image();
	photo_people[1].src = "./images/photo/people/photo_people_1.jpg";
	photo_people[2] = new Image();
	photo_people[2].src = "./images/photo/people/photo_people_2.jpg";
	photo_people[3] = new Image();
	photo_people[3].src = "./images/photo/people/photo_people_3.jpg";
	photo_people[4] = new Image();
	photo_people[4].src = "./images/photo/people/photo_people_4.jpg";
	photo_people[5] = new Image();
	photo_people[5].src = "./images/photo/people/photo_people_5.jpg";
	photo_people[6] = new Image();
	photo_people[6].src = "./images/photo/people/photo_people_6.jpg";
	photo_people[7] = new Image();
	photo_people[7].src = "./images/photo/people/photo_people_7.jpg";
	photo_people[8] = new Image();
	photo_people[8].src = "./images/photo/people/photo_people_8.jpg";
	photo_people[9] = new Image();
	photo_people[9].src = "./images/photo/people/photo_people_9.jpg";
	photo_people[10] = new Image();
	photo_people[10].src = "./images/photo/people/photo_people_10.jpg";
	photo_people[11] = new Image();
	photo_people[11].src = "./images/photo/people/photo_people_11.jpg";
	photo_people[12] = new Image();
	photo_people[12].src = "./images/photo/people/photo_people_12.jpg";
	photo_people[13] = new Image();
	photo_people[13].src = "./images/photo/people/photo_people_13.jpg";
	photo_people[14] = new Image();
	photo_people[14].src = "./images/photo/people/photo_people_14.jpg";
	photo_people[15] = new Image();
	photo_people[15].src = "./images/photo/people/photo_people_15.jpg";
	photo_people[16] = new Image();
	photo_people[16].src = "./images/photo/people/photo_people_16.jpg";
	photo_people[17] = new Image();
	photo_people[17].src = "./images/photo/people/photo_people_17.jpg";
	photo_people[18] = new Image();
	photo_people[18].src = "./images/photo/people/photo_people_18.jpg";
	photo_people[19] = new Image();
	photo_people[19].src = "./images/photo/people/photo_people_19.jpg";
	photo_people[20] = new Image();
	photo_people[20].src = "./images/photo/people/photo_people_20.jpg";
	photo_people[21] = new Image();
	photo_people[21].src = "./images/photo/people/photo_people_21.jpg";
}

/* Retouche */
function preloadingRetouche(){
	photo_retouche[0] = new Image();
	photo_retouche[0].src = "./images/photo/retouche/photo_retouche.gif";
	photo_retouche[1] = new Image();
	photo_retouche[1].src = "./images/photo/retouche/photo_retouche_1.jpg";
	photo_retouche[2] = new Image();
	photo_retouche[2].src = "./images/photo/retouche/photo_retouche_2.jpg";
	photo_retouche[3] = new Image();
	photo_retouche[3].src = "./images/photo/retouche/photo_retouche_3.jpg";
	photo_retouche[4] = new Image();
	photo_retouche[4].src = "./images/photo/retouche/photo_retouche_4.jpg";
	photo_retouche[5] = new Image();
	photo_retouche[5].src = "./images/photo/retouche/photo_retouche_5.jpg";
	photo_retouche[6] = new Image();
	photo_retouche[6].src = "./images/photo/retouche/photo_retouche_6.jpg";
	photo_retouche[7] = new Image();
	photo_retouche[7].src = "./images/photo/retouche/photo_retouche_7.jpg";
	photo_retouche[8] = new Image();
	photo_retouche[8].src = "./images/photo/retouche/photo_retouche_8.jpg";
	photo_retouche[9] = new Image();
	photo_retouche[9].src = "./images/photo/retouche/photo_retouche_9.jpg";
	photo_retouche[10] = new Image();
	photo_retouche[10].src = "./images/photo/retouche/photo_retouche_10.jpg";
	photo_retouche[11] = new Image();
	photo_retouche[11].src = "./images/photo/retouche/photo_retouche_11.jpg";
	photo_retouche[12] = new Image();
	photo_retouche[12].src = "./images/photo/retouche/photo_retouche_12.jpg";
	photo_retouche[13] = new Image();
	photo_retouche[13].src = "./images/photo/retouche/photo_retouche_13.jpg";
	photo_retouche[14] = new Image();
	photo_retouche[14].src = "./images/photo/retouche/photo_retouche_14.jpg";
	photo_retouche[15] = new Image();
	photo_retouche[15].src = "./images/photo/retouche/photo_retouche_15.jpg";
	photo_retouche[16] = new Image();
	photo_retouche[16].src = "./images/photo/retouche/photo_retouche_16.jpg";
	photo_retouche[17] = new Image();
	photo_retouche[17].src = "./images/photo/retouche/photo_retouche_17.jpg";
	photo_retouche[18] = new Image();
	photo_retouche[18].src = "./images/photo/retouche/photo_retouche_18.jpg";
	photo_retouche[19] = new Image();
	photo_retouche[19].src = "./images/photo/retouche/photo_retouche_19.jpg";
	photo_retouche[20] = new Image();
	photo_retouche[20].src = "./images/photo/retouche/photo_retouche_20.jpg";
	photo_retouche[21] = new Image();
	photo_retouche[21].src = "./images/photo/retouche/photo_retouche_21.jpg";
}

/* Special */
function preloadingSpecial(){
	photo_special[0] = new Image();
	photo_special[0].src = "./images/photo/special/photo_special.gif";
	photo_special[1] = new Image();
	photo_special[1].src = "./images/photo/special/photo_special_1.jpg";
	photo_special[2] = new Image();
	photo_special[2].src = "./images/photo/special/photo_special_2.jpg";
	photo_special[3] = new Image();
	photo_special[3].src = "./images/photo/special/photo_special_3.jpg";
	photo_special[4] = new Image();
	photo_special[4].src = "./images/photo/special/photo_special_4.jpg";
	photo_special[5] = new Image();
	photo_special[5].src = "./images/photo/special/photo_special_5.jpg";
	photo_special[6] = new Image();
	photo_special[6].src = "./images/photo/special/photo_special_6.jpg";
	photo_special[7] = new Image();
	photo_special[7].src = "./images/photo/special/photo_special_7.jpg";
	photo_special[8] = new Image();
	photo_special[8].src = "./images/photo/special/photo_special_8.jpg";
	photo_special[9] = new Image();
	photo_special[9].src = "./images/photo/special/photo_special_9.jpg";
	photo_special[10] = new Image();
	photo_special[10].src = "./images/photo/special/photo_special_10.jpg";
	photo_special[11] = new Image();
	photo_special[11].src = "./images/photo/special/photo_special_11.jpg";
	photo_special[12] = new Image();
	photo_special[12].src = "./images/photo/special/photo_special_12.jpg";
	photo_special[13] = new Image();
	photo_special[13].src = "./images/photo/special/photo_special_13.jpg";
	photo_special[14] = new Image();
	photo_special[14].src = "./images/photo/special/photo_special_14.jpg";
	photo_special[15] = new Image();
	photo_special[15].src = "./images/photo/special/photo_special_15.jpg";
	photo_special[16] = new Image();
	photo_special[16].src = "./images/photo/special/photo_special_16.jpg";
	photo_special[17] = new Image();
	photo_special[17].src = "./images/photo/special/photo_special_17.jpg";
	photo_special[18] = new Image();
	photo_special[18].src = "./images/photo/special/photo_special_18.jpg";
	photo_special[19] = new Image();
	photo_special[19].src = "./images/photo/special/photo_special_19.jpg";
	photo_special[20] = new Image();
	photo_special[20].src = "./images/photo/special/photo_special_20.jpg";
	photo_special[21] = new Image();
	photo_special[21].src = "./images/photo/special/photo_special_21.jpg";
}

/* Sport */
function preloadingSport(){
	photo_sport[0] = new Image();
	photo_sport[0].src = "./images/photo/sport/photo_sport.gif";
	photo_sport[1] = new Image();
	photo_sport[1].src = "./images/photo/sport/photo_sport_1.jpg";
	photo_sport[2] = new Image();
	photo_sport[2].src = "./images/photo/sport/photo_sport_2.jpg";
	photo_sport[3] = new Image();
	photo_sport[3].src = "./images/photo/sport/photo_sport_3.jpg";
	photo_sport[4] = new Image();
	photo_sport[4].src = "./images/photo/sport/photo_sport_4.jpg";
	photo_sport[5] = new Image();
	photo_sport[5].src = "./images/photo/sport/photo_sport_5.jpg";
	photo_sport[6] = new Image();
	photo_sport[6].src = "./images/photo/sport/photo_sport_6.jpg";
	photo_sport[7] = new Image();
	photo_sport[7].src = "./images/photo/sport/photo_sport_7.jpg";
	photo_sport[8] = new Image();
	photo_sport[8].src = "./images/photo/sport/photo_sport_8.jpg";
	photo_sport[9] = new Image();
	photo_sport[9].src = "./images/photo/sport/photo_sport_9.jpg";
	photo_sport[10] = new Image();
	photo_sport[10].src = "./images/photo/sport/photo_sport_10.jpg";
	photo_sport[11] = new Image();
	photo_sport[11].src = "./images/photo/sport/photo_sport_11.jpg";
	photo_sport[12] = new Image();
	photo_sport[12].src = "./images/photo/sport/photo_sport_12.jpg";
	photo_sport[13] = new Image();
	photo_sport[13].src = "./images/photo/sport/photo_sport_13.jpg";
	photo_sport[14] = new Image();
	photo_sport[14].src = "./images/photo/sport/photo_sport_14.jpg";
	photo_sport[15] = new Image();
	photo_sport[15].src = "./images/photo/sport/photo_sport_15.jpg";
	photo_sport[16] = new Image();
	photo_sport[16].src = "./images/photo/sport/photo_sport_16.jpg";
	photo_sport[17] = new Image();
	photo_sport[17].src = "./images/photo/sport/photo_sport_17.jpg";
	photo_sport[18] = new Image();
	photo_sport[18].src = "./images/photo/sport/photo_sport_18.jpg";
	photo_sport[19] = new Image();
	photo_sport[19].src = "./images/photo/sport/photo_sport_19.jpg";
	photo_sport[20] = new Image();
	photo_sport[20].src = "./images/photo/sport/photo_sport_20.jpg";
	photo_sport[21] = new Image();
	photo_sport[21].src = "./images/photo/sport/photo_sport_21.jpg";
}

/* Technology */
function preloadingTechnology(){
	photo_technology[0] = new Image();
	photo_technology[0].src = "./images/photo/technology/photo_technology.gif";
	photo_technology[1] = new Image();
	photo_technology[1].src = "./images/photo/technology/photo_technology_1.jpg";
	photo_technology[2] = new Image();
	photo_technology[2].src = "./images/photo/technology/photo_technology_2.jpg";
	photo_technology[3] = new Image();
	photo_technology[3].src = "./images/photo/technology/photo_technology_3.jpg";
	photo_technology[4] = new Image();
	photo_technology[4].src = "./images/photo/technology/photo_technology_4.jpg";
	photo_technology[5] = new Image();
	photo_technology[5].src = "./images/photo/technology/photo_technology_5.jpg";
	photo_technology[6] = new Image();
	photo_technology[6].src = "./images/photo/technology/photo_technology_6.jpg";
	photo_technology[7] = new Image();
	photo_technology[7].src = "./images/photo/technology/photo_technology_7.jpg";
	photo_technology[8] = new Image();
	photo_technology[8].src = "./images/photo/technology/photo_technology_8.jpg";
	photo_technology[9] = new Image();
	photo_technology[9].src = "./images/photo/technology/photo_technology_9.jpg";
	photo_technology[10] = new Image();
	photo_technology[10].src = "./images/photo/technology/photo_technology_10.jpg";
	photo_technology[11] = new Image();
	photo_technology[11].src = "./images/photo/technology/photo_technology_11.jpg";
	photo_technology[12] = new Image();
	photo_technology[12].src = "./images/photo/technology/photo_technology_12.jpg";
	photo_technology[13] = new Image();
	photo_technology[13].src = "./images/photo/technology/photo_technology_13.jpg";
	photo_technology[14] = new Image();
	photo_technology[14].src = "./images/photo/technology/photo_technology_14.jpg";
	photo_technology[15] = new Image();
	photo_technology[15].src = "./images/photo/technology/photo_technology_15.jpg";
	photo_technology[16] = new Image();
	photo_technology[16].src = "./images/photo/technology/photo_technology_16.jpg";
	photo_technology[17] = new Image();
	photo_technology[17].src = "./images/photo/technology/photo_technology_17.jpg";
	photo_technology[18] = new Image();
	photo_technology[18].src = "./images/photo/technology/photo_technology_18.jpg";
	photo_technology[19] = new Image();
	photo_technology[19].src = "./images/photo/technology/photo_technology_19.jpg";
	photo_technology[20] = new Image();
	photo_technology[20].src = "./images/photo/technology/photo_technology_20.jpg";
	photo_technology[21] = new Image();
	photo_technology[21].src = "./images/photo/technology/photo_technology_21.jpg";
	
}

// Stellt alles auf Anfangszustand und ruft dann startPictureShow auf
function changePictureShow(whichCategory) {
	document.loading.src = photo_control[9].src;
	document.photo.src = photo_control[10].src;
	
	window.clearInterval(active_peo);
	window.clearInterval(active_foo);
	window.clearInterval(active_spo);
	window.clearInterval(active_hyg);
	window.clearInterval(active_spe);
	window.clearInterval(active_acc);
	window.clearInterval(active_kun);
	window.clearInterval(active_tec);
	window.clearInterval(active_ret);
	
	index_acc = 1;
	index_foo = 1;
	index_hyg = 1;
	index_kun = 1;
	index_peo = 1;
	index_ret = 1;
	index_spe = 1;
	index_spo = 1;
	index_tec = 1;
	
	active_acc = 0;
	active_foo = 0;
	active_hyg = 0;
	active_kun = 0;
	active_peo = 0;
	active_ret = 0;
	active_spe = 0;
	active_spo = 0;
	active_tec = 0;	
	loading = 0;
	
	aktElement = document.getElementById("People"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Food"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Sport"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Hygiene"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Special"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Accessoires"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Kunst"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Technology"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	aktElement = document.getElementById("Retouche"); 
    aktElement.className = "px";
	aktElement.style.color = "#767676";
	
	
	
	startPictureShow(whichCategory);
}

// Startet einzelne Picture-Shows per Intervaldefinition (2000 ms)
function startPictureShow(whichCategory) {
	var aktElement = document.getElementById("background");
	aktElement.innerHTML = photo_bg;
	
	aktElement = document.getElementById("photo_play");
	aktElement.innerHTML = button_play;
	aktElement = document.getElementById("photo_pause");
	aktElement.innerHTML = button_pause;
	aktElement = document.getElementById("photo_back");
	aktElement.innerHTML = button_back;
	aktElement = document.getElementById("photo_next");
	aktElement.innerHTML = button_next;
	document.img_play.src = photo_control[5].src;
	
	photoControlLink(whichCategory);
	
	switch (whichCategory){
		case 1:
			preloadingPeople();
			aktElement = document.getElementById("People"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_people;
			
			//document.photo_small.src = photo_people[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_people;
			
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_peo){
				active_peo = window.setInterval("showPicturesPeople()", 2000);
			}
		break;
		case 2:
			preloadingFood();
			aktElement = document.getElementById("Food"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_food;
			
			//document.photo_small.src = photo_food[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_food;			
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_foo){
				active_foo = window.setInterval("showPicturesFood()", 2000);
			}
		break;
		case 3:
			preloadingSport();
			aktElement = document.getElementById("Sport"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_sport;
			
			//document.photo_small.src = photo_sport[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_sport;
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_spo){
				active_spo = window.setInterval("showPicturesSport()", 2000);
			}
		break;
		case 4:
			preloadingHygiene();
			aktElement = document.getElementById("Hygiene"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_hygiene;
			
			//document.photo_small.src = photo_hygiene[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_hygiene;
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_hyg){
				active_hyg = window.setInterval("showPicturesHygiene()", 2000);
			}
		break;
		case 5:
			preloadingSpecial();
			aktElement = document.getElementById("Special"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_special;
			
			//document.photo_small.src = photo_special[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_special;
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_spe){
				active_spe = window.setInterval("showPicturesSpecial()", 2000);
			}
		break;
		case 6:
			preloadingAccessoires();
			aktElement = document.getElementById("Accessoires"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_accessoires;
			
			//document.photo_small.src = photo_accessoires[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_accessoires;
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_acc){
				active_acc = window.setInterval("showPicturesAccessoires()", 2000);
			}
		break;
		case 7:
			preloadingKunst();
			aktElement = document.getElementById("Kunst"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_kunst;
			
			//document.photo_small.src = photo_kunst[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_kunst;
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_kun){
				active_kun = window.setInterval("showPicturesKunst()", 2000);
			}
		break;
		case 8:
			preloadingTechnology();
			aktElement = document.getElementById("Technology"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_technology;
			
			//document.photo_small.src = photo_technology[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_technology;
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_tec){
				active_tec = window.setInterval("showPicturesTechnology()", 2000);
			}
		break;
		case 9:
			preloadingRetouche();
			aktElement = document.getElementById("Retouche"); 
    		aktElement.className = "point";
			aktElement.style.color = "#99bf24";
			
			aktElement = document.getElementById("photo_head");
			aktElement.innerHTML = head_retouche;
			
			//document.photo_small.src = photo_retouche[0].src;
			aktElement = document.getElementById("photo_preview");
			aktElement.innerHTML = map_retouche;
			if(loading == 0){
				document.loading.src = photo_control[9].src;
				loading = 1;
			}
			if(!active_peo){
				active_ret = window.setInterval("showPicturesRetouche()", 2000);
			}
		break;
		default: alert("Sorry, Fehler in Photo Impressionen!");
	}
}

// Automatisches durchlaufen aller Photos. Fkt. werden Intervalmässig aufgerufen
function showPicturesAccessoires() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_accessoires[index_acc].src;
			index_acc = index_acc + 1;
			
			if(index_acc > 15){
				index_acc = 1;
			}			
}

function showPicturesFood() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_food[index_foo].src;
			index_foo = index_foo + 1;
			
			if(index_foo > 21){
				index_foo = 1;
			}		
}

function showPicturesHygiene() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_hygiene[index_hyg].src;
			index_hyg = index_hyg + 1;
			
			if(index_hyg > 15){
				index_hyg = 1;
			}		
}

function showPicturesKunst() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_kunst[index_kun].src;
			index_kun = index_kun + 1;
			
			if(index_kun > 21){
				index_kun = 1;
			}			
}
function showPicturesPeople() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_people[index_peo].src;
			index_peo = index_peo + 1;
			
			if(index_peo > 21){
				index_peo = 1;
			}			
}
function showPicturesRetouche() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_retouche[index_ret].src;
			index_ret = index_ret + 1;
			
			if(index_ret > 21){
				index_ret = 1;
			}			
}
function showPicturesSpecial() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_special[index_spe].src;
			index_spe = index_spe + 1;
			
			if(index_spe > 21){
				index_spe = 1;
			}			
}
function showPicturesSport() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_sport[index_spo].src;
			index_spo = index_spo + 1;
			
			if(index_spo > 21){
				index_spo = 1;
			}			
}
function showPicturesTechnology() {
			document.loading.src = photo_control[10].src;
			document.photo.src = photo_technology[index_tec].src;
			index_tec = index_tec + 1;
			
			if(index_tec > 21){
				index_tec = 1;
			}			
}

// Stoppt einzelne PictureShows --> clearIntervall
function pausePictureShow(whichCategory) {
	document.img_play.src = photo_control[4].src;
	document.img_pause.src = photo_control[7].src;
	
	switch (whichCategory){
		case 1:
			window.clearInterval(active_peo);
			active_peo = 0;
			break;
		case 2:
			window.clearInterval(active_foo);	
			active_foo = 0;
			break;
		case 3:
			window.clearInterval(active_spo);				
			active_spo = 0;
			break;
		case 4:
			window.clearInterval(active_hyg);		
			active_hyg = 0;
			break;
		case 5:
			window.clearInterval(active_spe);		
			active_spe = 0;
			break;
		case 6:
			window.clearInterval(active_acc);	
			active_acc = 0;
			break;
		case 7:
			window.clearInterval(active_kun);		
			active_kun = 0;
			break;
		case 8:
			window.clearInterval(active_tec);	
			active_tec = 0;
			break;
		case 9:
			window.clearInterval(active_ret);		
			active_ret = 0;
			break;
		default: alert("Sorry, Fehler in Photo Impressionen!");
	}
}

//Ruft einzelne Bilder entsprechender Rubriken auf
function showPicture(category, pic){
	document.loading.src = photo_control[10].src;
	
	// falls PictureShow läuft wird sie erst noch gestoppt
	if(category == "people")
	pausePictureShow(1);
	
	if(category == "food")
	pausePictureShow(2);
	
	if(category == "sport")
	pausePictureShow(3);
	
	if(category == "hygiene")
	pausePictureShow(4);
	
	if(category == "special")
	pausePictureShow(5);
	
	if(category == "accessoires")
	pausePictureShow(6);
	
	if(category == "kunst")
	pausePictureShow(7);
	
	if(category == "technology")
	pausePictureShow(8);
	
	if(category == "retouche")
	pausePictureShow(9);
	
	//aufgerufene photos
	document.photo.src = "images/photo/"+category+"/photo_"+category+"_"+pic+".jpg";

}

// Verlinkung des Bedienfeldes
function photoControlLink(which){
	var aktElement = 0;
	var photo_control_pl = document.createAttribute("href");
	var photo_control_pa = document.createAttribute("href");
	var photo_rubrik_b   = document.createAttribute("href");
	var photo_rubrik_n   = document.createAttribute("href");
	var category_b = 0;
	var category_n = 0;
	
	
	// Start und Pause
	photo_control_pl.nodeValue = "javascript:startPictureShow("+ which +")";
	aktElement = document.getElementById("a_play");
	aktElement.setAttributeNode(photo_control_pl);
	
	photo_control_pa.nodeValue = "javascript:pausePictureShow("+ which +")";
	aktElement = document.getElementById("a_pause");
	aktElement.setAttributeNode(photo_control_pa);
	
	// Routine bei Anfang und Ende der Rubrikliste
	if(which == 1){
		category_b = 9;
	}
	else{
		category_b = which - 1;
	}
	if(which == 9 ){
		category_n = 1;
	}
	else{
		category_n = which + 1;
	}
	
	// Back und Next 
	photo_rubrik_b.nodeValue = "javascript:changePictureShow("+ category_b +")";
	aktElement = document.getElementById("a_back");
	aktElement.setAttributeNode(photo_rubrik_b);
			
	photo_rubrik_n.nodeValue = "javascript:changePictureShow("+ category_n +")";
	aktElement = document.getElementById("a_next");
	aktElement.setAttributeNode(photo_rubrik_n);
}


