function change_img(img1,img2,lang) { if (document.images) { active = new Image (); normal = new Image (); active.src = '/images/' + lang + '/' + img2 + '.png'; normal.src = '/images/' + lang + '/' + img1 + '.png'; if (img1 != img2) { document.images[img1].src = active.src; } else { document.images[img1].src = normal.src; } } }