$(document).ready(function() {
  /* $('#slider').coinslider({ width: 445, height: 188, delay: 5000, effect: 'rain' });
  equalHeight($("#main, #right"));
  equalHeight($("#right, #left"));
  */

  $("a[rel=produkt]").fancybox({
  	'transitionIn'  : 'fadeIn',
  	'transitionOut' : 'fadeOut',
  	'titlePosition' : 'over',
  	'titleFormat'   : function(title, currentArray, currentIndex, currentOpts) {
  		return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
  	}
  });
  
 $("a[rel=galeria]").fancybox({
  	'transitionIn'  : 'fadeIn',
  	'transitionOut' : 'fadeOut',
  	'titlePosition' : 'over',
  	'titleFormat'   : function(title, currentArray, currentIndex, currentOpts) {
  		return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
  	}
	});
		

  $(".galeria a").fancybox({
  	'transitionIn'  : 'fadeIn',
  	'transitionOut' : 'fadeOut',
  	'titlePosition' : 'over',
  	'titleFormat'   : function(title, currentArray, currentIndex, currentOpts) {
  		return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
  	}
	});
  	var height = $('#content').height(); 
		var rheight = $('.right-col2').height(); 
		var lheight = $('#left-col').height(); 
		if(height < rheight){
			var height_diff = rheight + 20 + 'px';
			document.getElementById('container').style.height = height_diff; 
			document.getElementById('left-col').style.height = height_diff; 
		}else if(height > rheight && height > lheight){
			var height_diff = height + 20 + 'px';
			document.getElementById('container').style.height = height_diff; 
		}else if(height > rheight && height < lheight){
			var height_diff = height + 20 + 'px';
			document.getElementById('left-col').style.height = height_diff; 
		}

});  
function initMenu() {
  $('#menu ul').hide();
  $('#menu li a').click(
    function() {
        $(this).next().slideToggle('normal');	
      });
  }
  $(document).ready(function() {
		initMenu();

		
});
	
