
curNum = 0;
var timeout;

function move_highlight(el, x, y, num, fade) {
	
	curPos = Element.positionedOffset(el);
	
	clearTimeout(timeout);	
	
	if (num == curNum) { return false; }
	
	curNum = num;
		
	//parent = Element.getOffsetParent(el);	
	//parentW = parent.getWidth();
	//parentH = parent.getHeight();
	
	x = (x === false) ? 0 : x - curPos.left;
	y = y - curPos.top;
	
	//alert(parent);
	
	//if (el.style.display == 'none') { el.style.display = 'block' }
	
	new Effect.Move(el, {
		x: x
		,y: y
		,duration: .4
		,beforeStart: function() {
				if (fade == true) new Effect.Fade(el, {
					duration: .4,
					afterFinish: function(e) {
						el.style.display = 'block';
					}
				});
			}
		,afterFinish: function(e) {
				//alert('finished');
				$('tech_hightlight_number').innerHTML = num;
			}
		,transition: Effect.Transitions.sinoidal
		,queue: { 
			position: 'end', 
			scope: 'highlightscope', 
			limit: 1
		}
	});
}

function hide_highlight(el) {
	
	clearTimeout(timeout);
	timeout = setTimeout(function(){ move_highlight(el, false, -200, 0, true) }, 2000);
}

function show_men() {
	$('tech_men').style.display = 'block';
	$('tech_women').style.display = 'none';
}

function show_women() {
	$('tech_men').style.display = 'none';
	$('tech_women').style.display = 'block';
}