/* slider data - de */
var data_index = { // index
  '2.jpg':{caption: ''}, '15.jpg':{caption: ''}, '7.jpg':{caption: ''}, '3.jpg':{caption: ''}, '4.jpg':{caption: ''}, '6.jpg':{caption: ''}
};
var data_product = { //product
  '11.jpg':{caption: ''}, '8.jpg':{caption: ''}, '10.jpg':{caption: ''}, '14.jpg':{caption: ''}, '11.jpg':{caption: ''}
};
var data_contact = { // contact
  '8.jpg':{caption: ''}, '10.jpg':{caption: ''}, '16.jpg':{caption: ''}, '6.jpg':{caption: ''}, '11.jpg':{caption: ''}
};
var data_imprint = { // imprint
  '9.jpg':{caption: ''}, '6.jpg':{caption: ''}, '3.jpg':{caption: ''}, '8.jpg':{caption: ''}, '11.jpg':{caption: ''}
};

/* slider index data - en */
var data_index_en = { // index
  '2.jpg':{caption: ''}, '15.jpg':{caption: ''}, '7.jpg':{caption: ''}, '3.jpg':{caption: ''}, '4.jpg':{caption: ''}, '6.jpg':{caption: ''}
};

/* init slider */
function init_slide(mydata, l) {
var huPath = '';
switch(l){
  case 'de': 
    huPath = 'img/banner'; break;
  case 'en': 
    huPath = '../img/banner'; break;    
}
var myShow = new Slideshow('show', mydata, {
  controller: false, 
  delay: 8500, 
  duration: 1000,
  height: 180, 
  hu: huPath, 
  thumbnails: false, 
  width: 520
  });
}

/* init tips */
function init_tipz() {   
  //store titles and text   
  $$('.tipz').each(function(element,index) {   
      var content = element.get('title').split('::');   
      element.store('tip:title', content[0]);   
      element.store('tip:text', content[1]);   
  });   
     
  //create the tooltips   
  var tipz = new Tips('.tipz',{   
      className: 'tipz', 
      offsets: {'x': -10, 'y': 10},
      //fixed: true,   
      showDelay: 200,   
      hideDelay: 50
  });   
}

/* init multibox */
var box = {};
function init_mmbox(){
  if($$('.mb').length > 0)  //only triggered if 'mb' class found on page
  {
    box = new multiBox('.mb', {
      //descClassName: 'multiBoxDesc',  //the class name of the description divs
      path: './lib/files/',   //path to mp3 and flv players
      useOverlay: true,       //use a semi-transparent background. default: false;
      maxWidth: 800,          //max width (set to false to disable)
      maxHeight: 600,         //max height (set to false to disable)
      addDownload: false,     //do you want the files to be downloadable?
      pathToDownloadScript: './Scripts/ForceDownload.asp',//if above is true, specify download script
      addRollover: false,     //add rollover fade to each multibox link
      addOverlayIcon: false,  //adds overlay icons to images within multibox links
      addChain: false,        //cycle through all images fading them out then in
      recalcTop: true,        //subtract the height of controls panel from top position
      showNumbers: false,
      showControls: false
    });
  };
}

