﻿function titleMaker(docTitle)
{
	
	switch (docTitle)
	{
		// PLASMA TITLES - COLOR: PURPLE
			case "Thierry USA: Plasma Distributors":
			case "Thierry USA: Plasma Services":
			case "Thierry USA: Servicios de Tratamiento":
			case "Thierry USA: Distribuidores de Plasma":
			case "Thierry USA: About Diener":
			case "Thierry USA: Acerca de Diener Electronics":
			case "Thierry USA: Plasma References":
			case "Thierry USA: Referencias en Plasma":
				{
					document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");
					return;
				}

		//ROBOT TITLES - COLOR: ORANGE
					// English Robotics
					case "Thierry USA: WR500":
					case "Thierry USA: WR300":
					case "Thierry USA: TL5050 Overhead Cartesian Robot":
					case "Thierry USA: Mario (WRL200)":
					case "Thierry USA: Work Area":
					case "Thierry USA: Robot Expansion":
					case "Thierry USA: Alpha Control":
					case "Thierry USA: MCS Control":
					case "Thierry USA: Robotics Applications - Dispensing":
					case "Thierry USA: Robotics Applications - PCB Waste Removal":
					case "Thierry USA: Robotics Applications - Filling":
					case "Thierry USA: Robotics Applications - Screwing":
					case "Thierry USA: Robotics Applications - Milling":
					case "Thierry USA: Robotics Applications - Drawing":
					case "Thierry USA: About AEB-Robotics":
					case "Thierry USA: Mario (WRL200) Robot de Escritorio":
					case "Thierry USA: TL5050 Robot en Suspensión":
					case "Thierry USA: Area de trabajo":
					case "Thierry USA: Accesorios Complementarios":
					case "Thierry USA: Controladores MCS":
					case "Thierry USA: Controladores Alpha":
					case "Thierry USA: Dispensar":
					case "Thierry USA: Aplicaciones con Robots - Limpieza de PCBs":
					case "Thierry USA: Aplicaciones con Robots - Rellenar":
					case "Thierry USA: Aplicaciones con Robots - Atornillar":
					case "Thierry USA: Aplicaciones con Robots - Grabado en madera":
					case "Thierry USA: Aplicaciones con robots - Dibujar":
					case "Thierry USA: Acerca de AEB-Robotics":
						{
							document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/robot.css />");
							return;
						}
					
	}
}


