﻿function adjustImageSize(width, height, maxwidth, maxheight){
  var imagesize;
  imagesize = {};
  if (width > maxwidth || height > maxheight){
    if (width * maxheight >= height * maxwidth){
      height = Math.floor(height * maxwidth / width);
      width = maxwidth;
    }
    else{
      width = Math.floor(width * maxheight / height);
      height = maxheight;
    }
  }
  imagesize.width = width;
  imagesize.height = height;
  return imagesize;
}
function changeBackground(mode){
  var swapbackgroundindex;
  if (mode == 1){
    backgroundopacity += 5;
    setOpacity('divbackground', backgroundopacity);
    if (backgroundopacity < 100){
      setTimeout(function(){changeBackground(mode);}, 25);
    }
    else{
      backgroundchanging = 0;
    }
  }
  else if (mode == 2){
    backgroundopacity -= 5;
    setOpacity('divbackground', backgroundopacity);
    if (backgroundopacity > 0){
      setTimeout(function(){changeBackground(mode);}, 25);
    }
  }
  else{
    backgroundopacity -= 5;
    setOpacity('divbackground', backgroundopacity);
    if (backgroundopacity > 0){
      setTimeout(function(){changeBackground(mode);}, 25);
    }
    else{
      if (backgroundname.length > 1){
        swapbackgroundindex = backgroundindex;
        while (swapbackgroundindex == backgroundindex){
          swapbackgroundindex = Math.floor(Math.random() * backgroundname.length) + 1;
        }
        backgroundindex = swapbackgroundindex;
      }
      else{
        backgroundindex = 1;
      }
      document.getElementById('imgbackground').src = 'imagebank/' + backgroundname[backgroundindex - 1] + '.jpg';
      changeBackground(1);
    }
  }
}
function changeCalendar(mode, contenttype, elementindex){
  var counter;
  var elements;
  var htmltext;
  if (mode == 1){
    calendaropacity += 5;
    setOpacity('divcalendars', calendaropacity);
    if (calendaropacity < 100){
      setTimeout(function(){changeCalendar(mode, contenttype, elementindex);}, 25);
    }
    else{
      contentchanging = 0;
      if (contenttype == 1){
        setTimeout(function(){preloadImages(4, elementindex);}, 100);
      }
    }
  }
  else{
    calendaropacity -= 5;
    setOpacity('divcalendars', calendaropacity);
    if (calendaropacity > 0){
      setTimeout(function(){changeCalendar(mode, contenttype, elementindex);}, 25);
    }
    else{
      if (contenttype == 1){
        document.getElementById('divcalendars').style.width = '400px';
        document.getElementById('divcalendars').style.height = '';
        document.getElementById('divcalendars').style.top = '153px';
        htmltext = '<p class="title bold size17 margin0000">' + calendartitle[elementindex] + '</p>';
        htmltext += '<p class="subtitle bold margin0000">' + calendarsubtitle[elementindex] + '</p>';
        htmltext += '<p class="lineheight20 margin0050">' + calendartext[elementindex] + '</p>';
        htmltext += getBorderTable();
        htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setCalendarImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span></p>';
      }
      else{
        calendargroupedimagename.length = 0;
        calendargroupedimagewidth.length = 0;
        calendargroupedimageheight.length = 0;
        for (counter = 0; counter < calendarimagecalendarid.length; ++ counter){
          if (calendarimagecalendarid[counter] == calendarid[elementindex]){
            calendargroupedimagename.push(calendarimagename[counter]);
            calendargroupedimagewidth.push(calendarimagewidth[counter]);
            calendargroupedimageheight.push(calendarimageheight[counter]);
          }
        }
        elements = calendargroupedimagename.length;
        document.getElementById('divcalendars').style.width = '490px';
        document.getElementById('divcalendars').style.height = '430px';
        document.getElementById('divcalendars').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute width490" id="divcalendarimage" style="top: ' + (Math.floor((373 - calendargroupedimageheight[0]) / 2) + 10).toString() + 'px; height: ' + (calendargroupedimageheight[0] + 2).toString() + 'px;">';
        htmltext += '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + calendargroupedimagename[0] + '.jpg" width="' + calendargroupedimagewidth[0].toString() + '" height="' + calendargroupedimageheight[0].toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="leftsmallarrow absolute" id="divcalendarleftarrow">';
        htmltext += '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
        htmltext += '</div>';
        htmltext += '<div class="calendarcaption absolute width438">';
        htmltext += '<p class="size9 margin0000 center">' + calendartitle[elementindex] + '&#160;&#160;|&#160;&#160;' + imagelabel[language - 1] + ' <span id="spancalendarcaption">1</span> ' + imagelabel[language + 1] + ' ' + elements.toString() + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightsmallarrow absolute" id="divcalendarrightarrow">';
        if (elements == 1){
          htmltext += '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
        }
        else{
          htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setCalendarImage(1, ' + elements.toString() + ');"></p>';
        }
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
      }
      document.getElementById('divcalendars').innerHTML = htmltext;
      changeCalendar(1, contenttype, elementindex);
    }
  }
}
function changeContent(mode, contenttype, elementindex){
  if (mode == 1){
    contentopacity += 5;
    setOpacity('divcontent', contentopacity);
    if (contentopacity < 100){
      setTimeout(function(){changeContent(mode, contenttype, elementindex);}, 25);
    }
    else{
      document.getElementById('divcontent').style.filter = '';
      contentchanging = 0;
      if (elementindex == 9){
        setTimeout(function(){preloadImages(8, 0);}, 100);
      }
      else if (elementindex == 10){
        setTimeout(function(){preloadImages(9, 0);}, 100);
      }
    }
  }
  else{
    contentopacity -= 5;
    setOpacity('divcontent', contentopacity);
    if (contentopacity > 0){
      setTimeout(function(){changeContent(mode, contenttype, elementindex);}, 25);
    }
    else{
      setContent(contenttype, elementindex);
      changeContent(1, contenttype, elementindex);
    }
  }
}
function changeDirector(mode, contenttype, elementindex){
  var counter1;
  var counter2;
  var elements;
  var htmltext;
  var images;
  var videolistheight;
  var videos;
  images = 0;
  videos = 0;
  if (mode == 1){
    directoropacity += 5;
    setOpacity('divdirectors', directoropacity);
    if (directoropacity < 100){
      setTimeout(function(){changeDirector(mode, contenttype, elementindex);}, 25);
    }
    else{
      contentchanging = 0;
      if (contenttype == 1){
        setTimeout(function(){preloadImages(6, elementindex);}, 100);
      }
      else if (contenttype == 4){
        setPlayer(directorgroupedvideoname[elementindex]);
      }
    }
  }
  else{
    directoropacity -= 5;
    setOpacity('divdirectors', directoropacity);
    if (directoropacity > 0){
      setTimeout(function(){changeDirector(mode, contenttype, elementindex);}, 25);
    }
    else{
      if (contenttype == 1){
        document.getElementById('divdirectors').style.width = '400px';
        document.getElementById('divdirectors').style.height = '';
        document.getElementById('divdirectors').style.top = '153px';
        htmltext = '<p class="title bold size17 margin0000">' + directorname[elementindex] + '</p>';
        htmltext += '<p class="lineheight20 margin0050">' + directortext[elementindex] + '</p>';
        htmltext += getBorderTable();
        for (counter1 = 0; counter1 < directorimagedirectorid.length; ++ counter1){
          if (directorimagedirectorid[counter1] == directorid[elementindex]){
            images = 1;
            break;
          }
        }
        for (counter1 = 0; counter1 < directorvideodirectorid.length; ++ counter1){
          if (directorvideodirectorid[counter1] == directorid[elementindex]){
            videos = 1;
            break;
          }
        }
        if (images == 1 && videos == 1 && directorwebsiteurl[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorVideos(' + elementindex.toString() + ');">' + videoslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openWebsiteWindow(\'' + directorwebsiteurl[elementindex] + '\');">' + websitelabel[language - 1] + '</span></p>';
        }
        else if (images == 1 && videos == 1){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorVideos(' + elementindex.toString() + ');">' + videoslabel[language - 1] + '</span></p>';
        }
        else if (images == 1 && directorwebsiteurl[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openWebsiteWindow(\'' + directorwebsiteurl[elementindex] + '\');">' + websitelabel[language - 1] + '</span></p>';
        }
        else if (videos == 1 && directorwebsiteurl[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorVideos(' + elementindex.toString() + ');">' + videoslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openWebsiteWindow(\'' + directorwebsiteurl[elementindex] + '\');">' + websitelabel[language - 1] + '</span></p>';
        }
        else if (images == 1){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span></p>';
        }
        else{
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorVideos(' + elementindex.toString() + ');">' + videoslabel[language - 1] + '</span></p>';
        }
      }
      else if (contenttype == 2){
        directorgroupedimagename.length = 0;
        directorgroupedimagewidth.length = 0;
        directorgroupedimageheight.length = 0;
        for (counter1 = 0; counter1 < directorimagedirectorid.length; ++ counter1){
          if (directorimagedirectorid[counter1] == directorid[elementindex]){
            directorgroupedimagename.push(directorimagename[counter1]);
            directorgroupedimagewidth.push(directorimagewidth[counter1]);
            directorgroupedimageheight.push(directorimageheight[counter1]);
          }
        }
        elements = directorgroupedimagename.length;
        listheight = (Math.floor((directorid.length - 1) / 4) + 1) * 13;
        document.getElementById('divdirectors').style.width = '490px';
        document.getElementById('divdirectors').style.height = (490 - listheight).toString() + 'px';
        document.getElementById('divdirectors').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute width490" id="divdirectorimage" style="top: ' + (Math.floor((443 - listheight - directorgroupedimageheight[0]) / 2) + 10).toString() + 'px; height: ' + (directorgroupedimageheight[0] + 2).toString() + 'px;">';
        htmltext += '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + directorgroupedimagename[0] + '.jpg" width="' + directorgroupedimagewidth[0].toString() + '" height="' + directorgroupedimageheight[0].toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="leftsmallarrow absolute" id="divdirectorleftarrow" style="bottom: 0;">';
        htmltext += '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
        htmltext += '</div>';
        htmltext += '<div class="directorcaption absolute width438">';
        htmltext += '<p class="size9 margin0000 center">' + directorname[elementindex] + '&#160;&#160;|&#160;&#160;' + imagelabel[language - 1] + ' <span id="spandirectorcaption">1</span> ' + imagelabel[language + 1] + ' ' + elements.toString() + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightsmallarrow absolute" id="divdirectorrightarrow" style="bottom: 0;">';
        if (elements == 1){
          htmltext += '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
        }
        else{
          htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setDirectorImage(1, ' + elements.toString() + ');"></p>';
        }
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
      }
      else if (contenttype == 3){
        directorgroupedvideoname.length = 0;
        directorgroupedvideotitle.length = 0;
        for (counter1 = 0; counter1 < directorvideodirectorid.length; ++ counter1){
          if (directorvideodirectorid[counter1] == directorid[elementindex]){
            directorgroupedvideoname.push(directorvideoname[counter1]);
            directorgroupedvideotitle.push(directorvideotitle[counter1]);
          }
        }
        elements = directorgroupedvideoname.length;
        listheight = (Math.floor((directorid.length - 1) / 4) + 1) * 13;
        document.getElementById('divdirectors').style.width = '490px';
        document.getElementById('divdirectors').style.height = (490 - listheight).toString() + 'px';
        document.getElementById('divdirectors').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="directorvideolist absolute">';
        htmltext += '<table cellpadding="0" cellspacing="0" width="468">';
        htmltext += '<tr>';
        for (counter1 = 1; counter1 <= 3; ++ counter1){
          htmltext += '<td class="top">';
          if (counter1 <= 2){
            htmltext += '<table cellpadding="0" cellspacing="0">';
          }
          else{
            htmltext += '<table class="marginA000" cellpadding="0" cellspacing="0">';
          }
          for (counter2 = counter1; counter2 <= elements; counter2 += 3){
            htmltext += '<tr>';
            htmltext += '<td class="top">';
            htmltext += '<p class="size11 bold margin0000"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorVideo(' + (counter2 - 1).toString() + ');">' + directorgroupedvideotitle[counter2 - 1] + '</span></p>';
            htmltext += '</td>';
            htmltext += '</tr>';
          }
          htmltext += '</table>';
          htmltext += '</td>';
        }
        htmltext += '</tr>';
        htmltext += '</table>';
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
      }
      else{
        try{
          swfobject.removeSWF('divplayercontent');
        }
        catch(e){
        }
        elements = directorgroupedvideoname.length;
        videolistheight = (Math.floor((elements - 1) / 3) + 1) * 13;
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute" style="top: ' + (Math.floor((189 - videolistheight - listheight) / 2) + 10).toString() + 'px;">';
        htmltext += '<div class="player absolute">';
        htmltext += '<div class="playerborder width320 height240">';
        htmltext += '<div class="nooutline" id="divplayercontent">';
        htmltext += '<table cellpadding="0" cellspacing="0" width="320">';
        htmltext += '<tr>';
        htmltext += '<td class="height240">';
        htmltext += '<p class="margin0000 center"><span class="player">' + playerlabel[language - 1] + '</span></p>';
        htmltext += '</td>';
        htmltext += '</tr>';
        htmltext += '</table>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '<div class="directorvideocaption absolute width488" style="bottom: ' + (videolistheight + 28).toString() + 'px;">';
        htmltext += '<p class="size9 margin0000 center">' + directorgroupedvideotitle[elementindex] + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="directorvideolist absolute">';
        htmltext += '<table cellpadding="0" cellspacing="0" width="468">';
        htmltext += '<tr>';
        for (counter1 = 1; counter1 <= 3; ++ counter1){
          htmltext += '<td class="top">';
          if (counter1 <= 2){
            htmltext += '<table cellpadding="0" cellspacing="0">';
          }
          else{
            htmltext += '<table class="marginA000" cellpadding="0" cellspacing="0">';
          }
          for (counter2 = counter1; counter2 <= elements; counter2 += 3){
            htmltext += '<tr>';
            htmltext += '<td class="top">';
            htmltext += '<p class="size11 bold margin0000"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirectorVideo(' + (counter2 - 1).toString() + ');">' + directorgroupedvideotitle[counter2 - 1] + '</span></p>';
            htmltext += '</td>';
            htmltext += '</tr>';
          }
          htmltext += '</table>';
          htmltext += '</td>';
        }
        htmltext += '</tr>';
        htmltext += '</table>';
        htmltext += '</div>';
      }
      document.getElementById('divdirectors').innerHTML = htmltext;
      changeDirector(1, contenttype, elementindex);
    }
  }
}
function changeLanguage(){
  contentopacity = 0;
  copyrightopacity = 0;
  menuitemindex = -1;
  menusectionindex = 0;
  menusectionleftmargin = 0;
  separatorheight = 0;
  welcomeopacity = 0;
  document.getElementById('divseparator').style.visibility = 'hidden';
  document.getElementById('divwelcome').style.visibility = 'hidden';
  document.getElementById('pwelcome').innerHTML = '&#160;';
  while (document.getElementById('divmenusections').childNodes.length > 0){
    document.getElementById('divmenusections').removeChild(document.getElementById('divmenusections').firstChild);
  }
  document.getElementById('divlanguages').style.visibility = 'hidden';
  document.getElementById('planguages').innerHTML = '&#160;';
  changeBackground(2);
  while (document.getElementById('divmenuitemsections').childNodes.length > 0){
    document.getElementById('divmenuitemsections').removeChild(document.getElementById('divmenuitemsections').firstChild);
  }
  document.getElementById('divcontent').style.visibility = 'hidden';
  while (document.getElementById('divcontent').childNodes.length > 0){
    document.getElementById('divcontent').removeChild(document.getElementById('divcontent').firstChild);
  }
  document.getElementById('divcopyright').style.visibility = 'hidden';
  while (document.getElementById('divcopyright').childNodes.length > 0){
    document.getElementById('divcopyright').removeChild(document.getElementById('divcopyright').firstChild);
  }
  language = 3 - language;
  setLanguage();
  setCookie('preferences', 'language', language.toString());
  displayPage(2);
}
function changePhotographer(mode, contenttype, elementindex){
  var counter;
  var elements;
  var htmltext;
  if (mode == 1){
    photographeropacity += 5;
    setOpacity('divphotographers', photographeropacity);
    if (photographeropacity < 100){
      setTimeout(function(){changePhotographer(mode, contenttype, elementindex);}, 25);
    }
    else{
      contentchanging = 0;
      if (contenttype == 1){
        setTimeout(function(){preloadImages(5, elementindex);}, 100);
      }
    }
  }
  else{
    photographeropacity -= 5;
    setOpacity('divphotographers', photographeropacity);
    if (photographeropacity > 0){
      setTimeout(function(){changePhotographer(mode, contenttype, elementindex);}, 25);
    }
    else{
      if (contenttype == 1){
        document.getElementById('divphotographers').style.width = '400px';
        document.getElementById('divphotographers').style.height = '';
        document.getElementById('divphotographers').style.top = '153px';
        htmltext = '<p class="title bold size17 margin0000">' + photographername[elementindex] + '</p>';
        htmltext += '<p class="lineheight20 margin0050">' + photographertext[elementindex] + '</p>';
        htmltext += getBorderTable();
        if (photographerwebsiteurl[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographerImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openWebsiteWindow(\'' + photographerwebsiteurl[elementindex] + '\');">' + websitelabel[language - 1] + '</span></p>';
        }
        else{
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographerImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span></p>';
        }
      }
      else{
        photographergroupedimagename.length = 0;
        photographergroupedimagewidth.length = 0;
        photographergroupedimageheight.length = 0;
        for (counter = 0; counter < photographerimagephotographerid.length; ++ counter){
          if (photographerimagephotographerid[counter] == photographerid[elementindex]){
            photographergroupedimagename.push(photographerimagename[counter]);
            photographergroupedimagewidth.push(photographerimagewidth[counter]);
            photographergroupedimageheight.push(photographerimageheight[counter]);
          }
        }
        elements = photographergroupedimagename.length;
        listheight = (Math.floor((photographerid.length - 1) / 4) + 1) * 13;
        document.getElementById('divphotographers').style.width = '490px';
        document.getElementById('divphotographers').style.height = (490 - listheight).toString() + 'px';
        document.getElementById('divphotographers').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute width490" id="divphotographerimage" style="top: ' + (Math.floor((443 - listheight - photographergroupedimageheight[0]) / 2) + 10).toString() + 'px; height: ' + (photographergroupedimageheight[0] + 2).toString() + 'px;">';
        htmltext += '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + photographergroupedimagename[0] + '.jpg" width="' + photographergroupedimagewidth[0].toString() + '" height="' + photographergroupedimageheight[0].toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="leftsmallarrow absolute" id="divphotographerleftarrow" style="bottom: 0;">';
        htmltext += '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
        htmltext += '</div>';
        htmltext += '<div class="photographercaption absolute width438">';
        htmltext += '<p class="size9 margin0000 center">' + photographername[elementindex] + '&#160;&#160;|&#160;&#160;' + imagelabel[language - 1] + ' <span id="spanphotographercaption">1</span> ' + imagelabel[language + 1] + ' ' + elements.toString() + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightsmallarrow absolute" id="divphotographerrightarrow" style="bottom: 0;">';
        if (elements == 1){
          htmltext += '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
        }
        else{
          htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setPhotographerImage(1, ' + elements.toString() + ');"></p>';
        }
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
      }
      document.getElementById('divphotographers').innerHTML = htmltext;
      changePhotographer(1, contenttype, elementindex);
    }
  }
}
function changePhotographicBook(mode, contenttype, elementindex){
  var counter;
  var elements;
  var htmltext;
  if (mode == 1){
    photographicbookopacity += 5;
    setOpacity('divphotographicbooks', photographicbookopacity);
    if (photographicbookopacity < 100){
      setTimeout(function(){changePhotographicBook(mode, contenttype, elementindex);}, 25);
    }
    else{
      contentchanging = 0;
      if (contenttype == 1){
        setTimeout(function(){preloadImages(2, elementindex);}, 100);
      }
    }
  }
  else{
    photographicbookopacity -= 5;
    setOpacity('divphotographicbooks', photographicbookopacity);
    if (photographicbookopacity > 0){
      setTimeout(function(){changePhotographicBook(mode, contenttype, elementindex);}, 25);
    }
    else{
      if (contenttype == 1){
        document.getElementById('divphotographicbooks').style.width = '400px';
        document.getElementById('divphotographicbooks').style.height = '';
        document.getElementById('divphotographicbooks').style.top = '153px';
        htmltext = '<p class="title bold size17 margin0000">' + photographicbooktitle[elementindex] + '</p>';
        htmltext += '<p class="subtitle bold margin0000">' + photographicbooksubtitle[elementindex] + '</p>';
        htmltext += '<p class="lineheight20 margin0050">' + photographicbooktext[elementindex] + '</p>';
        htmltext += getBorderTable();
        htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographicBookImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span></p>';
      }
      else{
        photographicbookgroupedimagename.length = 0;
        photographicbookgroupedimagewidth.length = 0;
        photographicbookgroupedimageheight.length = 0;
        for (counter = 0; counter < photographicbookimagebookid.length; ++ counter){
          if (photographicbookimagebookid[counter] == photographicbookid[elementindex]){
            photographicbookgroupedimagename.push(photographicbookimagename[counter]);
            photographicbookgroupedimagewidth.push(photographicbookimagewidth[counter]);
            photographicbookgroupedimageheight.push(photographicbookimageheight[counter]);
          }
        }
        elements = photographicbookgroupedimagename.length;
        document.getElementById('divphotographicbooks').style.width = '490px';
        document.getElementById('divphotographicbooks').style.height = '430px';
        document.getElementById('divphotographicbooks').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute width490" id="divphotographicbookimage" style="top: ' + (Math.floor((373 - photographicbookgroupedimageheight[0]) / 2) + 10).toString() + 'px; height: ' + (photographicbookgroupedimageheight[0] + 2).toString() + 'px;">';
        htmltext += '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + photographicbookgroupedimagename[0] + '.jpg" width="' + photographicbookgroupedimagewidth[0].toString() + '" height="' + photographicbookgroupedimageheight[0].toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="leftsmallarrow absolute" id="divphotographicbookleftarrow">';
        htmltext += '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
        htmltext += '</div>';
        htmltext += '<div class="photographicbookcaption absolute width438">';
        htmltext += '<p class="size9 margin0000 center">' + photographicbooktitle[elementindex] + '&#160;&#160;|&#160;&#160;' + imagelabel[language - 1] + ' <span id="spanphotographicbookcaption">1</span> ' + imagelabel[language + 1] + ' ' + elements.toString() + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightsmallarrow absolute" id="divphotographicbookrightarrow">';
        if (elements == 1){
          htmltext += '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
        }
        else{
          htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setPhotographicBookImage(1, ' + elements.toString() + ');"></p>';
        }
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
      }
      document.getElementById('divphotographicbooks').innerHTML = htmltext;
      changePhotographicBook(1, contenttype, elementindex);
    }
  }
}
function changePhotographicExhibition(mode, contenttype, elementindex){
  var counter;
  var elements;
  var htmltext;
  if (mode == 1){
    photographicexhibitionopacity += 5;
    setOpacity('divphotographicexhibitions', photographicexhibitionopacity);
    if (photographicexhibitionopacity < 100){
      setTimeout(function(){changePhotographicExhibition(mode, contenttype, elementindex);}, 25);
    }
    else{
      contentchanging = 0;
      if (contenttype == 1){
        setTimeout(function(){preloadImages(7, elementindex);}, 100);
      }
      else if (contenttype == 3){
        setPlayer(photographicexhibitionvideoname[elementindex]);
      }
    }
  }
  else{
    photographicexhibitionopacity -= 5;
    setOpacity('divphotographicexhibitions', photographicexhibitionopacity);
    if (photographicexhibitionopacity > 0){
      setTimeout(function(){changePhotographicExhibition(mode, contenttype, elementindex);}, 25);
    }
    else{
      if (contenttype == 1){
        document.getElementById('divphotographicexhibitions').style.width = '400px';
        document.getElementById('divphotographicexhibitions').style.height = '';
        document.getElementById('divphotographicexhibitions').style.top = '153px';
        htmltext = '<p class="title bold size17 margin0000">' + photographicexhibitiontitle[elementindex] + '</p>';
        htmltext += '<p class="subtitle bold margin0000">' + photographicexhibitionsubtitle[elementindex] + '</p>';
        htmltext += '<p class="lineheight20 margin0050">' + photographicexhibitiontext[elementindex] + '</p>';
        htmltext += getBorderTable();
        if (photographicexhibitionvideoname[elementindex] != '~' && photographicexhibitionpressreviewname[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographicExhibitionImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographicExhibitionVideo(' + elementindex.toString() + ');">' + videolabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openPressReviewWindow(' + photographicexhibitionpressreviewname[elementindex] + ');">' + pressreviewlabel[language - 1] + '</span></p>';
        }
        else if (photographicexhibitionvideoname[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographicExhibitionImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographicExhibitionVideo(' + elementindex.toString() + ');">' + videolabel[language - 1] + '</span></p>';
        }
        else if (photographicexhibitionpressreviewname[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographicExhibitionImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openPressReviewWindow(' + photographicexhibitionpressreviewname[elementindex] + ');">' + pressreviewlabel[language - 1] + '</span></p>';
        }
        else{
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographicExhibitionImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span></p>';
        }
      }
      else if (contenttype == 2){
        photographicexhibitiongroupedimagename.length = 0;
        photographicexhibitiongroupedimagewidth.length = 0;
        photographicexhibitiongroupedimageheight.length = 0;
        for (counter = 0; counter < photographicexhibitionimageexhibitionid.length; ++ counter){
          if (photographicexhibitionimageexhibitionid[counter] == photographicexhibitionid[elementindex]){
            photographicexhibitiongroupedimagename.push(photographicexhibitionimagename[counter]);
            photographicexhibitiongroupedimagewidth.push(photographicexhibitionimagewidth[counter]);
            photographicexhibitiongroupedimageheight.push(photographicexhibitionimageheight[counter]);
          }
        }
        elements = photographicexhibitiongroupedimagename.length;
        document.getElementById('divphotographicexhibitions').style.width = '490px';
        document.getElementById('divphotographicexhibitions').style.height = '430px';
        document.getElementById('divphotographicexhibitions').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute width490" id="divphotographicexhibitionimage" style="top: ' + (Math.floor((373 - photographicexhibitiongroupedimageheight[0]) / 2) + 10).toString() + 'px; height: ' + (photographicexhibitiongroupedimageheight[0] + 2).toString() + 'px;">';
        htmltext += '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + photographicexhibitiongroupedimagename[0] + '.jpg" width="' + photographicexhibitiongroupedimagewidth[0].toString() + '" height="' + photographicexhibitiongroupedimageheight[0].toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="leftsmallarrow absolute" id="divphotographicexhibitionleftarrow">';
        htmltext += '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
        htmltext += '</div>';
        htmltext += '<div class="photographicexhibitionimagecaption absolute width438">';
        htmltext += '<p class="size9 margin0000 center">' + photographicexhibitiontitle[elementindex] + '&#160;&#160;|&#160;&#160;' + imagelabel[language - 1] + ' <span id="spanphotographicexhibitioncaption">1</span> ' + imagelabel[language + 1] + ' ' + elements.toString() + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightsmallarrow absolute" id="divphotographicexhibitionrightarrow">';
        if (elements == 1){
          htmltext += '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
        }
        else{
          htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setPhotographicExhibitionImage(1, ' + elements.toString() + ');"></p>';
        }
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
      }
      else{
        try{
          swfobject.removeSWF('divplayercontent');
        }
        catch(e){
        }
        document.getElementById('divphotographicexhibitions').style.width = '490px';
        document.getElementById('divphotographicexhibitions').style.height = '430px';
        document.getElementById('divphotographicexhibitions').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
        htmltext += '<div class="playercontainer absolute">';
        htmltext += '<div class="player absolute">';
        htmltext += '<div class="playerborder width320 height240">';
        htmltext += '<div class="nooutline" id="divplayercontent">';
        htmltext += '<table cellpadding="0" cellspacing="0" width="320">';
        htmltext += '<tr>';
        htmltext += '<td class="height240">';
        htmltext += '<p class="margin0000 center"><span class="player">' + playerlabel[language - 1] + '</span></p>';
        htmltext += '</td>';
        htmltext += '</tr>';
        htmltext += '</table>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '<div class="photographicexhibitionvideocaption absolute width488">';
        htmltext += '<p class="size9 margin0000 center">' + photographicexhibitiontitle[elementindex] + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
      }
      document.getElementById('divphotographicexhibitions').innerHTML = htmltext;
      changePhotographicExhibition(1, contenttype, elementindex);
    }
  }
}
function changeShow(mode, contenttype, elementindex){
  var counter;
  var elements;
  var htmltext;
  if (mode == 1){
    showopacity += 5;
    setOpacity('divshows', showopacity);
    if (showopacity < 100){
      setTimeout(function(){changeShow(mode, contenttype, elementindex);}, 25);
    }
    else{
      contentchanging = 0;
      if (contenttype == 1){
        setTimeout(function(){preloadImages(8, elementindex);}, 100);
      }
      else if (contenttype == 3){
        setPlayer(showvideoname[elementindex]);
      }
    }
  }
  else{
    showopacity -= 5;
    setOpacity('divshows', showopacity);
    if (showopacity > 0){
      setTimeout(function(){changeShow(mode, contenttype, elementindex);}, 25);
    }
    else{
      if (contenttype == 1){
        document.getElementById('divshows').style.width = '400px';
        document.getElementById('divshows').style.height = '';
        document.getElementById('divshows').style.top = '153px';
        htmltext = '<p class="title bold size17 margin0000">' + showtitle[elementindex] + '</p>';
        htmltext += '<p class="subtitle bold margin0000">' + showsubtitle[elementindex] + '</p>';
        htmltext += '<p class="lineheight20 margin0050">' + showtext[elementindex] + '</p>';
        htmltext += getBorderTable();
        if (showvideoname[elementindex] != '~' && showpressreviewname[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setShowImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setShowVideo(' + elementindex.toString() + ');">' + videolabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openPressReviewWindow(' + showpressreviewname[elementindex] + ');">' + pressreviewlabel[language - 1] + '</span></p>';
        }
        else if (showvideoname[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setShowImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setShowVideo(' + elementindex.toString() + ');">' + videolabel[language - 1] + '</span></p>';
        }
        else if (showpressreviewname[elementindex] != '~'){
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setShowImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); openPressReviewWindow(' + showpressreviewname[elementindex] + ');">' + pressreviewlabel[language - 1] + '</span></p>';
        }
        else{
          htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setShowImages(' + elementindex.toString() + ');">' + imageslabel[language - 1] + '</span></p>';
        }
      }
      else if (contenttype == 2){
        showgroupedimagename.length = 0;
        showgroupedimagewidth.length = 0;
        showgroupedimageheight.length = 0;
        for (counter = 0; counter < showimageshowid.length; ++ counter){
          if (showimageshowid[counter] == showid[elementindex]){
            showgroupedimagename.push(showimagename[counter]);
            showgroupedimagewidth.push(showimagewidth[counter]);
            showgroupedimageheight.push(showimageheight[counter]);
          }
        }
        elements = showgroupedimagename.length;
        listheight = (Math.floor((showid.length - 1) / 4) + 1) * 13;
        document.getElementById('divshows').style.width = '490px';
        document.getElementById('divshows').style.height = (490 - listheight).toString() + 'px';
        document.getElementById('divshows').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute width490" id="divshowimage" style="top: ' + (Math.floor((443 - listheight - showgroupedimageheight[0]) / 2) + 10).toString() + 'px; height: ' + (showgroupedimageheight[0] + 2).toString() + 'px;">';
        htmltext += '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + showgroupedimagename[0] + '.jpg" width="' + showgroupedimagewidth[0].toString() + '" height="' + showgroupedimageheight[0].toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="leftsmallarrow absolute" id="divshowleftarrow" style="bottom: 0;">';
        htmltext += '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
        htmltext += '</div>';
        htmltext += '<div class="showimagecaption absolute width438">';
        htmltext += '<p class="size9 margin0000 center">' + showtitle[elementindex] + '&#160;&#160;|&#160;&#160;' + imagelabel[language - 1] + ' <span id="spanshowcaption">1</span> ' + imagelabel[language + 1] + ' ' + elements.toString() + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightsmallarrow absolute" id="divshowrightarrow" style="bottom: 0;">';
        if (elements == 1){
          htmltext += '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
        }
        else{
          htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setShowImage(1, ' + elements.toString() + ');"></p>';
        }
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
      }
      else{
        try{
          swfobject.removeSWF('divplayercontent');
        }
        catch(e){
        }
        document.getElementById('divshows').style.width = '490px';
        document.getElementById('divshows').style.height = '430px';
        document.getElementById('divshows').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
        htmltext += '<div class="playercontainer absolute">';
        htmltext += '<div class="player absolute">';
        htmltext += '<div class="playerborder width320 height240">';
        htmltext += '<div class="nooutline" id="divplayercontent">';
        htmltext += '<table cellpadding="0" cellspacing="0" width="320">';
        htmltext += '<tr>';
        htmltext += '<td class="height240">';
        htmltext += '<p class="margin0000 center"><span class="player">' + playerlabel[language - 1] + '</span></p>';
        htmltext += '</td>';
        htmltext += '</tr>';
        htmltext += '</table>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '<div class="showvideocaption absolute width488">';
        htmltext += '<p class="size9 margin0000 center">' + showtitle[elementindex] + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="430"></p>';
        htmltext += '</div>';
      }
      document.getElementById('divshows').innerHTML = htmltext;
      changeShow(1, contenttype, elementindex);
    }
  }
}
function changeTelevisionAndMovieProduction(mode, contenttype, elementindex){
  var htmltext;
  if (mode == 1){
    televisionandmovieproductionopacity += 5;
    setOpacity('divtelevisionandmovieproductions', televisionandmovieproductionopacity);
    if (televisionandmovieproductionopacity < 100){
      setTimeout(function(){changeTelevisionAndMovieProduction(mode, contenttype, elementindex);}, 25);
    }
    else{
      contentchanging = 0;
      if (contenttype == 1){
        setTimeout(function(){preloadImages(3, elementindex);}, 100);
      }
      else if (contenttype == 3){
        setPlayer(televisionandmovieproductionvideoname[elementindex]);
      }
    }
  }
  else{
    televisionandmovieproductionopacity -= 5;
    setOpacity('divtelevisionandmovieproductions', televisionandmovieproductionopacity);
    if (televisionandmovieproductionopacity > 0){
      setTimeout(function(){changeTelevisionAndMovieProduction(mode, contenttype, elementindex);}, 25);
    }
    else{
      if (contenttype == 1){
        document.getElementById('divtelevisionandmovieproductions').style.width = '400px';
        document.getElementById('divtelevisionandmovieproductions').style.height = '';
        document.getElementById('divtelevisionandmovieproductions').style.top = '53px';
        htmltext = '<p class="title bold size17 margin0000">' + televisionandmovieproductiontitle[elementindex] + '</p>';
        htmltext += '<p class="subtitle bold margin0000">' + televisionandmovieproductionsubtitle[elementindex] + '</p>';
        htmltext += '<p class="lineheight20 margin0050">' + televisionandmovieproductiontext[elementindex] + '</p>';
        if (televisionandmovieproductionimagename[elementindex] != '~' || televisionandmovieproductionvideoname[elementindex] != '~'){
          htmltext += getBorderTable();
          if (televisionandmovieproductionimagename[elementindex] != '~' && televisionandmovieproductionvideoname[elementindex] != '~'){
            htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setTelevisionAndMovieProductionImage(' + elementindex.toString() + ');">' + imagelabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setTelevisionAndMovieProductionVideo(' + elementindex.toString() + ');">' + videolabel[language - 1] + '</span></p>';
          }
          else if (televisionandmovieproductionimagename[elementindex] != '~'){
            htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setTelevisionAndMovieProductionImage(' + elementindex.toString() + ');">' + imagelabel[language - 1] + '</span></p>';
          }
          else{
            htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setTelevisionAndMovieProductionVideo(' + elementindex.toString() + ');">' + videolabel[language - 1] + '</span></p>';
          }
        }
      }
      else if (contenttype == 2){
        listheight = (Math.floor((televisionandmovieproductionimagename.length - 1) / 3) + 1) * 13;
        document.getElementById('divtelevisionandmovieproductions').style.width = '490px';
        document.getElementById('divtelevisionandmovieproductions').style.height = (490 - listheight).toString() + 'px';
        document.getElementById('divtelevisionandmovieproductions').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute width490" style="top: ' + (Math.floor((449 - listheight - televisionandmovieproductionimageheight[elementindex]) / 2) + 10).toString() + 'px; height: ' + (televisionandmovieproductionimageheight[elementindex] + 2).toString() + 'px;">';
        htmltext += '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + televisionandmovieproductionimagename[elementindex] + '.jpg" width="' + televisionandmovieproductionimagewidth[elementindex].toString() + '" height="' + televisionandmovieproductionimageheight[elementindex].toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="televisionandmovieproductioncaption absolute width488">';
        htmltext += '<p class="size9 margin0000 center">' + televisionandmovieproductiontitle[elementindex] + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
      }
      else{
        try{
          swfobject.removeSWF('divplayercontent');
        }
        catch(e){
        }
        listheight = (Math.floor((televisionandmovieproductionimagename.length - 1) / 3) + 1) * 13;
        document.getElementById('divtelevisionandmovieproductions').style.width = '490px';
        document.getElementById('divtelevisionandmovieproductions').style.height = (490 - listheight).toString() + 'px';
        document.getElementById('divtelevisionandmovieproductions').style.top = '0';
        htmltext = '<div class="leftseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
        htmltext += '<div class="absolute" style="top: ' + (Math.floor((209 - listheight) / 2) + 10).toString() + 'px;">';
        htmltext += '<div class="player absolute">';
        htmltext += '<div class="playerborder width320 height240">';
        htmltext += '<div class="nooutline" id="divplayercontent">';
        htmltext += '<table cellpadding="0" cellspacing="0" width="320">';
        htmltext += '<tr>';
        htmltext += '<td class="height240">';
        htmltext += '<p class="margin0000 center"><span class="player">' + playerlabel[language - 1] + '</span></p>';
        htmltext += '</td>';
        htmltext += '</tr>';
        htmltext += '</table>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '</div>';
        htmltext += '<div class="televisionandmovieproductioncaption absolute width488">';
        htmltext += '<p class="size9 margin0000 center">' + televisionandmovieproductiontitle[elementindex] + '</p>';
        htmltext += '</div>';
        htmltext += '<div class="rightseparator absolute">';
        htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="' + (490 - listheight).toString() + '"></p>';
        htmltext += '</div>';
      }
      document.getElementById('divtelevisionandmovieproductions').innerHTML = htmltext;
      changeTelevisionAndMovieProduction(1, contenttype, elementindex);
    }
  }
}
function decodeQuotes(field){
  field = field.replace(/{/g, '\"').replace(/}/g, '\'');
  return field;
}
function decodeTags(field){
  field = field.replace(/\[/g, '<span class="bold">').replace(/\]/g, '</span>').replace(/~/g, '<br>');
  return field;
}
function displayBackground(){
  backgroundopacity += 5;
  setOpacity('divbackground', backgroundopacity);
  if (backgroundopacity < 100){
    setTimeout(function(){displayBackground();}, 25);
  }
  else{
    displayPage(7);
  }
}
function displayCopyright(){
  copyrightopacity += 5;
  setOpacity('divcopyright', copyrightopacity);
  if (copyrightopacity < 100){
    setTimeout(function(){displayCopyright();}, 25);
  }
  else{
    document.getElementById('divcopyright').style.filter = '';
    displayPage(8);
  }
}
function displayLanguages(){
  var htmltext;
  if (language == 1){
    htmltext = '<span class="linkselected">Italiano</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); changeLanguage();">English</span>';
  }
  else{
    htmltext = '<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); changeLanguage();">Italiano</span>&#160;|&#160;<span class="linkselected">English</span>';
  }
  document.getElementById('planguages').innerHTML = htmltext;
  document.getElementById('divlanguages').style.visibility = 'visible';
  displayPage(6);
}
function displayLogo(){
  logoleft += 3;
  logoopacity += 3;
  document.getElementById('divlogo').style.left = logoleft.toString() + 'px';
  setOpacity('divlogo', logoopacity);
  if (logoleft < 100){
    setTimeout(function(){displayLogo();}, 25);
  }
  else{
    document.getElementById('divlogo').style.filter = '';
    displayPage(2);
  }
}
function displayMap(mode){
  var htmltext;
  if (mode == 1){
    whereweareopacity += 5;
    setOpacity('divwhereweare', whereweareopacity);
    if (whereweareopacity < 100){
      setTimeout(function(){displayMap(mode);}, 25);
    }
    else{
      contentchanging = 0;
    }
  }
  else{
    whereweareopacity -= 5;
    setOpacity('divwhereweare', whereweareopacity);
    if (whereweareopacity > 0){
      setTimeout(function(){displayMap(mode);}, 25);
    }
    else{
      mapzoom = 3;
      document.getElementById('divwhereweare').style.width = '490px';
      document.getElementById('divwhereweare').style.height = '510px';
      document.getElementById('divwhereweare').style.top = '0';
      htmltext = '<div class="leftseparator absolute">';
      htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="510"></p>';
      htmltext += '</div>';
      htmltext += '<div class="map absolute">';
      htmltext += '<p class="margin0000"><img class="border" alt="" id="imgmap" src="images/map' + mapzoom.toString() + '.jpg" width="436" height="385"></p>';
      htmltext += '</div>';
      htmltext += '<div class="mapcommands absolute width488">';
      htmltext += '<p class="size11 bold margin0000 center"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setMapZoom(1);">' + zoomlabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setMapZoom(2);">' + zoomlabel[language + 1] + '</span></p>';
      htmltext += '</div>';
      htmltext += '<div class="rightseparator absolute">';
      htmltext += '<p class="margin0000"><img class="grayseparator" alt="" src="images/blank.gif" width="1" height="510"></p>';
      htmltext += '</div>';
      document.getElementById('divwhereweare').innerHTML = htmltext;
      displayMap(1);
    }
  }
}
function displayMenuSection(elementindex){
  var htmltext;
  menusectionleftmargin -= 10;
  if (elementindex == 1){
    htmltext = '<p class="size11 bold margin0000 absolute right width200" style="clip: rect(0, ' + (200 - menusectionleftmargin).toString() + 'px, 13px, 0); margin-left: ' + menusectionleftmargin.toString() + 'px;"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setMenuSection(' + elementindex.toString() + ');">' + menusectiontitle[elementindex] + '</span></p>';
  }
  else{
    htmltext = '<p class="size11 bold margin0000 absolute right width200" style="clip: rect(0, ' + (200 - menusectionleftmargin).toString() + 'px, 13px, 0); margin-left: ' + menusectionleftmargin.toString() + 'px; margin-top: ' + ((elementindex - 1) * 20).toString() + 'px;"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setMenuSection(' + elementindex.toString() + ');">' + menusectiontitle[elementindex] + '</span></p>';
  }
  document.getElementById('divmenusection' + elementindex.toString()).innerHTML = htmltext;
  if (menusectionleftmargin > 0){
    setTimeout(function(){displayMenuSection(elementindex);}, 10);
  }
  else{
    ++ elementindex;
    displayMenuSections(elementindex);
  }
}
function displayMenuSections(elementindex){
  if (elementindex < menusectionid.length){
    menusectionleftmargin = 200;
    displayMenuSection(elementindex);
  }
  else{
    displayPage(5);
  }
}
function displayPage(mode){
  var counter1;
  var counter2;
  var htmltext;
  var items;
  var swapbackgroundindex;
  htmltext = '';
  if (mode == 1){
    setOpacity('divlogo', logoopacity);
    document.getElementById('divlogo').style.visibility = 'visible';
    displayLogo();
  }
  else if (mode == 2){
    document.getElementById('divseparator').style.visibility = 'visible';
    displaySeparator();
  }
  else if (mode == 3){
    setOpacity('divwelcome', welcomeopacity);
    document.getElementById('pwelcome').innerHTML = menusectiontitle[0];
    document.getElementById('divwelcome').style.visibility = 'visible';
    displayWelcome();
  }
  else if (mode == 4){
    for (counter1 = 1; counter1 < menusectionid.length; ++ counter1){
      htmltext += '<div id="divmenusection' + counter1.toString() + '">';
      htmltext += '</div>';
    }
    document.getElementById('divmenusections').innerHTML = htmltext;
    displayMenuSections(1);
  }
  else if (mode == 5){
    displayLanguages();
  }
  else if (mode == 6){
    if (backgroundname.length > 1){
      swapbackgroundindex = backgroundindex;
      while (swapbackgroundindex == backgroundindex){
        swapbackgroundindex = Math.floor(Math.random() * backgroundname.length) + 1;
      }
      backgroundindex = swapbackgroundindex;
    }
    else{
      backgroundindex = 1;
    }
    document.getElementById('imgbackground').src = 'imagebank/' + backgroundname[backgroundindex - 1] + '.jpg';
    setOpacity('divbackground', backgroundopacity);
    displayBackground();
  }
  else if (mode == 7){
    for (counter1 = 1; counter1 < menusectionid.length; ++ counter1){
      htmltext += '<div class="nodisplay" id="divmenuitemsection' + counter1.toString() + '">';
      items = 0;
      for (counter2 = 0; counter2 < menuitemsectionid.length; ++ counter2){
        if (menuitemsectionid[counter2] == menusectionid[counter1]){
          ++ items;
          if (items == 1){
            htmltext += '<p class="size11 bold margin0000" style="margin-top: ' + (counter1 * 20).toString() + 'px;"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setMenuItem(' + counter2.toString() + ');">' + menuitemtitle[counter2] + '</span></p>';
          }
          else{
            htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setMenuItem(' + counter2.toString() + ');">' + menuitemtitle[counter2] + '</span></p>';
          }
        }
      }
      htmltext += '</div>';
    }
    document.getElementById('divmenuitemsections').innerHTML = htmltext;
    setOpacity('divcontent', contentopacity);
    document.getElementById('divcontent').style.filter = '';
    setContent(1, menusectionindex);
    document.getElementById('divcontent').style.visibility = 'visible';
    contentchanging = 1;
    changeContent(1, 1, menusectionindex);
    htmltext = '<p class="size9 margin0000 right">' + copyrightlabel[language - 1] + ' &#169; ' + copyrightyears + ' ' + companyname + '. ' + copyrightlabel[language + 1] + '.';
    htmltext += '<p class="size9 margin0000 right">' + usagelabel[language - 1] + '.';
    setOpacity('divcopyright', copyrightopacity);
    document.getElementById('divcopyright').style.filter = '';
    document.getElementById('divcopyright').innerHTML = htmltext;
    document.getElementById('divcopyright').style.visibility = 'visible';
    displayCopyright();
  }
  else{
    pageinitialized = 1;
  }
}
function displaySeparator(){
  if (separatorheight <= 390){
    separatorheight += 10;
  }
  else{
    separatorheight += 7;
  }
  document.getElementById('imgseparator').height = separatorheight;
  if (separatorheight < 407){
    setTimeout(function(){displaySeparator();}, 10);
  }
  else{
    displayPage(3);
  }
}
function displayWelcome(){
  welcomeopacity += 5;
  setOpacity('divwelcome', welcomeopacity);
  if (welcomeopacity < 100){
    setTimeout(function(){displayWelcome();}, 25);
  }
  else{
    displayPage(4);
  }
}
function expandMenuSection(mode, elementindex, maxmargin, sectionindex){
  if (mode == 1){
    menusectiontopmargin[elementindex - 1] += 2;
    document.getElementById('divmenusection' + elementindex.toString()).style.marginTop = menusectiontopmargin[elementindex - 1].toString() + 'px';
    if (menusectiontopmargin[elementindex - 1] < maxmargin){
      setTimeout(function(){expandMenuSection(mode, elementindex, maxmargin, sectionindex);}, 10);
    }
    else if (elementindex == menusectionid.length - 1){
      document.getElementById('divmenuitemsection' + sectionindex.toString()).style.display = 'block';
      menusectionindex = sectionindex;
    }
  }
  else{
    document.getElementById('divmenuitemsection' + sectionindex.toString()).style.display = 'block';
    menusectionindex = sectionindex;
  }
}
function getBorderTable(){
  var htmltext;
  htmltext = '<table cellpadding="0" cellspacing="0" width="400">';
  htmltext += '<tr>';
  htmltext += '<td class="height8">';
  htmltext += '</td>';
  htmltext += '</tr>';
  htmltext += '<tr>';
  htmltext += '<td class="border height1">';
  htmltext += '</td>';
  htmltext += '</tr>';
  htmltext += '</table>';
  return htmltext;
}
function getCookie(key, subkey){
  var cookie;
  var cookieend;
  var cookiestart;
  var subcookiecontent;
  var subcookieend;
  var subcookiestart;
  subcookiecontent = '';
  if (document.cookie.length > 0){
    cookiestart = document.cookie.indexOf(key + '=');
    if (cookiestart != -1){
      cookiestart += key.length + 1;
      cookieend = document.cookie.indexOf(';', cookiestart);
      if (cookieend == -1){
        cookieend = document.cookie.length;
      }
      cookie = document.cookie.substring(cookiestart, cookieend);
      if (cookie.length > 0){
        subcookiestart = cookie.indexOf(subkey + '=');
        if (subcookiestart != -1){
          subcookiestart += subkey.length + 1;
          subcookieend = cookie.indexOf('&', subcookiestart);
          if (subcookieend == -1){
            subcookieend = cookie.length;
          }
          subcookiecontent = unescape(cookie.substring(subcookiestart, subcookieend));
        }
      }
    }
  }
  return subcookiecontent;
}
function getDocumentSize(){
  var documentsize;
  documentsize = {};
  documentsize.width = document.body.clientWidth;
  documentsize.height = Math.max(document.body.clientHeight, document.body.offsetHeight, document.body.scrollHeight);
  return documentsize;
}
function getTimeStamp(){
  var currentdate;
  var currenthour;
  var currentmillisecond;
  var currentminute;
  var currentsecond;
  var timestamp;
  currentdate = new Date();
  currenthour = currentdate.getHours().toString();
  if (currenthour.length == 1){
    currenthour = '0' + currenthour;
  }
  currentminute = currentdate.getMinutes().toString();
  if (currentminute.length == 1){
    currentminute = '0' + currentminute;
  }
  currentsecond = currentdate.getSeconds().toString();
  if (currentsecond.length == 1){
    currentsecond = '0' + currentsecond;
  }
  currentmillisecond = currentdate.getMilliseconds().toString();
  if (currentmillisecond.length == 1){
    currentmillisecond = '00' + currentmillisecond;
  }
  else if (currentmillisecond.length == 2){
    currentmillisecond = '0' + currentmillisecond;
  }
  timestamp = currenthour + currentminute + currentsecond + currentmillisecond;
  return timestamp;
}
function highlightImageBorderLink(mode, element){
  if (mode == 1){
    element.style.borderColor = imageborderlinkhighlightedcolor;
  }
  else{
    element.style.borderColor = imageborderlinkcolor;
  }
}
function highlightLink(mode, element){
  if (mode == 1){
    element.style.color = linkhighlightedcolor;
  }
  else{
    element.style.color = linkcolor;
  }
}
function initHtml(){
  try{
    document.getElementsByTagName('html')[0].style.overflowY = 'scroll';
  }
  catch(e){
  }
}
function initPage(){
  window.onresize = setMetrics;
  setMetrics();
  loadXml();
  if (xmlloaded == 1){
    language = getCookie('preferences', 'language');
    if (language != ''){
      language = parseInt(language, 10);
    }
    else{
      language = 1;
    }
    setLanguage();
    preloadImages(1, 0);
    displayPage(1);
  }
}
function loadXml(){
  var calendar;
  var calendarimage;
  var counter;
  var background;
  var company;
  var director;
  var directorimage;
  var directorvideo;
  var image;
  var imageheight;
  var imagewidth;
  var menuitem;
  var menusection;
  var photographer;
  var photographerimage;
  var photographicexhibition;
  var photographicexhibitionimage;
  var photographicbook;
  var photographicbookimage;
  var show;
  var showimage;
  var televisionandmovieproduction;
  var xmlhttp;
  xmlhttp = null;
  try{
    xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
  }
  catch(e){
    try{
      xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
    }
    catch(e){
    }
  }
  if (xmlhttp == null){
    xmlhttp = new XMLHttpRequest();
  }
  if (xmlhttp != null){
    xmlhttp.open('GET', 'xml/menusections.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    menusection = xmlhttp.responseXML.getElementsByTagName('menusection');
    for (counter = 0; counter < menusection.length; ++ counter){
      menusectionid.push(parseInt(menusection[counter].getElementsByTagName('id')[0].childNodes[0].nodeValue, 10));
      menusectiontitleit.push(decodeQuotes(menusection[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      menusectiontitleen.push(decodeQuotes(menusection[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
      menusectiontextit.push(decodeTags(decodeQuotes(menusection[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      menusectiontexten.push(decodeTags(decodeQuotes(menusection[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
    }
    xmlhttp.open('GET', 'xml/menuitems.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    menuitem = xmlhttp.responseXML.getElementsByTagName('menuitem');
    for (counter = 0; counter < menuitem.length; ++ counter){
      menuitemsectionid.push(parseInt(menuitem[counter].getElementsByTagName('sectionid')[0].childNodes[0].nodeValue, 10));
      menuitemtitleit.push(decodeQuotes(menuitem[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      menuitemtitleen.push(decodeQuotes(menuitem[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
      menuitemtextit.push(decodeTags(decodeQuotes(menuitem[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      menuitemtexten.push(decodeTags(decodeQuotes(menuitem[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
    }
    xmlhttp.open('GET', 'xml/backgrounds.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    background = xmlhttp.responseXML.getElementsByTagName('background');
    for (counter = 0; counter < background.length; ++ counter){
      backgroundname.push(background[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
    }
    xmlhttp.open('GET', 'xml/company.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    company = xmlhttp.responseXML.getElementsByTagName('company');
    companyname = company[0].getElementsByTagName('name')[0].childNodes[0].nodeValue;
    companystreetaddress = company[0].getElementsByTagName('streetaddress')[0].childNodes[0].nodeValue;
    companypostalcode = company[0].getElementsByTagName('postalcode')[0].childNodes[0].nodeValue;
    companycityit = company[0].getElementsByTagName('cityit')[0].childNodes[0].nodeValue;
    companycityen = company[0].getElementsByTagName('cityen')[0].childNodes[0].nodeValue;
    companycountryit = company[0].getElementsByTagName('countryit')[0].childNodes[0].nodeValue;
    companycountryen = company[0].getElementsByTagName('countryen')[0].childNodes[0].nodeValue;
    companyphone = company[0].getElementsByTagName('phone')[0].childNodes[0].nodeValue;
    companyfax = company[0].getElementsByTagName('fax')[0].childNodes[0].nodeValue;
    companyemailaddress = company[0].getElementsByTagName('emailaddress')[0].childNodes[0].nodeValue;
    companyvatnumber = company[0].getElementsByTagName('vatnumber')[0].childNodes[0].nodeValue;
    companyauthorizedcapitalit = company[0].getElementsByTagName('authorizedcapitalit')[0].childNodes[0].nodeValue;
    companyauthorizedcapitalen = company[0].getElementsByTagName('authorizedcapitalen')[0].childNodes[0].nodeValue;
    xmlhttp.open('GET', 'xml/photographicbooks.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    photographicbook = xmlhttp.responseXML.getElementsByTagName('photographicbook');
    for (counter = 0; counter < photographicbook.length; ++ counter){
      photographicbookid.push(photographicbook[counter].getElementsByTagName('id')[0].childNodes[0].nodeValue);
      photographicbookthumbnailname.push(photographicbook[counter].getElementsByTagName('thumbnailname')[0].childNodes[0].nodeValue);
      photographicbooktitleit.push(decodeQuotes(photographicbook[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      photographicbooktitleen.push(decodeQuotes(photographicbook[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
      photographicbooksubtitleit.push(decodeQuotes(photographicbook[counter].getElementsByTagName('subtitleit')[0].childNodes[0].nodeValue));
      photographicbooksubtitleen.push(decodeQuotes(photographicbook[counter].getElementsByTagName('subtitleen')[0].childNodes[0].nodeValue));
      photographicbooktextit.push(decodeTags(decodeQuotes(photographicbook[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      photographicbooktexten.push(decodeTags(decodeQuotes(photographicbook[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
    }
    xmlhttp.open('GET', 'xml/photographicbookimages.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    photographicbookimage = xmlhttp.responseXML.getElementsByTagName('photographicbookimage');
    for (counter = 0; counter < photographicbookimage.length; ++ counter){
      photographicbookimagebookid.push(parseInt(photographicbookimage[counter].getElementsByTagName('bookid')[0].childNodes[0].nodeValue, 10));
      photographicbookimagename.push(photographicbookimage[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
      imagewidth = parseInt(photographicbookimage[counter].getElementsByTagName('width')[0].childNodes[0].nodeValue, 10);
      imageheight = parseInt(photographicbookimage[counter].getElementsByTagName('height')[0].childNodes[0].nodeValue, 10);
      image = adjustImageSize(imagewidth, imageheight, 466, 373);
      photographicbookimagewidth.push(image.width);
      photographicbookimageheight.push(image.height);
    }
    xmlhttp.open('GET', 'xml/televisionandmovieproductions.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    televisionandmovieproduction = xmlhttp.responseXML.getElementsByTagName('televisionandmovieproduction');
    for (counter = 0; counter < televisionandmovieproduction.length; ++ counter){
      televisionandmovieproductionimagename.push(televisionandmovieproduction[counter].getElementsByTagName('imagename')[0].childNodes[0].nodeValue);
      imagewidth = parseInt(televisionandmovieproduction[counter].getElementsByTagName('imagewidth')[0].childNodes[0].nodeValue, 10);
      imageheight = parseInt(televisionandmovieproduction[counter].getElementsByTagName('imageheight')[0].childNodes[0].nodeValue, 10);
      image = adjustImageSize(imagewidth, imageheight, 466, 410);
      televisionandmovieproductionimagewidth.push(image.width);
      televisionandmovieproductionimageheight.push(image.height);
      televisionandmovieproductionvideoname.push(televisionandmovieproduction[counter].getElementsByTagName('videoname')[0].childNodes[0].nodeValue);
      televisionandmovieproductiontitleit.push(decodeQuotes(televisionandmovieproduction[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      televisionandmovieproductiontitleen.push(decodeQuotes(televisionandmovieproduction[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
      televisionandmovieproductionsubtitleit.push(decodeQuotes(televisionandmovieproduction[counter].getElementsByTagName('subtitleit')[0].childNodes[0].nodeValue));
      televisionandmovieproductionsubtitleen.push(decodeQuotes(televisionandmovieproduction[counter].getElementsByTagName('subtitleen')[0].childNodes[0].nodeValue));
      televisionandmovieproductiontextit.push(decodeTags(decodeQuotes(televisionandmovieproduction[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      televisionandmovieproductiontexten.push(decodeTags(decodeQuotes(televisionandmovieproduction[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
    }
    xmlhttp.open('GET', 'xml/calendars.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    calendar = xmlhttp.responseXML.getElementsByTagName('calendar');
    for (counter = 0; counter < calendar.length; ++ counter){
      calendarid.push(calendar[counter].getElementsByTagName('id')[0].childNodes[0].nodeValue);
      calendarthumbnailname.push(calendar[counter].getElementsByTagName('thumbnailname')[0].childNodes[0].nodeValue);
      calendartitleit.push(decodeQuotes(calendar[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      calendartitleen.push(decodeQuotes(calendar[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
      calendarsubtitleit.push(decodeQuotes(calendar[counter].getElementsByTagName('subtitleit')[0].childNodes[0].nodeValue));
      calendarsubtitleen.push(decodeQuotes(calendar[counter].getElementsByTagName('subtitleen')[0].childNodes[0].nodeValue));
      calendartextit.push(decodeTags(decodeQuotes(calendar[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      calendartexten.push(decodeTags(decodeQuotes(calendar[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
    }
    xmlhttp.open('GET', 'xml/calendarimages.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    calendarimage = xmlhttp.responseXML.getElementsByTagName('calendarimage');
    for (counter = 0; counter < calendarimage.length; ++ counter){
      calendarimagecalendarid.push(parseInt(calendarimage[counter].getElementsByTagName('calendarid')[0].childNodes[0].nodeValue, 10));
      calendarimagename.push(calendarimage[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
      imagewidth = parseInt(calendarimage[counter].getElementsByTagName('width')[0].childNodes[0].nodeValue, 10);
      imageheight = parseInt(calendarimage[counter].getElementsByTagName('height')[0].childNodes[0].nodeValue, 10);
      image = adjustImageSize(imagewidth, imageheight, 466, 373);
      calendarimagewidth.push(image.width);
      calendarimageheight.push(image.height);
    }
    xmlhttp.open('GET', 'xml/photographers.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    photographer = xmlhttp.responseXML.getElementsByTagName('photographer');
    for (counter = 0; counter < photographer.length; ++ counter){
      photographerid.push(photographer[counter].getElementsByTagName('id')[0].childNodes[0].nodeValue);
      photographernameit.push(decodeQuotes(photographer[counter].getElementsByTagName('nameit')[0].childNodes[0].nodeValue));
      photographernameen.push(decodeQuotes(photographer[counter].getElementsByTagName('nameen')[0].childNodes[0].nodeValue));
      photographertextit.push(decodeTags(decodeQuotes(photographer[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      photographertexten.push(decodeTags(decodeQuotes(photographer[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
      photographerwebsiteurl.push(photographer[counter].getElementsByTagName('websiteurl')[0].childNodes[0].nodeValue);
    }
    xmlhttp.open('GET', 'xml/photographerimages.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    photographerimage = xmlhttp.responseXML.getElementsByTagName('photographerimage');
    for (counter = 0; counter < photographerimage.length; ++ counter){
      photographerimagephotographerid.push(parseInt(photographerimage[counter].getElementsByTagName('photographerid')[0].childNodes[0].nodeValue, 10));
      photographerimagename.push(photographerimage[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
      imagewidth = parseInt(photographerimage[counter].getElementsByTagName('width')[0].childNodes[0].nodeValue, 10);
      imageheight = parseInt(photographerimage[counter].getElementsByTagName('height')[0].childNodes[0].nodeValue, 10);
      image = adjustImageSize(imagewidth, imageheight, 466, 365);
      photographerimagewidth.push(image.width);
      photographerimageheight.push(image.height);
    }
    xmlhttp.open('GET', 'xml/directors.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    director = xmlhttp.responseXML.getElementsByTagName('director');
    for (counter = 0; counter < director.length; ++ counter){
      directorid.push(director[counter].getElementsByTagName('id')[0].childNodes[0].nodeValue);
      directornameit.push(decodeQuotes(director[counter].getElementsByTagName('nameit')[0].childNodes[0].nodeValue));
      directornameen.push(decodeQuotes(director[counter].getElementsByTagName('nameen')[0].childNodes[0].nodeValue));
      directortextit.push(decodeTags(decodeQuotes(director[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      directortexten.push(decodeTags(decodeQuotes(director[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
      directorwebsiteurl.push(director[counter].getElementsByTagName('websiteurl')[0].childNodes[0].nodeValue);
    }
    xmlhttp.open('GET', 'xml/directorimages.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    directorimage = xmlhttp.responseXML.getElementsByTagName('directorimage');
    for (counter = 0; counter < directorimage.length; ++ counter){
      directorimagedirectorid.push(parseInt(directorimage[counter].getElementsByTagName('directorid')[0].childNodes[0].nodeValue, 10));
      directorimagename.push(directorimage[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
      imagewidth = parseInt(directorimage[counter].getElementsByTagName('width')[0].childNodes[0].nodeValue, 10);
      imageheight = parseInt(directorimage[counter].getElementsByTagName('height')[0].childNodes[0].nodeValue, 10);
      image = adjustImageSize(imagewidth, imageheight, 466, 365);
      directorimagewidth.push(image.width);
      directorimageheight.push(image.height);
    }
    xmlhttp.open('GET', 'xml/directorvideos.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    directorvideo = xmlhttp.responseXML.getElementsByTagName('directorvideo');
    for (counter = 0; counter < directorvideo.length; ++ counter){
      directorvideodirectorid.push(parseInt(directorvideo[counter].getElementsByTagName('directorid')[0].childNodes[0].nodeValue, 10));
      directorvideoname.push(directorvideo[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
      directorvideotitleit.push(decodeQuotes(directorvideo[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      directorvideotitleen.push(decodeQuotes(directorvideo[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
    }
    xmlhttp.open('GET', 'xml/photographicexhibitions.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    photographicexhibition = xmlhttp.responseXML.getElementsByTagName('photographicexhibition');
    for (counter = 0; counter < photographicexhibition.length; ++ counter){
      photographicexhibitionid.push(photographicexhibition[counter].getElementsByTagName('id')[0].childNodes[0].nodeValue);
      photographicexhibitionthumbnailname.push(photographicexhibition[counter].getElementsByTagName('thumbnailname')[0].childNodes[0].nodeValue);
      photographicexhibitionvideoname.push(photographicexhibition[counter].getElementsByTagName('videoname')[0].childNodes[0].nodeValue);
      photographicexhibitionpressreviewname.push(photographicexhibition[counter].getElementsByTagName('pressreviewname')[0].childNodes[0].nodeValue);
      photographicexhibitiontitleit.push(decodeQuotes(photographicexhibition[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      photographicexhibitiontitleen.push(decodeQuotes(photographicexhibition[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
      photographicexhibitionsubtitleit.push(decodeQuotes(photographicexhibition[counter].getElementsByTagName('subtitleit')[0].childNodes[0].nodeValue));
      photographicexhibitionsubtitleen.push(decodeQuotes(photographicexhibition[counter].getElementsByTagName('subtitleen')[0].childNodes[0].nodeValue));
      photographicexhibitiontextit.push(decodeTags(decodeQuotes(photographicexhibition[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      photographicexhibitiontexten.push(decodeTags(decodeQuotes(photographicexhibition[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
    }
    xmlhttp.open('GET', 'xml/photographicexhibitionimages.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    photographicexhibitionimage = xmlhttp.responseXML.getElementsByTagName('photographicexhibitionimage');
    for (counter = 0; counter < photographicexhibitionimage.length; ++ counter){
      photographicexhibitionimageexhibitionid.push(parseInt(photographicexhibitionimage[counter].getElementsByTagName('exhibitionid')[0].childNodes[0].nodeValue, 10));
      photographicexhibitionimagename.push(photographicexhibitionimage[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
      imagewidth = parseInt(photographicexhibitionimage[counter].getElementsByTagName('width')[0].childNodes[0].nodeValue, 10);
      imageheight = parseInt(photographicexhibitionimage[counter].getElementsByTagName('height')[0].childNodes[0].nodeValue, 10);
      image = adjustImageSize(imagewidth, imageheight, 466, 373);
      photographicexhibitionimagewidth.push(image.width);
      photographicexhibitionimageheight.push(image.height);
    }
    xmlhttp.open('GET', 'xml/shows.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    show = xmlhttp.responseXML.getElementsByTagName('show');
    for (counter = 0; counter < show.length; ++ counter){
      showid.push(show[counter].getElementsByTagName('id')[0].childNodes[0].nodeValue);
      showvideoname.push(show[counter].getElementsByTagName('videoname')[0].childNodes[0].nodeValue);
      showpressreviewname.push(show[counter].getElementsByTagName('pressreviewname')[0].childNodes[0].nodeValue);
      showtitleit.push(decodeQuotes(show[counter].getElementsByTagName('titleit')[0].childNodes[0].nodeValue));
      showtitleen.push(decodeQuotes(show[counter].getElementsByTagName('titleen')[0].childNodes[0].nodeValue));
      showsubtitleit.push(decodeQuotes(show[counter].getElementsByTagName('subtitleit')[0].childNodes[0].nodeValue));
      showsubtitleen.push(decodeQuotes(show[counter].getElementsByTagName('subtitleen')[0].childNodes[0].nodeValue));
      showtextit.push(decodeTags(decodeQuotes(show[counter].getElementsByTagName('textit')[0].childNodes[0].nodeValue)));
      showtexten.push(decodeTags(decodeQuotes(show[counter].getElementsByTagName('texten')[0].childNodes[0].nodeValue)));
    }
    xmlhttp.open('GET', 'xml/showimages.xml?timestamp=' + getTimeStamp(), false);
    xmlhttp.send();
    showimage = xmlhttp.responseXML.getElementsByTagName('showimage');
    for (counter = 0; counter < showimage.length; ++ counter){
      showimageshowid.push(parseInt(showimage[counter].getElementsByTagName('showid')[0].childNodes[0].nodeValue, 10));
      showimagename.push(showimage[counter].getElementsByTagName('name')[0].childNodes[0].nodeValue);
      imagewidth = parseInt(showimage[counter].getElementsByTagName('width')[0].childNodes[0].nodeValue, 10);
      imageheight = parseInt(showimage[counter].getElementsByTagName('height')[0].childNodes[0].nodeValue, 10);
      image = adjustImageSize(imagewidth, imageheight, 466, 365);
      showimagewidth.push(image.width);
      showimageheight.push(image.height);
    }
    xmlloaded = 1;
  }
  else{
    xmlloaded = 0;
  }
}
function moveThumbnails(mode, elements){
  var htmltext;
  if (mode == 1){
    if (thumbnailsleft < 0){
      thumbnailsleft += 5;
      document.getElementById('divthumbnails').style.left = thumbnailsleft.toString() + 'px';
      thumbnailstimeoutid = setTimeout(function(){moveThumbnails(mode, elements);}, 25);
    }
  }
  else if (mode == 2){
    if (thumbnailsleft > 420 - elements * 70){
      thumbnailsleft -= 5;
      document.getElementById('divthumbnails').style.left = thumbnailsleft.toString() + 'px';
      thumbnailstimeoutid = setTimeout(function(){moveThumbnails(mode, elements);}, 25);
    }
  }
  else{
    clearTimeout(thumbnailstimeoutid);
    if (thumbnailsleft >= 0){
      htmltext = '<p class="margin0000"><img alt="" src="images/leftlargearrowdisabled.gif" width="30" height="60"></p>';
    }
    else{
      htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/leftlargearrownormal.gif" width="30" height="60" onmouseover="this.src=\'images/leftlargearrowhighlighted.gif\'" onmouseout="this.src=\'images/leftlargearrownormal.gif\'" onmousedown="moveThumbnails(1, 0);" onmouseup="moveThumbnails(0, ' + elements.toString() + ');"></p>';
    }
    document.getElementById('divleftlargearrow').innerHTML = htmltext;
    if (thumbnailsleft <= 420 - elements * 70){
      htmltext = '<p class="margin0000"><img alt="" src="images/rightlargearrowdisabled.gif" width="30" height="60"></p>';
    }
    else{
      htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightlargearrownormal.gif" width="30" height="60" onmouseover="this.src=\'images/rightlargearrowhighlighted.gif\'" onmouseout="this.src=\'images/rightlargearrownormal.gif\'" onmousedown="moveThumbnails(2, ' + elements.toString() + ');" onmouseup="moveThumbnails(0, ' + elements.toString() + ');"></p>';
    }
    document.getElementById('divrightlargearrow').innerHTML = htmltext;
  }
}
function openPressReviewWindow(name){
  var pressreviewwindow;
  var windowsettings;
  if (screen.width >= 1280 && screen.height >= 960){
    windowsettings = 'left=10, top=10, width=1024, height=768, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0';
  }
  else{
    windowsettings = 'left=10, top=10, width=800, height=600, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0';
  }
  pressreviewwindow = window.open('pressreviewbank/' + name + '.pdf', '', windowsettings);
  pressreviewwindow.focus();
}
function openWebsiteWindow(url){
  var websitewindow;
  var windowsettings;
  if (screen.width >= 1280 && screen.height >= 960){
    windowsettings = 'left=10, top=10, width=1024, height=768, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=1';
  }
  else{
    windowsettings = 'left=10, top=10, width=800, height=600, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=1';
  }
  websitewindow = window.open(url, '', windowsettings);
  websitewindow.focus();
}
function preloadImages(mode, elementindex){
  var counter;
  var preloadimage;
  if (mode == 1){
    for (counter = 0; counter < backgroundname.length; ++ counter){
      preloadimage = new Image();
      preloadimage.src = 'imagebank/' + backgroundname[counter] + '.jpg';
    }
    for (counter = 0; counter < photographicbookid.length; ++ counter){
      preloadimage = new Image();
      preloadimage.src = 'imagebank/' + photographicbookthumbnailname[counter] + '.jpg';
    }
    for (counter = 0; counter < calendarid.length; ++ counter){
      preloadimage = new Image();
      preloadimage.src = 'imagebank/' + calendarthumbnailname[counter] + '.jpg';
    }
    for (counter = 0; counter < photographicexhibitionid.length; ++ counter){
      preloadimage = new Image();
      preloadimage.src = 'imagebank/' + photographicexhibitionthumbnailname[counter] + '.jpg';
    }
  }
  else if (mode == 2){
    for (counter = 0; counter < photographicbookimagebookid.length; ++ counter){
      if (photographicbookimagebookid[counter] == photographicbookid[elementindex]){
        preloadimage = new Image();
        preloadimage.src = 'imagebank/' + photographicbookimagename[counter] + '.jpg';
      }
    }
  }
  else if (mode == 3){
    if (televisionandmovieproductionimagename[elementindex] != '~'){
      preloadimage = new Image();
      preloadimage.src = 'imagebank/' + televisionandmovieproductionimagename[elementindex] + '.jpg';
    }
  }
  else if (mode == 4){
    for (counter = 0; counter < calendarimagecalendarid.length; ++ counter){
      if (calendarimagecalendarid[counter] == calendarid[elementindex]){
        preloadimage = new Image();
        preloadimage.src = 'imagebank/' + calendarimagename[counter] + '.jpg';
      }
    }
  }
  else if (mode == 5){
    for (counter = 0; counter < photographerimagephotographerid.length; ++ counter){
      if (photographerimagephotographerid[counter] == photographerid[elementindex]){
        preloadimage = new Image();
        preloadimage.src = 'imagebank/' + photographerimagename[counter] + '.jpg';
      }
    }
  }
  else if (mode == 6){
    for (counter = 0; counter < directorimagedirectorid.length; ++ counter){
      if (directorimagedirectorid[counter] == directorid[elementindex]){
        preloadimage = new Image();
        preloadimage.src = 'imagebank/' + directorimagename[counter] + '.jpg';
      }
    }
  }
  else if (mode == 7){
    for (counter = 0; counter < photographicexhibitionimageexhibitionid.length; ++ counter){
      if (photographicexhibitionimageexhibitionid[counter] == photographicexhibitionid[elementindex]){
        preloadimage = new Image();
        preloadimage.src = 'imagebank/' + photographicexhibitionimagename[counter] + '.jpg';
      }
    }
  }
  else if (mode == 8){
    for (counter = 0; counter < showimageshowid.length; ++ counter){
      preloadimage = new Image();
      preloadimage.src = 'imagebank/' + showimagename[counter] + '.jpg';
    }
  }
  else{
    for (counter = 1; counter <= 6; ++ counter){
      preloadimage = new Image();
      preloadimage.src = 'images/map' + counter.toString() + '.jpg';
    }
  }
}
function redirectToUrl(url){
  window.location.href = url;
}
function removeDomFromCache(){
}
function setCalendar(elementindex){
  if (contentchanging == 0){
    if (elementindex != calendarindex){
      calendarindex = elementindex;
      menuitemindex = -1;
      contentchanging = 1;
      changeCalendar(0, 1, elementindex);
    }
  }
}
function setCalendarImage(elementindex, elements){
  var htmltext;
  document.getElementById('divcalendarimage').style.top = (Math.floor((373 - calendargroupedimageheight[elementindex]) / 2) + 10).toString() + 'px';
  document.getElementById('divcalendarimage').style.height = (calendargroupedimageheight[elementindex] + 2).toString() + 'px';
  document.getElementById('divcalendarimage').innerHTML = '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + calendargroupedimagename[elementindex] + '.jpg" width="' + calendargroupedimagewidth[elementindex].toString() + '" height="' + calendargroupedimageheight[elementindex].toString() + '"></p>';
  if (elementindex == 0){
    htmltext = '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/leftsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/leftsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/leftsmallarrownormal.gif\';" onclick="this.src=\'images/leftsmallarrownormal.gif\'; setCalendarImage(' + (elementindex - 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divcalendarleftarrow').innerHTML = htmltext;
  document.getElementById('spancalendarcaption').innerHTML = (elementindex + 1).toString();
  if (elementindex == elements - 1){
    htmltext = '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setCalendarImage(' + (elementindex + 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divcalendarrightarrow').innerHTML = htmltext;
}
function setCalendarImages(elementindex){
  if (contentchanging == 0){
    calendarindex = -1;
    contentchanging = 1;
    changeCalendar(0, 2, elementindex);
  }
}
function setContent(contenttype, elementindex){
  var counter1;
  var counter2;
  var elements;
  var htmltext;
  htmltext = '';
  if (contenttype == 1){
    if (elementindex == 0){
      htmltext += '<div class="abstract absolute width320">';
      htmltext += '<p class="lineheight20 margin0000">' + menusectiontext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="company absolute">';
      htmltext += '<p class="bold size12 margin0000 right">' + companyname + '</p>';
      htmltext += '<p class="size12 margin00100 right">' + companystreetaddress + '</p>';
      htmltext += '<p class="size12 margin0000 right">' + companypostalcode + ' ' + companycity + ', ' + companycountry + '</p>';
      htmltext += '<p class="size12 margin0000 right">' + phonelabel[language - 1] + ': ' + companyphone + '</p>';
      htmltext += '<p class="size12 margin0000 right">' + faxlabel[language - 1] + ': ' + companyfax + '</p>';
      htmltext += '<p class="size12 margin0000 right">' + emaillabel[language - 1] + ': ' + companyemailaddress + '</p>';
      htmltext += '<p class="size12 margin0050 right">' + corporatelabel[language - 1] + ': ' + companyvatnumber + '</p>';
      htmltext += '<p class="size12 margin0000 right">' + corporatelabel[language + 1] + ': ' + companyauthorizedcapital + '</p>';
      htmltext += '</div>';
    }
    else{
      htmltext += '<div class="abstract absolute width400">';
      htmltext += '<p class="title bold size17 margin0000">' + menusectiontitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menusectiontext[elementindex] + '</p>';
      htmltext += '</div>';
    }
  }
  else{
    if (elementindex == 0 || elementindex == 1 || elementindex == 7){
      htmltext += '<div class="abstract absolute width400">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
    }
    else if (elementindex == 2){
      elements = photographicbookid.length;
      photographicbookindex = -1;
      thumbnailsleft = 0;
      htmltext += '<div class="abstract absolute width400" id="divphotographicbooks">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="thumbnailrow absolute width490 height60">';
      htmltext += '<div class="leftlargearrow absolute" id="divleftlargearrow">';
      htmltext += '<p class="margin0000"><img alt="" src="images/leftlargearrowdisabled.gif" width="30" height="60"></p>';
      htmltext += '</div>';
      htmltext += '<div class="thumbnails hiddenoverflow absolute width410 height60">';
      if (elements <= 6){
        htmltext += '<div class="absolute" id="divthumbnails" style="left: ' + (210 - elements * 35) + 'px; width: ' + (elements * 70 - 10).toString() + 'px;">';
      }
      else{
        htmltext += '<div class="absolute" id="divthumbnails" style="width: ' + (elements * 70 - 10).toString() + 'px;">';
      }
      htmltext += '<p class="margin0000">';
      for (counter1 = 0; counter1 < elements; ++ counter1){
        if (counter1 == 0){
          htmltext += '<img class="borderlink cursorpointer margin0000" alt="" src="imagebank/' + photographicbookthumbnailname[counter1] + '.jpg" width="58" height="58" onmouseover="highlightImageBorderLink(1, this);" onmouseout="highlightImageBorderLink(0, this);" onclick="highlightImageBorderLink(0, this); setPhotographicBook(' + counter1.toString() + ');">';
        }
        else{
          htmltext += '<img class="borderlink cursorpointer margin10000" alt="" src="imagebank/' + photographicbookthumbnailname[counter1] + '.jpg" width="58" height="58" onmouseover="highlightImageBorderLink(1, this);" onmouseout="highlightImageBorderLink(0, this);" onclick="highlightImageBorderLink(0, this); setPhotographicBook(' + counter1.toString() + ');">';
        }
      }
      htmltext += '</p>';
      htmltext += '</div>';
      htmltext += '</div>';
      htmltext += '<div class="rightlargearrow absolute" id="divrightlargearrow">';
      if (elements <= 6){
        htmltext += '<p class="margin0000"><img alt="" src="images/rightlargearrowdisabled.gif" width="30" height="60"></p>';
      }
      else{
        htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightlargearrownormal.gif" width="30" height="60" onmouseover="this.src=\'images/rightlargearrowhighlighted.gif\';" onmouseout="this.src=\'images/rightlargearrownormal.gif\';" onmousedown="moveThumbnails(2, ' + elements.toString() + ');" onmouseup="moveThumbnails(0, ' + elements.toString() + ');"></p>';
      }
      htmltext += '</div>';
      htmltext += '</div>';
    }
    else if (elementindex == 3){
      elements = televisionandmovieproductionimagename.length;
      televisionandmovieproductionindex = -1;
      htmltext += '<div class="abstract absolute width400" id="divtelevisionandmovieproductions">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="list absolute">';
      htmltext += '<table cellpadding="0" cellspacing="0" width="490">';
      htmltext += '<tr>';
      for (counter1 = 1; counter1 <= 3; ++ counter1){
        htmltext += '<td class="top">';
        if (counter1 <= 2){
          htmltext += '<table cellpadding="0" cellspacing="0">';
        }
        else{
          htmltext += '<table class="marginA000" cellpadding="0" cellspacing="0">';
        }
        for (counter2 = counter1; counter2 <= elements; counter2 += 3){
          htmltext += '<tr>';
          htmltext += '<td class="top">';
          htmltext += '<p class="size11 bold margin0000"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setTelevisionAndMovieProduction(' + (counter2 - 1).toString() + ');">' + televisionandmovieproductiontitle[counter2 - 1] + '</span></p>';
          htmltext += '</td>';
          htmltext += '</tr>';
        }
        htmltext += '</table>';
        htmltext += '</td>';
      }
      htmltext += '</tr>';
      htmltext += '</table>';
      htmltext += '</div>';
    }
    else if (elementindex == 4){
      elements = calendarid.length;
      calendarindex = -1;
      thumbnailsleft = 0;
      htmltext += '<div class="abstract absolute width400" id="divcalendars">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="thumbnailrow absolute width490 height60">';
      htmltext += '<div class="leftlargearrow absolute" id="divleftlargearrow">';
      htmltext += '<p class="margin0000"><img alt="" src="images/leftlargearrowdisabled.gif" width="30" height="60"></p>';
      htmltext += '</div>';
      htmltext += '<div class="thumbnails hiddenoverflow absolute width410 height60">';
      if (elements <= 6){
        htmltext += '<div class="absolute" id="divthumbnails" style="left: ' + (210 - elements * 35) + 'px; width: ' + (elements * 70 - 10).toString() + 'px;">';
      }
      else{
        htmltext += '<div class="absolute" id="divthumbnails" style="width: ' + (elements * 70 - 10).toString() + 'px;">';
      }
      htmltext += '<p class="margin0000">';
      for (counter1 = 0; counter1 < elements; ++ counter1){
        if (counter1 == 0){
          htmltext += '<img class="borderlink cursorpointer margin0000" alt="" src="imagebank/' + calendarthumbnailname[counter1] + '.jpg" width="58" height="58" onmouseover="highlightImageBorderLink(1, this);" onmouseout="highlightImageBorderLink(0, this);" onclick="highlightImageBorderLink(0, this); setCalendar(' + counter1.toString() + ');">';
        }
        else{
          htmltext += '<img class="borderlink cursorpointer margin10000" alt="" src="imagebank/' + calendarthumbnailname[counter1] + '.jpg" width="58" height="58" onmouseover="highlightImageBorderLink(1, this);" onmouseout="highlightImageBorderLink(0, this);" onclick="highlightImageBorderLink(0, this); setCalendar(' + counter1.toString() + ');">';
        }
      }
      htmltext += '</p>';
      htmltext += '</div>';
      htmltext += '</div>';
      htmltext += '<div class="rightlargearrow absolute" id="divrightlargearrow">';
      if (elements <= 6){
        htmltext += '<p class="margin0000"><img alt="" src="images/rightlargearrowdisabled.gif" width="30" height="60"></p>';
      }
      else{
        htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightlargearrownormal.gif" width="30" height="60" onmouseover="this.src=\'images/rightlargearrowhighlighted.gif\';" onmouseout="this.src=\'images/rightlargearrownormal.gif\';" onmousedown="moveThumbnails(2, ' + elements.toString() + ');" onmouseup="moveThumbnails(0, ' + elements.toString() + ');"></p>';
      }
      htmltext += '</div>';
      htmltext += '</div>';
    }
    else if (elementindex == 5){
      elements = photographerid.length;
      photographerindex = -1;
      htmltext += '<div class="abstract absolute width400" id="divphotographers">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="list absolute">';
      htmltext += '<table cellpadding="0" cellspacing="0" width="490">';
      htmltext += '<tr>';
      for (counter1 = 1; counter1 <= 4; ++ counter1){
        htmltext += '<td class="top">';
        if (counter1 <= 3){
          htmltext += '<table cellpadding="0" cellspacing="0">';
        }
        else{
          htmltext += '<table class="marginA000" cellpadding="0" cellspacing="0">';
        }
        for (counter2 = counter1; counter2 <= elements; counter2 += 4){
          htmltext += '<tr>';
          htmltext += '<td class="top">';
          htmltext += '<p class="size11 bold margin0000"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setPhotographer(' + (counter2 - 1).toString() + ');">' + photographername[counter2 - 1] + '</span></p>';
          htmltext += '</td>';
          htmltext += '</tr>';
        }
        htmltext += '</table>';
        htmltext += '</td>';
      }
      htmltext += '</tr>';
      htmltext += '</table>';
      htmltext += '</div>';
    }
    else if (elementindex == 6){
      elements = directorid.length;
      directorindex = -1;
      htmltext += '<div class="abstract absolute width400" id="divdirectors">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="list absolute">';
      htmltext += '<table cellpadding="0" cellspacing="0" width="490">';
      htmltext += '<tr>';
      for (counter1 = 1; counter1 <= 4; ++ counter1){
        htmltext += '<td class="top">';
        if (counter1 <= 3){
          htmltext += '<table cellpadding="0" cellspacing="0">';
        }
        else{
          htmltext += '<table class="marginA000" cellpadding="0" cellspacing="0">';
        }
        for (counter2 = counter1; counter2 <= elements; counter2 += 4){
          htmltext += '<tr>';
          htmltext += '<td class="top">';
          htmltext += '<p class="size11 bold margin0000"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setDirector(' + (counter2 - 1).toString() + ');">' + directorname[counter2 - 1] + '</span></p>';
          htmltext += '</td>';
          htmltext += '</tr>';
        }
        htmltext += '</table>';
        htmltext += '</td>';
      }
      htmltext += '</tr>';
      htmltext += '</table>';
      htmltext += '</div>';
    }
    else if (elementindex == 8){
      elements = photographicexhibitionid.length;
      photographicexhibitionindex = -1;
      thumbnailsleft = 0;
      htmltext += '<div class="abstract absolute width400" id="divphotographicexhibitions">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="thumbnailrow absolute width490 height60">';
      htmltext += '<div class="leftlargearrow absolute" id="divleftlargearrow">';
      htmltext += '<p class="margin0000"><img alt="" src="images/leftlargearrowdisabled.gif" width="30" height="60"></p>';
      htmltext += '</div>';
      htmltext += '<div class="thumbnails hiddenoverflow absolute width410 height60">';
      if (elements <= 6){
        htmltext += '<div class="absolute" id="divthumbnails" style="left: ' + (210 - elements * 35) + 'px; width: ' + (elements * 70 - 10).toString() + 'px;">';
      }
      else{
        htmltext += '<div class="absolute" id="divthumbnails" style="width: ' + (elements * 70 - 10).toString() + 'px;">';
      }
      htmltext += '<p class="margin0000">';
      for (counter1 = 0; counter1 < elements; ++ counter1){
        if (counter1 == 0){
          htmltext += '<img class="borderlink cursorpointer margin0000" alt="" src="imagebank/' + photographicexhibitionthumbnailname[counter1] + '.jpg" width="58" height="58" onmouseover="highlightImageBorderLink(1, this);" onmouseout="highlightImageBorderLink(0, this);" onclick="highlightImageBorderLink(0, this); setPhotographicExhibition(' + counter1.toString() + ');">';
        }
        else{
          htmltext += '<img class="borderlink cursorpointer margin10000" alt="" src="imagebank/' + photographicexhibitionthumbnailname[counter1] + '.jpg" width="58" height="58" onmouseover="highlightImageBorderLink(1, this);" onmouseout="highlightImageBorderLink(0, this);" onclick="highlightImageBorderLink(0, this); setPhotographicExhibition(' + counter1.toString() + ');">';
        }
      }
      htmltext += '</p>';
      htmltext += '</div>';
      htmltext += '</div>';
      htmltext += '<div class="rightlargearrow absolute" id="divrightlargearrow">';
      if (elements <= 6){
        htmltext += '<p class="margin0000"><img alt="" src="images/rightlargearrowdisabled.gif" width="30" height="60"></p>';
      }
      else{
        htmltext += '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightlargearrownormal.gif" width="30" height="60" onmouseover="this.src=\'images/rightlargearrowhighlighted.gif\';" onmouseout="this.src=\'images/rightlargearrownormal.gif\';" onmousedown="moveThumbnails(2, ' + elements.toString() + ');" onmouseup="moveThumbnails(0, ' + elements.toString() + ');"></p>';
      }
      htmltext += '</div>';
      htmltext += '</div>';
    }
    else if (elementindex == 9){
      elements = showid.length;
      showindex = -1;
      htmltext += '<div class="abstract absolute width400" id="divshows">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="lineheight20 margin0050">' + menuitemtext[elementindex] + '</p>';
      htmltext += '</div>';
      htmltext += '<div class="list absolute">';
      htmltext += '<table cellpadding="0" cellspacing="0" width="490">';
      htmltext += '<tr>';
      for (counter1 = 1; counter1 <= 4; ++ counter1){
        htmltext += '<td class="top">';
        if (counter1 <= 3){
          htmltext += '<table cellpadding="0" cellspacing="0">';
        }
        else{
          htmltext += '<table class="marginA000" cellpadding="0" cellspacing="0">';
        }
        for (counter2 = counter1; counter2 <= elements; counter2 += 4){
          htmltext += '<tr>';
          htmltext += '<td class="top">';
          htmltext += '<p class="size11 bold margin0000"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setShow(' + (counter2 - 1).toString() + ');">' + showtitle[counter2 - 1] + '</span></p>';
          htmltext += '</td>';
          htmltext += '</tr>';
        }
        htmltext += '</table>';
        htmltext += '</td>';
      }
      htmltext += '</tr>';
      htmltext += '</table>';
      htmltext += '</div>';
    }
    else if (elementindex == 10){
      htmltext += '<div class="abstract absolute width400" id="divwhereweare">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<p class="margin0050">' + companyname + '</p>';
      htmltext += '<p class="margin0020">' + companystreetaddress + '</p>';
      htmltext += '<p class="margin0020">' + companypostalcode + ' ' + companycity + ', ' + companycountry + '</p>';
      htmltext += '<p class="margin0020">' + phonelabel[language - 1] + ': ' + companyphone + '</p>';
      htmltext += '<p class="margin0020">' + faxlabel[language - 1] + ': ' + companyfax + '</p>';
      htmltext += '<p class="margin0020">' + emaillabel[language - 1] + ': ' + companyemailaddress + '</p>';
      htmltext += '<p class="margin0080">' + corporatelabel[language - 1] + ': ' + companyvatnumber + '</p>';
      htmltext += '<p class="margin0020">' + corporatelabel[language + 1] + ': ' + companyauthorizedcapital + '</p>';
      htmltext += getBorderTable();
      htmltext += '<p class="size11 bold margin0070"><span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); setMap();">' + maplabel[language - 1] + '</span>&#160;|&#160;<span class="link cursorpointer" onmouseover="highlightLink(1, this);" onmouseout="highlightLink(0, this);" onclick="highlightLink(0, this); redirectToUrl(\'mailto:' + companyemailaddress + '\');">' + emaillabel[language - 1] + '</span></p>';
      htmltext += '</div>';
    }
    else{
      htmltext += '<div class="abstract absolute width400" id="divcredits">';
      htmltext += '<p class="title bold size17 margin0000">' + menuitemtitle[elementindex] + '</p>';
      htmltext += '<table cellpadding="0" cellspacing="0">';
      htmltext += '<tr>';
      htmltext += '<td>';
      htmltext += '<p class="margin0050">' + creditlabel[language - 1] + '&#160;&#160;</p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0060"><img alt="" src="images/webvision.gif" width="143" height="16"></p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0050">&#160;&#160;' + creditlabel[language + 1] + '&#160;&#160;</p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0060"><a class="nodecoration" href="' + authorurl + '" onclick="return false;"></a><img class="cursorpointer" alt="' + authorname + '" src="images/webdeqnormal.gif" title="" width="64" height="16" onmouseover="this.src = \'images/webdeqhighlighted.gif\';" onmouseout="this.src = \'images/webdeqnormal.gif\';" onclick="this.src = \'images/webdeqnormal.gif\'; openWebsiteWindow(\'' + authorurl + '\');"></p>';
      htmltext += '</td>';
      htmltext += '</tr>';
      htmltext += '</table>';
      htmltext += '<p class="margin00100 size9">' + copyrightlabel[language - 1] + ' &#169; ' + copyrightyears + ' ' + authorname + ' ' + copyrightlabel[language + 3] + '</p>';
      htmltext += '<table cellpadding="0" cellspacing="0">';
      htmltext += '<tr>';
      htmltext += '<td>';
      htmltext += '<p class="margin0090 size9">' + standardizationlabel[language - 1] + '&#160;&#160;</p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0080"><img class="cursorpointer" alt="" src="images/w3cvalidhtml401normal.gif" width="45" height="16" onmouseover="this.src = \'images/w3cvalidhtml401highlighted.gif\';" onmouseout="this.src = \'images/w3cvalidhtml401normal.gif\';" onclick="this.src = \'images/w3cvalidhtml401normal.gif\'; openWebsiteWindow(\'' + w3chtmlurl + '\');"></p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0090 size9">&#160;&#160;</p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0080"><img class="cursorpointer" alt="" src="images/w3cvalidcssnormal.gif" width="45" height="16" onmouseover="this.src = \'images/w3cvalidcsshighlighted.gif\';" onmouseout="this.src = \'images/w3cvalidcssnormal.gif\';" onclick="this.src = \'images/w3cvalidcssnormal.gif\'; openWebsiteWindow(\'' + w3ccssurl + '\');"></p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0090 size9">&#160;&#160;&#160;&#160;' + standardizationlabel[language + 1] + '&#160;&#160;</p>';
      htmltext += '</td>';
      htmltext += '<td>';
      htmltext += '<p class="margin0080"><img alt="" src="images/isoiec15445.gif" width="45" height="16"></p>';
      htmltext += '</td>';
      htmltext += '</tr>';
      htmltext += '</table>';
      htmltext += '</div>';
    }
  }
  document.getElementById('divcontent').innerHTML = htmltext;
}
function setCookie(key, subkey, content){
  var cookie;
  var cookieend;
  var cookiefound;
  var cookiestart;
  var expirationdate;
  var subcookieend;
  var subcookiefound;
  var subcookiestart;
  if (document.cookie.length > 0){
    cookiestart = document.cookie.indexOf(key + '=');
    if (cookiestart != -1){
      cookiestart += key.length + 1;
      cookieend = document.cookie.indexOf(';', cookiestart);
      if (cookieend == -1){
        cookieend = document.cookie.length;
      }
      cookiefound = 1;
      cookie = document.cookie.substring(cookiestart, cookieend);
      if (cookie.length > 0){
        subcookiestart = cookie.indexOf(subkey + '=');
        if (subcookiestart != -1){
          subcookiestart += subkey.length + 1;
          subcookieend = cookie.indexOf('&', subcookiestart);
          if (subcookieend == -1){
            subcookieend = cookie.length;
          }
          subcookiefound = 1;
        }
      }
    }
  }
  if (cookiefound == 1){
    if (subcookiefound == 1){
      cookie = key + '=' + document.cookie.substring(cookiestart, cookiestart + subcookiestart) + escape(content) + document.cookie.substring(cookiestart + subcookieend, cookieend);
    }
    else{
      cookie = key + '=' + document.cookie.substring(cookiestart, cookieend) + '&' + subkey + '=' + escape(content);
    }
  }
  else{
    cookie = key + '=' + subkey + '=' + escape(content);
  }
  expirationdate = new Date();
  expirationdate.setTime(expirationdate.getTime() + 31536000000);
  document.cookie = cookie + '; expires=' + expirationdate.toUTCString() + '; path=/';
}
function setDirector(elementindex){
  if (contentchanging == 0){
    if (elementindex != directorindex){
      directorindex = elementindex;
      menuitemindex = -1;
      contentchanging = 1;
      changeDirector(0, 1, elementindex);
    }
  }
}
function setDirectorImage(elementindex, elements){
  var htmltext;
  document.getElementById('divdirectorimage').style.top = (Math.floor((443 - listheight - directorgroupedimageheight[elementindex]) / 2) + 10).toString() + 'px';
  document.getElementById('divdirectorimage').style.height = (directorgroupedimageheight[elementindex] + 2).toString() + 'px';
  document.getElementById('divdirectorimage').innerHTML = '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + directorgroupedimagename[elementindex] + '.jpg" width="' + directorgroupedimagewidth[elementindex].toString() + '" height="' + directorgroupedimageheight[elementindex].toString() + '"></p>';
  if (elementindex == 0){
    htmltext = '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/leftsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/leftsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/leftsmallarrownormal.gif\';" onclick="this.src=\'images/leftsmallarrownormal.gif\'; setDirectorImage(' + (elementindex - 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divdirectorleftarrow').innerHTML = htmltext;
  document.getElementById('spandirectorcaption').innerHTML = (elementindex + 1).toString();
  if (elementindex == elements - 1){
    htmltext = '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setDirectorImage(' + (elementindex + 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divdirectorrightarrow').innerHTML = htmltext;
}
function setDirectorImages(elementindex){
  if (contentchanging == 0){
    directorindex = -1;
    contentchanging = 1;
    changeDirector(0, 2, elementindex);
  }
}
function setDirectorVideo(elementindex){
  if (contentchanging == 0){
    contentchanging = 1;
    changeDirector(0, 4, elementindex);
  }
}
function setDirectorVideos(elementindex){
  if (contentchanging == 0){
    directorindex = -1;
    contentchanging = 1;
    changeDirector(0, 3, elementindex);
  }
}
function setLanguage(){
  if (language == 1){
    calendarsubtitle = calendarsubtitleit;
    calendartext = calendartextit;
    calendartitle = calendartitleit;
    companyauthorizedcapital = companyauthorizedcapitalit;
    companycity = companycityit;
    companycountry = companycountryit;
    directorname = directornameit;
    directortext = directortextit;
    directorvideotitle = directorvideotitleit;
    menuitemtext = menuitemtextit;
    menuitemtitle = menuitemtitleit;
    menusectiontext = menusectiontextit;
    menusectiontitle = menusectiontitleit;
    photographername = photographernameit;
    photographertext = photographertextit;
    photographicbooksubtitle = photographicbooksubtitleit;
    photographicbooktext = photographicbooktextit;
    photographicbooktitle = photographicbooktitleit;
    photographicexhibitionsubtitle = photographicexhibitionsubtitleit;
    photographicexhibitiontext = photographicexhibitiontextit;
    photographicexhibitiontitle = photographicexhibitiontitleit;
    showsubtitle = showsubtitleit;
    showtext = showtextit;
    showtitle = showtitleit;
    televisionandmovieproductionsubtitle = televisionandmovieproductionsubtitleit;
    televisionandmovieproductiontext = televisionandmovieproductiontextit;
    televisionandmovieproductiontitle = televisionandmovieproductiontitleit;
  }
  else{
    calendarsubtitle = calendarsubtitleen;
    calendartext = calendartexten;
    calendartitle = calendartitleen;
    companyauthorizedcapital = companyauthorizedcapitalen;
    companycity = companycityen;
    companycountry = companycountryen;
    directorname = directornameen;
    directortext = directortexten;
    directorvideotitle = directorvideotitleen;
    menuitemtext = menuitemtexten;
    menuitemtitle = menuitemtitleen;
    menusectiontext = menusectiontexten;
    menusectiontitle = menusectiontitleen;
    photographername = photographernameen;
    photographertext = photographertexten;
    photographicbooksubtitle = photographicbooksubtitleen;
    photographicbooktext = photographicbooktexten;
    photographicbooktitle = photographicbooktitleen;
    photographicexhibitionsubtitle = photographicexhibitionsubtitleen;
    photographicexhibitiontext = photographicexhibitiontexten;
    photographicexhibitiontitle = photographicexhibitiontitleen;
    showsubtitle = showsubtitleen;
    showtext = showtexten;
    showtitle = showtitleen;
    televisionandmovieproductionsubtitle = televisionandmovieproductionsubtitleen;
    televisionandmovieproductiontext = televisionandmovieproductiontexten;
    televisionandmovieproductiontitle = televisionandmovieproductiontitleen;
  }
}
function setMap(){
  if (contentchanging == 0){
    menuitemindex = -1;
    contentchanging = 1;
    displayMap(0);
  }
}
function setMapZoom(mode){
  if (mode == 1){
    if (mapzoom > 1){
      -- mapzoom;
      document.getElementById('imgmap').src = 'images/map' + mapzoom.toString() + '.jpg';
    }
  }
  else{
    if (mapzoom < 6){
      ++ mapzoom;
      document.getElementById('imgmap').src = 'images/map' + mapzoom.toString() + '.jpg';
    }
  }
}
function setMenuItem(elementindex){
  if (backgroundchanging == 0 && contentchanging == 0){
    if (elementindex != menuitemindex){
      menuitemindex = elementindex;
      contentchanging = 1;
      changeContent(0, 2, elementindex);
    }
  }
}
function setMenuSection(elementindex){
  var counter;
  var htmltext;
  var items;
  htmltext = '';
  items = 0;
  if (pageinitialized == 1 && backgroundchanging == 0 && contentchanging == 0){
    if (elementindex != menusectionindex){
      backgroundchanging = 1;
      changeBackground(0);
      if (menusectionindex > 0){
        for (counter = 1; counter < menusectionid.length; ++ counter){
          if (counter > menusectionindex){
            document.getElementById('divmenusection' + counter.toString()).style.marginTop = '0';
          }
        }
        document.getElementById('divmenuitemsection' + menusectionindex.toString()).style.display = 'none';
      }
      for (counter = 0; counter < menuitemsectionid.length; ++ counter){
        if (menuitemsectionid[counter] == menusectionid[elementindex]){
          ++ items;
        }
      }
      if (elementindex > 0){
        menusectiontopmargin.length = 0;
        if (elementindex < menusectionid.length - 1){
          for (counter = 1; counter < menusectionid.length; ++ counter){
            menusectiontopmargin.push(0);
            if (counter > elementindex){
              expandMenuSection(1, counter, items * 20, elementindex);
            }
          }
        }
        else{
          expandMenuSection(2, elementindex, items * 20, elementindex);
        }
      }
      else{
        menusectionindex = -1;
        menuitemindex = -1;
      }
      contentchanging = 1;
      changeContent(0, 1, elementindex);
    }
    else{
      if (elementindex > 0){
        for (counter = 1; counter < menusectionid.length; ++ counter){
          if (counter > elementindex){
            document.getElementById('divmenusection' + counter.toString()).style.marginTop = '0';
          }
        }
        document.getElementById('divmenuitemsection' + elementindex.toString()).style.display = 'none';
      }
      menusectionindex = -1;
      menuitemindex = -1;
      contentchanging = 1;
      changeContent(0, 1, elementindex);
    }
  }
}
function setMetrics(){
  var page;
  var pageheight;
  var pagewidth;
  page = getDocumentSize();
  pagewidth = page.width;
  pageheight = page.height;
  if (Math.floor((pagewidth - 980) / 2) > 0){
    document.getElementById('divpage').style.left = Math.floor((pagewidth - 980) / 2).toString() + 'px';
  }
  else{
    document.getElementById('divpage').style.left = '0';
  }
  if (Math.floor((pageheight - 593) / 2) > 0){
    document.getElementById('divpage').style.top = Math.floor((pageheight - 593) / 2).toString() + 'px';
  }
  else{
    document.getElementById('divpage').style.top = '0';
  }
}
function setOpacity(element, opacity){
  if (opacity == 100){
    document.getElementById(element).style.filter = 'alpha(opacity = 100)';
    document.getElementById(element).style.opacity = '0.99999';
    document.getElementById(element).style.MozOpacity = '0.99999';
  }
  else{
    document.getElementById(element).style.filter = 'alpha(opacity = ' + opacity.toString() + ')';
    document.getElementById(element).style.opacity = (opacity / 100).toString();
    document.getElementById(element).style.MozOpacity = (opacity / 100).toString();
  }
}
function setPhotographer(elementindex){
  if (contentchanging == 0){
    if (elementindex != photographerindex){
      photographerindex = elementindex;
      menuitemindex = -1;
      contentchanging = 1;
      changePhotographer(0, 1, elementindex);
    }
  }
}
function setPhotographerImage(elementindex, elements){
  var htmltext;
  document.getElementById('divphotographerimage').style.top = (Math.floor((443 - listheight - photographergroupedimageheight[elementindex]) / 2) + 10).toString() + 'px';
  document.getElementById('divphotographerimage').style.height = (photographergroupedimageheight[elementindex] + 2).toString() + 'px';
  document.getElementById('divphotographerimage').innerHTML = '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + photographergroupedimagename[elementindex] + '.jpg" width="' + photographergroupedimagewidth[elementindex].toString() + '" height="' + photographergroupedimageheight[elementindex].toString() + '"></p>';
  if (elementindex == 0){
    htmltext = '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/leftsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/leftsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/leftsmallarrownormal.gif\';" onclick="this.src=\'images/leftsmallarrownormal.gif\'; setPhotographerImage(' + (elementindex - 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divphotographerleftarrow').innerHTML = htmltext;
  document.getElementById('spanphotographercaption').innerHTML = (elementindex + 1).toString();
  if (elementindex == elements - 1){
    htmltext = '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setPhotographerImage(' + (elementindex + 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divphotographerrightarrow').innerHTML = htmltext;
}
function setPhotographerImages(elementindex){
  if (contentchanging == 0){
    photographerindex = -1;
    contentchanging = 1;
    changePhotographer(0, 2, elementindex);
  }
}
function setPhotographicBook(elementindex){
  if (contentchanging == 0){
    if (elementindex != photographicbookindex){
      photographicbookindex = elementindex;
      menuitemindex = -1;
      contentchanging = 1;
      changePhotographicBook(0, 1, elementindex);
    }
  }
}
function setPhotographicBookImage(elementindex, elements){
  var htmltext;
  document.getElementById('divphotographicbookimage').style.top = (Math.floor((373 - photographicbookgroupedimageheight[elementindex]) / 2) + 10).toString() + 'px';
  document.getElementById('divphotographicbookimage').style.height = (photographicbookgroupedimageheight[elementindex] + 2).toString() + 'px';
  document.getElementById('divphotographicbookimage').innerHTML = '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + photographicbookgroupedimagename[elementindex] + '.jpg" width="' + photographicbookgroupedimagewidth[elementindex].toString() + '" height="' + photographicbookgroupedimageheight[elementindex].toString() + '"></p>';
  if (elementindex == 0){
    htmltext = '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/leftsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/leftsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/leftsmallarrownormal.gif\';" onclick="this.src=\'images/leftsmallarrownormal.gif\'; setPhotographicBookImage(' + (elementindex - 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divphotographicbookleftarrow').innerHTML = htmltext;
  document.getElementById('spanphotographicbookcaption').innerHTML = (elementindex + 1).toString();
  if (elementindex == elements - 1){
    htmltext = '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setPhotographicBookImage(' + (elementindex + 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divphotographicbookrightarrow').innerHTML = htmltext;
}
function setPhotographicBookImages(elementindex){
  if (contentchanging == 0){
    photographicbookindex = -1;
    contentchanging = 1;
    changePhotographicBook(0, 2, elementindex);
  }
}
function setPhotographicExhibition(elementindex){
  if (contentchanging == 0){
    if (elementindex != photographicexhibitionindex){
      photographicexhibitionindex = elementindex;
      menuitemindex = -1;
      contentchanging = 1;
      changePhotographicExhibition(0, 1, elementindex);
    }
  }
}
function setPhotographicExhibitionImage(elementindex, elements){
  var htmltext;
  document.getElementById('divphotographicexhibitionimage').style.top = (Math.floor((373 - photographicexhibitiongroupedimageheight[elementindex]) / 2) + 10).toString() + 'px';
  document.getElementById('divphotographicexhibitionimage').style.height = (photographicexhibitiongroupedimageheight[elementindex] + 2).toString() + 'px';
  document.getElementById('divphotographicexhibitionimage').innerHTML = '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + photographicexhibitiongroupedimagename[elementindex] + '.jpg" width="' + photographicexhibitiongroupedimagewidth[elementindex].toString() + '" height="' + photographicexhibitiongroupedimageheight[elementindex].toString() + '"></p>';
  if (elementindex == 0){
    htmltext = '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/leftsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/leftsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/leftsmallarrownormal.gif\';" onclick="this.src=\'images/leftsmallarrownormal.gif\'; setPhotographicExhibitionImage(' + (elementindex - 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divphotographicexhibitionleftarrow').innerHTML = htmltext;
  document.getElementById('spanphotographicexhibitioncaption').innerHTML = (elementindex + 1).toString();
  if (elementindex == elements - 1){
    htmltext = '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setPhotographicExhibitionImage(' + (elementindex + 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divphotographicexhibitionrightarrow').innerHTML = htmltext;
}
function setPhotographicExhibitionImages(elementindex){
  if (contentchanging == 0){
    photographicexhibitionindex = -1;
    contentchanging = 1;
    changePhotographicExhibition(0, 2, elementindex);
  }
}
function setPhotographicExhibitionVideo(elementindex){
  if (contentchanging == 0){
    photographicexhibitionindex = -1;
    contentchanging = 1;
    changePhotographicExhibition(0, 3, elementindex);
  }
}
function setPlayer(name){
  var flashattributes;
  var flashparameters;
  var flashvariables;
  flashattributes = {};
  flashattributes.id = 'player';
  flashattributes.name = 'player';
  flashattributes.quality = 'best';
  flashparameters = {};
  flashparameters.allowFullScreen = 'true';
  flashparameters.allowScriptAccess = 'always';
  flashparameters.bgcolor = playerbgcolor;
  flashparameters.menu = 'true';
  flashparameters.wmode = 'opaque';
  flashvariables = {};
  flashvariables.autoPlays = 'true';
  flashvariables.defaultVolume = '50';
  flashvariables.stageH = '240';
  flashvariables.stageW = '320';
  flashvariables.videoUrl = 'videobank/' + name + '.flv';
  swfobject.embedSWF('player.swf', 'divplayercontent', '320', '240', '9.0.27.0', 'expressinstall.swf', flashvariables, flashparameters, flashattributes);
}
function setShow(elementindex){
  if (contentchanging == 0){
    if (elementindex != showindex){
      showindex = elementindex;
      menuitemindex = -1;
      contentchanging = 1;
      changeShow(0, 1, elementindex);
    }
  }
}
function setShowImage(elementindex, elements){
  var htmltext;
  document.getElementById('divshowimage').style.top = (Math.floor((443 - listheight - showgroupedimageheight[elementindex]) / 2) + 10).toString() + 'px';
  document.getElementById('divshowimage').style.height = (showgroupedimageheight[elementindex] + 2).toString() + 'px';
  document.getElementById('divshowimage').innerHTML = '<p class="margin0000 center"><img class="border" alt="" src="imagebank/' + showgroupedimagename[elementindex] + '.jpg" width="' + showgroupedimagewidth[elementindex].toString() + '" height="' + showgroupedimageheight[elementindex].toString() + '"></p>';
  if (elementindex == 0){
    htmltext = '<p class="margin0000"><img alt="" src="images/leftsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/leftsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/leftsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/leftsmallarrownormal.gif\';" onclick="this.src=\'images/leftsmallarrownormal.gif\'; setShowImage(' + (elementindex - 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divshowleftarrow').innerHTML = htmltext;
  document.getElementById('spanshowcaption').innerHTML = (elementindex + 1).toString();
  if (elementindex == elements - 1){
    htmltext = '<p class="margin0000"><img alt="" src="images/rightsmallarrowdisabled.gif" width="15" height="25"></p>';
  }
  else{
    htmltext = '<p class="margin0000"><img class="cursorpointer" alt="" src="images/rightsmallarrownormal.gif" width="15" height="25" onmouseover="this.src=\'images/rightsmallarrowhighlighted.gif\';" onmouseout="this.src=\'images/rightsmallarrownormal.gif\';" onclick="this.src=\'images/rightsmallarrownormal.gif\'; setShowImage(' + (elementindex + 1).toString() + ', ' + elements.toString() + ');"></p>';
  }
  document.getElementById('divshowrightarrow').innerHTML = htmltext;
}
function setShowImages(elementindex){
  if (contentchanging == 0){
    showindex = -1;
    contentchanging = 1;
    changeShow(0, 2, elementindex);
  }
}
function setShowVideo(elementindex){
  if (contentchanging == 0){
    showindex = -1;
    contentchanging = 1;
    changeShow(0, 3, elementindex);
  }
}
function setTelevisionAndMovieProduction(elementindex){
  if (contentchanging == 0){
    if (elementindex != televisionandmovieproductionindex){
      televisionandmovieproductionindex = elementindex;
      menuitemindex = -1;
      contentchanging = 1;
      changeTelevisionAndMovieProduction(0, 1, elementindex);
    }
  }
}
function setTelevisionAndMovieProductionImage(elementindex){
  if (contentchanging == 0){
    televisionandmovieproductionindex = -1;
    contentchanging = 1;
    changeTelevisionAndMovieProduction(0, 2, elementindex);
  }
}
function setTelevisionAndMovieProductionVideo(elementindex){
  if (contentchanging == 0){
    televisionandmovieproductionindex = -1;
    contentchanging = 1;
    changeTelevisionAndMovieProduction(0, 3, elementindex);
  }
}
initHtml();
