	mod_move_flag=0;
	mods = document.getElementById('MODs');
	mods.style.marginLeft='0px';
	def_speed = 3;	
	speed = def_speed;
	w1 = mods.offsetWidth;

//	for(each in mods) props+=each+'='+mods[each]+'\n'; document.write('<pre>'+props+'</pre>');

function mod_move_l(delay) {
	if(delay && mod_move_flag) {
		setTimeout("mod_move_l("+delay+")",delay);
	}

	newv = parseInt(mods.style.marginLeft);
	if(mods.offsetHeight > 60) 	mods.style.marginLeft = newv-speed+'px';
}

function mod_move_r(delay) {
	if(delay && mod_move_flag) {
		setTimeout("mod_move_r("+delay+")",delay);
	}

	newv = parseInt(mods.style.marginLeft);
	if(newv<=0)	mods.style.marginLeft = newv+speed+'px';
}

function act_subselect(what) {
	document.getElementById('primary_cat').name='';
	what.name='cat';
}

function show_subselect(what) {
//	what.name='model';
	flist=document.getElementById('subselects').childNodes;

	i=0;
	while(flist[i]) {
		if(flist[i].tagName=='SELECT') {
			flist[i].className='hidden';
			flist[i].name='';
			flist[i].disabled=1;
		}
		i++;
	}

	subsl = document.getElementById("subselect_"+what.value.replace(' ','_'));
	subsl.className='';
	subsl.value='';
	subsl.name='model';
	if(what.value) subsl.disabled=0;
}
