var web_type="";
var height=0; 
var height2=0;
var top_padding=0;
if (navigator.userAgent.indexOf("MSIE") !=-1)
{
	web_type="Internet Explorer";
	height=21;
	height2=19;
	top_padding=0;
}
else if (navigator.userAgent.indexOf("Safari") !=-1)
{
	web_type="Safari";
	height=21;
	height2=19;
	top_padding=3;
}
else if (navigator.userAgent.indexOf("Firefox") !=-1)
{
	web_type="Firebox";
	height=21;
	height2=21;
	top_padding=0;

}
else if (navigator.userAgent.indexOf("Netscape") !=-1)
{
	web_type="Netscape";
	height=20;
	height2=21;
	top_padding=0;
}
else
{
	web_type="Unknow Brower";
	height=20;
}
//alert(web_type);
function Reverse(ThisObject)
{
	ThisObject.style.color='#000066'; 
	ThisObject.style.backgroundColor='#dce9f0';
}
function Normal(ThisObject)
{
	ThisObject.style.backgroundColor='#000066';
	ThisObject.style.color='#dce9f0';
}

function fRow_Bar(x1,x2,x3,x4,x5,x6,x7,x8)
{
	bar_name[0]=x1;
	bar_name[1]=x2;
	name_link[0]=x3;
	name_link[1]=x4;
//	bar_title[0]="";
//	bar_title[1]="";
	bar_width[0]=x7;
	bar_width[1]=x8;
	
	var aa="";
	var n=0;
	var cell_bgcolor_orig="#000066";
	var cell_bgcolor_change="#dce9f0";
	var mouse_change="";
	aa=aa+'<div align="center"  style="margin-top:20px;">';
	aa=aa+'<table cellspacing="0" cellspacing="0" >';
	aa=aa+'<tr>';
	aa=aa+'<td>';
	if (bar_name[1].length >0 )
		n=2;
	else
		n=1;
	for (var j=0; j<n; j++)
		{
		aa=aa+'<table cellspacing="0">';
		aa=aa+'<tr>';
		for (var i=0; i<bar_name[j].length; i++)
		{	
			if (name_link[j][i]=="")
			{
				cell_bgcolor_orig="#dce9f0";
				cell_bgcolor_change="#000066";
				mouse_change="";
				pbgcolor="#dce9f0";
			}
			else
			{
				mouse_change='onMouseOver="Reverse(this)" onMouseOut="Normal(this)" ';
				cell_bgcolor_orig="#000066";
				cell_bgcolor_change="#dce9f0";
				pbgcolor="#000066";
			}
			aa=aa+'<td>';
			aa=aa+'<div>';
//			if ((web_type!="Firebox")
//			{
//				
//	<table>
//	<tr>
//	<td width="82" height="21px" align="center" valign="middle" bgcolor="#FF0000">
//	<a href="">
//	<p onMouseOver="Reverse(this)" onMouseOut="Normal(this)" style=" font-family:Verdana; font-size:11.0pt; color:#dce9f0; width:82px; backgroud-color: #0000ff; vertical-align:middle; line-height:21px; margin:0px; ">
//	bbbbbb
//	</p>
//	</a>
//	</td>
//	</tr>
//	</table>
				
//			}
//			else
//			{
			aa=aa+'<table cellpadding=1px cellspacing=0 >';
			aa=aa+'<tr>';
	//		if (web_type!="Firebox")
			aa=aa+'<td width="'+bar_width[j][i]+'" height="'+height+'" bgcolor="#000066">';
			if (name_link[j][i]=="")
			{
				aa=aa+'<p '+mouse_change+'';
				aa=aa+'style="font-family:Verdana;font-size:11.0pt;text-align:center;vertical-align:middle; padding-top:'+top_padding+'; color:'+cell_bgcolor_change+'; height:'+height2+'; width:'+bar_width[j][i]+';  background-color:'+pbgcolor+';line-height:19px; margin:0px; ">';
				aa=aa+""+bar_name[j][i]+"";
				aa=aa+'</p>';
			}
			else
			{
				aa=aa+'<a href="'+name_link[j][i]+'"';
				aa=aa+'target="mainFrame"';
				aa=aa+'	style="color:#000066;"';
	//			aa=aa+'title=';
		//		aa=aa+""+bar_title[j][i]+"";
				aa=aa+'>';
				aa=aa+'<p '+mouse_change+'';
				aa=aa+'style="font-family:Verdana;font-size:11.0pt;text-align:center;vertical-align:middle; padding-top:'+top_padding+'; color:'+cell_bgcolor_change+'; height:'+height2+'; width:'+bar_width[j][i]+';  background-color:'+pbgcolor+';line-height:19px; margin:0px; ">';
				aa=aa+""+bar_name[j][i]+"";
				aa=aa+'</p>';
				aa=aa+'</a>';
			}
			aa=aa+'</td>';
			aa=aa+'</tr>';
			aa=aa+'</table>';
//			}
			aa=aa+'</div>';
			aa=aa+'</td>';
		}
		aa=aa+'</tr>';
		aa=aa+'</table>';
	}
	aa=aa+'</td>'
	aa=aa+'</tr>';
	aa=aa+'</table >';
	aa=aa+'</div>';
	window.document.write(aa);
}
function fBackPreviousPage()
{
	var aa=""
	aa=aa+'<div>';
	aa=aa+'<table cellpadding=1px cellspacing=0  >';
	aa=aa+'<tr>';
	aa=aa+'<td td width="150" height="21" bgcolor="#000066">';
	aa=aa+'<a  href="Source_Registry.htm" target="mainFrame" title="Back to Previous Page" style="color:#000066;" >';
	aa=aa+'<p onMouseOver="Reverse(this)" onMouseOut="Normal(this)" ';
	aa=aa+'style="font-family:Verdana;font-size:11.0pt;color:#dce9f0;backgroud-color:#000066;border-color:#000066; text-align:center;vertical-align:middle; width:150; height:19;padding-top:'+top_padding+';">';
	aa=aa+'Back to Pre Page</p>';
	aa=aa+'</a>';
	aa=aa+'</td>';
	aa=aa+'</tr>';
	aa=aa+'</table>';
	aa=aa+'</div>';
	document.write(aa);
}
