var ckc=false;
var totc=new Array();
function startRes(){ 
	var obj1,obj2,obj3,obj4,obj5,obj5,obj6,obj7,obj8,func; 
	if (document.all && !window.opera) {
		obj1 = document.all.fondo1; 
		obj2 = document.all.fondo2; 
		obj3 = document.all.barra_logo; 
		obj4 = document.all.f1; 
		obj5 = document.all.f2; 
		obj6 = document.all.f3; 
		obj7 = document.all.fondo_hide;
		obj8 = document.all.mesx; 
		obj9 = document.all.fondo3; 
		obj10 = document.all.lingua; 
		func = function(){
			if (document.documentElement.clientHeight==0) altez = document.body.clientHeight;
			if (document.body.clientHeight==0) altez = document.documentElement.clientHeight;
			if (altez>750) {
				/*var cont = (altez/100)*12;
				var conta = (altez/100)*12+15;
				var conta_a = parseInt(((altez/100)*12)+60);
				var timer = 0;
				for (id=0;id<=cont;id++){
					setTimeout("effect_t('"+id+"')",(timer*12));
					timer++;
				}
				var timer = 0;
				for (id=15;id<=conta;id++){
					setTimeout("effect_t1('"+id+"')",(timer*12));
					timer++;
				}
				timer=0;
				for (id=60;id<=conta_a;id++){
					setTimeout("effect_t2('"+id+"')",(timer*12));
					timer++;
				}*/
				obj1.style.bottom=(altez/100)*12+15;
				obj2.style.bottom=(altez/100)*12+15;
				obj3.style.bottom=((altez/100)*12)+60;
				obj4.style.bottom=((altez/100)*12)+60;
				obj5.style.bottom=((altez/100)*12)+60;
				obj6.style.bottom=((altez/100)*12)+60;
				obj7.style.height=(altez/100)*12;
				obj7.style.visibility='visible';
				obj8.style.top=(altez/100)*12;				
				obj9.style.bottom=(altez/100)*12;
				obj10.style.bottom=(altez/100)*12+145;
				//
				obj1.style.visibility='visible';
				obj2.style.visibility='visible';
				obj3.style.visibility='visible';
				obj4.style.visibility='visible';
				obj5.style.visibility='visible';
				obj6.style.visibility='visible';
				obj8.style.visibility='visible';
				obj9.style.visibility='visible';
				obj10.style.visibility='visible';
			}else if (altez<750) {
				obj1.style.bottom='15px';
				obj2.style.bottom='15px';
				obj3.style.bottom='60px';
				obj4.style.bottom='60px';
				obj5.style.bottom='60px';
				obj6.style.bottom='60px';
				obj7.style.height='0px';
				obj7.style.visibility='hidden';
				obj8.style.top='0px';				
				obj9.style.bottom='0px';
				obj10.style.bottom='145px';
				//
				obj1.style.visibility='visible';
				obj2.style.visibility='visible';
				obj3.style.visibility='visible';
				obj4.style.visibility='visible';
				obj5.style.visibility='visible';
				obj6.style.visibility='visible';
				obj8.style.visibility='visible';
				obj9.style.visibility='visible';
				obj10.style.visibility='visible';
			}
		}; 
		onresize = func; 
		func(); 
	} else if (document.getElementById) { 
		obj1 = document.getElementById('fondo1');
		obj2 = document.getElementById('fondo2');
		obj3 = document.getElementById('barra_logo');
		obj4 = document.getElementById('f1');
		obj5 = document.getElementById('f2');
		obj6 = document.getElementById('f3');
		obj7 = document.getElementById('fondo_hide');
		obj8 = document.getElementById('mesx');
		obj9 = document.getElementById('fondo3');
		obj10 = document.getElementById('lingua');
		func = function(){
			if (window.innerHeight>750) {
				var hc = (window.innerHeight/100)*12;
				var hcs = (window.innerHeight/100)*12+15;
				var hcc = (window.innerHeight/100)*12+60;
				var hcd = (window.innerHeight/100)*12+145;
				/*var timer = 0;
				for (id=0;id<=hc;id++){
					setTimeout("effect_ft('"+id+"')",(timer*12));
					timer++;
				}
				timer=0;
				for (id=15;id<=hcs;id++){
					setTimeout("effect_ft1('"+id+"')",(timer*12));
					timer++;
				}
				timer=0;
				for (id=60;id<=hcc;id++){
					setTimeout("effect_ft2('"+id+"')",(timer*12));
					timer++;
				}*/
				obj1.style.bottom=hcs.toString()+'px';
				obj2.style.bottom=hcs.toString()+'px';
				obj3.style.bottom=hcc.toString()+'px';
				obj4.style.bottom=hcc.toString()+'px';
				obj5.style.bottom=hcc.toString()+'px';
				obj6.style.bottom=hcc.toString()+'px';
				obj7.style.height=hc.toString()+'px';
				obj7.style.visibility='visible';
				obj8.style.top=hc.toString()+'px';
				obj9.style.bottom=hc.toString()+'px';
				obj10.style.bottom=hcd.toString()+'px';
				//
				obj1.style.visibility='visible';
				obj2.style.visibility='visible';
				obj3.style.visibility='visible';
				obj4.style.visibility='visible';
				obj5.style.visibility='visible';
				obj6.style.visibility='visible';
				obj8.style.visibility='visible';
				obj9.style.visibility='visible';
				obj10.style.visibility='visible';
			}else if (window.innerHeight<750) {
				obj1.style.bottom='15px';
				obj2.style.bottom='15px';
				obj3.style.bottom='60px';
				obj4.style.bottom='60px';
				obj5.style.bottom='60px';
				obj6.style.bottom='60px';
				obj7.style.height='0px';
				obj7.style.visibility='hidden';
				obj8.style.top='0px';				
				obj9.style.bottom='0px';
				obj10.style.bottom='145px';
				//
				obj1.style.visibility='visible';
				obj2.style.visibility='visible';
				obj3.style.visibility='visible';
				obj4.style.visibility='visible';
				obj5.style.visibility='visible';
				obj6.style.visibility='visible';
				obj8.style.visibility='visible';
				obj9.style.visibility='visible';
				obj10.style.visibility='visible';
			}
		};
		window.onresize = func; 
		func(); 
	} else if(document.layers) { 
		obj1 = document.layers['tabico']; 
		obj1.style = obj1; 
		document.captureEvents(Event.MOUSEMOVE); 
		func = function(){ 
		obj1.style.top=window.pageYOffset; 
		obj1.style.left=window.pageXOffset; 
		}; 
		document.onmousemove = func; 
		onresize=func; 
		func(); 
	} 
	obj1.style.visibility='visible'; 
	obj1.style.width='100%';
} 

