﻿// JScript File

    function JustifyMenu ()   
    {   
        var menu = <%=RadMenu1.ClientID%>;   
        var width = menu.DomElement.offsetWidth;   
//var width = 642;
        var singleItemLength = Math.floor(width/menu.Items.length)-0+"px";   
       // due to incorrect rounding;   
       // You may need to subtract a larger number depending on   
       // the skin that you are using.    
            
        for (var i = 0; i < menu.Items.length; i ++)   
        {   
           var li = menu.Items[i].DomElement;   
           li.style.width = singleItemLength;   
         } 
   }   
   window.onresize = window.onload = JustifyMenu;

