<!--

// Build a new Object and check to see what browser it is
var request = null;

try {
 request = new XMLHttpRequest();
} catch (trymicrosoft) {
 try {
   request = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (othermicrosoft) {
   try {
     request = new ActiveXObject("Microsoft.XMLHTTP");
   } catch (failed) {
     request = null;
   }
 }
}

if (request == null)
 alert("Error creating request object!");


function wipes(type,div,speed,delay,edit)
{
	speed = parseFloat(speed);
	if(delay != '-'){delay = parseFloat(delay);}
	
	switch(type)
	{
		case 'wipeIn':  void(dojo.lfx.html.wipeIn(document.getElementById(div), speed).play());  break;
		case 'wipeOut': void(dojo.lfx.html.wipeOut(document.getElementById(div), speed).play()); break;
		case 'fadeIn':	 void(dojo.lfx.html.fadeIn(document.getElementById(div), speed).play()); break;
		case 'fadeOut': void(dojo.lfx.html.fadeOut(document.getElementById(div), speed).play()); break;
	}
	
	// Check to see if it needs to be transitioned out, if so then do it
	
	if(delay != '-'){
		setTimeout(wipeout, delay,type,div,speed,edit);
	} 
		
	function wipeout(type,div,speed,edit)
	{
		switch(type)
		{
			//case 'wipeOut':	void(dojo.lfx.html.wipeIn(document.getElementById(div), speed).play()); break;
			case 'wipeIn':	void(dojo.lfx.html.wipeOut(document.getElementById(div), speed).play()); break;
			case 'fadeIn':	void(dojo.lfx.html.fadeOut(document.getElementById(div), speed).play()); break;
			case 'fadeOut':	void(dojo.lfx.html.fadeIn(document.getElementById(div), speed).play()); break;
		}
		if(edit == 'yes'){document.getElementById('oneEditDiv').value = '';}
	}	
}

// This function toggles the '+' and '-' for the expand drop down
function switchicon(id)
{ 
	
		var status = document.getElementById("expand" + id).value;
		
		if(status == "+")
		{
			document.getElementById("expand" + id).value = "-";			
		} else {
			document.getElementById("expand" + id).value = "+";
		}
}

//-->
	

