var sPage_Name0 = "xxx" ;
var sPage_Name1 = "xxx" ;
var sPage_TopPath = "" ;
var sPage_HeadMsg = "Capture Solution XE / Screen AVI CAM / Screen WMV CAM" ;

function _Exist_Properties_CommPages()
{
	return 1 ;
}
function _IsInWeb()
{
	if(self._Web_Enabled)
		return _Web_Enabled() ;
	return 0 ;
}
function _LI_Title_Color(iColorInx)
{	switch(iColorInx)
	{	case 1	: document.write("rgb(90, 0, 0)") ;		break;
		case 2	: document.write("rgb(0, 90, 0)") ;		break;
		default	: document.write("rgb(0, 0, 105)") ;
	}
}

try{
	var iColorInx = 0 ;
	if(Math)
		iColorInx = Math.floor(Math.random() * 4) ;  //0~3
	document.write('<style type="text/css">') ;
	document.write('<!--') ;
		document.write('LI.title		{ margin-top:10pt;  color:') ;
		_LI_Title_Color(iColorInx) ;
		document.write('}') ;

		document.write('LI.title_topoff	{ margin-top:20pt;  color:') ;
		_LI_Title_Color(iColorInx) ;
		document.write('}') ;
	document.write('-->') ;
	document.write('</style>') ;
} catch(e) { ; }

function _MapAreaItemRect(iX1, iY1, iX2, iY2, sHref, sAlt)
{
	//<area shape="rect" coords="25,68, 80,83" href="configure.video.list.htm" alt="Video ...">
	document.write('<area shape="rect" coords="' + iX1 + ',' + iY1 + ',' + iX2 + ',' + iY2 + '" href="' + sHref + '" alt="' + sAlt + '">') ;
}
function _MapBegin(sName)
{
	document.write('<map name="') ;
	document.write(sName) ;
	document.write('">') ;
}
function _MapEnd()
{
	document.write("</map>") ;
}
function _Line_Size1()
{
	document.write('<hr class="line1" size="1" width="100%" align="left" noshade>') ;
}
function _Line_Size2()
{
	document.write('<hr class="line2" size="2" width="100%" align="left" noshade>') ;
}
function _Line_Size3()
{
	document.write('<hr class="line3" size="3" width="100%" align="left" noshade>') ;
}
function _Link_Begin(iTopOff)
{
	document.write('<br style="line-height:' + iTopOff + 'px">' ) ;
	document.write('<table class="noline" width="30%">' ) ;
	document.write('<tr>') ;
}
function _Link_End()
{
	document.write('</tr>') ;
	document.write('</table>') ;
}
function _Link_Item(bBodyList, iCols, iPage_Inx, sHref, sTitle)
{
	if(((iPage_Inx % iCols) == 0) && (iPage_Inx != 0))
		document.write("</tr><tr>") ;

	document.write('<td class="noline" nowrap') ;
	if(bBodyList == 1)
		document.write(' height="30"') ;
	document.write('><b>&nbsp;&nbsp;&nbsp;<a href="' + sHref + '">') ;
	if(bBodyList == 1)
		document.write('<img class="Mg0" src="../cm_images/icon_list_title.gif"> ') ;
	document.write(sTitle + '</a></b></td>') ;
}
function _Page_Sub_Title(sTitle)
{
	var sStr = '<h3><img class="Mg0" src="../cm_images/icon_list_title.gif"> ' + sTitle + '</h3>' ;
	document.write(sStr) ;
}
function _PageBottom_Copyright()
{
	with(document)
	{
		write('<br>') ;
		write('<table class="noline" width="100%" height="50" border="0" cellpadding="10" cellspacing="0" bgcolor="#F2F8FF" style="background-color:#F2F8FF">') ;

		write('<tr><td class="noline" align="center" valign="top" style="background-color:#F2F8FF" ') ;
		if(navigator.appName == "Microsoft Internet Explorer")
			write('style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr=#E0E5FF, endColorStr=#FFFFFF, gradientType=0)">') ;
		else
			write('>') ;
		write('<b><span style="font-size:9pt; color:black">Copyright(c) SProsoft. All rights reserved.</span></b>') ;
		write('</td></tr>') ;

		write('</table>') ;
	}
}
function _Pages_HeadMsgs()
{
	with(document)
	{
		write('<table class="noline" width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C8F0F0" style="background-color:#C8F0F0">') ;
		write('<tr height="25"><td class="noline" nowrap style="background-color:#C8F0F0"') ;
		if(navigator.appName == "Microsoft Internet Explorer")
			write('style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr=#C8F0F0, endColorStr=#FFFFFF, gradientType=1)">') ;
		else
			write('>') ;
		write('&nbsp;&nbsp; <b>' + sPage_HeadMsg + '</b>') ;
		write('</td></tr>') ;
		write('</table>') ;
	}
}
function _Pages_TopVirtual()
{
	var iBgImgInx = 1 ;
	if(Math)
		iBgImgInx = Math.floor(Math.random() * 8) + 1 ;  //1~8

	with(document)
	{
		//write('<div class="page_main" style="margin-left:0px; background:url(\'' + sPage_TopPath + '../cm_images/bg_0001.jpg\')">') ;

		write('<div class="page_main" style="margin-left:0px; background:url(\'' + sPage_TopPath + '../cm_images/bg_000' + iBgImgInx + '.jpg\')">') ;
		write('<br style="line-height:1px">') ;
	}
	if(self._Pages_HeadMsgs)
		_Pages_HeadMsgs() ;

	with(document)
	{
		write('<div class="pagebody_back" ') ;

		if(screen.width > 1000)
			write('style="margin-right:100px; border-right:1px solid #B0C0E0"') ;
		write('>') ;
		write('<div class="pagebody_main">') ;
	}
	if(screen.width > 1000)
	{	if(self._PageRight_Bner1)
			_PageRight_Bner1() ;
	}
}
function _Pages_BottomVirtual()
{
	with(document)
	{
		write("</div>") ;   //pagebody_main
		write("</div>") ;   //pagebody_back
	}

	_PageBottom_Copyright() ;

	with(document)
	{
		write("</div>") ;   //page_main
	}
}
function _Pages_Body_StartVirtual()
{

}
function _Pages_Body_EndVirtual()
{
	with(document)
	{
		write('<br><br><br>') ;
	}
}
function _Set_CurrentWebPage(sMenu, sItem) 
{	
	if(_IsInWeb() != 1)
		return ;
	if(top.Top_ResetMenu_Left)
		top.Top_ResetMenu_Left(sMenu, sItem, sPage_TopPath) ;
}
function _PageMove_WebTopPage() 
{	
	if(_IsInWeb() != 1)
		return 1 ;
	try{
		if(top.location.href.toLowerCase().indexOf("/top1.") < 0)
		{	top.location.replace(sPage_TopPath + "top1.htm") ;
			return 0 ;
		}
	} catch(e) { ; }
	return 1 ;
}
function _WebPages_BodyTopWorks(sMenu, sItem) 
{	
	if(_IsInWeb() != 1)
		return 1 ;
	var iRes = _PageMove_WebTopPage() ;
	if(iRes == 1)
		_Set_CurrentWebPage(sMenu, sItem) ;
	return iRes ;
}
function OnLoad_Comm() 
{	
	var iRes = 1 ;
	if(_IsInWeb() == 1)
	{	iRes = _PageMove_WebTopPage() ;
	}
	return iRes ;
}