var c_Step = 10;
var c_Timeout = 15;
var c_Left = 175;
var c_Right = 200;
var c_Top = 115;
var c_Bottom = 115;
var c_Width = 350;
var c_Height = 350;


function c_Open()
{
	document.getElementById('content_navigation').style.zIndex = '9';
	document.getElementById('footer').style.zIndex = '9';
	document.getElementById('windows').style.zIndex = '11';
	if (c_Left > 0)
	{
		c_Right += c_Step;
		c_Left -= c_Step;
		c_Top -= c_Step;
		c_Bottom += c_Step;

		var rect = 'rect('+ c_Top+ 'px, '+ c_Right+ 'px,'+ c_Bottom+ 'px, '+ c_Left+ 'px)';

		document.getElementById('windows').style.clip = rect;

		setTimeout(c_Open, c_Timeout);
	}
}

function c_Close()
{
	document.getElementById('content_navigation').style.zIndex = '12';
	document.getElementById('footer').style.zIndex = '12';

	if (c_Left < c_Right)
	{
		c_Right -= c_Step;
		c_Left += c_Step;
		c_Top += c_Step;
		c_Bottom -= c_Step;

		var rect = 'rect('+ c_Top+ 'px, '+ c_Right+ 'px,'+ c_Bottom+ 'px, '+ c_Left+ 'px)';

		document.getElementById('windows').style.clip = rect;
		
		setTimeout(c_Close, c_Timeout);
		
	}

	document.getElementById('windows').style.zIndex = '7';
}