var Width=571
var Height=571
var WidthC=501
var HeightC=301
var temp = 0
var mydiv=0
var temp2 = 0
var mydiv2=0

function popupright()
{
	mydiv.style.display='block'
	if (temp <= Width)
		mydiv.style.width=String(temp)+'px'
	if (temp <= Height)
		mydiv.style.height=String(temp)+'px'
	temp+=35;
	if (temp < Width)
		window.setTimeout('popupright()');
	else if (temp < Height)
		window.setTimeout('popupright()');
}

function inflateright(p) {
	mydiv = document.getElementById(p)
	popupright();	
}


function popupleft()
{
	mydiv.style.display='block'
	if (temp <= Width) {
		mydiv.style.width=String(temp)+'px'
		mydiv.style.left=String(560-temp)+'px';
		}
	if (temp <= Height) {
		mydiv.style.height=String(temp)+'px'
		}
	temp+=35;
	if (temp < Width)
		window.setTimeout('popupleft()');
	else if (temp < Height)
		window.setTimeout('popupleft()');
}

function inflateleft(p) {
	mydiv = document.getElementById(p)
	popupleft();	
}


function popupleftcontact()
{
	mydiv2.style.display='block'
	if (temp2 <= WidthC) {
		mydiv2.style.width=String(temp2)+'px'
		mydiv2.style.left=String(915-temp2)+'px';
		}
	if (temp2 <= HeightC) {
		mydiv2.style.height=String(temp2)+'px'
		}
	temp2+=50;
	if (temp2 < WidthC)
		window.setTimeout('popupleftcontact()');
	else if (temp2 < HeightC)
		window.setTimeout('popupleftcontact()');
}

function inflateleftcontact(p) {
	mydiv2 = document.getElementById(p)
	popupleftcontact();	
}




function deflate(p)
{
	mydiv = document.getElementById(p)
	mydiv.style.display='none'
	mydiv.style.width = '0px'
	mydiv.style.height = '0px'
	temp=0
}

function deflatecontact(p)
{
	mydiv2 = document.getElementById(p)
	mydiv2.style.display='none'
	mydiv2.style.width = '0px'
	mydiv2.style.height = '0px'
	temp2=0
}
