


var myInterval=""
var count="1"


function inicia()
	{
	setInterval('start()',5000);
	}
function start()
	{

	count++;
	if (count<=7)
	{
	Rotator.src = 'images/foto' + count + '.jpg';
	}
	else
	{
	count=1;
	Rotator.src = 'images/foto' + count + '.jpg';
	}



	}















// Usado na pagina fotos
function openimg (img)
{
window.open('fotogr.asp?img=' + img + '', 'new','top=50px,left=50px,width=100px,height=30,scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes,statusbar=no');
}

// Usado na pagina fotos
function openimg2 (img)
{
window.open('fotogr2.asp?img=' + img + '', 'new','top=50px,left=50px,width=100px,height=30,scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes,statusbar=no');
}

// Usado na pagina unilever.asp
function openimg3 (img)
{
window.open('fotogr3.asp?img=' + img + '', 'new','top=50px,left=50px,width=100px,height=30,scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes,statusbar=no');
}

// Usado na pagina unilever.asp
function openimg4 (img)
{
window.open('fotogr4.asp?img=' + img + '', 'new','top=50px,left=50px,width=100px,height=30,scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes,statusbar=no');
}

// Usado na pagina wyeth.asp
function openimg5 (img)
{
window.open('fotogr5.asp?img=' + img + '', 'new','top=50px,left=50px,width=100px,height=30,scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes,statusbar=no');
}

// Usado na pagina roche.asp
function openimg6 (img)
{
window.open('fotogr6.asp?img=' + img + '', 'new','top=50px,left=50px,width=100px,height=30,scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes,statusbar=no');
}

// Usado na pagina saraiva.asp
function openimg7 (img)
{
window.open('fotogr7.asp?img=' + img + '', 'new','top=50px,left=50px,width=100px,height=30,scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes,statusbar=no');
}




// Usado na capa
function init_capa()
	{




//azul
	StartupHeight2=90;
	ActualHeight2=document.getElementById('Princ2').offsetHeight;
	

		if (ActualHeight2>StartupHeight2)
		{
			Diff=ActualHeight2-StartupHeight2;

			Mid2Height=document.getElementById('Mid2').offsetHeight;
			Mid2.style.height=parseInt(Mid2Height) + Diff;

			Inf2Top=document.getElementById('Inf2').offsetTop;
			Inf2.style.top=Inf2Top + Diff;
		}




//principal
	StartupHeight=336;
	ActualHeight=document.getElementById('Princ').offsetHeight;
	

		if (ActualHeight>StartupHeight)
		{
			Diff=ActualHeight-StartupHeight;

			MidHeight=document.getElementById('Mid').offsetHeight;
			Mid.style.height=parseInt(MidHeight) + Diff;

			InfTop=document.getElementById('Inf').offsetTop;
			Inf.style.top=InfTop + Diff;
		}
	
	}








// Usado nas internas
function init_interna()
	{


	StartupHeight=336;
	ActualHeight=document.getElementById('Princ').offsetHeight;
	

		if (ActualHeight>StartupHeight)
		{
			Diff=ActualHeight-StartupHeight;

			MidHeight=document.getElementById('Mid').offsetHeight;
			Mid.style.height=parseInt(MidHeight) + Diff;

			InfTop=document.getElementById('Inf').offsetTop;
			Inf.style.top=InfTop + Diff;
		}
	
	}