jQuery(document).ready(function(){	
	jQuery(function() {
		jQuery('#banner-slider .images').nivoSlider({
			effect: 'fade',
			animSpeed: 800,
			pauseTime: 6000,
			directionNav: false,
			controlNav: true,
			manualAdvance: false,
			captionOpacity: 0.6
			});	
	});

	//add class on last navigation
		if(jQuery("#navigation li:nth-child(7)").hasClass("selected")){
			jQuery("#navigation li:nth-child(7)").addClass("active")
		}
	
	//selected lang show at top
	jQuery("#languageSelector li").each(function(){
			if(jQuery(this).hasClass("active"))
			jQuery(".current").html(jQuery(this).find("a").html())
	})
});

//equal height for navigation
function setEqualHeight(columns)
 {
 var tallestcolumn = 0;
 columns.each(
 function()
 {
 currentHeight = $(this).height();
 if(currentHeight > tallestcolumn)
 {
 tallestcolumn  = currentHeight;
 }
 }
 );
 columns.height(tallestcolumn);
 }
jQuery(document).ready(function() {
 setEqualHeight(jQuery("#navigation ul > li"));
});
