 $(function() {
  			
            var path = location.pathname;
             Cufon('#app, #infra, #customer, #mobile, #digital'); 

            if( path ) {
               if ($('.menu a[href$="' + path + '"]').length > 0 ) {       
                $('.menu a[href$="' + path + '"]').attr('class','subActive');
                $('.menu a[href$="' + path + '"] span').attr('class','arrowActive');
                }
           }
    if(path.match('/application-services'))
    {
    $('#app').attr('class','activeItem');
    $('#app-expand').addClass('expand');
    };
    if(path.match('/infrastructure-services'))
    {
    $('#infra').attr('class','activeItem');
    $('#infra-expand').addClass('expand');
    };

	if(path.match('/customer-support-services'))
    {
    $('#customer').attr('class','activeItem');
    $('#customer-expand').addClass('expand');
    };
    if(path.match('/mobile-communication'))
    {
    $('#mobile').attr('class','activeItem');
    };
    
    if(path.match('/digital-strategy-marketing-design'))
    {
    $('#digital').attr('class','activeItem');
    $('#digital-expand').addClass('expand');
    $('#app').removeClass('activeItem');
    $('#app-expand').removeClass('expand');
    };
if(path.match('/digital'))
    {
    $('#digital').attr('class','activeItem');
    $('#digital-expand').addClass('expand');
    $('#app').removeClass('activeItem');
    $('#app-expand').removeClass('expand');
    };



/*
    // Hide all the content except the first
    $('.left-nav li:odd:gt(0)').hide();
    
    // Add the subMenu class to all the content
    $('.left-nav li:odd').addClass('subMenu');
    
    // Set the even links with an 'not-active' class
    $('.left-nav li:even').addClass('not-active');
    
    // Set the odd links with a 'active' class
    //$('.left-nav li:even:odd').addClass('active');
    
    // Show the correct cursor for the links
    $('.left-nav li:even').css('cursor', 'pointer');
    
	// If last item is clicked, go to the mobile page	
  	$('.left-nav li:last').click( function() {
    window.location.href = '/it-solutions/mobile-communication/Pages/default.aspx';
    });
	
    
    // Handle the click event
    $('.left-nav li:even').click( function() {
        // Get the content that needs to be shown
        var cur = $(this).next();
        
        // Get the content that needs to be hidden
        var old = $('.left-nav li:odd:visible');
                
        // Make sure the content that needs to be shown 
        // isn't already visible
        if ( cur.is(':visible') )
            return false;
        
        // Hide the old content
        old.slideToggle(500);
        
        // Show the new content
        cur.stop().slideToggle(500);
       
    });
*/
});

