$(document).ready(function(){
        // ******************* Begin Global Nav Functionality **************************//
        if($('#global_nav').length > 0)
        {        				
	function megaHoverOver(){
	    var s = $(this).find(".submenu");	    	   	 			
	    var p = $(this).find(".submenu_left");
	    var r = $(this).find(".submenu_tab_left");	    
		s.show();
		r.show();
		var maxwidth = 0;
                                var categorywidth = 0;
                                var listitemwidth = 0;
                                $(this).find("ul.nav li").each(function(){		        		        
                                        if($(this).find('a').length > 0)
                                        {
		             listitemwidth = $(this).find('a').text().replace("amp;","").length;
		             if(maxwidth < listitemwidth)		       
		                maxwidth = listitemwidth;		            		        
                                         }
		    }
		);
		maxwidth = maxwidth * 5.5 + 35;
                                $(this).find("ul.nav").css('width', maxwidth + "px");
		$(this).find("ul.nav li.category").each(function(){			 				 
		      var categorywidth = textWidth($(this).text().replace("amp;",""),$(this).css("font-size")) + 8;			
		      var spanwidth = maxwidth - categorywidth;
		      $(this).find('span:last').css('width', spanwidth + "px");  			    
		});		
		var marginRight,marginLeft;		
		if($(this).find("ul.nav").css('margin-right') != null)
		    marginRight = $(this).find("ul.nav").css('margin-right').replace('px','');
		if($(this).find("ul.nav").css('margin-left') != null)
		    marginLeft = $(this).find("ul.nav").css('margin-left').replace('px','');    
		marginRight = parseInt(marginRight);
		marginLeft = parseInt(marginLeft);   
		$(this).find(".submenu").css('width',$(this).find("ul.nav").width() + $(this).find(".nav_content").width() + marginLeft + marginRight + "px");
        if(p.length > 0)
        {		    
          var leftVal = (r.width() - s.width()) + "px"; //padding + border + tab border
          s.css('margin-left',leftVal);		    		    
        }
    }    
    function textWidth(text, fontsizecss){
        var calc = '<span style="display:none; font-size:' + fontsizecss + '"><strong>' + text + '</strong></span>';
        $('body').append(calc);
        var width = $('body').find('span:last').width();
        $('body').find('span:last').remove();
        return width;
    };
    function toggle_global_nav_highlight(element, sub_element, img_src, header_txt, blurb_txt, link_href, link_txt)
    {
        $(element).mouseover(function(){        
            set_global_nav_highlight(element, sub_element, img_src, header_txt, blurb_txt, link_href, link_txt)
        }); 
    }
    function set_global_nav_highlight(element, sub_element, img_src, header_txt, blurb_txt, link_href, link_txt)
    {           
		var v1 = sub_element.toString() + " img";
        $(v1).attr("src",img_src);
		v1 = sub_element.toString() + " a";
        link_href = link_href.replace('"',"").replace("<a href="," ").replace("></a>","").replace('"',"");
		$(v1).attr("href", link_href);
        v1 = sub_element.toString() + " p";
		var moreLink = " <a class='more'>" + link_txt + "</a>";
        $(v1).text(blurb_txt).append(moreLink);       
        $(v1).find("a").attr("href",link_href);
		if(header_txt != "")
        {
            v1 = sub_element.toString() + " h3";
            $(v1).text(header_txt);    
        }
    }
    function setActiveGlobalNavTab()
    {        
        for(var i = 1;i<=10;i++)
        {
            if($(".menu_item" + i.toString() + "_child").length > 0)
                $("#menu_item" + i.toString() + " a:first").addClass("active");        
        }
    }
    setActiveGlobalNavTab();
	$("#global_nav li ul.nav a").mouseover(function(){                                                                                                                                                                                          
        $(this).closest(".nav").find(".active").removeClass("active");
                $(this).closest("li").addClass("active");
    }).mouseout(function(){      
        $(this).closest(".nav").find(".active").removeClass("active");
    });
    toggle_global_nav_highlight("#global_nav #submenu4_link1", "#menu_item4 .nav_content_top", "/images/energy_oil_gas_nav_175x79.jpg", "IHS CERA", "Leading strategy advisors to international energy companies, governments and financial institutions", '/products/cera/index.aspx', "More");
toggle_global_nav_highlight("#global_nav #submenu5_link1", "#menu_item5 .nav_content_top", "/images/news_nav_175x79.jpg", "Current Insights", "IHS covers global industry & economic insight and analysis to advance client business decisions", '/news-analysis/index.aspx', "More");
toggle_global_nav_highlight("#global_nav #submenu6_link1", "#menu_item6 .nav_content_top", "/images/generic_conference.jpg", "IHS Events", "Every year IHS holds events across the world featuring valuable information from recognized experts.", '/events/ihs/index.aspx', "More");
toggle_global_nav_highlight("#global_nav #submenu7_link1", "#menu_item7 .nav_content_top", "/images/contact_us_nav_175x79.jpg", "Contact Us", "IHS takes pride in putting customers first and making sure that we keep you informed and updated", '/about/contact-us/index.aspx', "More");
    function megaHoverOut(){
var first = $(this).find(".submenu .first").attr('id')
$(this).find(".submenu .first").addClass("active");
switch(first)
{
case 'submenu2_link1':
set_global_nav_highlight("#global_nav #menu_item2_link1","#menu_item2 .nav_content_top","/images/Energy_and_Power_Nav_181x80.jpg","Energy & Power","IHS helps energy firms make confident decisions with full coverage of fuel types and markets ",'/capabilities/expertise/energy-power.aspx',"More");
break;
case 'submenu3_link1':
set_global_nav_highlight("#global_nav #menu_item3_link1","#menu_item3 .nav_content_top","/images/aerospace_defense_nav_174x79_1.jpg","Aerospace & Defense","Data and analysis for Aerospace and Defense life cycle, from programme conception to retirement",'/industry/aerospace-defense/index.aspx',"More");
break;
case 'submenu4_link1':
set_global_nav_highlight("#global_nav #menu_item4_link1","#menu_item4 .nav_content_top","/images/energy_oil_gas_nav_175x79.jpg","IHS CERA","Leading strategy advisors to international energy companies, governments and financial institutions",'/products/cera/index.aspx',"More");
break;
case 'submenu5_link1':
set_global_nav_highlight("#global_nav #menu_item5_link1","#menu_item5 .nav_content_top","/images/news_nav_175x79.jpg","Current Insights","IHS covers global industry & economic insight and analysis to advance client business decisions",'/news-analysis/index.aspx',"More");
break;
case 'submenu6_link1':
set_global_nav_highlight("#global_nav #menu_item6_link1","#menu_item6 .nav_content_top","/images/generic_conference.jpg","IHS Events","Every year IHS holds events across the world featuring valuable information from recognized experts.",'/events/ihs/index.aspx',"More");
break;
case 'submenu7_link1':
set_global_nav_highlight("#global_nav #menu_item7_link1","#menu_item7 .nav_content_top","/images/contact_us_nav_175x79.jpg","Contact Us","IHS takes pride in putting customers first and making sure that we keep you informed and updated",'/about/contact-us/index.aspx',"More");
break;
}
$(this).find(".submenu").hide();
$(this).find(".submenu_tab_left").hide();
}
    //Global Nav
	var config = {    
		 sensitivity: 50, // number = sensitivity threshold (must be 1 or higher)    
		 interval: 0, // number = milliseconds for onMouseOver polling interval    
		 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
        		 timeout: 50, // number = milliseconds delay before onMouseOut    
	        	 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
        	};
        	$("#global_nav li").hoverIntent(config);
        }    
        // ******************* End Global Nav Functionality **************************//
        });
