
window.jsboxed={};(window.jsboxed['vendors/default-uncompress']=new function(){var dean=(window.jsboxed['vendors/events']=new function(){var guid=1;this.addEvent=function(element,type,handler){if(!handler.$$guid)handler.$$guid=guid++;if(!element.events)element.events={};var handlers=element.events[type];if(!handlers){handlers=element.events[type]={};if(element["on"+type]){handlers[0]=element["on"+type];}}
handlers[handler.$$guid]=handler;element["on"+type]=handleEvent;}
this.removeEvent=function(element,type,handler){if(element.events&&element.events[type]){delete element.events[type][handler.$$guid];}}
function handleEvent(event){var returnValue=true;event=event||fixEvent(window.event);var handlers=this.events[event.type];for(var i in handlers){this.$$handleEvent=handlers[i];if(this.$$handleEvent(event)===false){returnValue=false;}}
return returnValue;}
function fixEvent(event){event.preventDefault=fixEvent.preventDefault;event.stopPropagation=fixEvent.stopPropagation;return event;}
fixEvent.preventDefault=function(){this.returnValue=false;}
fixEvent.stopPropagation=function(){this.cancelBubble=true;}});var scroller=(window.jsboxed['libraries/scroller']=new function(){(window.jsboxed['extensions/function']=new function(){Function.prototype.bind=function(object){var self=this;return function(){self.apply(object,arguments);}}
Function.prototype.callback=function(){var self=this;var _arguments=arguments;return function(){self.apply(self,_arguments);}}});this.Scroller=function(container,scrollarea){var MOVE_UP=1;var MOVE_DOWN=-1;var direction=MOVE_UP;var timer=null;var MAX_UP=0;var MAX_DOWN=container.offsetHeight-scrollarea.offsetHeight;this.stepMilliseconds=20;this.stepPixels=2;scrollarea.style.top=scrollarea.offsetTop+'px';this.up=function(){direction=MOVE_UP;}
this.down=function(){direction=MOVE_DOWN;}
this.startUp=function(){this.up();this.start();}
this.startDown=function(){this.down();this.start();}
this.start=function(){this.stop();window.tata=this.step.bind(this)
timer=setInterval("tata()",this.stepMilliseconds);}
this.stop=function(){clearInterval(timer);}
this.step=function(){var mouvement=parseInt(scrollarea.style.top)+direction*this.stepPixels;if(mouvement<=MAX_DOWN){mouvement=MAX_DOWN;this.stop();}else if(mouvement>=MAX_UP){mouvement=MAX_UP;this.stop();}
scrollarea.style.top=mouvement+"px";}}});var blanker=(window.jsboxed['libraries/sandbox/field-blanker']=new function(){var e=window.jsboxed['vendors/events'];var c=(window.jsboxed['libraries/class-name']=new function(){(window.jsboxed['extensions/array']=new function(){Array.prototype.find=function(e){for(var i=0;i<this.length;i++){if(this[i]==e){return i;}}
return-1;}
Array.prototype.contains=function(e){return this.find(e)!=-1;}
Array.prototype.remove=function(e){var pos=this.find(e);return(pos!=-1)?this.splice(pos,1):[];}
Array.prototype.first=function(){return this[0];}
Array.prototype.last=function(){return this[this.length-1];}});this.has=function(obj,cName){return obj.className.split(' ').contains(cName);}
this.add=function(obj,cName){if(!this.has(obj,cName)){obj.className+=obj.className?' '+cName:cName;}}
this.remove=function(obj,cName){var rep=obj.className.match(' '+cName)?' '+cName:cName;obj.className=obj.className.replace(rep,'');}
this.getElementsByClassName=function(className,container,tag){container=container||document;var found=[];var a=(tag)?container.getElementsByTagName(tag):(container.all||container.getElementsByTagName("*"));for(f=0;f<a.length;f++){if(this.has(a[f],className)){found[found.length]=a[f];}}
return found;}});this.attach=function(field){var defaultValue=field.value;e.addEvent(field,"focus",function(){if(field.value==defaultValue){field.value="";c.add(field,"onchange");}});e.addEvent(field,"blur",function(){if(field.value==""){field.value=defaultValue;c.remove(field,"onchange");}});}});var external=(window.jsboxed['libraries/target-blank-replacement']=new function(){var e=window.jsboxed['vendors/events'];var c=window.jsboxed['libraries/class-name'];this.className="external";e.addEvent(window,"load",function(){var links=document.getElementsByTagName('a');for(var i=0;i<links.length;i++){var a=links[i];if(!a.href){continue;}
if(c.has(a,this.className)){e.addEvent(a,"click",function(){window.open(this.href);return false;});}}});});document.write('<style type="text/css"> #content { overflow:hidden; } #choose-receipt-submit { display:none; } </style>');dean.addEvent(window,"load",function(){var newsletter=document.getElementById("newsletter-email");if(newsletter){blanker.attach(newsletter);}
var chooseReceipt=document.getElementById("choose-receipt-id");if(chooseReceipt){chooseReceipt.onchange=function(){this.form.submit();}}
var links=document.getElementsByTagName("link");for(var i=0;i<links.length;i++){if(links[i].rel=="alternate"&&links[i].hreflang){document.getElementById("lang-switcher").href=links[i].href;break;}}
var content=document.getElementById("content");var scrollarea=document.getElementById("container");if(!content||!scrollarea)
return;scrollarea.style.height="auto";if(scrollarea.offsetHeight<=content.offsetHeight)
return;var myScroller=new scroller.Scroller(content,scrollarea);var btn=document.getElementById("scrollUp");btn.style.visibility="visible";btn.onmouseover=function(){myScroller.stepPixels=2;myScroller.startUp();this.src="img/scroll-up-hover.gif";}
btn.onmousedown=function(){myScroller.stepPixels=6;}
btn.onmouseup=function(){myScroller.stepPixels=2;}
btn.onmouseout=function(){myScroller.stop();this.src="img/scroll-up.gif";}
var btn=document.getElementById("scrollDown");btn.style.visibility="visible";btn.onmouseover=function(){myScroller.stepPixels=2;myScroller.startDown();this.src="img/scroll-down-hover.gif";}
btn.onmousedown=function(){myScroller.stepPixels=6;}
btn.onmouseup=function(){myScroller.stepPixels=2;}
btn.onmouseout=function(){myScroller.stop();this.src="img/scroll-down.gif";}});})

function showCertEn(obj, id, type)
{
	document.getElementById(id).href = "http://www.aupaindore.com/en/grossiste/pdf/"+type+"/"+obj.value+".pdf";
}