/******************************************************************
* Face.js 						          *
* Copyright (c) 1999-2000, "21th Century Consalting Company"      *
******************************************************************/


function CFace(sName, sLeftHeader, sRightHeader, sLeftBackground, sRightBackground, nLeftWidth, nRightWidth, nHeightHeader, sBackgroundColor)
{
	this.m_sName = sName;
	this.m_nLeftWidth = nLeftWidth;
	this.m_nRightWidth =  nRightWidth;
	this.m_nHeightHeader = nHeightHeader;
	this.m_sBackgroundColor = sBackgroundColor;
	this.m_LeftHeader = new Image();
	this.m_LeftHeader.src = sLeftHeader;
	this.m_RightHeader = new Image();
	this.m_RightHeader.src = sRightHeader;
	this.m_LeftBackground = new Image();
	this.m_LeftBackground.src = sLeftBackground;
        this.m_RightBackground = new Image();
        this.m_RightBackground.src = sRightBackground;
	this.BeginFace = CFace_Begin;
	this.EndFace = CFace_End;

	return this;
}

function CFace_Begin()
{
var s='<div align=center valign=top><table width=200 border=0 cellspacing=0 cellpadding=0 height="100%">';




s+='<tr height=58 valign=top bgcolor=#fcfce2 ><td height=100% rowspan=4 background="../images/fon_right.gif"><img src="../images/fon_right.gif" hspace=0 vspace=0 border=0></td><td valign=top>';
//draw top images
s+='<img src="../images/top_left.gif"  hspace=0 vspace=0 border=0></td>';
s+='<td colspan=2><img src="../images/top_right.gif"  hspace=0 vspace=0 border=0></td>';
s+='</td>';
s+='</tr>';

s+='<tr><td valign=top bgcolor=#fcfce2 background="../images/fon_bottom.gif">';
s+='<table  bgcolor=#fcfce2 border=0 cellspacing=0 cellpadding=0 background="../images/fon_top.gif">';
s+='<tr ><td>';
s+='<img src="../images/top_left_2.gif"  hspace=0 vspace=0 border=0>';
s+='</td></tr>';

//menu
document.write(s);

if (g_arVisObjs[this.m_sName])
{
	g_arVisObjs[this.m_sName].Disable(); 
}
DrawMainMenu();

var s='<tr><td><br><br></td></tr>';
s+='<tr><td bgcolor=#fcfce2><img src="../images/forma.gif"  hspace=0 vspace=0 border=0></td>';
s+='</tr></table>';
//end of menu


s+='<td bgcolor=#fcfce2 valign=top align=center width=458>';//';
//s+='';

document.write(s);

}

function CFace_End()
{
document.write('</td><td height=100% align=right background="../images/fon_right.gif"><img src="../images/fon_right.gif"> </td></tr></table></div>');//</td></tr><td valign=top width='+this.m_nLeftWidth+' background=\"'+this.m_LeftBackground.src+'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
//document.write('</td></tr></table></td></tr><td valign=top width='+this.m_nLeftWidth+' background=\"'+this.m_LeftBackground.src+'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
}
