﻿function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

$(document).ready(function()
{	

		
	//snowStorm.flakesMaxActive = 40;  // show more snow on screen at once
	//snowStorm.useTwinkleEffect = true; // let the snow flicker in and out of view
	
	$('marquee').marquee("scrollingtext").mouseover(function () {
		  $(this).trigger('stop');
		}).mouseout(function () {
		  $(this).trigger('start');
		});
	
	$('.menulink').mouseover(function()
	{
		$("*").removeClass("aktivmenulink");
		$(this).toggleClass("aktivmenulink");
		$('#almenu').empty();
		$(this).next('.almenulista').clone().appendTo($('#almenu'));
	});
	
	$("#nyitvatartas").click(function(){
		//this.style.height = '';
		if($(this).css('height') == "auto")	{
			$(this).css('height', '275px');
		}
		else	{
			$(this).css('height', 'auto');
		}				
	});
	
	$(".nyitvatartas_bottom").click(function(){
		//this.style.height = '';
		if($("#nyitvatartas").css('height') == "auto")	{
			$("#nyitvatartas").css('height', '275px');
		}
		else	{
			$("#nyitvatartas").css('height', 'auto');
		}				
	});
	
	$("#welcome_more").click(function(ev)	{		//
		ev.preventDefault();
		if($("#welcome_content").is(":visible"))	{
			$("#welcome_content").hide();
		}
		else	{
			$("#welcome_content").show();			
		}						
	});
	
	autoScroller('akcio_text_container', 2);		
});
