// Only show scrollbars if the browser window is less than 1024 width

document.documentElement.style.overflowX = 'hidden';
sizeHandler();

$(window).resize(function() {
    sizeHandler();
});

function sizeHandler()
{
    if($(window).width() > 1024) {
        document.documentElement.style.overflowX = 'hidden';
    }
    else {
        document.documentElement.style.overflowX = 'auto';
    }
}

/* This is extension for top navigation */
$(document).ready(function() {
	$('#extended-navigation').mouseenter(function(e){
		$(this).css({'background-color':'#FFFFFF'});
		$(this).children('ul').css({'visibility':'visible'});
		});
	$('#extended-navigation').mouseleave(function(e){
		$(this).css({'background-color':''});
		$(this).children('ul').css({'visibility':'hidden'});
		});
});
/* end of This is extension for top navigation */
