//<!--[CDATA[
var j=jQuery.noConflict();

j(function(){
    j('#vacancy-nav').removeClass('no-js');
    var plane = j('#vacancy-nav li.movable-type');
    var moveto, widthto, startpos, startheight, first=true;
    
	var menter = function(){
		plane.css({'display':'block'});
		if (first) {
			moveto = parseInt(j(this).position().top);
			heightto = parseInt(j(this).height());
			plane.css({top:moveto+'px'});
			plane.css({height:heightto+'px'});
			first = false;
		} else {
			startpos =  parseInt(plane.position().top);
			startheight =  parseInt(plane.height());
			moveto = parseInt(j(this).position().top);
			heightto =parseInt(j(this).height());
			plane.stop().animate({top:moveto, height:heightto},"fast");
		   // plane.stop().animate({top:startpos, height:startheight},100, function(){ plane.animate({top:moveto, height:heightto},"normal");});
		}
	}

    j('#vacancy-nav li').bind("mouseenter", menter);
    
    j('#vacancy-nav').hover(function(event){
        j('#vacancy-nav li').bind("mouseenter", menter);
    }, function(){
        first = true;
        j('#vacancy-nav li').unbind('mouseenter', menter).bind("mouseenter", menter);
		plane.stop().css({'display':'none'});
    });
});
//]]-->
