//#####BRANCH NAV###################//

    
     // Industrial
     
    jQuery(function() {
        var country = jQuery(".languageFlagID").first().attr("data");
        if (!(country==3) && !(country==1)) {
            if (window.location.hostname=='www.recom-international.com') {
            jQuery('#branch').prepend('<div id="branch-label">Browse by industry: </div>');
            }
        }
       
  /*
  
  	jQuery(".branchlist56").hover(function() {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM-INDUSTRIAL.jpg") no-repeat left top');
	},function(event) {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM.jpg") no-repeat left top');
	});

     // Lighting
	jQuery(".branchlist57").hover(function() {
			jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM-LIGHTING.jpg") no-repeat left top');
	},function(event) {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM.jpg") no-repeat left top');
	});


     // Transportation
	jQuery(".branchlist58").hover(function() {
			jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM-TRANSPORTATION.jpg") no-repeat left top');
	},function(event) {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM.jpg") no-repeat left top');
	});


     // Medical
	jQuery(".branchlist59").hover(function() {
			jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM-MEDICAL.jpg") no-repeat left top');
	},function(event) {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM.jpg") no-repeat left top');
	});
	
	
     // Energy	
	jQuery(".branchlist60").hover(function() {
			jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM-ENERGY.jpg") no-repeat left top');
	},function(event) {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM.jpg") no-repeat left top');
	});
	

     // Aerospace
	jQuery(".branchlist61").hover(function() {
			jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM-AEROSPACE.jpg") no-repeat left top');
	},function(event) {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM.jpg") no-repeat left top');
	});
	
	
	jQuery(".branchlist62").hover(function() {
			jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM-MILITARY-COTS.jpg") no-repeat left top');
	},function(event) {
		jQuery("#slideshow").css('background','transparent url("/fileadmin/RECOM-Media-EUR/Images/Key-Visuals/Key-Visual-RECOM.jpg") no-repeat left top');
	});
  
  */

    
   /* var webcastImg = "webcast-notice-en.gif";
    if (country==1) { webcastImg = "webcast-notice-de.gif"; }
    if (country==3) { webcastImg = "webcast-notice-ru.gif"; }
    if (country==4) { webcastImg = "webcast-notice-jp.gif"; }
    if (country==5) { webcastImg = "webcast-notice-cn.gif"; }
    if (country==6) { webcastImg = "webcast-notice-kr.gif"; }     
 
    jQuery(".langMenu").prepend('<a id="webcast-notice" href="/downloads/webcasts.html"><img src="/fileadmin/styles/06_layouts_0col/img/'+webcastImg+'" ></a>');
 
    if (country==3) { jQuery("#webcast-notice").css({"left":"90px"}); }
    if (country==4) { jQuery("#webcast-notice").css({"left":"90px"}); }
    if (country==5) { jQuery("#webcast-notice").css({"left":"50px"}); }
    if (country==6) { jQuery("#webcast-notice").css({"left":"40px"}); }
    */
    /*jQuery("a[href=change-country.html]").first().css({"padding-left":"315px"});*/
        var creeAnnouncement = "cree-announcement.jpg";
        if (country==1) { creeAnnouncement = "cree-announcement-de.jpg"; }
        jQuery(".langMenu").prepend('<a id="cree-announcement" href="http://www.digikey.com/us/en/ph/Cree/cxa-kit.html" target="_blank"><img src="/fileadmin/styles/06_layouts_0col/img/'+creeAnnouncement+'" ></a>');
	 });
		
     // Mititary cots
