// JavaScript Document

function showHide2(panel){
    var aux = panel.nextSibling;
    var valor = aux.nextSibling;
	var browser=navigator.appName;
	if(browser=="Microsoft Internet Explorer")
	{
		if (aux.style.display == 'none') {
			doAnimation(2, aux.id);
		}
		else {
			doAnimation(1, aux.id);
		}
	}
	else
	{
		if (valor.style.display == 'none') {
			doAnimation(2, valor.id);
		}
		else {
			doAnimation(1, valor.id);
		}
	}
}

function doAnimation(index, aux){

    var currentAnimation;
    
    var wipeOut = dojo.fx.wipeOut({
        node: aux,
        duration: 1000
    });
    
    var wipeIn = dojo.fx.wipeIn({
        node: aux,
        duration: 1000
    });
    
    switch (index) {
        case 1:
            currentAnimation = wipeOut;
            break;
        case 2:
            currentAnimation = wipeIn;
            break;
    }
    
    currentAnimation.play();
}