// Call Cufon font
Cufon.replace('h3, h1');


$().ready(function() {

// Markt slidetoggle and add class
$(".infoblock").hide();
	$('.markt-info-toggle').click(function() {
		$(this).next('.infoblock').slideToggle('slow'); 
		$(this).toggleClass('active');
	});
   
// SMOOTHSCROLL ANCHOR LINKS
$(function(){
    $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 750);
                return false;
            }
        }
    });
});

// BASE HREF ANCHOR LINKS FIX
jQuery("a[ href ^= '#' ]").each(function() {
        var href = window.location + jQuery(this).attr('href').replace('/#.*/i','');
        jQuery(this).attr('href',href);
    });
  
		
// CALL HOMEPAGE SLIDER		
$('#coda-slider-1').codaSlider({  });


  
});
