jQuery(function() {
	$('a[href^="#"]').live('click', function(E){E.preventDefault()});

   $('img.szines').hover(
    		function() {
    			$(this).stop().animate({"opacity": "0"}, "slow");
    		},
    		function() {
    			$(this).stop().animate({"opacity": "1"}, "slow");
    		}
    );
    /*$("#MorePictures").click (function(e){
    	$(".images").toggle();
    	$(".images.first").attr('style', 'display:block');
    });*/

    $(".backtotop").click (function(e){
    	 $('html, body').animate({scrollTop:0}, 'slow');
    	  return false; 
    });
    
    /*
     * Language change
     */   
    $(".languages a").click(function(e){
    	e.preventDefault();
		$(this).closest('form').submit();
	});

	if($('#yourSliderId').length > 0) {
	    $('#yourSliderId').DDSlider({
	    	//nextSlide: '.slider_arrow_right',
	    	//prevSlide: '.slider_arrow_left',
	    	selector: '.slider_selector',
	    	allow_resize: true,
	    	delay: 50,
	    	ase: 'swing',
	    	waitTime: 4000, 
	    	duration: 500, 
	    	stopSlide: 1,
	    	bars: 15, 
	    	columns: 9, 
	    	rows: 3, 
	    	arrowNext: null, 
	    	arrowPrev: null 
	    });
	}
});

