var support;

if (navigator.appName.indexOf("Netscape") != -1) {
	support = true;
} else if (navigator.appName.indexOf("Microsoft") != -1) {
	support = true;
} else {
	support = false;
}

function img_act(name) 
{
	if (!support) return;
	if (eval('typeof('+name+'on)') != 'object') return;
	eval('document.'+name+'.src = '+name+'on.src')
}

function img_inact(name)
{
	if (!support) return;
	if (eval('typeof('+name+'off)') != 'object') return;
	eval('document.'+name+'.src = '+name+'off.src')
}


function img_load(path,name,width,height)
{
	if (!support) return;
	eval(name+'on = new Image('+width+','+height+')')
	eval(name+'on.src = "/images/'+path+'/'+name+'h.gif"')
	eval(name+'off = new Image('+width+','+height+')')
	eval(name+'off.src = "/images/'+path+'/'+name+'.gif"')
}

if (support) {
	for(i=1;i<6;i++) {
		eval('c0'+i+'on = new Image(57,67)')
		eval('c0'+i+'on.src = "/images/main/c0"+i+"h.gif"')
		eval('c0'+i+'off = new Image(57,67)')
		eval('c0'+i+'off.src = "/images/main/c0"+i+".gif"')
		eval('t0'+i+'on = new Image(140,67)')
		eval('t0'+i+'on.src = "/images/main/t0"+i+"h.gif"')
		eval('t0'+i+'off = new Image(140,67)')
		eval('t0'+i+'off.src = "/images/main/t0"+i+".gif"')
	}
}


