// JavaScript Document

document.getElementsByClassName = function(className){
    var nodes = document.getElementsByTagName('*');
    var matches = new Array();
    for(i=0;i<nodes.length;i++){
        var tmp = nodes[i].getAttribute('class') || nodes[i].getAttribute('className');
        if(tmp == className) matches[matches.length] = nodes[i];
    }
    return matches;
}

function szovegNagyit(meret){
	if(meret==0){
		document.getElementById('content').style.fontSize="12px";
		var fooldal = document.getElementsByClassName('leiras');
		var i = 0;
		while(i<fooldal.length){
			fooldal[i].style.fontSize="11px";
			i++;
		}
		
		var fooldCim = document.getElementsByClassName('fooldCim');
		var i = 0;
		while(i<fooldCim.length){
			fooldCim[i].style.fontSize="14px";
			i++;
		}

	}
	else if(meret==1){
		document.getElementById('content').style.fontSize="14px";
		var fooldal = document.getElementsByClassName('leiras');
		var i = 0;
		while(i<fooldal.length){
			fooldal[i].style.fontSize="14px";
			i++;
		}
		
		var fooldCim = document.getElementsByClassName('fooldCim');
		var i = 0;
		while(i<fooldCim.length){
			fooldCim[i].style.fontSize="16px";
			i++;
		}
	}
	else{
		document.getElementById('content').style.fontSize="16px";
		var fooldal = document.getElementsByClassName('leiras');
		var i = 0;
		while(i<fooldal.length){
			fooldal[i].style.fontSize="16px";
			i++;
		}
		
		var fooldCim = document.getElementsByClassName('fooldCim');
		var i = 0;
		while(i<fooldCim.length){
			fooldCim[i].style.fontSize="18px";
			i++;
		}
	}
}

$(function() {
	
	$(".cssDays1").hover(function() {
		if($(this).children(".tooltip").text().length > 0) {
			$(this).children(".tooltip").show();
		}
	}, function() {
		$(this).children(".tooltip").hide();
	});
	
	if($.browser.msie && parseInt($.browser.version) < 7) {
		//$(".hidden").hide();	
	}
    
    $(".faq a").click(function() {
        $(".answer").hide();
        $(".faq a").each(function() {
            $(this).children("span").text("[+]");    
        });
        var a = $(this);
        $(this).next().slideDown(300, function() {
            a.children("span").text("[-]");    
        });
    });
	
});
