function PreloadImages(length, path, type) {
for(var i = 1; i<=length; i++) {
this= new Image()
this.src= path + i + type
}
return this
}
ovr=new PreloadImages(10,'Sub_Menu_1/sub1_butovr','.gif')
nrm=new PreloadImages(10,'Sub_Menu_1/sub1_but','.gif')
ovrB=new PreloadImages(10,'Sub_Menu_2/sub2_butovr','.gif')
nrmB=new PreloadImages(10,'Sub_Menu_2/sub2_but','.gif')
function Iswap(no,id){
if (document.layers && id){
eval('document.layers[id].document.images["nrm'+no+'"].src ='+'ovr[no].src')
}
else if (document.images){
eval('document.images["nrm'+no+'"].src ='+'ovr[no].src')
}
}
function Iback(no,id){
if (document.layers && id){
eval('document.layers[id].document.images["nrm'+no+'"].src ='+'nrm[no].src')
}
else if (document.images){
eval('document.images["nrm'+no+'"].src ='+'nrm[no].src')
}
}
for(var i = 1; i<=length; i++) {
this= new Image()
this.src= path + i + type
}
return this
}
ovr=new PreloadImages(10,'Sub_Menu_1/sub1_butovr','.gif')
nrm=new PreloadImages(10,'Sub_Menu_1/sub1_but','.gif')
ovrB=new PreloadImages(10,'Sub_Menu_2/sub2_butovr','.gif')
nrmB=new PreloadImages(10,'Sub_Menu_2/sub2_but','.gif')
function Iswap(no,id){
if (document.layers && id){
eval('document.layers[id].document.images["nrm'+no+'"].src ='+'ovr[no].src')
}
else if (document.images){
eval('document.images["nrm'+no+'"].src ='+'ovr[no].src')
}
}
function Iback(no,id){
if (document.layers && id){
eval('document.layers[id].document.images["nrm'+no+'"].src ='+'nrm[no].src')
}
else if (document.images){
eval('document.images["nrm'+no+'"].src ='+'nrm[no].src')
}
}