jQuery.noConflict();

jQuery(document).ready(function(){

    jQuery("ul.sf-menu").supersubs({ 

        minWidth:    12,                                // minimum width of sub-menus in em units 

        maxWidth:    27,                                // maximum width of sub-menus in em units 

        extraWidth:  1                                  // extra width can ensure lines don't sometimes turn over 

                                                        // due to slight rounding differences and font-family 

    }).superfish({ 

        delay:       400,                               // delay on mouseout 

        animation:   {height:'show'},    				// fade-in and slide-down animation   (opacity:'show',)

        speed:       'fast',                            // faster animation speed 

        autoArrows:  false,                             // disable generation of arrow mark-up 

        dropShadows: false                              // disable drop shadows 

    });


	/* Last Borders Removing code */
	jQuery("ul.sf-menu ul").each(function(){
		jQuery(this).children(':last').children(0).css('border-bottom','none');									  
	});

	jQuery("div#tool-nav ul ul").children(':last').children(0).css('background','none');

	jQuery("div#menuclone ul").children(':last').children(0).css('background','none');

	

	/***********************************************************************************************************/

	/*
	var menuULWidth = parseFloat(jQuery("ul.sf-menu ul").css('width'));

	//12.8462 - 3 
	menuULWidth=menuULWidth-(menuULWidth/4)+(menuULWidth*(menuULWidth/600));
	jQuery("ul.sf-menu ul").css('width',menuULWidth+'em');
	*/

	
	jQuery("ul.sf-menu ul").each(function(){
										   
										   
		/* Drop down Navigation width adjust */
		var menuULWidth = parseFloat(jQuery(this).css('width'));
	
		//12.8462 - 3 
		menuULWidth=menuULWidth-(menuULWidth/4)+(menuULWidth*(menuULWidth/600));
		//jQuery(this).css('width',menuULWidth+'em');
		/************/

	});
	/*************************************************************************************************************/

	

});


