if(top!=self)top.location.href=location.href;var disappeardelay=250,enableanchorlink=0,hidemenu_onclick=1,ie5=document.all,ns6=document.getElementById&&!document.all;function getposOffset(a,b){var c=b=="left"?a.offsetLeft:a.offsetTop;for(a=a.offsetParent;a!=null;){c=b=="left"?c+a.offsetLeft:c+a.offsetTop;a=a.offsetParent}return c} function showhide(a,b,c,d){if(ie5||ns6)dropmenuobj.style.left=dropmenuobj.style.top=-500;if(b.type=="click"&&a.display==d||b.type=="mouseover")a.display=c;else if(b.type=="click")a.display=d}function iecompattest(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body} function clearbrowseredge(a,b){var c=0;if(b=="rightedge"){b=ie5&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(b-dropmenuobj.x<dropmenuobj.contentmeasure)c=dropmenuobj.contentmeasure-a.offsetWidth}else{var d=ie5&&!window.opera?iecompattest().scrollTop:window.pageYOffset;b=ie5&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight- 18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(b-dropmenuobj.y<dropmenuobj.contentmeasure){c=dropmenuobj.contentmeasure+a.offsetHeight;if(dropmenuobj.y-d<dropmenuobj.contentmeasure)c=dropmenuobj.y+a.offsetHeight-d}}return c} function dropdownmenu(a,b,c){if(window.event)event.cancelBubble=true;else b.stopPropagation&&b.stopPropagation();if(typeof dropmenuobj!="undefined")dropmenuobj.style.display="none";clearhidemenu();if(ie5||ns6){a.onmouseout=delayhidemenu;dropmenuobj=document.getElementById(c);if(hidemenu_onclick)dropmenuobj.onclick=function(){dropmenuobj.style.display="none"};dropmenuobj.onmouseover=clearhidemenu;dropmenuobj.onmouseout=ie5?function(){dynamichide(event)}:function(d){dynamichide(d)};showhide(dropmenuobj.style, b,"block","none");dropmenuobj.x=getposOffset(a,"left");dropmenuobj.y=getposOffset(a,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(a,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(a,"bottomedge")+6+a.offsetHeight+"px"}return clickreturnvalue()}function clickreturnvalue(){return(ie5||ns6)&&!enableanchorlink?false:true}function contains_ns6(a,b){for(;b.parentNode;)if((b=b.parentNode)==a)return true;return false} function dynamichide(a){if(ie5&&!dropmenuobj.contains(a.toElement))delayhidemenu();else ns6&&a.currentTarget!=a.relatedTarget&&!contains_ns6(a.currentTarget,a.relatedTarget)&&delayhidemenu()}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.display='none'",disappeardelay)}function clearhidemenu(){typeof delayhide!="undefined"&&clearTimeout(delayhide)} function Verif_recherche(){if(document.recherche.q.value==""){alert("Merci de bien vouloir saisir un texte \u00e0 rechercher.");document.recherche.q.value="";document.recherche.q.focus();return false}else if(document.recherche.q.value=="Tapez ici..."){alert("Merci de bien vouloir saisir un texte \u00e0 rechercher.");document.recherche.q.value="";document.recherche.q.focus();return false}return true};$(document).ready(function(){$("#q").SearchForm();$("#recherche_menu").VerifSearchForm("q");$("#recherche_main").VerifSearchForm("q2");$("#bookmark").AddBookmark()});$.fn.SearchForm=function(){return this.focus(function(){if(this.value==this.defaultValue)this.value=""}).blur(function(){if(!this.value.length)this.value=this.defaultValue})};$.fn.VerifSearchForm=function(a){return this.submit(function(){if($(this).attr(a).value==$(this).attr(a).defaultValue||$(this).attr(a).value==""){alert("Saissez la r\u00e9f\u00e9rence de la cartouche ou de l'imprimante que vous recherchez.");$(this).attr(a).focus();return false}})}; $.fn.AddBookmark=function(){return this.click(function(){try{if(window.sidebar)window.sidebar.addPanel("Tinkco, cartouches \u00e0 prix discount !","http://www.tinkco.com","");else if(window.external)window.external.AddFavorite("http://www.tinkco.com","Tinkco, cartouches \u00e0 prix discount !");else if(window.opera){$(this).attr("rel","sidebar");$(this).attr("href","http://www.tinkco.com");$(this).attr("title","Tinkco, cartouches \u00e0 prix discount !");$(this).click()}else alert("Votre navigateur ne supporte pas cette fonction. Merci de bien vouloir ajouter manuellement notre site \u00e0 vos sites pr\u00e9f\u00e9r\u00e9s.")}catch(a){alert("Une erreur est survenue lors de l'ajout aux favoris.")}return false})};function zoom(a){$("div.zoom").each(function(){$(this).css("display","none")});$("#zoom_"+a).fadeIn("slow")}function cache(){$("div.zoom").each(function(){$(this).fadeOut("slow")})};