function topoCseSubmit() {
	if(document.getElementById('topo-cse-q').value == '') return false;
	var f = document.getElementById('topo-cse');
	for(var i=0; i<f.elements.length; i++) {
		if(f.elements[i].name != 'topo-cse-r') continue;
		if(f.elements[i].checked) {
			f.action = '/'+f.elements[i].value;
			break;
		}
	}
	return true;
}

var nf = {
	not:0,
	maxNot: 2,
	oRollOver: null,
	rollOverDirection: 0,
		
	init: function(maxNot) {
		nf.maxNot = maxNot;
		nf.setNot(0);

		for(i=0; i<=nf.maxNot; i++) {
			nf.d('nfp'+i).onmouseover = nf.nfpMouseOver;
		}

		/*nf.d('nflashAnt').onmouseover = nf.rollOverPlay;
		nf.d('nflashPro').onmouseover = nf.rollOverPlay;
		nf.d('nflashAnt').onmouseout = nf.rollOverPause;
		nf.d('nflashPro').onmouseout = nf.rollOverPause;*/
	},
		
	d: function(id) {
		return document.getElementById(id);
	},

	nfpMouseOver: function() {
		var i = parseInt(this.id.replace('nfp', ''), 10);
		if( nf.not == i ) return;
		nf.setNot(i);
	},

	rollOverMove: function(){
		if(nf.rollOverDirection != 0) {
			if(nf.oRollOver == null) {
				nf.oRollOver = {
					o: nf.d('listaul'),
					marginLeft: 0,
					maxMarginLeft: (nf.maxNot<3) ? 0 : -((nf.maxNot + 1 - 3) * 81)
				};
			}

			if( ((nf.rollOverDirection < 0) && (nf.oRollOver.marginLeft == nf.oRollOver.maxMarginLeft))
				|| ((nf.rollOverDirection > 0) && (nf.oRollOver.marginLeft == 0)) ) {
				nf.rollOverPause();
				return;
			}

			nf.oRollOver.marginLeft += nf.rollOverDirection;
			nf.oRollOver.o.style.marginLeft = nf.oRollOver.marginLeft + 'px';

			setTimeout(nf.rollOverMove, 20);
			return;
		}
	},

	rollOverPause: function(){
		nf.rollOverDirection = 0;
	},

	rollOverPlay: function() {
		switch(this.id) {
			case 'nflashAnt':
				nf.rollOverDirection = 3;
				break;
			case 'nflashPro':
				nf.rollOverDirection = -3;
				break;
			default:
				nf.rollOverDirection = 0;
		}

		nf.rollOverMove();
	},

	setNot: function(not) {
		for(i=0; i<=nf.maxNot; i++) {
			nf.d('nf'+i).className = nf.d('nfp'+i).className = (not==i) ? 'selected' : '';
		}
		this.not = not;
	}
};

