// Lunettes function oLun(name, img_small, img_big, vendor, small_descr, price, stock) { this.img_small=img_small; this.img_big=img_big; this.name=name; this.vendor=vendor; this.small_descr=small_descr; this.price=price; this.stock=stock } var tLun=new Array; function showLun(i) { document.big_img.src="/components/com_virtuemart/shop_image/product/"+tLun[i].img_big; document.getElementById('info_price').innerHTML="Prix: "+tLun[i].price+"€"; document.getElementById('info_descr').innerHTML=""+tLun[i].small_descr+""; document.getElementById('info_stock').innerHTML="Disponibilité: "+tLun[i].stock; document.getElementById('info_vendor_name').innerHTML=tLun[i].vendor+" | "+tLun[i].name; } function addPresentoirLun(name, img_small, img_big, vendor, small_descr, price, url, stock) { tLun.push(new oLun(name, img_small, img_big, vendor, small_descr, price, stock)); document.write("
"); } // Anti-vols function oAV(name, img_small, img_big, vendor, small_descr, price, stock) { this.img_small=img_small; this.img_big=img_big; this.name=name; this.vendor=vendor; this.small_descr=small_descr; this.price=price; this.stock=stock } var tAV=new Array; function showAV(i) { document.big_img.src="/components/com_virtuemart/shop_image/product/"+tAV[i].img_big; document.getElementById('info_price').innerHTML="Prix: "+tAV[i].price+"€"; document.getElementById('info_descr').innerHTML=""+tAV[i].small_descr+""; document.getElementById('info_stock').innerHTML="Disponibilité: "+tAV[i].stock; document.getElementById('info_vendor_name').innerHTML=tAV[i].vendor+" | "+tAV[i].name; } function addPresentoirAV(name, img_small, img_big, vendor, small_descr, price, url, stock) { tAV.push(new oAV(name, img_small, img_big, vendor, small_descr, price, stock)); document.write(""); }