navHover = function() {
	
	if(typeof(document.getElementById("navmenu-v"))!='undefined' && typeof(document.getElementById("navmenu-v"))!='' && typeof(document.getElementById("navmenu-v"))!='null'){

		var lis = document.getElementById("navmenu-v").getElementsByTagName("LI");

			for (var i=0; i<lis.length; i++) {
				lis[i].onmouseover=function() {
					this.className+=" iehover";
				}
				lis[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" iehover\\b"), "");
				}
			}

	}
}
/* atteve bdtbase-be*/
if (window.attachEvent) window.attachEvent("onload", navHover);

window.onload = function(){


/*	if(jQuery('.KisKepekBox')){
		$(".KisKepekBox").jCarouselLite({
			btnNext: ".kovetkezo",
			btnPrev: ".elozo",
			circular: false,
			visible: 5.1,
			scroll: 5
		});
*/		
		
		
		
/*	}
*/
	if(jQuery('#LogoMenuKont').height()<260){
		jQuery('#LogoMenuKont').height(260);
	}
	jQuery('#LogoMenuKont, #FelsoAktualisKont').equalHeight();	
	jQuery('#FelsoKepBoxKont').height(jQuery('#LogoMenuKont').height());
	jQuery('#FelsoKepBoxKont,').width(jQuery('#FelsoAktualisKont').width()-10);
	FelsoKepBoxKontHeight = jQuery('#FelsoKepBoxKont').height();
	jQuery('#KozepSav, #JobbSav').equalHeight();
	
	KozepSavHeight = jQuery('#KozepSav').height();
	JobbSavHeight = jQuery('#JobbSav').height();

	jQuery('#navmenu-v').css('margin-top','0');
/*	jQuery('.GaleriaKiskepBefoglalo').css('margin-top','0');*/
	
	
	$('#FelsoKepBoxKont').cycle({
		random:  1 ,
		fx:     'fade',
		/*fx:     'scrollDown',*/
		/*easing: 'easeOutBounce',*/
		/*easing: 'fade',*/
		/*easing: 'easeInQuad',*/
		speed:   1100,
		timeout: 9000,
		delay:  -5000,
		fit: 1,
		height: FelsoKepBoxKontHeight
		
	});

	$('#PartnerBoxBannerek').rotator({n:2, ms:6000, autoHeight:true});	
	
	
	
}

$(document).ready(function() {

		$("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal', /* fast/slow/normal */
			padding: 20, /* padding for each side of the picture */
			opacity: 0.5, /* Value betwee 0 and 1 */
			showTitle: true, /* true/false */
			allowresize: true, /* true/false */
			counter_separator_label: '/' /* The separator for the gallery counter 1 "of" 2 */
		});

	
});