function whatTheLang(lCode, rCode)
{
/*
    Determines current page language and returns appropriate language content for spcified elements.
*/

        var i18n = 
		{		'lTitle':{en:'Color &amp; Mastering Webshop Login', es:'Color y Nombre de Dominio Webshop'},
                // --- Login Box Translation ---
                'nCustomer':{en:'New Customers: ', es:'Nuevos Clientes: '},
                'createAccount':{en:'<a href="https://store.thierry-corp.com/store/" target="_blank"><img border="0" align="right" height="20" src="/fileadmin/sys/gfx/createaccount.png" alt="Create New Account" title="Create New Account"/></a>', es:'<a href="https://store.thierry-corp.com/store/" target="_blank"><img border="0" align="right" height="20" src="/fileadmin/sys/gfx/createaccountES.png" alt="Crear una cuenta nueva" title="Crear una cuenta nueva"/></a>'},
                'userBox':{en:'<label for="email">User Name </label><input name="login[username]" type="text" class="required" id="email" title="This is a required field">', es: '<label for="email">Nombre de Usuario </label><input name="login[username]" type="text" class="required" id="email" title="Este es un campo obligatorio">'},
                'passBox':{en:'<label for="pass">Password </label><input name="login[password]" type="password" class="required minLengh:9" id="pass" title="This is a required field">', es:'<label for="pass">Contrase&ntilde;a </label><input name="login[password]" type="password" class="required minLengh:9" id="pass" title="Este es un campo obligatorio">'},
                // --- Menu Translation ---
                'homeTab':{en:'<a href="Home.33.0.html"><b>Home</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->', es:'<a href="Home.33.0.html?&L=3"><b>Inicio</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->'},
                'corpTab':{en:'<a href="About-Thierry.35.0.html"><b>Corporate</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>', es:'<a href="About-Thierry.35.0.html?&L=3"><b>Corporativo</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>'},
                    'AboutThierry':{en:'<a href="About-Thierry.35.0.html">About Thierry</a>', es:'<a href="About-Thierry.35.0.html?&L=3">Acerca de Thierry</a>'},
                    'Locations':{en:'<a href="Locations.34.0.html">Locations</a>',es:'<a href="Locations.34.0.html?&L=3">Oficinas</a>'},
                    'Careers':{en:'<a href="Careers.89.0.html">Careers</a>',es:'<a href="Careers.89.0.html?&L=3">Empleos</a>'},
                    'Partners':{en:'<a href="Partners.167.0.html">Partners</a>',es:'<a href="Partners.167.0.html?&L=3">Socios de Negocios</a>'},
                    'AllNews':{en:'<a href="All-News.36.0.html">All News</a>',es:'<a href="All-News.36.0.html?&L=3">Novedades</a>'},
                    'Management':{en:'<a href="Management.298.0.html">Management</a>',es:'<a href="Management.298.0.html?&L=3">Direcci&oacute;n de la Empresa</a>'},
                'colorMasterTab':{en:'<a href="Services-and-Solutions.140.0.html"><b>Color &amp; Mastering</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>',es:'<a href="Services-and-Solutions.140.0.html?&L=3"><b>Color y Masterizaci&oacute;n</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>'},
                    'ServicesSolutions':{en:'<a href="Services-and-Solutions.140.0.html">Services &amp; Solutions</a>',es:'<a href="Services-and-Solutions.140.0.html?&L=3">Servicios y Soluciones</a>'},
                    'Products':{en:'<a href="Products.141.0.html">Products</a>',es:'<a href="Products.141.0.html?&L=3">Productos</a>'},
                    'AboutColorMastering':{en:'<a href="About-Color-Mastering.294.0.html">About Color &amp; Mastering</a>', es:'<a href="About-Color-Mastering.294.0.html?&L=3">Acerca Color y Masterizaci&oacute;n</a>'},
                    'References':{en:'<a href="References.28.0.html">References</a>', es:'<a href="References.28.0.html?&L=3">Referencias</a>'},
                
                /* PLASMA TAB - START -------------- */
                'plasmaTab':{
                    en:'<a href="Overview-Plasma-Systems.367.0.html"><b>Plasma Technology</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>', 
                    es:'<a href="Plasma-Products.367.0.html?&L=3"><b>Tecnolog&iacute;a de Plasma</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>'
                },
                'PlasmaProducts':{
                    en:'<a href="Overview-Plasma-Systems.367.0.html">Products</a>',
                    es:'<a href="Plasma-Products.371.0.html?&L=3">Productos</a>'
                },
                'PlasmaApps':{
                    en:'<a href="Plasma-Applications.366.0.html">Applications</a>',
                    es:'<a href="Plasma-Applications.366.0.html?&L=3">Aplicaciones</a>'
                },                
                'PlasmaServices':{
                    en:'<a href="Plasma-Services.365.0.html">Plasma Services</a>', 
                    es:'<a href="Plasma-Services.365.0.html?&L=3">Servicios</a>'
                },
                'PlasmaDistro':{
                    en:'<a href="Plasma-Distributors.364.0.html">Distributors</a>', 
                    es:'<a href="Plasma-Distributors.364.0.html?&L=3">Distribuidores</a>'
                },
                    
                'AboutDeiner':{
                    en:'<a href="About-Diener.363.0.html">About Diener</a>', 
                    es:'<a href="About-Diener.232.0.html?&L=3">Acerca de Diener</a>'
                },
                'PlasmaRefs':{
                    en:'<a href="Plasma-References.362.0.html">References</a>', 
                    es:'<a href="Aplicaciones-de-Plasma.362.0.html?&L=3">Referencias</a>'
                },
				'PlasmaKnowledge':{
                    en:'<a href="Plasma-Knowledge-Base.395.0.html">Knowledge Base</a>', 
                    es:'<a href="Plasma-Knowledge-Base.395.0.html?&L=3">Knowledge Base</a>'
                },
                /* PLASMA TAB - END -------------- */
                
                'robotTab':{en:'<a href="TL5050-Overhead-Cartesian-Robot.304.0.html"><b>Cartesian Robots</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>',es:'<a href="TL5050-Overhead-Cartesian-Robot.304.0.html?&L=3"><b>Robots Cartesianos</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>'},
                    'OverheadRobots':{en:'<a href="TL5050-Overhead-Cartesian-Robot.304.0.html">Overhead Robots</a>',es:'<a href="TL5050-Overhead-Cartesian-Robot.304.0.html?&L=3">Robots de Arriba</a>'},
                    'DesktopRobots':{en:'<a href="Mario-(WRL200).292.0.html">Desktop Robots</a>',es:'<a href="Mario-(WRL200).292.0.html?&L=3">Robots de Escritorio</a>'},
                    'RobotApps':{en:'<a href="Robotics-Applications.271.0.html">Robot Applications</a>',es:'<a href="Robotics-Applications.271.0.html?&L=3">Robot Aplicaciones</a>'},
                    'RobotAcsry':{en:'<a href="Robot-Accessories.306.0.html">Robot Accessories</a>', es:'<a href="Robot-Accessories.306.0.html?&L=3">Robot Accesorios</a>'},
                    'AboutAEB':{en:'<a href="About-AEB-Robotics.234.0.html">About AEB-Robotics</a>',es:'<a href="About-AEB-Robotics.234.0.html?&L=3">Acerca de AEB-Robotics</a>'},
                'energyTab':{en:'<a href="Waste-Heat-Exchanger.198.0.html" id="menuL1_6"><b>Air Heat Exchangers</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>',es:'<a href="Waste-Heat-Exchanger.198.0.html?&L=3"><b>Recuperaci&oacute;n de Energ&iacute;a</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>'},
                    'EnergyProducts':{en:'<a href="Waste-Heat-Exchanger.198.0.html">Waste Heat Exchangers</a>',es:'<a href="Waste-Heat-Exchanger.198.0.html?&L=3">Productos Energ&eacute;ticos</a>'},
                    'EnergyApps':{en:'<a href="Applications-for-Recovery.330.0.html">Applications for Recovery</a>',es:'<a href="Applications-for-Recovery.330.0.html?&L=3">Applications for Recovery</a>'},
					'EnergyFeatures':{en:'<a href="Features-Benefits.333.0.html">Features &amp; Benefits</a>',es:'<a href="Features-Benefits.333.0.html?&L=3">Features &amp; Benefits</a>'},
					'EnergyIncentives':{en:'<a href="Incentives.154.0.html">Incentives</a>',es:'<a href="Incentives.154.0.html?&L=3">Incentives</a>'},
					'AboutRS':{en:'<a href="About-R-Scheuchl-GmbH.233.0.html">About R. Scheuchl GmbH</a>',es:'<a href="About-R-Scheuchl-GmbH.233.0.html?&L=3">Acerca de R. Sheuchl GmbH</a>'},
                    'EnergyRefs':{en:'<a href="References.153.0.html">References</a>', es:'<a href="References.153.0.html?&L=3">Referencias</a>'},
                'contactTab':{en:'<a href="Send-Message.45.0.html"><b>Contact Us</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>', es:'<a href="Send-Message.45.0.html?&L=3"><b>Contacte con nosotros</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>'},
                    'SendMessage':{en:'<a href="Send-Message.45.0.html">Send Message</a>',es:'<a href="Send-Message.45.0.html?&L=3">Enviar mensaje</a>'},
                    'ThierryUSA':{en:'<a href="Thierry-Corporation-USA.47.0.html">Thierry USA</a>', es:'<a href="Thierry-Corporation-USA.47.0.html?&L=3">Thierry Corporation (E.E.U.U.)</a>'},
                    'ThierryGermany':{en:'<a href="Thierry-GmbH-Germany.46.0.html">Thierry Germany</a>', es:'<a href="Thierry-GmbH-Germany.46.0.html?&L=3">Thierry GmbH (Alemania)</a>'},
                'searchTab':{en:'<a href="Search.320.0.html"><b>Search</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>', es:'<a href="Search.320.0.html?&L=3"><b>B&uacute;squeda</b><!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--></a>'},
				'relRAL':{en:'<a href="Color-Cards-acc-to-RAL.117.0.html">Color Cards acc. to RAL</a>', es:'<a href="Color-Cards-acc-to-RAL.117.0.html?&L=3">Cat&aacute;logos de Color RAL</a>'},
				'relColorShow':{en:'<a href="Color-Shows.166.0.html">Color Shows</a>', es:'<a href="Color-Shows.166.0.html?&L=3">Exhibiciones de Color</a>'},
				'relFanDecks':{en:'<a href="Fan-Decks.146.0.html">Fan Decks</a>', es:'<a href="Fan-Decks.146.0.html?&L=3">Cat&aacute;logos de Color</a>'},
				'relTestAgents':{en:'<a href="Test-Agents.118.0.html">Test Agents</a>', es:'<a href="Test-Agents.118.0.html?&L=3">Agentes de Prueba</a>'},
				'relRefs':{en:'<a href="References.28.0.html">References</a>', es:'<a href="References.28.0.html?&L=3">Referencias</a>'},
				'relMasterMgmt':{en:'<a href="Master-Management.147.0.html">Master Management</a>', es:'<a href="Master-Management.147.0.html?&L=3">Gesti&oacute;n de Patrones</a>'},
				'relColorStandards':{en:'<a href="Color-Standards.145.0.html">Color Standards</a>', es:'<a href="Color-Standards.145.0.html?&L=3">Patrones de Color</a>'},
				'relColorMaster':{en:'<a href="Color-Standards.145.0.html">Color & Mastering</a>', es:'<a href="Color-Standards.145.0.html?&L=3">Color y Masterizaci&oacute;n</a>'},
				'relPlasmaProd':{en:'<a href="Plasma-Products.266.0.html">Plasma Products</a>', es:'<a href="Plasma-Products.266.0.html?&L=3">Productos de Plasma</a>'},
				'relRobots':{en:'<a href="TL-5050.304.0.html">Cartesian Robots</a>', es:'<a href="TL-5050.304.0.html?&L=3">Robot Cartesianos</a>'},
				'relEnergy':{en:'<a href="Waste-Heat-Exchanger.198.0.html">Heat Exchange</a>', es:'<a href="Waste-Heat-Exchanger.198.0.html?&L=3">Recuperaci&oacute;n de Energia</a>'},
				'relCareer':{en:'<a href="Careers.89.0.html"><img src="fileadmin/sys/gfx/buttons/buttonCareerOpportunity-Corp.png" alt="Career Opportunities" title="Career Opportunities"></a>', es:''},
				'webShop':{en:'<a href="https://store.thierry-corp.com/store/"><img border="0" src="uploads/pics/Shop_blue2_01.png" alt="Color &amp; Mastering - Online Shop" title="Color &amp; Mastering - Online Shop"></a>',es:'<a href="https://store.thierry-corp.com/store/"><img border="0" src="fileadmin/sys/gfx/buttons/ESautoshop.png" alt="Color y Masterizaci&oacute;n - Tienda Virtual" title="Color y Masterizaci&oacute;n - Tienda Virtual"></a>'},
				
        }
    var currentLang;
    var loginBoxWidth;
	
	if (document.title == "Thierry USA: About AEB-Robotics")
	{
		$$('div.csc-textpic div.csc-textpic-imagewrap dl.csc-textpic-image').set('class','heightFix');
	}
         
	var uparams = location.pathname.split(".");	
	
	var hideTab;
	
	if(document.title === 'Currently Under Maintenance - Thierry USA') // if index is 422 then site is under maintenance: hide menu and footer.
	{
			
			hideTab = document.getElementById('nav');
            hideTab.setAttribute("class", "hideMe");
            hideTab.setAttribute("className", "hideMe");
			
			hideTab= document.getElementById('footernav')
            hideTab.setAttribute("class", "hideMe");
            hideTab.setAttribute("className", "hideMe");
			
			return;
	}
	
    if(lCode === 1)
	{
		currentLang = 'en';
		
		if (uparams[1]==='367' ||
			uparams[1]==='371' ||
			uparams[1]==='389' ||
			uparams[1]==='390' ||
			uparams[1]==='394')
		{	
			document.links[0].href='/Diener-Plasma-Surfacing-Equipment.297.0.html?&L=3';
		}
		if (uparams[1] === '370')
		{
			document.links[0].href='Sistema-de-Bajo-Costo.297.0.html?MachineBrand=ATTO&L=3';
		}
		if (uparams[1] === '369')
		{
			document.links[0].href='Equipos-de-Plasma-Superficial.297.0.html?MachineBrand=PLASMABEAM&L=3';
		}
		if (uparams[1] === '389')
		{
			document.links[0].href='Sistema-para-Producion.297.0.html?MachineBrand=TETRA&GroupDesignation=GROUP A&L=3';
		}
		if (uparams[1]==='366' ||
			uparams[1]==='368')
		{
			document.links[0].href='/Limpieza-con-Plasma.279.0.html?&L=3';
		}
		if (uparams[1]==='374'
			)
		{
			document.links[0].href='/Activacion-con-Plamsa.287.0.html?&L=3';
		}
		if (uparams[1]==='373' ||
			uparams[1]==='381'
			)
		{
			document.links[0].href='/Grabacion-con-Plamsa.286.0.html?&L=3';
		}
		if (uparams[1]==='372'
			)
		{
			document.links[0].href='/Recubrimiento-con-Plamsa.285.0.html?&L=3';
		}
		if (uparams[1]==='365'
			)
		{
			document.links[0].href='/Servicios-de-Tratamiento-con Plasma.289.0.html?&L=3';
		}
		if (uparams[1]==='364'
			)
		{
			document.links[0].href='/Distribuidores-de-Plasma.288.0.html?&L=3';
		}
		if (uparams[1]==='363'
			)
		{
			document.links[0].href='/Acerca-de-Diener-Electronics.232.0.html?&L=3';
		}
		if (uparams[1]==='362'
			)
		{
			document.links[0].href='/Referencias-en-Plasma.151.0.html?&L=3';
		}
		
	}
    if(lCode === 3)
	{
        
            var headID = document.getElementsByTagName("head")[0];
            var cssNode = document.createElement("link");
        
            cssNode.type = "text/css";
            cssNode.rel = "stylesheet";
            cssNode.media = "screen";
            cssNode.href = "fileadmin/sys/css/esdefault.css";
        
            headID.appendChild(cssNode);

            currentLang = 'es';
            loginBoxWidth = document.getElementById('login');
            loginBoxWidth.style.width="545px";
            
			
			
			
			
            var newLinkURL = "&L=3"; //insert your URL
            
			/* ======================================= 
             this will append language POST var for URL in links on the page 
             to whatever newLinkURL is (i.e. &L=3 for spanish             
             i starts at 2 to skip first two links on page (flag links for language choosing) 
             ======================================= 
            */
			
			
			var res = uparams[4];
			for (i=4; i<document.links.length; i++)
			{
					if ( uparams[1] === '297' ||
						 (/\.pdf$/).test(document.links[i].href) ||
						 (/\.com$/).test(document.links[i].href) ||
						 (/\.de$/).test(document.links[i].href) ||
						 (/\L=3$/).test(document.links[i].href)){ /* do nothing */	}
					else {
                document.links[i].href=document.links[i].href+newLinkURL;}
            }
          
		/*	if(uparams[1] === '367')
			{
				i18n.hasOwnProperty('boleft')&&(elm=document.getElementById('boleft'))&&(elm.innerHTML=i18n['boleft'][currentLang]);
			} */
	}	
        for(id in i18n)
		{
		    i18n.hasOwnProperty(id)&&(elm=document.getElementById(id))&&(elm.innerHTML=i18n[id][currentLang]);
		}
		
		if(uparams[1]==='395' ||
		   uparams[1]==='367' ||
		   uparams[1]==='420' ||
		   uparams[1]==='353' ||
		   uparams[1]==='397' ||
		   uparams[1]==='379' ||
		   uparams[1]==='351' ||
		   uparams[1]==='414' ||
		   uparams[1]==='415' ||
		   uparams[1]==='416' ||
		   uparams[1]==='399' ||
		   uparams[1]==='344' ||
		   uparams[1]==='417' ||
		   uparams[1]==='418' ||
		   uparams[1]==='401' ||
		   uparams[1]==='419' ||
		   uparams[1]==='378' ||
		   uparams[1]==='402' ||
		   uparams[1]==='403' ||
		   uparams[1]==='404' ||
		   uparams[1]==='405' ||
		   uparams[1]==='406' ||
		   uparams[1]==='407' ||
		   uparams[1]==='408' ||
		   uparams[1]==='409' ||
		   uparams[1]==='410' ||
		   uparams[1]==='411' ||
		   uparams[1]==='412' ||
		   uparams[1]==='413')
			{	
            
            //alert("Found link!");
				for(x=0; x<document.links.length; x++)
				{
				
					if(document.links[x].href === 'http://dev.thierry-corp.com/Overview-Plasma-Systems.367.0.html?&L=3')
					{	
						// remmed by andersundsehr 2011-08-09: purpose unknown: document.links[x].href='/Overview-Plasma-Systems.367.0.html' ;
						
					}
					if(document.links[x].href === 'http://www.thierry-corp.com/Plasma-Applications.366.0.html?&L=3')
					{
						document.links[x].href='/Plasma-Applications.366.0.html' ;
					}
					if(document.links[x].href === 'http://www.thierry-corp.com/Plasma-Services.365.0.html?&L=3')
					{
						document.links[x].href = '/Plasma-Services.365.0.html';
						
					}
					if(document.links[x].href === 'http://www.thierry-corp.com/Plasma-Distributors.364.0.html?&L=3')
					{
						document.links[x].href = '/Plasma-Distributors.364.0.html';
					}
					if(document.links[x].href === 'http://www.thierry-corp.com/About-Diener.363.0.html?&L=3')
					{
						document.links[x].href = '/About-Diener.363.0.html';
					}
					if(document.links[x].href === 'http://www.thierry-corp.com/Plasma-References.362.0.html?&L=3')
					{
						document.links[x].href = '/Plasma-References.362.0.html';
					}
				
				}
			}
    
}


	
function launchGallery()
{
	
	window.addEvent('domready',function() {
    /* settings */
    var showDuration = 3000;
    var container = $('slideshow-container');
    var images = container.getElements('img');
    var currentIndex = 0;
    var interval;
    /* opacity and fade */
    images.each(function(img,i){
        if(i > 0) {
            img.set('opacity',0);
        }
    });
    /* worker */
    var show = function() {
        images[currentIndex].fade('out');
        images[currentIndex = currentIndex<images.length - 1 ? currentIndex+1 : 0].fade('in');
    };
    /* start once the page is finished loading */
    window.addEvent('load',function(){
        interval = show.periodical(showDuration);
    });
});
}

