
// 3 : 2
var primaryNav = {
  mouseover: function() {
    $(this).addClass('over');
    $(this).children('a.lvl2').addClass('over');
    $(this).children('ul.lvl3').show();    
    if ($.browser.msie) {
	var h = $(this).children('ul.lvl3').height();
	var w = $(this).children('ul.lvl3').width() + 1;
	$(this).children('iframe').height(h).width(w).show();
    }
  },
  mouseout: function() {
    $(this).removeClass('over');
    $(this).children('a.lvl2').removeClass('over');
    $(this).children('ul.lvl3').hide();
    if ($.browser.msie)
        $(this).children('iframe').hide();
  },
  init: function() {
    this.setup();
    $('#primaryNav > li').hover(this.mouseover, this.mouseout);
    $('#primaryNav ul.lvl3 li').hover(function() { $(this).addClass('over'); }, function() { $(this).removeClass('over'); });
  },
  setup: function() {
    $('#primaryNav > li').append('<ul class="lvl3" style="display: none;">');
	// Remove everything from the Company and Services navigation drop down menu since there are no links.
    if ($.browser.msie) // iframe to fix dropdowns over select items
        $('#primaryNav > li').append('<iframe style="display: none;" src="javascript:false;" frameBorder="0" scrolling="no"></iframe>');
			// Remove everything from the Company and Services navigation drop down menu since there are no links.
  
    
        
	          $('#navServices ul.lvl3')
	          
	          
		          
		          .append('<li class="f">Overview')
		      
		          
		          .append('<li>Onsite and Remote Consulting')
		      
		          
		          .append('<li>Project Management')
		      
		          
		          .append('<li>Website Design')

		          
		          .append('<li class="l">Training');
		      
			

  
    
        
	          $('#navProducts ul.lvl3')
	          
	          
		          
		          .append('<li class="f">Overview')
		      
		          
		          .append('<li>Law Enforcement Suite Products')
		      
		          
		          .append('<li>Training Products')
		      
		          
		          .append('<li class="l">Business Intelligence Developer Tools');
		      
		          

		      
			

  
    
        
	          $('#navTraining ul.lvl3')
	          
	          
		          
		          .append('<li class="f">Overview')
		      
		          
		          .append('<li>Microsoft Developer Curriculum')
		      
		          
		          .append('<li>Microsoft Office Curriculum')
		      
		          
		          .append('<li>Microsoft Database Curriculum')
		      
		          
		          .append('<li>Microsoft Business Intelligence Curriculum')
		      
		          
		          .append('<li class="l">Other Curriculum Venues');
		      
			

  
    
        
	          $('#navCustomers ul.lvl3')
	          
	          
		          
		          .append('<li class="f">Login')
		      
		          
		          .append('<li>Register')
		      
		          
		          .append('<li class="l">Inquiry');
		      
  
			

  
    
        
	          $('#navCompany ul.lvl3')
	          
	          
		          
		          .append('<li class="f">Email')		      
		          
		          
		          .append('<li>Telephone')
		      
		          
		          .append('<li class="l">Postal Mail');
		      
		          

  }
}

$(function(){ primaryNav.init(); });


