p = "ImagesBis/";

home = new Array("PH1.jpg", "PH2.jpg", "PH3.jpg", "PH4.jpg", "PH5.jpg", "PH6.jpg");
function initRandRotationHome()
{	
	vIndex = 1;
	setTimeout(changeImageHome, 5000);
}
function changeImageHome()
{
	Form1.animation.src = p + home[vIndex];
	vIndex = (vIndex + 1) % 6;
	setTimeout(changeImageHome, 5000);
}

solutions = new Array("PSol1.jpg", "PSol2.jpg", "PSol3.jpg", "PSol4.jpg", "PSol5.jpg", "PSol6.jpg");
function initRandRotationSolutions()
{	
	vIndex = 1;
	setTimeout(changeImageSolutions, 5000);
}
function changeImageSolutions()
{
	Form1.animation.src = p + solutions[vIndex];
	vIndex = (vIndex + 1) % 6;
	setTimeout(changeImageSolutions, 5000);
}

integration = new Array("PInt1.jpg", "PInt2.jpg", "PInt3.jpg", "PInt4.jpg", "PInt5.jpg", "PInt6.jpg");
function initRandRotationIntegration()
{	
	vIndex = 1;
	setTimeout(changeImageIntegration, 5000);
}
function changeImageIntegration()
{
	Form1.animation.src = p + integration[vIndex];
	vIndex = (vIndex + 1) % 6;
	setTimeout(changeImageIntegration, 5000);
}

services1 = new Array("PSer11.jpg", "PSer12.jpg", "PSer13.jpg", "PSer14.jpg");
services2 = new Array("PSer21.jpg", "PSer22.jpg", "PSer23.jpg", "PSer24.jpg");
function initRandRotationServices()
{	
	vIndex = 1;
	setTimeout(changeImageServices, 5000);
}
function changeImageServices()
{
	Form1.animation1.src = p + services1[vIndex];
	Form1.animation2.src = p + services2[vIndex];
	vIndex = (vIndex + 1) % 4;
	setTimeout(changeImageServices, 5000);
}

partners = new Array("PPar1.jpg", "PPar2.jpg", "PPar3.jpg", "PPar4.jpg", "PPar5.jpg", "PPar6.jpg");
function initRandRotationPartners()
{	
	vIndex = 1;
	setTimeout(changeImagePartners, 5000);
}
function changeImagePartners()
{
	Form1.animation.src = p + partners[vIndex];
	vIndex = (vIndex + 1) % 6;
	setTimeout(changeImagePartners, 5000);
}

contacts = new Array("PCon1.jpg", "PCon2.jpg", "PCon3.jpg", "PCon4.jpg", "PCon5.jpg", "PCon6.jpg");
function initRandRotationContacts()
{	
	vIndex = 1;
	setTimeout(changeImageContacts, 5000);
}
function changeImageContacts()
{
	Form1.animation.src = p + contacts[vIndex];
	vIndex = (vIndex + 1) % 6;
	setTimeout(changeImageContacts, 5000);
}

function OpenWindowAndCenter(pURL, pHeight, pWidth)
{
	vWindowHandle = window.open(pURL,'_blank','height=' + pHeight + ', width=' + pWidth + ',resizable=no');		
	CenterWindow(vWindowHandle, pHeight, pWidth);
}
function CenterWindow(pWindowHandle, pHeight, pWidth) 
{
	if (navigator.appName == "Netscape") 
	{
		inputW = (parseInt(pWidth) + 12)
		inputH = (parseInt(pHeight) + 32)
	} else 
	{
		inputW = (parseInt(pWidth) + 10)
		inputH = (parseInt(pHeight) + 30)
	}
//grab screen size
	screenW = screen.width
	screenH = screen.height
//calculate center position values
	newX = ((screenW / 2) - (inputW / 2))
	newY = ((screenH / 2) - (inputH / 2))
//move new window to center
	pWindowHandle.moveTo(newX,newY)
}
