var cont_active="contro0"; var cont_country_active="contro0"; var cont_clear_all=""; var cont_timer_id = null; function cont_img_act(imgName) { cont_country_off(cont_country_active); if (version == "yes") { imgOn = eval(imgName + "on.src"); document [imgName].src = imgOn; cont_clear_all=0; cont_nav2(imgName); } } function cont_img_act_nada(imgName) { if (version == "yes") { imgOn = eval(imgName + "on.src"); document [imgName].src = imgOn; cont_clear_all=0; } } function cont_nav2(name) { cont_inact_wrapper(); if (NS4) { if (cont_active!="" ) document.layers["sub" + cont_active].visibility="hidden"; if (cont_clear_all!=1) document.layers["sub" + name ].visibility="visible"; } else { if (cont_active!="") document.getElementById("sub" + cont_active).style.visibility="hidden"; if (cont_clear_all!=1) document.getElementById("sub" + name ).style.visibility="visible"; } cont_clear_all=0; cont_active=name; } function cont_country(name) { cont_country_off(cont_country_active); if (NS4) { document.layers["final" + name ].visibility="visible"; } else { document.getElementById("final" + name ).style.visibility="visible"; } cont_country_active=name; } function cont_country_off(name) { if (NS4) { document.layers["final" + name ].visibility="hidden"; } else { document.getElementById("final" + name ).style.visibility="hidden"; } cont_country_active=name; } function cont_nav2_nada(name) {} var cont_clear=''; var cont_clear_stop=''; function cont_img_inact(imgName) { if (version == "yes") { cont_clear=''; cont_clear_all=1; cont_nav2('contro0'); if (document [imgName] && imgName!=cont_active) { document [imgName].src = eval(imgName + "off.src"); } } } function cont_inact_wrapper() { if (cont_clear!='') { cont_img_inact(cont_clear); } } function cont_timeout(imgName) { cont_stop_timeout(); cont_clear=imgName; cont_timer_id = setTimeout('cont_inact_wrapper()', 1500); } function cont_timeout_nada(imgName) {} function cont_stop_timeout() { if (cont_timer_id!=null) { clearTimeout(cont_timer_id); cont_timer_id = null; cont_clear_stop=cont_clear; cont_clear=''; } } function cont_redo_timeout() { if (cont_timer_id==null) { cont_timeout(cont_clear_stop); cont_clear_stop=''; } }