
function replaceMailToLink(e){var ext=e.childNodes[1];var contNode=e;var link='';if(ext.className=='liam'){var title=e.firstChild.nodeValue;contNode=ext;}
for(var c=0;c<contNode.childNodes.length;c++)
if(contNode.childNodes[c].nodeType==3)link+=contNode.childNodes[c].nodeValue.replace(/ ?(­|&#173;|&shy;|&#x00AD;) ?/g,"");var a=document.createElement('a');if(title==undefined)var title=link;a.href='mailto:'+link;a.innerHTML=title;e.parentNode.replaceChild(a,e);}
function setMapsonEvent(){$$('span.mapson').each(function(e){e.stopObserving('mouseover');e.observe('mouseover',function(event){replaceMailToLink(e);})});}
function setHyphenationFunction(){if(typeof MoreCSS!='undefined'&&typeof MoreCSS.hyphenation=='function'){var oldHyphenation=MoreCSS.hyphenation;MoreCSS.hyphenation=function(element,properties){oldHyphenation(element,properties,function(){setMapsonEvent();});}}}
if(typeof jQuery!='undefined'){(function($){$(function(){$('span.mapson').live('mouseover',function(){replaceMailToLink(this);});});})(jQuery);}
else if(typeof Prototype!='undefined'){document.observe('dom:loaded',function(){setHyphenationFunction();setMapsonEvent();});}

(function($){$(function(){$('a.blank').live('click',function(){url=$(this).attr('href');window.open(url);return false;});$('input.blank').closest('form').live('submit',function(){window.open();return true;});});})(jQuery);

(function($){$(function(){var count=$('.slidenav > li').length;var activeSlide=$('.slidenav > li').index($('.slidenav > li.active'));var animates=false;function rightIn(elem){$(elem).css('left','700px').show().animate({left:'0px'},800,'jswing',function(){$(this).parent().addClass('active');animates=false;});}
function rightOut(elem){$(elem).animate({left:'700px'},800,'jswing',function(){$(this).parent().removeClass('active');$(this).hide();animates=false;});}
function leftOut(elem){animates=true;$(elem).animate({left:'-700px'},800,'jswing',function(){$(this).parent().removeClass('active');$(this).hide();animates=false;});}
function leftIn(elem){animates=true;$(elem).css('left','-700px').show().animate({left:'0px'},800,'jswing',function(){$(this).parent().addClass('active');animates=false;});}
$('.slidebar a.prev').attr('href','javascript:void(0)').click(function(){if(activeSlide>0&&!animates){animates=true;leftIn($('.slidenav > li').eq(activeSlide-1).find('.ct'));rightOut($('.slidenav li.active').find('.ct'));activeSlide--;}});$('.slidebar a.next').attr('href','javascript:void(0)').click(function(){if(activeSlide<count-1&&!animates){animates=true;rightIn($('.slidenav > li').eq(activeSlide+1).find('.ct'));leftOut($('.slidenav li.active').find('.ct'));activeSlide++;}});$('.slidenav li > a').attr('href','javascript:void(0)').click(function(){var elem=$(this).parent();if(!animates){if(activeSlide>$('.slidenav > li').index(elem)){leftIn($(elem).find('.ct'));rightOut($('.slidenav li.active').find('.ct'));}else if(activeSlide<$('.slidenav > li').index(elem)){rightIn($(elem).find('.ct'));leftOut($('.slidenav li.active').find('.ct'));}
activeSlide=$('.slidenav > li').index(elem);}}).find('a').attr('href','javascript:void(0)');});})(jQuery);

function metaSlideOpen(){$('.slide, .meta_closer').show();}
function metaSlideClose(){$('.slide, .meta_closer').hide();}
function downloadURL(){if(download_url.length!=0&&!jQuery.browser.msie){window.location.href=download_url;}}
$.fn.addHighlightSpan=function(hltext){var text=$(this).html();var reg=new RegExp(hltext,'i');var split=text.split(reg);$(this).html(split[0]);var length=split[0].length;for(var i=1;i<split.length;i++){$(this).append($(document.createElement('span')).text(text.substring(length,length+hltext.length)).addClass('light'));$(this).append(split[i]);length+=hltext.length+split[i].length;}};$.fn.removeHighlightSpan=function(){$(this).html($(this).html().replace(/(<([^>]+)>)/ig,""));};jQuery.extend(jQuery.expr[':'],{startsWith:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||'').toLowerCase().indexOf((m[3]||'').toLowerCase())==0;}});(function($){$(function(){$('#language a.closer').attr('href','javascript:void(0)');$('a.ltbx').each(function(){$(this).attr('rel','lyteframe').attr('href',$(this).attr('href')+'?ltbx=true');});$('#language .opener a').attr('href','javascript:void(0)').click(function(){$('#language .selector').slideDown('normal',function(){$('body').one('click',function(){$('#language .selector').slideUp('normal');})});});$('.meta_slider').click(function(){metaSlideOpen();});$('.meta_closer a').attr('href','javascript:void(0)').click(function(){metaSlideClose();});if($('.animation .download select')){$('.animation .download select').change(function(){var url=$('.download select').attr('value');if(url.length!=0){window.open(url,'Animation - Download');}});}
if($('#kontakt')){$('#contact_selector').change(function(){var id=$(this).attr('value');$(this).parent().find('ul').hide();$('#'+id).show();});$('#contact_person_selector select').change(function(){var id=$(this).attr('value');$(this).parent().find('.contact_person').hide();$('#'+id).show();});$('#consultals_selector select').change(function(){var id=$(this).attr('value');$(this).parent().find('.contact_person').hide();$('#'+id).show();});}
if($('#requestform')){if($('#moreproducts:checked').length){$('#products').show();$('label:[for=moreproducts]').addClass('active');}
if($('#sendbymail:checked').length){$('#address').show();$('#forsendbymail').addClass('bold');}
if($('#callme:checked').length){$('#numbers').show();$('label:[for=callme]').addClass('active');}
$('#moreproducts').click(function(){$('#products').toggle();$('label:[for=moreproducts]').toggleClass('active');});$('#sendbymail').click(function(){$('#address').toggle();$('#forsendbymail').toggleClass('bold');});$('#callme').click(function(){$('#numbers').toggle();$('label:[for=callme]').toggleClass('active');});$('#newsletter').click(function(){$(this).next().toggleClass('active');});}
$('.triplegallery > div > div > *').click(function(){var $this=$(this).parent().parent();if($this.is('.first'))return;var $first=$('.triplegallery').find('.first').eq(0);var $temp=$this.children();$first.children().each(function(){$this.append(this);});$temp.each(function(){$first.append(this);});$first.find('object').attr('width',258).attr('height',258);if($first.find('img').length)
$first.find('img').attr('src',$first.find('img').attr('src').replace(/123/g,'258'));$this.find('object').attr('width',124).attr('height',123);if($this.find('img').length)
$this.find('img').attr('src',$this.find('img').attr('src').replace(/258/g,'123'));});$('#printlink').click(function(){window.print();});$('#lang_selector').closest('form').find('input[type="submit"]').hide();$('#lang_selector').change(function(){$(this).closest('form').submit();});if($('#prodsubnavigation')){$.fn.subMenuSlide=function(){var a=$(this);var li=$(a).parent().parent();var container=$(li).find('> .container');if($(a).hasClass('active')){$(a).parent().removeClass('active');$(container).animate({height:0,opacity:0},600,'jswing',function(){$(this).css('height','auto').hide().parent().removeClass('active').find('a').removeClass('active');});}else{$('#prodsubnavigation li.nav1.haschild').find('.wrp a.active').parent().removeClass('active').parent().find('> .container').animate({height:0},600,'jswing',function(){$(this).hide().css('height','auto').parent().removeClass('active').find('a').removeClass('active');});$(li).find('.wrp').addClass('active');var h=$(container).height();$(container).height(0);$(li).find('> .container').animate({height:h,opacity:1},600,'jswing',function(){$(a).addClass('active');$(li).addClass('active');});}}
$('#prodsubnavigation li.nav1.haschild').not('.hascontent').find('.wrp a').click(function(){$(this).subMenuSlide();}).attr('href','javascript:void(0)');$('#prodsubnavigation li.nav1 .wrp').click(function(){window.location.href=$(this).find('a').attr('href');}).css({'cursor':'pointer'});}
$('#search_query').keyup(function(){var searchString=$(this).val();var searchUl=$('#suggestion');$(searchUl).children().hide();if(searchString.length>0){$('li:startsWith('+searchString+')',searchUl).each(function(){$(this).removeHighlightSpan();$(this).addHighlightSpan(searchString);$(this).show();});}});$('#suggestion li').click(function(){$(this).removeHighlightSpan();$('#search_query').attr('value',$(this).text());$('#rex_form_search').submit();});$('.meta_news.jobs .more').click(function(){$('.meta_news.active .large').slideUp('slow',function(){$(this).parent().parent().removeClass('active');});$('.meta_news.active .small').slideDown();$(this).parent().find('.large').slideDown('slow',function(){$(this).parent().parent().addClass('active')});$(this).parent().find('.small').slideUp();});$('.slidedownlink').click(function(){$(this).parent().find('.open').next().slideUp('slow',function(){$(this).prev().toggleClass('open')});$(this).next().slideToggle('slow',function(){$(this).prev().toggleClass('open')});return false;})
$('#language .selector [title]').click(function(){$.cookie('locale',$(this).attr('title'),{path:'/',expires:10});});$('#allproducts').click(function(){$('.checkboxcontainer:first input[type=checkbox]').not(':disabled').attr('checked',$(this).is(':checked'));});var ce_timeout=null;$('.cert .wrp, .cepdfform a').mouseenter(function(){hideCeForms();$('.ce_form',$(this).parent()).css('display','block');});$('.cert .wrp, .cepdfform a').mouseleave(function(){ce_timeout=window.setTimeout('hideCeForms()',2500);});$('.ce_form').hover(function(){$(this).css('display','block');window.clearTimeout(ce_timeout);},function(){ce_timeout=window.setTimeout('hideCeForms()',2500);});});})(jQuery);function hideCeForms(){$('.cert, .cepdfform').find('.ce_form').css('display','');ce_timeout=null;}

(function($){$(function(){var navAnimates=false;var duration=800;function showProductSlide(a,div){navAnimates=true;var height='271px';if($(div).hasClass('small')){height='32px';}else{$('#hideinproducts').animate({height:'240px'},duration,'easeInExpo',function(){$(this).addClass('open')}).show();}
$(div).animate({height:height},duration,'easeInExpo',function(){$(div).addClass('open');navAnimates=false;}).removeClass('bg1').addClass('bg2');$(a).parent().addClass('open');$('#prodnavigation li.active, #prodnavigation div.active').removeClass('active');setSlideOpenCookie(index+1);}
function hideProductSlide(extrahide){navAnimates=true;$('.slidedown div.open').animate({height:'0px'},duration,'easeInExpo',function(){$(this).removeClass('bg2').addClass('bg1');navAnimates=false;});$('#prodnavigation .open').removeClass('open');$('.activemark').addClass('active');if(extrahide){$('#hideinproducts').animate({height:'0px'},duration,'easeInExpo',function(){$(this).hide();}).removeClass('open');}
setSlideOpenCookie(null);}
function setSlideOpenCookie(num){var options={path:'/',expires:10};$.cookie('product_slide_open',num,options);}
$('#prodnavigation .top a.nav').attr('href','javascript:void(0)').click(function(e){if(!navAnimates){index=$('#prodnavigation .top a.nav').index(this);var div=$('#prodnavigation .slidedown div.nav1').eq(index);if($(div).height()==271)return;hideProductSlide();showProductSlide(this,div);}});$('#prodnavigation .closer a').attr('href','javascript:void(0)').click(function(){if(!navAnimates){hideProductSlide(true);}});$('#prodnavigation .slidedown a.nav2').each(function(){$(this).attr('href',$(this).attr('href').replace('?close','')).click(function(){setSlideOpenCookie(null);});});});})(jQuery);

$(document).ready(function(){$('select.jsuiSelect').each(function(selectID){var select=this;var divSelect=document.createElement('span');$(divSelect).addClass('jsuiSelect').css('zindex',10000-selectID*100);var divView=document.createElement('span');$(divView).addClass('view').css('zindex',divSelect.style.zIndex+1);var divRolloutBtn=document.createElement('span');$(divRolloutBtn).addClass('rolloutBtn').css('zindex',divSelect.style.zIndex+5);var divRolloutContainer=document.createElement('span');$(divRolloutContainer).addClass('rolloutContainer').css('zindex',divSelect.style.zIndex+1);var divRollout=document.createElement('span');$(divRollout).addClass('rollout').css('zindex',divSelect.style.zIndex+2);$(divView).click(function(){$(divRolloutBtn).trigger('click');});$(divSelect).append(divRolloutBtn);$(divSelect).append(divView);$(divRolloutContainer).append(divRollout);$(divSelect).append(divRolloutContainer);$('option',select).each(function(){var index=$('option',select).index($(this));var span=document.createElement('span');$(span).html($(this).html());var link=document.createElement('a');$(link).attr('href','javascript:;');$(link).append(span);if($(this).attr('disabled')==false){$(link).click(function(){$(divView).html($(this).html());$(divRolloutBtn).trigger('click');select.selectedIndex=index;$(select).trigger('change');});}else{$(link).addClass('jsuiSelectDisabled');}
if($(this).attr('selected'))$(divView).html($(this).html());if(!divSelect.cntOptions)divSelect.cntOptions=0;if($(this).attr('disabled')==false){$(divRollout).append(link);divSelect.cntOptions++;}});$(divRolloutContainer).hide();divSelect.rolledOut=false;var visibleChilds=Math.min(divSelect.cntOptions,6);$(divRolloutContainer).css({'height':visibleChilds*20+'px','overflow':'hidden'});$(divRollout).css({'height':visibleChilds*20+'px','overflow-y':'auto','overflow-x':'hidden'});$(divRolloutBtn).mouseover(function(){$(divSelect).addClass('jsuiSelectOn');});$(divRolloutBtn).mouseout(function(){$(divSelect).removeClass('jsuiSelectOn');});$(divRolloutBtn).click(function(){if(divSelect.rolledOut==false){divSelect.rolledOut=true;$(divRolloutContainer).show();}else{divSelect.rolledOut=false;$(divRolloutContainer).hide();}});$(select).hide();$(select).after(divSelect);});$('input.jsuiFileInput').each(function(){var input=this;var inputName=$(input).attr('name');var title=$(input).attr('title');var divInput=document.createElement('div');$(divInput).addClass('jsuiFileInput');var fakeinput=document.createElement('input');$(fakeinput).attr({type:'text'});var button=document.createElement('input');$(button).attr('type','button');$(button).attr('value',title);$(divInput).append(fakeinput);$(divInput).append(button);$(this).css({'position':'absolute','z-index':'2','right':'0','opacity':'0'});$(this).parent().css({'position':'relative'});$(divInput).css({'position':'absolute'});$(input).change(function(){$(fakeinput).attr('value',$(input).attr('value'));});$(this).after(divInput);});});
