
function desptxt()
{

	obj1 = document.getElementById("boton1");
	txt1 = document.getElementById("txt1");
	
	if ( obj1.className == "current"){
		txt1.style.marginTop="23px";
		txt1.style.marginLeft="27px";
	}
	
	
	obj2 = document.getElementById("boton2");
	txt2 = document.getElementById("txt2");
	if ( obj2.className == "current")
	{
		txt2.style.marginTop="15px";
		txt2.style.marginLeft="22px";
	}	
	obj3 = document.getElementById("boton3");
	txt3 = document.getElementById("txt3");
	if ( obj3.className == "current")
	{
		txt3.style.marginTop="23px";
		txt3.style.marginLeft="10px";
	}	
	obj4 = document.getElementById("boton4");
	txt4 = document.getElementById("txt4");
	if ( obj4.className == "current")
	{
		txt4.style.marginTop="15px";
		txt4.style.marginLeft="17px";
	}	
	obj5 = document.getElementById("boton5");
	txt5 = document.getElementById("txt5");
	if ( obj5.className == "current")
	{
		txt5.style.marginTop="15px";
		
	}
	obj6 = document.getElementById("boton6");
	txt6 = document.getElementById("txt6");
	if ( obj6.className == "current")
	{
		txt6.style.marginTop="23px";
		txt6.style.marginLeft="40px";
	}
	obj7 = document.getElementById("boton7");
	txt7 = document.getElementById("txt7");
	if ( obj7.className == "current")
	{
		txt7.style.marginTop="23px";
		txt7.style.marginLeft="17px";
	}	
}

function desplazaab(nom,act)
{
	objn=document.getElementById(nom);
	objact=document.getElementById(act);
	
	objn1=document.getElementById("boton1");
	objn2=document.getElementById("boton2");
	objn3=document.getElementById("boton3");
	objn4=document.getElementById("boton4");
	objn5=document.getElementById("boton5");
	objn6=document.getElementById("boton6");
	objn7=document.getElementById("boton7");
	
	tx1=document.getElementById("txt1");
	tx2=document.getElementById("txt2");
	tx3=document.getElementById("txt3");
	tx4=document.getElementById("txt4");
	tx5=document.getElementById("txt5");
	tx6=document.getElementById("txt6");
	tx7=document.getElementById("txt7");

	
	if (objact.className != "current"){
		objn.style.marginTop = "23px";
		objn.style.marginLeft = String(eval(objn.style.marginLeft.substr(0,2))-5) + "px";
	}
	

	if ((objn1.className == "current") && (objact.className != "current")){
		objn1.style.backgroundPosition="0px 0px";
		tx1.style.marginTop ="13px";
		tx1.style.marginLeft = "32px";	
	}
	
			
	if ((objn2.className == "current") && (objact.className != "current")){
		objn2.style.backgroundPosition="0px 0px";
		tx2.style.marginTop ="5px";
		tx2.style.marginLeft = "22px";
	}
		
	if ((objn3.className == "current") && (objact.className != "current")){
		objn3.style.backgroundPosition="0px 0px";
		tx3.style.marginTop ="13px";
		tx3.style.marginLeft = "16px";
	}
		
	if ((objn4.className == "current") && (objact.className != "current")){
		objn4.style.backgroundPosition="0px 0px";
		tx4.style.marginTop ="5px";
		tx4.style.marginLeft = "23px";
	}
		
	if ((objn5.className == "current") && (objact.className != "current")){
		objn5.style.backgroundPosition="0px 0px";	
		tx5.style.marginTop ="5px";
		tx5.style.marginLeft = "33px";
	}
		
	if ((objn6.className == "current") && (objact.className != "current")){
		objn6.style.backgroundPosition="0px 0px";
		tx6.style.marginTop ="13px";
		tx6.style.marginLeft = "45px";
	}	
	if ((objn7.className == "current") && (objact.className != "current")){
		objn7.style.backgroundPosition="0px 0px";	
		tx7.style.marginTop ="13px";
		tx7.style.marginLeft = "22px";
	}
};


function desplazaar(nom,act)
{
	objn=document.getElementById(nom);
	objact=document.getElementById(act);
	objn1=document.getElementById("boton1");
	objn2=document.getElementById("boton2");
	objn3=document.getElementById("boton3");
	objn4=document.getElementById("boton4");
	objn5=document.getElementById("boton5");
	objn6=document.getElementById("boton6");
	objn7=document.getElementById("boton7");
	
	tx1=document.getElementById("txt1");
	tx2=document.getElementById("txt2");
	tx3=document.getElementById("txt3");
	tx4=document.getElementById("txt4");
	tx5=document.getElementById("txt5");
	tx6=document.getElementById("txt6");
	tx7=document.getElementById("txt7");
	
	if (objact.className != "current"){
    	objn.style.marginTop = "13px";
		objn.style.marginLeft = String(eval(objn.style.marginLeft.substr(0,2))+5) + "px";
	}
	
	
	if (objn1.className == "current") {
		objn1.style.backgroundPosition="0px -63px";
		tx1.style.marginTop ="23px";
		tx1.style.marginLeft = "27px";

	}
		
	if (objn2.className == "current"){
		objn2.style.backgroundPosition="0px -63px";
		tx2.style.marginTop ="15px";
		tx2.style.marginLeft = "22px";
	}
	if (objn3.className == "current"){ 
		objn3.style.backgroundPosition="0px -63px";
		tx3.style.marginTop ="23px";
		tx3.style.marginLeft = "10px";
	}
	
	if (objn4.className == "current") {
		objn4.style.backgroundPosition="0px -63px";
		tx4.style.marginTop ="15px";
		tx4.style.marginLeft = "17px";
	}
	if (objn5.className == "current"){
		objn5.style.backgroundPosition="0px -63px";
		tx5.style.marginTop ="15px";
		tx5.style.marginLeft = "28px";
	}
	if (objn6.className == "current") {
		objn6.style.backgroundPosition="0px -63px";
		tx6.style.marginTop ="23px";
		tx6.style.marginLeft = "40px";
	}
	if (objn7.className == "current") {
		objn7.style.backgroundPosition="0px -63px";
		tx7.style.marginTop ="23px";
		tx7.style.marginLeft = "17px";
	}

		
		
};