function effect_t(dato){
	obj7 = document.all.fondo_hide;
	obj9 = document.all.fondo3; 
	obj9.style.bottom=dato;
	obj7.style.height=dato;
}

function effect_t1(dato){
	obj1 = document.all.fondo1; 
	obj2 = document.all.fondo2; 
	obj8 = document.all.mesx; 
	obj1.style.bottom=dato;
	obj2.style.bottom=dato;
	obj8.style.top=dato;
}

function effect_t2(dato){
	obj3 = document.all.barra_logo; 
	obj4 = document.all.f1; 
	obj5 = document.all.f2; 
	obj6 = document.all.f3; 
	obj3.style.bottom=dato;
	obj4.style.bottom=dato;
	obj5.style.bottom=dato;
	obj6.style.bottom=dato;
}

function effect_ft(dato){
	obj7 = document.getElementById('fondo_hide');
	obj9 = document.getElementById('fondo3'); 
	obj7.style.height=dato.toString()+'px';
	obj9.style.bottom=dato.toString()+'px';
}

function effect_ft1(dato){
	obj1 = document.getElementById('fondo1'); 
	obj2 = document.getElementById('fondo2'); 
	obj8 = document.getElementById('mesx'); 
	obj1.style.bottom=dato.toString()+'px';
	obj2.style.bottom=dato.toString()+'px';
	obj8.style.top=dato.toString()+'px';
}

function effect_ft2(dato){
	obj3 = document.getElementById('barra_logo'); 
	obj4 = document.getElementById('f1'); 
	obj5 = document.getElementById('f2'); 
	obj6 = document.getElementById('f3'); 
	obj3.style.bottom=dato.toString()+'px';
	obj4.style.bottom=dato.toString()+'px';
	obj5.style.bottom=dato.toString()+'px';
	obj6.style.bottom=dato.toString()+'px';
}


