/**
 * Init Tickers
 */
//var tickers = [];
//$$("ul.ticker").each(function(el) {
//	tickers.push(new Ticker(el));
//});

/**
 * Init Galleries
 */
var galleries = [];
$$(".jd-gallery").each(function(el) {
	  var config = {
		  timed:true,
		  delay: 6000,
		  embedLinks: false,
		  showInfopane: false,
		  textShowCarousel: 'Bilder'
	  };
	  var images = el.getElements("div.imageElement");
	  if (images.length > 1) {
		  config.useReMooz = true;
	  }
	  var gal = new gallery(el, config);
	  galleries.push(gal);
});

/**
 * Init Tooltips
 */
var tips = new Tips(".tooltip");

/**
 * Init columns height
 */
function initColHeight() {
	var c3 = $('col3_content')
	    c2 = $('col2_content');
	if (c3.offsetHeight !== c2.offsetHeight)
	  c2.style.height = c3.offsetHeight + "px";
}
initColHeight();
window.addEvent('load', function() {
    initColHeight();
});

