/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2010 Serfe
 * Dual licensed under the MIT 
 * and GPL licenses.
 *
 * $Date: 2010-11-10 14:22:17 -0300 (Wed, 10 Nov 2010) $
 */
 /**
  * This function attach event drop-down to the main manu of the site
  * @author Leandro | leandro@serfe.com
  */
 
 
function initMenu(){
	$bjq("#access ul.menu li.menu-item").hover(function(){
 		$bjq(this).children("ul.sub-menu").show();
	}, function(){
		$bjq(this).children("ul.sub-menu").hide(); //When the mouse hovers out of the subnav, move it back up
    });
	$bjq("#main").hover(function(){
        $bjq("#access ul.sub-menu").hide(); //When the mouse hovers out of the subnav, move it back up
    },function(){});
	
}

function viewMoreBio(id){
	id = '#'+id;
	var h = $bjq(id).parent().height();
	if (h == 60) {
		$bjq(id).parent().height('auto');
		$bjq(id).html('[-]');
	}
	else {
		$bjq(id).parent().height(60);
		$bjq(id).html('[+]');
	}
}
function popup(div){
	$bjq("#popup").dialog({
	autoOpen: false,
	show: 'blind',
	width: 500,
	height: 450,
	modal: true
	});
	$bjq("#popup").html($bjq("#"+div).html());
	$bjq("#popup").dialog('open');
}

