function colocargaleria(capa1,capa2,capa3,capa4,capa5,capa6){ 
	var ventana=document.body.clientWidth;
	var valorcapa1=447;
	var valorcapa2=25;
	var valorcapa3=25;
	var valorcapa4=207;
	var valorcapa5=208;
	var valorcapa6=25;
	
	document.getElementById(capa1).style.left=valorcapa1;
	document.getElementById(capa2).style.left=valorcapa2;
	document.getElementById(capa3).style.left=valorcapa3;
	document.getElementById(capa4).style.left=valorcapa4;
	document.getElementById(capa5).style.left=valorcapa5;
	document.getElementById(capa6).style.left=valorcapa6;
	if(ventana>=800){
		//actualizar();
		document.getElementById(capa1).style.left=valorcapa1;		
		numsumar=((ventana-780)/2);
		numero1=parseInt(valorcapa1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=valorcapa2+numsumar;
		document.getElementById(capa3).style.left=valorcapa3+numsumar;
		document.getElementById(capa4).style.left=valorcapa4+numsumar;
		document.getElementById(capa5).style.left=valorcapa5+numsumar;
		document.getElementById(capa6).style.left=valorcapa6+numsumar;		
		}
	
	}
	
function colocar(capa1){ 
	var ventana=document.body.clientWidth;
	var valorcapa=267;
	document.getElementById(capa1).style.left=valorcapa;
	if(ventana>=800){
		//actualizar();
		document.getElementById(capa1).style.left=valorcapa;		
		numsumar=((ventana-780)/2);
		numero1=parseInt(valorcapa);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;		
		}
	
	}

function mover(capa1,capa2,capa3,capa4,capa5,capa6){ 
  var width = screen.width;
  var anchoventana=document.body.clientWidth;
  var valor1=267;
  var res =(((!(640-width))*1)+((!(800-width))*2)+((!(1024-width))*3)+
  ((!(1152-width))*4)+((!(1280-width))*5)+((!(1600-width))*6)); 
  if(!(res)) res = 1;if (res=='1') {}
  if (res=='2') {}
  if (res=='3') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
		document.getElementById(capa5).style.left=valor2;
		document.getElementById(capa6).style.left=valor2;
		
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;
		document.getElementById(capa5).style.left=numero1;
		document.getElementById(capa6).style.left=numero1;}//fin del else	
		}//fin del if 
		
	if (res=='4') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
		document.getElementById(capa5).style.left=valor2;
		document.getElementById(capa6).style.left=valor2;
		
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;
		document.getElementById(capa5).style.left=numero1;
		document.getElementById(capa6).style.left=numero1;}//fin del else	
		}//fin del if 
		
	if (res=='5') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
		document.getElementById(capa5).style.left=valor2;
		document.getElementById(capa6).style.left=valor2;
		
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;
		document.getElementById(capa5).style.left=numero1;
		document.getElementById(capa6).style.left=numero1;}//fin del else	
		}//fin del if 
		
	if (res=='6') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
		document.getElementById(capa5).style.left=valor2;
		document.getElementById(capa6).style.left=valor2;
		
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;
		document.getElementById(capa5).style.left=numero1;
		document.getElementById(capa6).style.left=numero1;}//fin del else	
		}//fin del if 	
}

function mover2(capa1,capa2,capa3,capa4){ 
  var width = screen.width;
  var anchoventana=document.body.clientWidth;
  var valor1=267;
  var res =(((!(640-width))*1)+((!(800-width))*2)+((!(1024-width))*3)+
  ((!(1152-width))*4)+((!(1280-width))*5)+((!(1600-width))*6)); 
  if(!(res)) res = 1;if (res=='1') {}
  if (res=='2') {}
  if (res=='3') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;}//fin del else	
		}//fin del if 
		
	if (res=='4') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
		
		
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;
		}//fin del else	
		}//fin del if 
		
	if (res=='5') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
				
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;
		}//fin del else	
		}//fin del if 
		
	if (res=='6') {//inicio if 
  		if (anchoventana<800){//inicio if 2
		var valor2=267
		document.getElementById(capa1).style.left=valor2;
		document.getElementById(capa2).style.left=valor2;
		document.getElementById(capa3).style.left=valor2;
		document.getElementById(capa4).style.left=valor2;
		
		
		}//fin del if 2
		else{//inicio else
		document.getElementById(capa1).style.left=valor1;		
		numsumar=((anchoventana-780)/2);
		numero1=parseInt(valor1);
		numero1=numero1+numsumar;
		document.getElementById(capa1).style.left=numero1;
		document.getElementById(capa2).style.left=numero1;
		document.getElementById(capa3).style.left=numero1;
		document.getElementById(capa4).style.left=numero1;
		}//fin del else	
		}//fin del if 	
}
