/*----------------------------------------------
js/init.js | Custom01 | IE misalignment top nav when last page name has 2 words
uportnykh@gmail.com, Sub:requirementsinc - ENews files.

Removed:
Custom01 (commented)

Replace
var catmenuwidth = jQuery("ul#cats-menu").width();

with:
var catmenuwidth = jQuery("ul#cats-menu").width();
jQuery("ul#page-menu").css('padding-left',60);



----------------------------------------------*/










jQuery(function(){
	jQuery.noConflict();
	jQuery('ul.superfish').superfish({ 
		delay:       200,                            // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  true,                           // disable generation of arrow mark-up 
		dropShadows: false                            // disable drop shadows 
    }); 
	
/* Custom01		
		var pagemenuwidth = jQuery("ul#page-menu").width();
		var pagemleft = Math.round((950 - pagemenuwidth) / 2);
		if (pagemenuwidth < 950) jQuery("ul#page-menu").css('padding-left',pagemleft);
*/ 
		 
		var catmenuwidth = jQuery("ul#cats-menu").width();
		jQuery("ul#page-menu").css('padding-left',110);		//hard-coded to center
		var catmleft = Math.round((950 - catmenuwidth) / 2);
		 if (catmenuwidth < 950) jQuery("ul#cats-menu").css('padding-left',catmleft);
	
	var maxHeight = 0;
	jQuery("#footer-widgets-inside .widget").each(function() {
		if ( jQuery(this).height() > maxHeight ) { maxHeight = jQuery(this).height(); }
	}).height(maxHeight);
});