function initOverLabels(){if(!document.getElementById)return;var b,id,field;b=document.getElementsByTagName('label');for(var i=0;i<b.length;i++){if(b[i].className=='overlabel'){id=b[i].htmlFor||b[i].getAttribute('for');if(!id||!(field=document.getElementById(id))){continue}b[i].className='overlabel-apply';if(field.value!==''){hideLabel(field.getAttribute('id'),true)}field.onfocus=function(){hideLabel(this.getAttribute('id'),true)};field.onblur=function(){if(this.value===''){hideLabel(this.getAttribute('id'),false)}};b[i].onclick=function(){var a,field;a=this.getAttribute('for');if(a&&(field=document.getElementById(a))){field.focus()}}}}};function hideLabel(a,b){var c;var d=document.getElementsByTagName('label');for(var i=0;i<d.length;i++){c=d[i].htmlFor||d[i].getAttribute('for');if(c==a){d[i].style.textIndent=(b)?'-1000px':'0px';return true}}}window.onload=function(){setTimeout(initOverLabels,50);document.loginform.user_login.focus()};function setTooltip(a,b){$(b).after('<span id="tooltip" style="margin-left:10px;"></span>');$('#tooltip').html(a)}function delTooltip(){$('#tooltip').remove()}jQuery(function($){var c={container:null,init:function(){$("input.osx, a.osx").click(function(e){e.preventDefault();$("#osx-modal-content").modal({overlayId:'osx-overlay',containerId:'osx-container',closeHTML:null,minHeight:80,opacity:80,position:['0',],overlayClose:true,onOpen:c.open,onClose:c.close})})},open:function(d){var b=this;$("#upload").toggle();b.container=d.container[0];d.overlay.fadeIn('slow',function(){$("#osx-modal-content",b.container).show();var a=$("#osx-modal-title",b.container);a.show();d.container.slideDown('slow',function(){setTimeout(function(){var h=$("#osx-modal-data",b.container).height()+a.height()+20;d.container.animate({height:h},200,function(){$("div.close",b.container).show();$("#osx-modal-data",b.container).show()})},300)})})},close:function(d){var a=this;d.container.animate({top:"-"+(d.container.height()+20)},500,function(){a.close();$("#upload").toggle();})}};c.init()});$(document).ready(function(){$(".prod_large .product_button").hover(function(){$(".badge_preis img").stop(true,true).animate({top:"-5px"},"fast");$(".prod_large ul li strong").css({color:'#000'})},function(){$(".badge_preis img").animate({top:"0px"},"fast");$(".prod_large ul li strong").css({color:'#333'})});$(".prod_large .btn_go").hover(function(){$(".badge_preis img").stop(true,true).animate({top:"-5px"},"fast");$(".prod_large ul li strong").css({color:'#000'})},function(){$(".badge_preis img").animate({top:"0px"},"fast");$(".prod_large ul li strong").css({color:'#333'})});$(".prod_small .btn_go").hover(function(){$(".badge_gratis img").stop(true,true).animate({top:"-5px"},"fast");$(".prod_small ul li strong").css({color:'#000'})},function(){$(".badge_gratis img").animate({top:"0px"},"fast");$(".prod_small ul li strong").css({color:'#333'})})});

$(document).ready(function() {
  $("#tab-passbilder").click(function(event) {
    event.preventDefault();
    $("#bewerbungsfotos-info").addClass("hidden");
    $("#tab-bewerbungsfotos").parent().removeClass("selected");
    $("#tab-passbilder").parent().addClass("selected");
    $("#passbilder-info").removeClass("hidden");
    $("#per_download").text("Passbilder erstellen");
    $("#per_download").attr("href", "http://www.idphoto.ch/upload/");
  });
  $("#tab-bewerbungsfotos").click(function(event) {
    event.preventDefault();
    $("#bewerbungsfotos-info").removeClass("hidden");
    $("#tab-bewerbungsfotos").parent().addClass("selected");
    $("#tab-passbilder").parent().removeClass("selected");
    $("#passbilder-info").addClass("hidden");
    $("#per_download").text("Bewerbungsfotos erstellen");
    $("#per_download").attr("href", "http://www.idphoto.ch/upload/bewerbungsfoto.php");
  });
});

