/** rtr 2008
 *
 * @param {Object} viewer
 * @param {url} base_host
 */

function prepare_viewer(viewer, base_host) {

  // wenn enable -> beim Diashow verschwindet die Navigation
  //viewer.enableToolbarAnimator();
 
  // specifiy where images for the control are located
  viewer.setImageRoot(base_host + "/pix/fotos2008");
  // font size in toolbar
  viewer.setFontSize(10);
  // color of the border
  viewer.setBackgroundColor('#FFFFFF');
  // add your custom image map to the viewer
  viewer.setControlsImageMap(customImgMap);
  // Wie lange sollen Bilder angezeigt werden? (Millisekunden)
  viewer.setSlideDuration(5000);
    
}

function getPartnerLink() {
 window.open('http://adserver.adtech.de/?adlink|3.0|681|1358605|1|16|AdId=1545157;BnId=1;link=http://www.pixum.de/meinestadt_prints', 'Pixum', 'width=1000,height=800');
}

function setVars() {
    
  // you can override any global variable
  TOOLBAR_IMG = "diashow-play.gif";
  TOOLBAR_IMG_RUNNING = "diashow-pause.gif";
  TOOLBAR_IMG_LOADING = "loading-anim.gif";
  // this one is without an extensions, because of the indexed version of controls background
  //TOOLBAR_IMG_BACK = "back";
  TOOLBAR_IMG_BACK = "";
  
  // Transparence
  TOOLBAR_OPACITY = 1.0;
  
  // dimensions of the controls background
  TOOLBAR_W = 405;
  TOOLBAR_H = 90;
  // dimensions of the controls image
  TOOLBAR_IMG_W = 400;
  TOOLBAR_IMG_H = 85;
  
  // location of the loading icon
  TOOLBAR_IMG_LOADING_LEFT = 290;
  TOOLBAR_IMG_LOADING_TOP = 57;
 
  // absolute location of byline text
  BYLINE_POSITION_RIGHT = 100;
  BYLINE_POSITION_BOTTOM = 50;
  
  TOOLBAR_FONT_COLOR = "#000";
  TOOLBAR_FONT_STYLE = "verdana";
    
}