// Grab the values and text for the first options in both selects
var top_value = $('#top_title').attr('value');
var second_value = $('#second_title').attr('value');
var top_text = $('#top_title').html();
var second_text = $('#second_title').html();
var initial_second = {second_value : second_text};
// lists
rootList = { "/capabilities": "IHS Capabilities", "/industry": "Industry Solutions", "/products": "Products & Services", "/news-analysis": "Current Insights", "/events": "Events", "/about": "About" };
var capabilitiesList = { "capabilitiesexpertiseList": "Overview", "capabilitiesexpertsList": "IHS Experts", "capabilitiesglobalreachList": "Global Reach", "capabilitiesrecenttopicsList": "Recent Topics", "capabilitiesquestionsanswersList": "Q&A" };
var industryList = { "industryaerospacedefenseList": "Aerospace & Defense", "industryagricultureList": "Agriculture", "industryautomotiveList": "Automotive", "industrychemicalList": "Chemicals", "industryconstructionList": "Construction", "industryconsumerretailList": "Consumer & Retail", "industryelectronicsList": "Technology, Media & Telecommunications", "industryoilgasList": "Energy Oil & Gas", "industryfinancialList": "Financial", "industrygovernmentList": "Government", "industryhealthcarepharmaceuticalList": "Healthcare", "industrymetalminingList": "Metals & Mining", "industrymilitarysecurityList": "Military & Security", "industrypowerutilitiesList": "Power & Utilities", "industryrenewableenergyList": "Renewable Energy", "industrytransportationshippingList": "Shipping & Transportation" };
var productsList = { "productsoilgasinformationList": "Energy Information, Software & Solutions", "productsceraList": "IHS CERA: Energy Strategy", "productsheroldList": "IHS Herold: Energy Company & Transaction Valuations", "productscoalinformationList": "Coal Information & Insight: IHS McCloskey", "productsrenewableenergyresearchList": "Renewable Energy: IHS Emerging Energy Research", "productsindustrystandardsList": "Industry Standards & Regulations", "productsproductdesignsourcingList": "Product Design, Sourcing & Logistics", "productsmroList": "Maintenance, Repair & Ops Management (MRO)", "productsisuppliList": "IHS iSuppli: Technology, Media & Telecommunications", "productsscreendigestList": "IHS Screen Digest: Media Intelligence", "productsehssustainabilityList": "Environmental, Health and Safety & Sustainability", "productsjanesList": "IHS Jane's: Defense & Security Intelligence & Analysis", "productsmaritimeinformationList": "Maritime Intelligence & Publications: IHS Fairplay", "productspricingpurchasinganalysisList": "IHS Global Insight: Pricing & Purchasing", "productsenergycapitalcostsanalysisList": "IHS CERA: Capital Costs", "productsglobalinsightList": "IHS Global Insight: Country & Industry Forecasting", "productsautomotiveList": "Automotive Forecasting: IHS Automotive", "productsglobalscenariosList": "IHS Global Scenarios", "productsconsultingList": "Consulting & Advisory Services" };
var newsanalysisList = { "newsanalysisindustryeconomicList": "Country & Industry Forecasting", "newsanalysisenergyList": "Energy & Power", "newsanalysisdefensesecurityList": "Defense, Risk & Security", "newsanalysisarchiveList": "News Archive", "newsanalysiseconomicsList": "Economics" };
var eventsList = { "eventsihsList": "IHS Events", "eventsmemberList": "Member Events", "eventstrainingusergroupsList": "Training & User Groups", "eventswebcastsList": "WebCasts / Webinars", "eventsindustryList": "Industry Events" };
var aboutList = { "aboutcontactusList": "Contact Us", "aboutglanceList": "IHS at a Glance", "aboutcustomersfirstList": "Customers First", "aboutcorporatesustainabilityList": "Corporate Sustainability", "aboutinvestorList": "Investor Relations", "aboutpressroomList": "Press Room", "aboutcareersList": "Careers" };
var capabilitiesexpertiseList = { "/capabilities/expertise/index.aspx": "Overview" };
var capabilitiesexpertsList = { "/capabilities/experts/index.aspx": "IHS Experts" };
var capabilitiesglobalreachList = { "/capabilities/global-reach/index.aspx": "Global Reach" };
var capabilitiesrecenttopicsList = { "/capabilities/recent-topics/index.aspx": "Recent Topics" };
var capabilitiesquestionsanswersList = { "/capabilities/questions-answers/index.aspx": "Q&A" };
var industryaerospacedefenseList = { "/industry/aerospace-defense/index.aspx": "Aerospace & Defense" };
var industryagricultureList = { "/industry/agriculture/index.aspx": "Agriculture" };
var industryautomotiveList = { "/industry/automotive/index.aspx": "Automotive" };
var industrychemicalList = { "/industry/chemical/index.aspx": "Chemicals" };
var industryconstructionList = { "/industry/construction/index.aspx": "Construction" };
var industryconsumerretailList = { "/industry/consumer-retail/index.aspx": "Consumer & Retail" };
var industryelectronicsList = { "/industry/electronics/index.aspx": "Technology, Media & Telecommunications" };
var industryoilgasList = { "/industry/oil-gas/index.aspx": "Energy Oil & Gas" };
var industryfinancialList = { "/industry/financial/index.aspx": "Financial" };
var industrygovernmentList = { "/industry/government/index.aspx": "Government" };
var industryhealthcarepharmaceuticalList = { "/industry/healthcare-pharmaceutical/index.aspx": "Healthcare" };
var industrymetalminingList = { "/industry/metal-mining/index.aspx": "Metals & Mining" };
var industrymilitarysecurityList = { "/industry/military-security/index.aspx": "Military & Security" };
var industrypowerutilitiesList = { "/industry/power-utilities/index.aspx": "Power & Utilities" };
var industryrenewableenergyList = { "/industry/renewable-energy/index.aspx": "Renewable Energy" };
var industrytransportationshippingList = { "/industry/transportation-shipping/index.aspx": "Shipping & Transportation" };
var productsoilgasinformationList = { "/products/oil-gas-information/index.aspx": "Energy Information, Software & Solutions", "/products/oil-gas-information/news/index.aspx": "Oil & Gas Industry News and Analysis", "/products/oil-gas-information/services/index.aspx": "Oil & Gas Information and Analytical Services", "/products/oil-gas-information/data-access/index.aspx": "Data Access Systems", "/products/oil-gas-information/analysis-software/index.aspx": "Analytical & Decision Support Tools", "/products/oil-gas-information/well-data/index.aspx": "Well Data", "/products/oil-gas-information/drilling-data/index.aspx": "Drilling & Rig Activity", "/products/oil-gas-information/marine-vessel-data/index.aspx": "Marine Vessel Data", "/products/oil-gas-information/log-data/index.aspx": "Oil & Gas Log Data", "/products/oil-gas-information/production-data/index.aspx": "Production Data", "/products/oil-gas-information/field-reservoir-data/index.aspx": "Fields, Reservoir & Reserves Data", "/products/oil-gas-information/seismic-data/index.aspx": "Seismic Survey & Vessel Data", "/products/oil-gas-information/geological-data/index.aspx": "Geological Data", "/products/oil-gas-information/geopressure/index.aspx": "Geopressure Data", "/products/oil-gas-information/basins-data/index.aspx": "Basins Data", "/products/oil-gas-information/canada-land-data/index.aspx": "Land Data", "/products/oil-gas-information/surface-data/index.aspx": "Cultural and Surface & Near-Surface Data", "/products/oil-gas-information/midstream-data/index.aspx": "Midstream Data", "/products/oil-gas-information/maps/index.aspx": "Maps Data", "/products/oil-gas-information/training/index.aspx": "Training", "/products/oil-gas-information/geology-data/index.aspx": "Geology and Geophysics Data (old section contains redirects)", "/products/oil-gas-information/quality/index.aspx": "Quality", "/products/oil-gas-information/source-newsletter/index.aspx": "The Source Newsletter" };
var productsceraList = { "/products/cera/index.aspx": "IHS CERA: Energy Strategy", "/products/cera/energy-research/index.aspx": "Advisory Research Services", "/products/cera/multi-client-studies/index.aspx": "Multiclient Studies", "/products/cera/energy-industry/index.aspx": "Industry Forums", "/products/cera/energy-forecasting/index.aspx": "Analytics & Forecasting" };
var productsheroldList = { "/products/herold/index.aspx": "IHS Herold: Energy Company & Transaction Valuations", "/products/herold/energy-company-research/index.aspx": "Company Valuation & Strategy Research", "/products/herold/energy-transaction-research/index.aspx": "Transaction Valuation Research" };
var productscoalinformationList = { "/products/coal-information/index.aspx": "Coal Information & Insight: IHS McCloskey" };
var productsrenewableenergyresearchList = { "/products/renewable-energy-research/index.aspx": "Renewable Energy: IHS Emerging Energy Research" };
var productsindustrystandardsList = { "/products/industry-standards/index.aspx": "Industry Standards & Regulations", "/products/industry-standards/regulations/index.aspx": "Regulatory Solutions", "/products/industry-standards/solutions/index.aspx": "Standards, Codes & Specifications", "/products/industry-standards/organizations/index.aspx": "Standards Developing Organizations", "/products/industry-standards/collections/index.aspx": "Industry & Specialty Collections", "/products/industry-standards/newsletters/index.aspx": "Newsletters", "/products/industry-standards/uk-solutions/index.aspx": "Engineering, Construction & Government Solutions" };
var productsproductdesignsourcingList = { "/products/product-design-sourcing/index.aspx": "Product Design, Sourcing & Logistics", "/products/product-design-sourcing/component-supplier-data/index.aspx": "Component & Supplier Research Databases", "/products/product-design-sourcing/component-compliance/index.aspx": "Obsolescence, Counterfeit & Environmental Compliance Management", "/products/product-design-sourcing/custom-data/index.aspx": "Custom Data & Consulting Service", "/products/product-design-sourcing/esdu/index.aspx": "Design Engineering Methods & Software" };
var productsmroList = { "/products/mro/index.aspx": "Maintenance, Repair & Ops Management (MRO)" };
var productsisuppliList = { "/products/isuppli/index.aspx": "IHS iSuppli: Technology, Media & Telecommunications" };
var productsscreendigestList = { "/products/screen-digest/index.aspx": "IHS Screen Digest: Media Intelligence" };
var productsehssustainabilityList = { "/products/ehs-sustainability/index.aspx": "Environmental, Health and Safety & Sustainability", "/products/ehs-sustainability/environmental-compliance/index.aspx": "Environmental Compliance", "/products/ehs-sustainability/health-safety-compliance/index.aspx": "Health & Safety Compliance", "/products/ehs-sustainability/ghg/index.aspx": "Greenhouse Gas (GHG) & Energy Management", "/products/ehs-sustainability/incident-crisis-management/index.aspx": "Incident & Crisis Management", "/products/ehs-sustainability/product-stewardship/index.aspx": "Product Stewardship & Compliance", "/products/ehs-sustainability/corporate-responsibility/index.aspx": "Corporate Responsibility", "/products/ehs-sustainability/consulting/index.aspx": "Consulting & Professional Services", "/products/ehs-sustainability/customers/index.aspx": "Customer User Community & Support", "/products/ehs-sustainability/partners/index.aspx": "Partner Ecosystem" };
var productsjanesList = { "/products/janes/index.aspx": "IHS Jane's: Defense & Security Intelligence & Analysis", "/products/janes/defence/index.aspx": "Defense Equipment & Technology Solutions", "/products/janes/defence-business/index.aspx": "Defense Industry Solutions", "/products/janes/security/index.aspx": "Security Intelligence Solutions", "/products/janes/transport/index.aspx": "Transportation News & Reference", "/products/janes/customer-newsletter/index.aspx": "Customer Newsletter", "/products/janes/news/index.aspx": "Headline News", "/products/janes/advertising/index.aspx": "Advertising", "/products/janes/exhibitions/index.aspx": "Exhibitions", "/products/janes/events/index.aspx": "Events" };
var productsmaritimeinformationList = { "/products/maritime-information/index.aspx": "Maritime Intelligence & Publications: IHS Fairplay", "/products/maritime-information/data/index.aspx": "Bespoke Maritime Data Services", "/products/maritime-information/ship-movement-tracking/index.aspx": "Movement Information", "/products/maritime-information/energy/index.aspx": "Energy Trading", "/products/maritime-information/ships/index.aspx": "Ship, Ownership, Builder & Company Information", "/products/maritime-information/port/index.aspx": "Port Information", "/products/maritime-information/statistics-forecasts/index.aspx": "Global Maritime Statistics & Forecasting Reports", "/products/maritime-information/handbooks/index.aspx": "Practical Guides & Handbooks", "/products/maritime-information/consulting/index.aspx": "Research & Consultancy Services", "/products/maritime-information/news/index.aspx": "Maritime News & Analysis", "/products/maritime-information/advertising/index.aspx": "Advertise With IHS Fairplay", "/products/maritime-information/recent-innovations/index.aspx": "Recent Innovations" };
var productspricingpurchasinganalysisList = { "/products/pricing-purchasing-analysis/index.aspx": "IHS Global Insight: Pricing & Purchasing" };
var productsenergycapitalcostsanalysisList = { "/products/energy-capital-costs-analysis/index.aspx": "IHS CERA: Capital Costs" };
var productsglobalinsightList = { "/products/global-insight/index.aspx": "IHS Global Insight: Country & Industry Forecasting", "/products/global-insight/country-analysis/index.aspx": "Country Intelligence", "/products/global-insight/industry-analysis/index.aspx": "Industry Intelligence", "/products/global-insight/consulting-services/index.aspx": "Consulting Services" };
var productsautomotiveList = { "/products/automotive/index.aspx": "Automotive Forecasting: IHS Automotive", "/products/automotive/light-vehicle-forecasts/index.aspx": "Light-vehicle Sales", "/products/automotive/light-vehicle-production/index.aspx": "Light-vehicle Production", "/products/automotive/powertrain-forecasts/index.aspx": "Powertrain and Alternative Propulsion", "/products/automotive/heavy-vehicle-forecasts/index.aspx": "Medium- and Heavy-duty Vehicle Forecasts", "/products/automotive/industry-news-analysis/index.aspx": "Automotive Industry Headlines and Analysis", "/products/automotive/component-sourcing/index.aspx": "Component Sourcing & Technology Analysis", "/products/automotive/automotive-consulting/index.aspx": "Automotive Consulting", "/products/automotive/other-ihs-automotive-capabillities/index.aspx": "Other IHS Automotive Capabilities" };
var productsglobalscenariosList = { "/products/global-scenarios/index.aspx": "IHS Global Scenarios" };
var productsconsultingList = { "/products/consulting/index.aspx": "Consulting & Advisory Services", "/products/consulting/services/index.aspx": "Functional Services", "/products/consulting/industries/index.aspx": "Industry Expertise" };
var newsanalysisindustryeconomicList = { "/news-analysis/industry-economic/index.aspx": "Country & Industry Forecasting" };
var newsanalysisenergyList = { "/news-analysis/energy/index.aspx": "Energy & Power" };
var newsanalysisdefensesecurityList = { "/news-analysis/defense-security/index.aspx": "Defense, Risk & Security" };
var newsanalysisarchiveList = { "/news-analysis/archive/index.aspx": "News Archive" };
var newsanalysiseconomicsList = { "/news-analysis/economics/index.aspx": "Economics" };
var eventsihsList = { "/events/ihs/index.aspx": "IHS Events", "/events/ihs/ihs-spectrum/index.aspx": "IHS SPECTRUM 2011" };
var eventsmemberList = { "/events/member/index.aspx": "Member Events" };
var eventstrainingusergroupsList = { "/events/training-user-groups/index.aspx": "Training & User Groups" };
var eventswebcastsList = { "/events/webcasts/index.aspx": "WebCasts / Webinars" };
var eventsindustryList = { "/events/industry/index.aspx": "Industry Events" };
var aboutcontactusList = { "/about/contact-us/index.aspx": "Contact Us", "/about/contact-us/call-us/index.aspx": "Call Us", "/about/contact-us/email-us/index.aspx": "Send Us an Email", "/about/contact-us/visit-our-offices/index.aspx": "Visit Our Offices" };
var aboutglanceList = { "/about/glance/index.aspx": "IHS at a Glance" };
var aboutcustomersfirstList = { "/about/customers-first/index.aspx": "Customers First" };
var aboutcorporatesustainabilityList = { "/about/corporate-sustainability/index.aspx": "Corporate Sustainability" };
var aboutinvestorList = { "/about/investor/index.aspx": "Investor Relations" };
var aboutpressroomList = { "/about/press-room/index.aspx": "Press Room" };
var aboutcareersList = { "/about/careers/index.aspx": "Careers", "/about/careers/consulting/index.aspx": "Consulting Careers" };
loginCTAs = [];
function setDropDown(list,pubPath) {
    $.each(list, function(key, value) {
    $('#browseByOne').append('<option value="'+ key +'">'+ value +'</option>'); 
    });
    $('#browseByOne').change(function(){
        if($(this).val() == top_value){
            setSecondaryDropDown(initial_second,pubPath);
        }
        else { 
            if($(this).get(0).selectedIndex == 0){
                setSecondaryDropDown(initial_sec,pubPath);
            }
            else {
                if( eval( $(this).val()) ) {
                    selectedValues = eval($(this).val());
                    setSecondaryDropDown(selectedValues,pubPath)
                }
                else {
                    setSecondaryDropDown(initial_second,pubPath);
                }
            }
        }
    });
}
function setSecondaryDropDown(list,pubPath) {
    $('#browseByTwo').html("");
    $.each(list, function(key,value) {
        $('#browseByTwo').append('<option value="' + pubPath + key + '">' + value + '</option>');
    });
    $('#find_solution').click(function(){  window.location = $('#browseByTwo').val();})
}

