﻿//detect browser:                                                       
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
else if (browserName == "Microsoft Internet Explorer" && browserVer == 4) browserVer = "1";
else browserVer = "2";

//preload images:
if (browserVer == 1) {
over1 = new Image();
common1 = new Image();
over2 = new Image();
common2 = new Image();
over3 = new Image();
common3 = new Image();
over4 = new Image();
common4 = new Image();
over5 = new Image();
common5 = new Image();
over6 = new Image();
common6 = new Image();
over7 = new Image();
common7 = new Image();
over8 = new Image();
common8 = new Image();
over9 = new Image();
common9 = new Image();
over10 = new Image();
common10 = new Image();
over11 = new Image();
common11 = new Image();
over11 = new Image();
common11 = new Image();
over12 = new Image();
common12 = new Image();
over13 = new Image();
common13 = new Image();
over14 = new Image();
common14 = new Image();
over15 = new Image();
common15 = new Image();
over16 = new Image();
common16 = new Image();
over17 = new Image();
common17 = new Image();
over18 = new Image();
common18 = new Image();
over19 = new Image();
common19 = new Image();
over20 = new Image();
common20 = new Image();
over21 = new Image();
common21 = new Image();
over22 = new Image();
common22 = new Image();
over23 = new Image();
common23 = new Image();

over1.src = "../../../../pictures/klubai_1.gif";
common1.src = "../../../../pictures/klubai.gif";
over2.src = "../../../../pictures/istorija_1.gif";
common2.src = "../../../../pictures/istorija.gif";
over3.src = "../../../../pictures/varzybos_1.gif";
common3.src = "../../../../pictures/varzybos.gif";
over4.src = "../../../../pictures/laimejimai_1.gif";
common4.src = "../../../../pictures/laimejimai.gif";
over5.src = "../../../../pictures/foto_1.gif";
common5.src = "../../../../pictures/foto.gif";
over6.src = "../../../../pictures/personalijos_1.gif";
common6.src = "../../../../pictures/personalijos.gif";
over7.src = "../../../../pictures/archyvas_1.gif";
common7.src = "../../../../pictures/archyvas.gif";
over8.src = "../../../../pictures/veteranai_1.gif";
common8.src = "../../../../pictures/veteranai.gif";
over9.src = "../../../../pictures/nuorodos_1.gif";
common9.src = "../../../../pictures/nuorodos.gif";
over10.src = "../../../../pictures/kontaktai_1.gif";
common10.src = "../../../../pictures/kontaktai.gif";
over11.src = "../../../../pictures/history_1.gif";
common11.src = "../../../../pictures/history.gif";
over12.src = "../../../../pictures/executive_1.gif";
common12.src = "../../../../pictures/executive.gif";
over13.src = "../../../../pictures/contests_1.gif";
common13.src = "../../../../pictures/contests.gif";
over14.src = "../../../../pictures/achievements_1.gif";
common14.src = "../../../../pictures/achievements.gif";
over15.src = "../../../../pictures/profiles_1.gif";
common15.src = "../../../../pictures/profiles.gif";
over16.src = "../../../../pictures/photos_1.gif";
common16.src = "../../../../pictures/photos.gif";
over17.src = "../../../../pictures/archives_1.gif";
common17.src = "../../../../pictures/archives.gif";
over18.src = "../../../../pictures/apie_lkf_1.gif";
common18.src = "../../../../pictures/apie_lkf.gif";
over19.src = "../../../../pictures/istatai_1.gif";
common19.src = "../../../../pictures/istatai.gif";
over20.src = "../../../../pictures/teisejai_1.gif";
common20.src = "../../../../pictures/teisejai.gif";
over21.src = "../../../../pictures/treneriai_1.gif";
common21.src = "../../../../pictures/treneriai.gif";
over22.src = "../../../../pictures/sportininkai_1.gif";
common22.src = "../../../../pictures/sportininkai.gif";
over23.src = "../../../../pictures/antidopingas_1.gif";
common23.src = "../../../../pictures/antidopingas.gif";
}

//image swapping function:
function hiLite(imgDocID, imgObjName, comment) {
if (browserVer == 1) {
document.images[imgDocID].src = eval(imgObjName + ".src");
window.status = comment; return true;
}}