function desplazaab2(nom,act)
{
	objn=document.getElementById(nom);
	objact=document.getElementById(act);
	objn1=document.getElementById("boton1");
	objn2=document.getElementById("boton2");
	objn3=document.getElementById("boton3");
	objn4=document.getElementById("boton4");
	objn5=document.getElementById("boton5");
	objn6=document.getElementById("boton6");
	objn7=document.getElementById("boton7");
	
	tx1=document.getElementById("txt1");
	tx2=document.getElementById("txt2");
	tx3=document.getElementById("txt3");
	tx4=document.getElementById("txt4");
	tx5=document.getElementById("txt5");
	tx6=document.getElementById("txt6");
	tx7=document.getElementById("txt7");
	
	if (objact.className != "current"){
		objn.style.marginTop= "15px";
		objn.style.marginLeft= String(eval(objn.style.marginLeft.substr(0,2))-5) + "px";
	}
	
	if ((objn1.className == "current") && (objact.className != "current")){
		objn1.style.backgroundPosition="0px 0px";
		tx1.style.marginTop ="13px";
		tx1.style.marginLeft = "32px";	
	}
	
			
	if ((objn2.className == "current") && (objact.className != "current")){
		objn2.style.backgroundPosition="0px 0px";
		tx2.style.marginTop ="5px";
		tx2.style.marginLeft = "23px";
	}
		
	if ((objn3.className == "current") && (objact.className != "current")){
		objn3.style.backgroundPosition="0px 0px";
		tx3.style.marginTop ="13px";
		tx3.style.marginLeft = "16px";
	}
		
	if ((objn4.className == "current") && (objact.className != "current")){
		objn4.style.backgroundPosition="0px 0px";
		tx4.style.marginTop ="5px";
		tx4.style.marginLeft = "24px";
	}
		
	if ((objn5.className == "current") && (objact.className != "current")){
		objn5.style.backgroundPosition="0px 0px";	
		tx5.style.marginTop ="5px";
		tx5.style.marginLeft = "33px";
	}
		
	if ((objn6.className == "current") && (objact.className != "current")){
		objn6.style.backgroundPosition="0px 0px";
		tx6.style.marginTop ="13px";
		tx6.style.marginLeft = "45px";
	}	
	if ((objn7.className == "current") && (objact.className != "current")){
		objn7.style.backgroundPosition="0px 0px";	
		tx7.style.marginTop ="13px";
		tx7.style.marginLeft = "23px";
	}
	
}

function desplazaar2(nom)
{
	objn=document.getElementById(nom);
	objn1=document.getElementById("boton1");
	objn2=document.getElementById("boton2");
	objn3=document.getElementById("boton3");
	objn4=document.getElementById("boton4");
	objn5=document.getElementById("boton5");
	objn6=document.getElementById("boton6");
	objn7=document.getElementById("boton7");
	
	tx1=document.getElementById("txt1");
	tx2=document.getElementById("txt2");
	tx3=document.getElementById("txt3");
	tx4=document.getElementById("txt4");
	tx5=document.getElementById("txt5");
	tx6=document.getElementById("txt6");
	tx7=document.getElementById("txt7");
	
	if (objact.className != "current"){
		objn.style.marginTop=  "5px";
		objn.style.marginLeft= String(eval(objn.style.marginLeft.substr(0,2))+5) + "px";
	}
	
	if (objn1.className == "current") {
		objn1.style.backgroundPosition="0px -63px";
		tx1.style.marginTop ="23px";
		tx1.style.marginLeft = "27px";

	}
		
	if (objn2.className == "current"){
		objn2.style.backgroundPosition="0px -63px";
		tx2.style.marginTop ="15px";
		tx2.style.marginLeft = "22px";
	}
	if (objn3.className == "current"){ 
		objn3.style.backgroundPosition="0px -63px";
		tx3.style.marginTop ="23px";
		tx3.style.marginLeft = "11px";
	}
	
	if (objn4.className == "current") {
		objn4.style.backgroundPosition="0px -63px";
		tx4.style.marginTop ="15px";
		tx4.style.marginLeft = "17px";
	}
	if (objn5.className == "current"){
		objn5.style.backgroundPosition="0px -63px";
		tx5.style.marginTop ="15px";
		tx5.style.marginLeft = "28px";
	}
	if (objn6.className == "current") {
		objn6.style.backgroundPosition="0px -63px";
		tx6.style.marginTop ="23px";
		tx6.style.marginLeft = "40px";
	}
	if (objn7.className == "current") {
		objn7.style.backgroundPosition="0px -63px";
		tx7.style.marginTop ="23px";
		tx7.style.marginLeft = "17px";
	}
};

