﻿<!--

toggleKey = new Object();
toggleKey[0] = "_off";
toggleKey[1] = "_on";
toggleKey[2] = "_ovr";
toggleKey[3] = "_out";
toggleKey[4] = "_mdn";
toggleKey[5] = "_mup";

function imgChange(id,act){
if(document.images){ document.images[id].src = eval("img." + id + toggleKey[act] + ".src");}
}

if(document.images){
img = new Object();

img.vmute_off = new Image();
img.vmute_off.src = "/Images/museum/cr_r05.gif";
img.vmute_on = new Image();
img.vmute_on.src = "/Images/museum/cr_r05.gif";

/*img.pmode_off = new Image();
img.pmode_off.src = "./yht_images/btn_rndmode_off.gif";
img.pmode_on = new Image();
img.pmode_on.src = "./yht_images/btn_rndmode_on.gif";*/

/*img.rept_off = new Image();
img.rept_off.src = "./yht_images/btn_rept_off.gif";
img.rept_on = new Image();
img.rept_on.src = "./yht_images/btn_rept_on.gif";*/


img.playt3_off = new Image();
img.playt3_off.src = "/Images/museum/cr_r06.gif";
img.playt3_on = new Image();
img.playt3_on.src = "/Images/museum/cr_r06.gif";
img.playt3_ovr = new Image();
img.playt3_ovr.src = "/Images/museum/cr_r06.gif";

/*img.pauzt_off = new Image();
img.pauzt_off.src = "./yht_images/btn_pauz_off.gif";
img.pauzt_on = new Image();
img.pauzt_on.src = "./yht_images/btn_pauz_on.gif";
img.pauzt_ovr = new Image();
img.pauzt_ovr.src = "./yht_images/btn_pauz_ovr.gif";*/


img.stopt3_off = new Image();
img.stopt3_off.src = "/Images/museum/cr_r08.gif";
img.stopt3_on = new Image();
img.stopt3_on.src = "/Images/museum/cr_r08.gif";
img.stopt3_ovr = new Image();
img.stopt3_ovr.src = "/Images/museum/cr_r08.gif";

img.prevt_out = new Image();
img.prevt_out.src = "/images/museum/cr_r04.gif";
img.prevt_ovr = new Image();
img.prevt_ovr.src = "/images/museum/cr_r04.gif";

img.nextt_out = new Image();
img.nextt_out.src = "/images/museum/cr_r07.gif";
img.nextt_ovr = new Image();
img.nextt_ovr.src = "/images/museum/cr_r07.gif";

img.vup_out = new Image();
img.vup_out.src = "/Images/museum/cr_r03.gif";
img.vup_ovr = new Image();
img.vup_ovr.src = "/Images/museum/cr_r03.gif";

img.vdn_out = new Image();
img.vdn_out.src = "/Images/museum/cr_r02.gif";
img.vdn_ovr = new Image();
img.vdn_ovr.src = "/Images/museum/cr_r02.gif";

/*img.plist_out = new Image();
img.plist_out.src = "./yht_images/btn_mymusic.gif";
img.plist_ovr = new Image();
img.plist_ovr.src = "./yht_images/btn_mymusic_ovr.gif";

img.plist1_out = new Image();
img.plist1_out.src = "./yht_images/btn_otr.gif";
img.plist1_ovr = new Image();
img.plist1_ovr.src = "./yht_images/btn_otr_ovr.gif";

img.scope_off = new Image();
img.scope_off.src = "./yht_images/scope_off.gif";
img.scope_on = new Image();
img.scope_on.src = "./yht_images/scope_on.gif";
*/
}

function imgtog(tg,act){
if(tg=="vmute") { if(act=="2"){imgChange("vmute",1);} else {imgmute("vmute",0);} }
if(tg=="vdn") { if(act=="2"){imgChange("vdn",2);} else {imgChange("vdn",3);} }
if(tg=="vup") { if(act=="2"){imgChange("vup",2);} else {imgChange("vup",3);} }
//if(tg=="pmode") { if(act=="2"){imgChange("pmode",1);} else {imgrnd();} }
//if(tg=="rept") { if(act=="2"){imgChange("rept",1);} else {imgrept();} }
if(tg=="nextt") { if(act=="2"){imgChange("nextt",2);} else {imgChange("nextt",3);} }
if(tg=="prevt") { if(act=="2"){imgChange("prevt",2);} else {imgChange("prevt",3);} }
//if(tg=="pauzt") { if(act=="2"){imgpauz(2);} else {imgpauz();} }
if(tg=="playt3") { if(act=="2"){imgplay(2);} else {imgplay();} }
if(tg=="stopt3") { if(act=="2"){imgstop(2);} else {imgstop();} }
//if(tg=="plist") { if(act=="2"){imgChange("plist",2);} else {imgChange("plist",3);} }
//if(tg=="plist1") { if(act=="2"){imgChange("plist1",2);} else {imgChange("plist1",3);} }
}

function imgmute(){
var ps=Exobud.settings;
if(ps.mute){imgChange("vmute",1);}
else {imgChange("vmute",0);}
}

/*function imgrnd(){
if(blnRndPlay){imgChange("pmode",1);}
else {imgChange("pmode",0);}
}*/

/*function imgrept(){
if(blnRept){imgChange("rept",1);}
else {imgChange("rept",0);}
}*/

/*function imgpauz(f){
var wmps=Exobud.playState;
if(f==2){imgChange("pauzt",2);}
else {
if(wmps==2){imgChange("pauzt",1);}
else {imgChange("pauzt",0);}
}
}*/

function imgplay(f){
var wmps=Exobud.playState;
if(f==2){imgChange("playt3",2);}
else {
if(wmps==3){imgChange("playt3",1);}
else {imgChange("playt3",0);}
}
}

function imgstop(f){
var wmps=Exobud.playState;
if(f==2){imgChange("stopt3",2);}
else {
if(wmps==2 || wmps==3){imgChange("stopt3",0);}
else {imgChange("stopt3",1);}
}
}

//-->

 

