function windowsresize(){
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
		}
	}
	if(winW<=1028){
		document.getElementById('globaldiv').className='gContenedorWeb';
		document.getElementById('piediv').className='gContenedorPie';
	}else{
		document.getElementById('globaldiv').className='gContenedorWeb_2';
		document.getElementById('piediv').className='gContenedorPie_2';
	}
}

function rollOn(obj){obj.className=obj.className.replace('_Off','_On');}
function rollOff(obj){obj.className=obj.className.replace('_On','_Off');}

function rollOnImg(obj){file=obj.src;obj.src=file.replace('_Off','_On');}
function rollOffImg(obj){file=obj.src;obj.src=file.replace('_On','_Off');}

function rollLatSolapasOn(id){
	rollOff(document.getElementById('botmasleido'));
	rollOff(document.getElementById('botmascomentado'));
	
	document.getElementById('masleido').style.display='none';
	document.getElementById('mascomentado').style.display='none';
	
	document.getElementById(id).style.display='block';
	rollOn(document.getElementById('bot'+id));
}

function rollSolapasIndexOn(id){
	rollOff(document.getElementById('botactualidad'));
	rollOff(document.getElementById('botimagenes'));
	
	document.getElementById('actualidad').style.display='none';
	document.getElementById('imagenes').style.display='none';
	
	document.getElementById(id).style.display='block';
	rollOn(document.getElementById('bot'+id));
}

function modificatamanotipografia(val,obj){
	var par=document.getElementById(obj);
	var clds=par.childNodes;
	for (var z0=0;z0<clds.length;z0++){
		if (clds[z0].nodeName=='DIV' || clds[z0].nodeName=='A'){
			if(val==1){
				clds[z0].className=clds[z0].className.replace('_2','_3');
				clds[z0].className=clds[z0].className.replace('_1','_2');
			}else{
				clds[z0].className=clds[z0].className.replace('_2','_1');
				clds[z0].className=clds[z0].className.replace('_3','_2');
			}
		}
	}
}

function ampliaimagen(imgurl){
	document.getElementById('imgampliada').src=imgurl;
}
