
// 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;">');
    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>');


  
    
        
	          $('#navSolutions ul.lvl3')
	          
	          
		          
		          .append('<li class="f"><a href="http://www.borland.com/us/solutions/index.html" name="&lid=//solutions//Overview">Overview</a>')
		          
		          .append('<li><a href="http://www.borland.com/us/solutions/requirements-definition-management/index.html" name="&lid=//solutions//Requirements Definition & Management">Requirements Definition & Management</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/solutions/lifecycle-quality-management/index.html" name="&lid=//solutions//Testing and ASQ">Testing and ASQ</a>')
		      
		          
		          .append('<li class="l"><a href="http://www.borland.com/us/solutions/change-management/index.html" name="&lid=//solutions//Change Management">Change Management</a>');
		      
			

  
    
        
	          $('#navProducts ul.lvl3')
	          
	          
		          
		          .append('<li class="f"><a href="http://www.borland.com/us/products/index.html" name="&lid=//products//Overview">Overview</a>')
		          
		          .append('<li><a href="http://www.borland.com/us/products/teamdefine/index.html" name="&lid=//products//TeamDefine">TeamDefine</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/products/caliber/index.html" name="&lid=//products//CaliberRM">CaliberRM</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/products/together/index.html" name="&lid=//products//Together">Together</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/products/silk/index.html" name="&lid=//products//Silk">Silk</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/products/starteam/index.html" name="&lid=//products//StarTeam">StarTeam</a>')
		      
		          
		          .append('<li class="l"><a href="http://www.borland.com/us/products/middleware/index.html" name="&lid=//products//Application Middleware">Application Middleware</a>');
		      
			
        
	          $('#navCustomers ul.lvl3')
	          
	          
		          
		          .append('<li class="f"><a href="http://www.borland.com/us/customers/index.html" name="&lid=//customers//Overview">Overview</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/customers/profiles/view-by-solution.jsp" name="&lid=//customers//View by Solution">View by Solution</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/customers/profiles/view-by-product.jsp" name="&lid=//customers//View by Product">View by Product</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/customers/profiles/view-by-industry.jsp" name="&lid=//customers//View by Industry">View by Industry</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/customers/profiles/view-by-geography.jsp" name="&lid=//customers//View by Geography">View by Geography</a>')
		      
		          
		          .append('<li class="l"><a href="http://www.borland.com/us/customers/profiles/view-all-customers.jsp" name="&lid=//customers//View All Customers">View All Customers</a>');
		      
			

  
    
        
	          $('#navPartners ul.lvl3')
	          
	          
		          
		          .append('<li class="f"><a href="http://www.borland.com/us/partners/index.html" name="&lid=//partners//Overview">Overview</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/partners/directory/americas/index.html" name="&lid=//partners//Find a Partner">Find a Partner</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/partners/become/index.html" name="&lid=//partners//Become a Partner">Become a Partner</a>')
		      
		          
		          .append('<li class="l"><a href="http://www.borland.com/us/partners/technology/index.html" name="&lid=//partners//Technology Partners">Technology Partners</a>');
		      
			

  
    
        
	          $('#navResourceCenter ul.lvl3')
	          
	          
		          
		          .append('<li class="f"><a href="http://www.borland.com/us/rc/index.html" name="&lid=//rc//Overview">Overview</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/rc/open-application-lifecycle-management/index.html" name="&lid=//rc//Open Application Lifecycle Management">Open Application Lifecycle Management</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/rc/requirements-definition-management/index.html" name="&lid=//rc//Requirements Definition &amp; Management">Requirements Definition &amp; Management</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/rc/model-driven-development/index.html  " name="&lid=//rc//Model Driven Development">Model Driven Development</a>')
		      
		          
		          .append('<li><a href="http://www.borland.com/us/rc/lifecycle-quality-management/index.html" name="&lid=//rc//Testing and ASQ">Testing and ASQ</a>')
		      
		          
		          .append('<li class="l"><a href="http://www.borland.com/us/rc/change-management/index.html" name="&lid=//rc//Change Management">Change Management</a>');

		      
			

  }
}

$(function(){ primaryNav.init(); });

