
$(document).ready(
        
    function()    
    {        
        var allCareerQuotes = $(".careerQuote");        
        var selectedQuote = $(".selectedQuote");
        var inMarkUp = $(".inMarkUp").length > 0 ? $(".inMarkUp")[0].value == "True" : false;
        
        if (!inMarkUp)
        {
    
        //on menu item mouse over.
        $(".careersnav > ul > li").mouseover(
            function() 
            {                                     
                var jQuerySelectedItem = $(this);
                
                if (jQuerySelectedItem.length > 0)
                {                
                    var selectedItem = jQuerySelectedItem[0];
                
                    if (selectedItem.parentNode != null)
                    {                                    
                        for (var i=0; i<selectedItem.parentNode.childNodes.length; i++)
                        {                        
                            if (selectedItem == selectedItem.parentNode.childNodes[i])
                            {                                                                   
                                if (allCareerQuotes.length > 0)
                                {                                    
                                    allCareerQuotes.hide();     
                                    
                                    if (selectedQuote.length > 0)
                                        selectedQuote.hide();
                                    
                                    if (allCareerQuotes.length >= i)
                                        $(allCareerQuotes[i]).show();                                                                        
                                }                                                                
                                                                                                                                    
                                break;
                            }
                        }
                    }
                }                                
            }                                               
        );                                                                             
        
        $(".careersnav").mouseout(
            function()
            {            
                if (allCareerQuotes.length > 0)
                    allCareerQuotes.hide();                                                                                            
                
                if (selectedQuote.length > 0)
                    selectedQuote.show();                
            }            
        );
        
        }
    }                    
);