function allTogetherNow1(){
	resiz();
	good();
	autowrit();
	clickset();
	colors();
	taz();
	img();
	sorting();
	
	
	
}

//
function allTogetherNow(){
	resiz();
	good();
	autowrit();
	clickset();
	nextPicture();
	img();
	sorting();
	
	
	
	
}

//Resizing
function resiz(){

h=window.screen.height


if (h==600)
	{resizeTo(800,600)}

}

//Bloco bom dia
function good(){

	time=new Date().getHours();
	
	if(time>=18){
		window.status="Boa Noite!";}
	else if(time<12){
		window.status="Bom Dia!";}
	else 
		{window.status="Boa Tarde!";
	setTimeout("good()",60000);}
	
}	

//bloco banner central
var x=0
var y=new Array("Um design", "diferente","interativo", "e leve","Você consegue aqui");
var z=y.length;

function autowrit(){

	if(x<z){
		x++;
		
		document.page1.text1.value=y[x-1];
		
	}
	else{x=0;}
	id=setTimeout('autowrit()',1400);
	

}

//Bloco aumento de fontes 
siz=0;
function dynamic(){

	if(siz<=20){
		siz+=1;
	document.getElementById("text2").style.fontSize=siz;
	setTimeout("dynamic()",20);
}

	else
		siz=0;
}

//
siz1=0;
function dynamic1(){

	if(siz1<=20){
		siz1++;
	document.getElementById("text3").style.fontSize=siz1;
	setTimeout("dynamic1()",40);
}

	else
		siz1=0;
}

//
siz2=0;
function dynamic2(){

	if(siz2<=20){
		siz2+=1;
	document.getElementById("text4").style.fontSize=siz2;
	setTimeout("dynamic2()",60);
}

	else
		siz2=0;
}

//
siz3=0;
	function dynamic3(){

	if(siz3<=20){
		siz3+=1;
	document.getElementById("text5").style.fontSize=siz3;
	setTimeout("dynamic3()",100);
}

	else
		siz3=0;
}

//
siz4=0;
	function dynamic4(){

	if(siz4<=20){
		siz4+=1;
	document.getElementById("text6").style.fontSize=siz4;
	setTimeout("dynamic4()",150);
}

	else
		siz4=0;
}

//
siz5=0;
function dynamic5(){

	if(siz5<=20){
		siz5+=1;
	document.getElementById("text7").style.fontSize=siz5;
	setTimeout("dynamic5()",200);
}

	else
		siz5=0;
}

//
function clickset(){

	clicking.click();

	setTimeout("clickset()",7000);
}


	
//Bloco slides
var picture = new Array("web/colinho.jpg","web/dois3.jpg","web/zozo1.jpg","web/pianista1.jpg");
var picNumber=1;
var numberofPics=picture.length;

function nextPicture(){
  if(picNumber < numberofPics){
    picNumber++;
    }
  else{
    picNumber=1;}
  document.myPicture.src=picture[picNumber-1];
  id1=setTimeout("nextPicture()",6000);//preciso nomear o obj para determinar seu valor e demais caracteristicas
  }
//
function stopclick(){
		clearTimeout(id1);}
//
var picture = new Array("web/colinho.jpg","web/dois3.jpg","web/zozo1.jpg","web/pianista1.jpg");
var picNumber=1;
var numberofPics = picture.length;

function nextPicture1(){
  if(picNumber < numberofPics){
    picNumber++;
    }
  else{
    picNumber=1;}
  document.myPicture.src=picture[picNumber-1];
  }


//Cores do marquee
function colors(){
     var x=parseInt(Math.random()*1000/6);
		
     var y=parseInt(Math.random()*1000/6);
		
     var z=parseInt(Math.random()*1000/6);
	if(x<100){x=230};
	if(y<100){y=210};
	if(z<100){z=250};
		

		document.getElementById("changecolor1").style.color="rgb("+x+","+y+","+z+")";
		
		setTimeout("colors()",1500);
}
//movimento do taz
function taz(){
var s1=parseInt(Math.random()*1000);
var s2=parseInt(Math.random()*1000);
		if (s1>400){
			s1=200;}
		if(s2>700){
			s2=200;}

	document.getElementById("swim").style.top=s1;
	document.getElementById("swim").style.left=s2;
		setTimeout("taz()",5000);

}
//gifs opacos
var im=0;
var im1=100;
var im2=100;
var im3=0;
function img(){

	if (im<100&&im1>0){
		im2=100;
		im3=0;
		im++;
		im1--;
	document.getElementById("test").filters.alpha.opacity=im;
	document.getElementById("test2").filters.alpha.opacity=im1;
	document.getElementById("test").style.MozOpacity=im+"%";
	document.getElementById("test2").style.MozOpacity=im1+"%";
		
}
	else if(im2>0&&im3<100)
		{im2--;
		im3++;
	document.getElementById("test").filters.alpha.opacity=im2;
	document.getElementById("test2").filters.alpha.opacity=im3;
	document.getElementById("test").style.MozOpacity=im2+"%";
	document.getElementById("test2").style.MozOpacity=im3+"%";}
	
	else 
		{im=0;
		im1=100;}
	
		setTimeout("img()",100);
	}

//javascrit page mudando cores ao carregar
function sorting(){
	var x=parseInt(Math.random()*1000/4);
		
	var y=parseInt(Math.random()*1000/4);
		
	var z=parseInt(Math.random()*1000/4);
		if(x<100){x=255};
		if(y<120){x=255};
		if(z<140){x=255};
	

		document.getElementById("text8").style.color="rgb("+x+","+y+","+z+")";
		document.getElementById("text9").style.borderColor="rgb("+z+","+y+","+y+")";
		document.getElementById("text10").style.color="rgb("+z+","+x+","+y+")";
		document.getElementById("changecolor2").style.color="rgb("+x+","+z+","+y+")";
		}
