
// 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.
	$('#primaryNav #navCompany ul').empty();
	$('#primaryNav #navServices ul').empty();
    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.
			$('#primaryNav #navCompany iframe').empty();
			$('#primaryNav #navServices iframe').empty();

  

        
	          $('#navSolutions ul.lvl3')

	          

		          .append('<li class="f"><a href="/solutions/index.html" name="&lid=//solutions//Overview">Overview</a>')

		          
		          .append('<li><a href="/solutions/requirements-definition-management/index.html" name="&lid=//solutions//Requirements Definition & Management">Requirements Definition & Management</a>')

		          
		          .append('<li><a href="/solutions/lifecycle-quality-management/index.html" name="&lid=//solutions//Testing and ASQ">Testing and ASQ</a>')

		          
		          .append('<li class="l"><a href="/solutions/change-management/index.html" name="&lid=//solutions//Change Management">Change Management</a>');

			

  

        
	          $('#navProducts ul.lvl3')

	          

		          .append('<li class="f"><a href="/products/index.html" name="&lid=//products//Overview">Overview</a>')

		          
		          .append('<li><a href="/products/teamdefine/index.html" name="&lid=//products//TeamDefine">TeamDefine</a>')

		          
		          .append('<li><a href="/products/caliber/index.html" name="&lid=//products//CaliberRM">CaliberRM</a>')

		          
		          .append('<li><a href="/products/together/index.html" name="&lid=//products//Together">Together</a>')

		          
		          .append('<li><a href="/products/silk/index.html" name="&lid=//products//Silk">Silk</a>')

		          
		          .append('<li><a href="/products/starteam/index.html" name="&lid=//products//StarTeam">StarTeam</a>')

		          
		          .append('<li class="l"><a href="/products/middleware/index.html" name="&lid=//products//Application Middleware">Application Middleware</a>');

		      


    

	          $('#navCustomers ul.lvl3')

	          

		          .append('<li class="f"><a href="/customers/index.html" name="&lid=//customers//Overview">Overview</a>')

		          
		          .append('<li><a href="/customers/profiles/view-by-solution.html" name="&lid=//customers//View by Solution">View by Solution</a>')

		          
		          .append('<li><a href="/customers/profiles/view-by-product.html" name="&lid=//customers//View by Product">View by Product</a>')

		          
		          .append('<li><a href="/customers/profiles/view-by-industry.html" name="&lid=//customers//View by Industry">View by Industry</a>')

		          
		          .append('<li><a href="/customers/profiles/view-by-geography.html" name="&lid=//customers//View by Geography">View by Geography</a>')

		          
		          .append('<li class="l"><a href="/customers/profiles/view-all-customers.html" name="&lid=//customers//View All Customers">View All Customers</a>');

			

  

        
	          $('#navPartners ul.lvl3')

	          

		          .append('<li class="f"><a href="/partners/index.html" name="&lid=//partners//Overview">Overview</a>')

		          
		          .append('<li><a href="/partners/cz/index.html" name="&lid=//partners//Partners in Czech Republic">Partners in Czech Republic</a>')

		          
		          .append('<li class="l"><a href="/partners/sk/index.html" name="&lid=//partners//Partners in Slovak Republic">Partners in Slovak Republic</a>');
  

        
	          $('#navResourceCenter ul.lvl3')

	          

		          .append('<li class="f"><a href="/rc/index.html" name="&lid=//rc//Overview">Overview</a>')

		          
		          .append('<li><a href="/rc/open-application-lifecycle-management/index.html" name="&lid=//rc//Open Application Lifecycle Management">Open Application Lifecycle Management</a>')

		          
		          .append('<li><a href="/rc/requirements-definition-management/index.html" name="&lid=//rc//Requirements Definition &amp; Management">Requirements Definition &amp; Management</a>')

		          
		          .append('<li><a href="/rc/model-driven-development/index.html  " name="&lid=//rc//Model Driven Development">Model Driven Development</a>')

		          
		          .append('<li><a href="/rc/lifecycle-quality-management/index.html" name="&lid=//rc//Testing and ASQ">Testing and ASQ</a>')

		          
		          .append('<li class="l"><a href="/rc/change-management/index.html" name="&lid=//rc//Change Management">Change Management</a>');
				  
				  
			
			$('#navcz ul.lvl3')

	          

		          .append('<li class="f"><a href="/cz/materialy/software_delivery.html" name="&lid=//cz//Optimalizace dodávání software">Optimalizace dodávání software</a>')

		          
		          .append('<li><a href="/cz/materialy/requirements_based_testing.html" name="&lid=//cz//Testování založené na požadavcích">Testování založené na požadavcích</a>')

		          
		          .append('<li><a href="/cz/materialy/quality_maturity_curve.html" name="&lid=//cz//Quality maturity curve">Quality maturity curve</a>')

		          
		          .append('<li class="l"><a href="/cz/materialy/borland_silkperformer.html" name="&lid=//cz//Borland SilkPerformer">Borland SilkPerformer</a>')
				  
				  
				  .append('<li class="l"><a href="/cz/materialy/dynatrace_diagnostics.html" name="&lid=//cz//dynaTrace Diagnostics">dynaTrace Diagnostics</a>');
				  
  }
}

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


