var base1 = '/frumusete/'; var but1 = 'articol136-1mic-'; var but2 = 'articol136-2mic-'; var but3 = 'articol136-3mic-'; var loaded_b = false; // selecteaza imagine "normala" function set_normals(imgName) { if (loaded_b) if (document.images && (eval(imgName + "_n"))) { document[imgName].src = eval(imgName + "_n.src"); } } // selecteaza imagine "hover" function set_hovers(imgName) { if (loaded_b) if (document.images && (eval(imgName + "_o"))) { document[imgName].src = eval(imgName + "_o.src"); } } // incarca butoanele pentru chat if (document.images) { if (but1) { but1_n = new Image(); but1_n.src = base1 + but1 + '1.jpg'; but1_o = new Image(); but1_o.src = base1 + but1 + '2.jpg'; } if (but2) { but2_n = new Image(); but2_n.src = base1 + but2 + '1.jpg'; but2_o = new Image(); but2_o.src = base1 + but2 + '2.jpg'; } if (but3) { but3_n = new Image(); but3_n.src = base1 + but3 + '1.jpg'; but3_o = new Image(); but3_o.src = base1 + but3 + '2.jpg'; } loaded_b = true; }