function whatTheOS(osInfo)
{	
/*
Determines user OS and loads appropriate stylesheet for Mac users
*/	
		var strOS = osInfo;

if (strOS.toLowerCase().indexOf('mac') != -1)
document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/macCss.css />");
//alert('Macintosh');	
}

function setCurrent(docTitle){

		
        var selectedTab;
		
		/*
			Courtesy of Twey of #javascript@irc.freenode.net
			Gets ID of page and sets uparams[1] as variable to use in comparisons by parsing the url
			for the Horizontal Menu
		
		Object.fromArray = function(arr){
			var r = {};
			arr.forEach( function(e){r[e[0]] = e[1]; });return r;};
			var uparams = Object.fromArray(document.location.search.slice(1).split(/[&;]/).map(function(e){return e.split('='); }));
		*/	
		var uparams;
		uparams = location.pathname.split(".");
		var res = uparams[4];
		
		var pageDomain = location.host;
				
		/* Micro branched conditional statements to determine "current" viewed page*/
		/* Menu item: CONTACT US 
		   Submenu  : Send Message, Thierry USA, Thierry Germany
		*/
		
		(uparams[1] === '45' ||
		 uparams[1] === '27' ||
		 docTitle === 'Thierry USA: Send Message' ||
		 docTitle === 'Thierry USA: Enviar Mensaje') && function(){            
		
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");

			selectedTab = document.getElementById('ContactUs');
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('ContactL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('SendMessage');
            selectedTab.setAttribute("class", "sub_showC");
            selectedTab.setAttribute("className", "sub_showC");

        return;}();

		(uparams[1] === '47' ||
		 docTitle === 'Thierry USA: Thierry Corporation (USA)' ||
		 docTitle === 'Thierry USA: Thierry Corporation (E.E.U.U.)') && function(){

			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");

			selectedTab = document.getElementById('ContactUs');
            selectedTab.setAttribute("class", "current currentC lastSelect");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('ContactL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('ThierryUSA');
            selectedTab.setAttribute("class", "sub_showC");
            selectedTab.setAttribute("className", "sub_showC");

        return;}();
		
		(uparams[1] === '46' ||
		 docTitle === 'Thierry USA: Thierry GmbH (Germany)' ||
		 docTitle === 'Thierry USA: Thierry GmbH (Alemania)') && function(){
		 
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");
		 
            selectedTab = document.getElementById('ContactUs');
            selectedTab.setAttribute("class", "current currentC lastSelect");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('ContactL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('ThierryGermany');
            selectedTab.setAttribute("class", "sub_showC");
            selectedTab.setAttribute("className", "sub_showC");

        return;}();
		
		/*
			Menu Item: HOME (id=33)
			Submenu: None
		*/
		(uparams[1]=== '33' ||
		 docTitle === 'Home - Thierry USA' ||
		 docTitle === 'Inicio - Thierry USA') && function(){            
			selectedTab = document.getElementById('Home');
            
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
            return;}();
		
		/*
			Menu Item: CORPORATE
			Submenu: About Thierry, Locations, Careers, Partners, All News, Management
		*/
		
		(uparams[1] === '35')/* About Thierry */ && function() { 
		
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");
			
			selectedTab = document.getElementById('Corporate');
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('CorporateL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('AboutThierry');
            selectedTab.setAttribute("class", "sub_showC");
            selectedTab.setAttribute("className", "sub_showC");

        return;}();
		(uparams[1] === '34' /* Locations */) && function(){
		
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");
			
            selectedTab = document.getElementById('Corporate');
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('CorporateL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('Locations');
            selectedTab.setAttribute("class", "sub_show sub_showC");
            selectedTab.setAttribute("className", "sub_show sub_showC");

        return;}();
		(uparams[1] === '89' /* Careers */) && function(){
		
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");
		
            selectedTab = document.getElementById('Corporate');
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('CorporateL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('Careers');
            selectedTab.setAttribute("class", "sub_show sub_showC");
            selectedTab.setAttribute("className", "sub_show sub_showC");

        return;}();
		(uparams[1] === '167' /* Partners */) && function(){
		
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");
		
            selectedTab = document.getElementById('Corporate');
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('CorporateL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('Partners');
            selectedTab.setAttribute("class", "sub_show sub_showC");
            selectedTab.setAttribute("className", "sub_show sub_showC");

        return;}();
		(uparams[1] === '36' /* All News */) && function(){
		
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");
		
            selectedTab = document.getElementById('Corporate');
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('CorporateL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('AllNews');
            selectedTab.setAttribute("class", "sub_show sub_showC");
            selectedTab.setAttribute("className", "sub_show sub_showC");

        return;}();
		(uparams[1] === '298' /* Management */) && function(){

			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/tcorp.css />");

			selectedTab = document.getElementById('Corporate');
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
        
            selectedTab = document.getElementById('CorporateL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('Management');
            selectedTab.setAttribute("class", "sub_show sub_showC");
            selectedTab.setAttribute("className", "sub_show sub_showC");

        return;}();
		
		/*
			Menu Item: COLOR & MASTERING
			Submenu: Services & Solutions, Products, References, About Color & Management
		*/
		
		/* Services & Solutions */
		(	uparams[1] === '140' /* Color Standards */ || 
			uparams[1] === '90' /* Color Standards */ ||
			uparams[1] === '145' /* Color Standards */ || 
			uparams[1] === '147' /*Master Management */ ||
			uparams[1] === '146' /* Fan Decks */ ||
			uparams[1] === '148' /* Corporate Color Cards */ || 
			uparams[1] === '144' /* COlor Composition */||
			uparams[1] === '120' /* Powder Panels */ || 
			uparams[1] === '165' /* Electrostatic Painting */ ||
			uparams[1] === '166' /* Color Shows */ || 
			uparams[1] === '142' /* Boundary Samples */ ) && function(){
			            
			selectedTab = document.getElementById('ColorMastering');
            selectedTab.setAttribute("class", "current");
            selectedTab.setAttribute("className", "current");
        
            selectedTab = document.getElementById('CML2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('ServicesSolutions');
            selectedTab.setAttribute("class", "sub_show");
            selectedTab.setAttribute("className", "sub_show");
			return;}();
        
		/* Products: */
		(	uparams[1] === '141' || /* Products */
		    uparams[1] === '117' || /* Color Cards acc. to RAL */
			uparams[1] === '118' || /* test Agents */
			uparams[1] === '122' || /* DuPont Test Agent */
			uparams[1] === '123' || /* Mercedes-Benz Test Agents */
			uparams[1] === '124' || /* BMW Test Agents */
			uparams[1] === '125' || /* GM Test Agents */
			uparams[1] === '126' || /* VW Test Agents */
			uparams[1] === '301' || /* Toyota Test Agent */
			uparams[1] === '119' || /* Substrates */
			uparams[1] === '128' || /* Aluminum Panels */
			uparams[1] === '129' || /* Steel Panels */
			uparams[1] === '130' || /* Plastic Panels */
			uparams[1] === '131' || /* Plastic Films */
			uparams[1] === '132' || /* Various Design Shapes */
			uparams[1] === '133' || /* Car Shapes */
			uparams[1] === '134' || /* Brady Stripes */
			uparams[1] === '318'    /* OEM Parts */
		) && function(){
				
            selectedTab = document.getElementById('ColorMastering');
            selectedTab.setAttribute("class", "current");
            selectedTab.setAttribute("className", "current");
        
            selectedTab = document.getElementById('CML2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('Products');
            selectedTab.setAttribute("class", "sub_show");
            selectedTab.setAttribute("className", "sub_show");

        return;}();   
		
		(uparams[1] === '28' /* References */) && function(){
            selectedTab = document.getElementById('ColorMastering');
            selectedTab.setAttribute("class", "current");
            selectedTab.setAttribute("className", "current");
        
            selectedTab = document.getElementById('CML2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('References');
            selectedTab.setAttribute("class", "sub_show");
            selectedTab.setAttribute("className", "sub_show");

        return;}();
		
		(uparams[1] === '294' /* About Thierry */ ) && function(){
            selectedTab = document.getElementById('ColorMastering');
            selectedTab.setAttribute("class", "current");
            selectedTab.setAttribute("className", "current");
        
            selectedTab = document.getElementById('CML2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('AboutColorMastering');
            selectedTab.setAttribute("class", "sub_show");
            selectedTab.setAttribute("className", "sub_show");

        return;}();
		
		/* Search */
		(uparams[1] === '320') && function(){
			selectedTab = document.getElementById('Search');
            
            selectedTab.setAttribute("class", "current currentC");
            selectedTab.setAttribute("className", "current currentC");
            return;}();

		
		/*
			Menu Item: PLASMA TECHNOLOGY
			Submenu: Plasma Products, Plasma Applications, Plasma Consulting, Plasma Services, Plasma Services, Plasma Distributors, About Diener, Plasma References
		*/
		
		(pageDomain === "www.thierry-plasma.com" ||
		 pageDomain === "thierry-plasma.com" ||
		 uparams[1] === '367'||
		 uparams[1] === '371'||
		 uparams[1] === '370'||
		 uparams[1] === '369'||
		 uparams[1] === '389'||
		 uparams[1] === '390'||
		 uparams[1] === '394'||
		 uparams[1] === '459'||
		 uparams[1] === '297' ||
		 docTitle === "Diener Plasma Surfacing Equipment - Thierry USA" /* Plasma Products */) && function(){
		 
            selectedTab = document.getElementById('PlasmaTech');
            selectedTab.setAttribute("class", "current currentP");
            selectedTab.setAttribute("className", "current currentP");
        
            selectedTab = document.getElementById('PlasmaL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('PlasmaProducts');
            selectedTab.setAttribute("class", "sub_show sub_showP");
            selectedTab.setAttribute("className", "sub_show sub_showP");
			
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");

        return;}();
		
		/* Plasma Aplications */
		(	docTitle === 'Thierry USA: Plasma Cleaning' || 
			docTitle === 'Thierry USA: Limpieza con Plasma' || 
			uparams[1] === '366' ||
			uparams[1] === '368' ||
			uparams[1] === '374' ||
			uparams[1] === '373' ||
			uparams[1] === '381' ||
			uparams[1] === '372' ||
			uparams[1] === '279' ||
			uparams[1] === '287' ||
			uparams[1] === '286' ||	
			uparams[1] === '285' ||
			uparams[1] === '280' ||
			docTitle === 'Thierry USA: Plasma Activation' || 
			docTitle === 'Thierry USA: Activación con Plasma' ||
			docTitle === 'Thierry USA: Plasma Etching' ||
			docTitle === 'Thierry USA: Grabación con Plasma' ||
			docTitle === 'Thierry USA: Plasma Coating' ||
			docTitle === 'Thierry USA: Recubrimiento con Plasma') && function(){
            selectedTab = document.getElementById('PlasmaTech');
            selectedTab.setAttribute("class", "current currentP");
            selectedTab.setAttribute("className", "current currentP");
        
            selectedTab = document.getElementById('PlasmaL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('PlasmaApps');
            selectedTab.setAttribute("class", "sub_show sub_showP");
            selectedTab.setAttribute("className", "sub_show sub_showP");
			
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");

        return;}();
		
		
		(uparams[1] === '365' /* Plasma Services */) && function(){
            selectedTab = document.getElementById('PlasmaTech');
            selectedTab.setAttribute("class", "current currentP");
            selectedTab.setAttribute("className", "current currentP");
        
            selectedTab = document.getElementById('PlasmaL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('PlasmaServices');
            selectedTab.setAttribute("class", "sub_show sub_showP");
            selectedTab.setAttribute("className", "sub_show sub_showP");
			
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");

        return;}();
		
		(uparams[1] === '364'/* Plasma Distributors*/) && function(){
            selectedTab = document.getElementById('PlasmaTech');
            selectedTab.setAttribute("class", "current currentP");
            selectedTab.setAttribute("className", "current currentP");
        
            selectedTab = document.getElementById('PlasmaL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('PlasmaDistro');
            selectedTab.setAttribute("class", "sub_show sub_showP");
            selectedTab.setAttribute("className", "sub_show sub_showP");

			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");
        return;}();
		
		(uparams[1] === '363' /* About Diener */) && function(){
            selectedTab = document.getElementById('PlasmaTech');
            selectedTab.setAttribute("class", "current currentP");
            selectedTab.setAttribute("className", "current currentP");
        
            selectedTab = document.getElementById('PlasmaL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('AboutDiener');
            selectedTab.setAttribute("class", "sub_show sub_showP");
            selectedTab.setAttribute("className", "sub_show sub_showP");

			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");
        return;}();
		
		(uparams[1] === '362' ||
		 uparams[1] === '151' /* Plasma References */) && function(){
            selectedTab = document.getElementById('PlasmaTech');
            selectedTab.setAttribute("class", "current currentP");
            selectedTab.setAttribute("className", "current currentP");
        
            selectedTab = document.getElementById('PlasmaL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('PlasmaRefs');
            selectedTab.setAttribute("class", "sub_show sub_showP");
            selectedTab.setAttribute("className", "sub_show sub_showP");

			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");
			
			return;}();
			
			(uparams[1] === '395' || //Plasma Knowledge Base
			 uparams[1] === '420' || // A
			 uparams[1] === '353' || // Atmospheric Plasma
			 uparams[1] === '397' || // C
			 uparams[1] === '379' || // Chemical Vapor Deposition
			 uparams[1] === '351' || // Contact Angle
			 uparams[1] === '414' || // H
			 uparams[1] === '415' || // Hydrophillic
			 uparams[1] === '416' || // Hydrohobic
			 uparams[1] === '399' || // N
			 uparams[1] === '344' || // Nanotechhnology
			 uparams[1] === '417' || // O
			 uparams[1] === '418' || // Oleophobic
			 uparams[1] === '401' || // P
			 uparams[1] === '419' || // Physical Vapor Deposition
			 uparams[1] === '378' || // Plasma Activation
			 uparams[1] === '402' || // Plasma Etcher
			 uparams[1] === '403' || // Plasma Polymerization
			 uparams[1] === '404' || // Plasma System
			 uparams[1] === '405' || // R
			 uparams[1] === '406' || // RIE
			 uparams[1] === '407' || // S
			 uparams[1] === '408' || // Surface Coating
			 uparams[1] === '409' || // Surface Energy
			 uparams[1] === '410' || // Surface Tension
			 uparams[1] === '411' || // W
			 uparams[1] === '412' || // Wettability
			 uparams[1] === '413'  // What is Plasma?
			 /* Knowledge Base */) && function(){
            selectedTab = document.getElementById('PlasmaTech');
            selectedTab.setAttribute("class", "current currentP");
            selectedTab.setAttribute("className", "current currentP");
        
            selectedTab = document.getElementById('PlasmaL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('PlasmaKnowledge');
            selectedTab.setAttribute("class", "sub_show sub_showP");
            selectedTab.setAttribute("className", "sub_show sub_showP");

			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/plasma.css />");

        return;}();
		
		/*
			Menu Item: CARTESIAN ROBOTS
			Submenu - <Title> (<id>): Overhead Robots (304), Desktop Robots, Robot Applications, Robot Accessories, About AEB-Robotics
		*/
		
		(	pageDomain === "www.thierry-robotics.com" ||
			pageDomain === "thierry-robotics.com" ||
			uparams[1]=== '304' /* Overhead Robot */) && function(){
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/robot.css />");
			
            selectedTab = document.getElementById('CartesianRobots');
            selectedTab.setAttribute("class", "current currentR");
            selectedTab.setAttribute("className", "current currentR");
        
            selectedTab = document.getElementById('RobotsL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('OverheadRobots');
            selectedTab.setAttribute("class", "sub_show sub_showR");
            selectedTab.setAttribute("className", "sub_show sub_showR");

        return;}();
		
		(   uparams[1] === '292' /* Mario(WRL200)*/ ||
			uparams[1] === '299' /* WR300)*/ ||
			uparams[1] === '300' /* WR500)*/) && function(){
			
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/robot.css />");
			
            selectedTab = document.getElementById('CartesianRobots');
            selectedTab.setAttribute("class", "current currentR");
            selectedTab.setAttribute("className", "current currentR");
        
            selectedTab = document.getElementById('RobotsL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('DesktopRobots');
            selectedTab.setAttribute("class", "sub_show sub_showR");
            selectedTab.setAttribute("className", "sub_show sub_showR");

        return;}();
		
		(
			uparams[1]==='311' ||
			uparams[1]==='312' ||
			uparams[1]==='313' ||
			uparams[1]==='314' ||
			uparams[1]==='315' ||
			uparams[1]==='316' ||
			uparams[1]==='271' ||
			docTitle === 'Thierry USA: Robotics Applications - Dispensing' ||
			docTitle === 'Thierry USA: Dispensar' ||
			docTitle === 'Thierry USA: Robotics Applications - Milling' ||
			docTitle === 'Thierry USA: Aplicaciones con Robots - Limpieza de PCBs' ||
			docTitle === 'Thierry USA: Robotics Applications - Drawing' ||
			docTitle === 'Thierry USA: Aplicaciones con robots - Dijubar' ||
			docTitle === 'Thierry USA: Robotics Applications - PCB Waste Removal' ||
			docTitle === 'Thierry USA: Aplicaciones con Robots - Rellenar' ||
			docTitle === 'Thierry USA: Robotics Applications - Filling' ||
			docTitle === 'Thierry USA: Aplicaciones con Robots - Atornillar' ||
			docTitle === 'Thierry USA: Robotics Applications - Screwing' ||
			docTitle === 'Thierry USA: Aplicaciones con Robots - Grabación' ) && function(){
			
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/robot.css />");
			
            selectedTab = document.getElementById('CartesianRobots');
            selectedTab.setAttribute("class", "current currentR");
            selectedTab.setAttribute("className", "current currentR");
        
            selectedTab = document.getElementById('RobotsL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('RobotApps');
            selectedTab.setAttribute("class", "sub_show sub_showR");
            selectedTab.setAttribute("className", "sub_show sub_showR");

        return;}();
		
		(	uparams[1] === '305' ||
			uparams[1] === '308' ||
			uparams[1] === '307' ||
			uparams[1] === '306' ||
			uparams[1] === '309' ||
			uparams[1] === '310' /* Robot Accessories */) && function(){
			
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/robot.css />");
			
            selectedTab = document.getElementById('CartesianRobots');
            selectedTab.setAttribute("class", "current currentR");
            selectedTab.setAttribute("className", "current currentR");
        
            selectedTab = document.getElementById('RobotsL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('RobotAcsry');
            selectedTab.setAttribute("class", "sub_show sub_showR");
            selectedTab.setAttribute("className", "sub_show sub_showR");

        return;}();
		
		(
			uparams[1] === '234') && function(){
            
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/robot.css />");
			
			selectedTab = document.getElementById('CartesianRobots');
            selectedTab.setAttribute("class", "current currentR");
            selectedTab.setAttribute("className", "current currentR");
        
            selectedTab = document.getElementById('RobotsL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('AboutAEB');
            selectedTab.setAttribute("class", "sub_show sub_showR");
            selectedTab.setAttribute("className", "sub_show sub_showR");

        return;}();
		
		/*
			Menu Item: ENERGY RECOVERY
			Submenu: Energy Products, Abour Scheuchl, Energy References
		*/
		
		/* Energy Products */
		
		/* id 198 --> High Temp
		   id 197 --> Paint Booth*/
			(pageDomain === "www.dryer-heat-exchanger.com" ||
			 pageDomain === "dryer-heat-exchanger.com" ||
			 pageDomain === "www.industrial-air-exchanger.com" ||
			 pageDomain === "industrial-air-exchanger.com" ||
			 pageDomain === "www.heat-recovery-exchanger.com" ||
			 pageDomain === "heat-recovery-exchanger.com" ||
			 pageDomain === "www.waste-heat-exchanger.com" ||
			 pageDomain === "waste-heat-exchanger.com" ||
			 uparams[1] === '198' || 
			 uparams[1] === '197' || 
			 uparams[1] === '113' || 
			 uparams[1] === '114' ||
			 uparams[1] === '326' ||
			 docTitle === 'Thierry USA: High Temp. Applications') && function(){
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/energy.css />");

            selectedTab = document.getElementById('EnergyRecovery');
            selectedTab.setAttribute("class", "current currentE");
            selectedTab.setAttribute("className", "current currentE");
        
            selectedTab = document.getElementById('EnergyL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('EnergyProducts');
            selectedTab.setAttribute("class", "sub_show sub_showE");
            selectedTab.setAttribute("className", "sub_show sub_showE");

        return;}();
		
			/* id=330, 331, 332, 334, 335
				Energy Applications and sub elements
			*/
			(uparams[1] === '330' ||
			 uparams[1] === '331' ||
			 uparams[1] === '332' ||
			 uparams[1] === '334' ||
			 uparams[1] === '335' ||
			 uparams[1] === '336' ||
			 uparams[1] === '337' ||
			 uparams[1] === '338')&& function(){
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/energy.css />");

            selectedTab = document.getElementById('EnergyRecovery');
            selectedTab.setAttribute("class", "current currentE");
            selectedTab.setAttribute("className", "current currentE");
        
            selectedTab = document.getElementById('EnergyL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('EnergyApps');
            selectedTab.setAttribute("class", "sub_show sub_showE");
            selectedTab.setAttribute("className", "sub_show sub_showE");

        return;}();
		
			/* id=333
				Energy Features
			*/
			(uparams[1] === '333')&& function(){
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/energy.css />");

            selectedTab = document.getElementById('EnergyRecovery');
            selectedTab.setAttribute("class", "current currentE");
            selectedTab.setAttribute("className", "current currentE");
        
            selectedTab = document.getElementById('EnergyL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('EnergyFeatures');
            selectedTab.setAttribute("class", "sub_show sub_showE");
            selectedTab.setAttribute("className", "sub_show sub_showE");

        return;}();

			/* id=154
				Energy Features
			*/
			(uparams[1] === '154')&& function(){
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/energy.css />");

            selectedTab = document.getElementById('EnergyRecovery');
            selectedTab.setAttribute("class", "current currentE");
            selectedTab.setAttribute("className", "current currentE");
        
            selectedTab = document.getElementById('EnergyL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('EnergyIncentives');
            selectedTab.setAttribute("class", "sub_show sub_showE");
            selectedTab.setAttribute("className", "sub_show sub_showE");

        return;}();


		
			/* id 233 --> About R. Scheuchl*/		
            
			(uparams[1] === '233') && function(){
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/energy.css />");

			selectedTab = document.getElementById('EnergyRecovery');
            selectedTab.setAttribute("class", "current currentE");
            selectedTab.setAttribute("className", "current currentE");
        
            selectedTab = document.getElementById('EnergyL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('AboutRS');
            selectedTab.setAttribute("class", "sub_show sub_showE");
            selectedTab.setAttribute("className", "sub_show sub_showE");
			
        return;}();
            
			/* id 153 --> Energy References*/
			(uparams[1] === '153') && function(){
			document.write("<link rel=stylesheet type=text/css media=screen,projection href=fileadmin/sys/css/energy.css />");
			
            selectedTab = document.getElementById('EnergyRecovery');
            selectedTab.setAttribute("class", "current currentE");
            selectedTab.setAttribute("className", "current currentE");
        
            selectedTab = document.getElementById('EnergyL2');
            selectedTab.setAttribute("class", "select_sub show");
            selectedTab.setAttribute("className", "select_sub show");
        
            selectedTab = document.getElementById('EnergyRefs');
            selectedTab.setAttribute("class", "sub_show sub_showE");
            selectedTab.setAttribute("className", "sub_show sub_showE");

        return;
            }();
       
}
