// JavaScript Document
var timer = 0;
var timer_content = 0;


/**
* Show Member Info 
*
*/
function showMember_Info(member, duration, hopen, hclose) 
{
	if(document.getElementById(member+"-see-more").innerHTML == "see more")
	{
		document.getElementById(member+"-see-more").innerHTML = "see less";
		document.getElementById(member+"-see-more").className = "see-short-bio";
		wipeInOne(member, duration, hopen);
	}
	else
	{
		document.getElementById(member+"-see-more").innerHTML = "see more";
		document.getElementById(member+"-see-more").className = "see-more";
		wipeOutMember(member, duration, hclose);
	}
}


/**
* Show CAT-DMC Menu on Mouse-Over Event
*
*/
function showInfo() 
{
	clearTimeout(timer);
	wipeInOne("animDiv", 180, 80);
}

/**
* Hide CAT-DMC Menu on Mouse-Over Event
*
* Using a timer variable to hide in 0.8s
*/
function hideInfo()
{
	timer =	setTimeout('wipeOutOne("animDiv", 180)', 800);	
}

/**
* Cancel hiding CAT-DMC Menu on Mouse-Over Event
*/
function clearHide()
{
	clearTimeout(timer);
}

/**
* Dojo Wipe-FXs for CAT-DMC Menu
*
* Have to use DIV with ID animDiv
*/
function wipeInOne(obj, duration, height){
  dojox.fx.wipeTo({
	node: obj,
	duration: duration,
	height: height
  }).play();
}
	
function wipeOutOne(obj, duration){
  dojox.fx.wipeOut({
	node: obj,
	duration: duration
  }).play();
}

function wipeOutMember(obj, duration, height){
  dojox.fx.wipeTo({
	node: obj,
	duration: duration,
	height: height
  }).play();
}


/**
* Change Image in MouseOver event.
*
* Images must be GIF file
* @param An Image object
*/
function initSwap(obj) {
//	if(obj.id != "mn_"+wherearewe) {
		if(obj.src.indexOf('-on.gif') >= 0) {
			obj.src=obj.src.substring(0,obj.src.indexOf('-on.gif'))+'.gif';
		} else {
			obj.src=obj.src.substring(0,obj.src.indexOf('.gif'))+'-on.gif';
		}
//	}
}


function GoTo(url)
{
	document.location.href = url;
}