/*    jQuery(".branchlink62").click(function() {
    	if (jQuery(this).hasClass("hover")) {
	   		jQuery(".branchlink62").removeClass("hover");
	    	jQuery("#mil_nav").slideUp("fast");
    	} else {
	    	jQuery(this).addClass("hover");
	     	jQuery("#mil_nav").slideDown("fast");
	  		jQuery("#ind_nav").slideUp("fast");
	  		jQuery("#lig_nav").slideUp("fast");
	  		jQuery("#tran_nav").slideUp("fast");
			jQuery("#med_nav").slideUp("fast");
			jQuery("#ene_nav").slideUp("fast");
			jQuery("#are_nav").slideUp("fast");
			
	  		jQuery(".branchlink58").removeClass("hover");
	  		jQuery(".branchlink57").removeClass("hover");
	  		jQuery(".branchlink56").removeClass("hover");
	  		jQuery(".branchlink59").removeClass("hover");
	  		jQuery(".branchlink61").removeClass("hover");
	  		jQuery(".branchlink60").removeClass("hover");			
  		}
  		return false;
    });
    jQuery("#mil_nav").hover(function() {},function() {
   		jQuery(".branchlink62").removeClass("hover");
    	jQuery("#mil_nav").slideUp("fast");
    }); */	

/* 	jQuery(function(){

		// Accordion
		jQuery(".accordion").accordion({ header: "h3", autoHeight: false, collapsible: true, active: "none" });
		
		// ACDC Menu lösen und in Slidenavi einsetzen
		acdc = jQuery("#acdc_nav").detach();jQuery("li.product35 a").after(acdc);
		// DCDC
		dcdc = jQuery("#dcdc_nav").detach();jQuery("li.product36 a").after(dcdc);
		// LED
		led = jQuery("#led_nav").detach();jQuery("li.product37 a").after(led);
		// R-78
		r78 = jQuery("#r78_nav").detach();jQuery("li.product38 a").after(r78);
		// industrial
		ind = jQuery("#ind_nav").detach();jQuery("li.branch56 a").after(ind);	
		// lig
		lig = jQuery("#lig_nav").detach();jQuery("li.branch57 a").after(lig);	
		// tran
		tran = jQuery("#tran_nav").detach();jQuery("li.branch58 a").after(tran);	
		// med
		med = jQuery("#med_nav").detach();jQuery("li.branch59 a").after(med);	
		// ene
		ene = jQuery("#ene_nav").detach();jQuery("li.branch60 a").after(ene);	
		// are
		are = jQuery("#are_nav").detach();jQuery("li.branch61 a").after(are);
		// mil
		mil = jQuery("#mil_nav").detach();jQuery("li.branch62 a").after(mil);							

	});

//#####PRODUCT NAV###################//   
  
    // AC/DC
	jQuery(".product35").hover(function() {
		jQuery("#acdc_nav").slideDown("fast");
		jQuery("#dcdc_nav").slideUp("fast");
		jQuery("#led_nav").slideUp("fast");
		jQuery("#r78_nav").slideUp("fast");
	},function(event) {	
		jQuery("#acdc_nav").slideUp("fast");
	});
	
    // DCDC
	jQuery(".product36").hover(function() {
		jQuery("#dcdc_nav").slideDown("fast");
		jQuery("#acdc_nav").slideUp("fast");
		jQuery("#led_nav").slideUp("fast");
		jQuery("#r78_nav").slideUp("fast");
	},function(event) {		
	    jQuery("#dcdc_nav").slideUp("fast");	
	});
  
     // LED
	jQuery(".product37").hover(function() {
		jQuery("#led_nav").slideDown("fast");
		jQuery("#acdc_nav").slideUp("fast");
		jQuery("#dcdc").slideUp("fast");
		jQuery("#r78_nav").slideUp("fast");
	},function(event) {		
	    jQuery("#led_nav").slideUp("fast");	
	});

     // R78
	jQuery(".product38").hover(function() {
			jQuery("#r78_nav").slideDown("fast");
			jQuery("#acdc_nav").slideUp("fast");
			jQuery("#dcdc").slideUp("fast");
			jQuery("#led_nav").slideUp("fast");
		},function(event) {		
	    jQuery("#r78_nav").slideUp("fast");	
	});
*/	
