var aLanguages =
[
	['EN','English'],
	['CN','Chinese Simplified'], 
	['HK','Chinese Traditional'] 
]


//================================================
// Header
// Draws the header
//================================================
function Header(strLanguage)
{
	document.write('<table height=75 bgcolor="#ffffff" width="100%" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr>');
	document.write('<td width="100%" bgcolor="#4C555D" align="left"><a href="/"><img src="/_gui/sdr_logo.gif" width="161" height="106" alt="Silver Dragon Resources" border="0"></a>');
	document.write('<img src="/_gui/header.gif" border="0"  width="627" height="106" />');
	/*
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="625" height="105" id="banner1">');
	document.write('<param name="movie" value="/banner1.swf">');
	document.write('<param name="loop" value="false" />');
	document.write('<embed src="/banner1.swf" width="625" height="105">');
	document.write('</embed>');
	document.write('</object>');
	*/
	
	document.write('</td>');

	document.write('<td bgcolor="#4C555D">');
	document.write('<select name="Language" onChange="javascript:document.Form.submit();">');
 	for (i=0;i<aLanguages.length;i++ )
	{
		if(aLanguages[i][0]==strLanguage)
			document.write('<option selected value="' + aLanguages[i][0] + '">' + aLanguages[i][1] + '</option>');
		else
			document.write('<option value="' + aLanguages[i][0] + '">' + aLanguages[i][1] + '</option>');

	}
	document.write('</select>&nbsp;<br><br>');
	document.write('<a href="#" onclick="javascript:document.Form.Language.value=\'EN\';document.Form.submit();"><img src="/_gui/flag_us.gif" border="0"></a> &nbsp;<a href="#" onclick="javascript:document.Form.Language.value=\'CN\';document.Form.submit();"><img src="/_gui/flag_cn.gif" border="0"></a> &nbsp;<a href="#" onclick="javascript:document.Form.Language.value=\'HK\';document.Form.submit();"><img src="/_gui/flag_hk.gif" border="0"></a>&nbsp;&nbsp;');
	document.write('</td>');


	document.write('</tr>');
	document.write('<tr>');
	document.write('<td colspan="2" height=1 bgcolor=#ffffff></td>');
	document.write('</tr>');							
	document.write('<tr>');
	document.write('<td colspan="2"  bgcolor=#9198A1>');
	document.write('<table border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr>');
	document.write('<td width="100" valign="top"><img src="/_nav/' + strLanguage + '/nav_0_off.gif" width="100" height="25" name="menu0" id="menu0" onmouseover="showMenu(event)" onmouseout="hideMenu(event)" alt="Company Profile"></td>');
	document.write('<td width="58" valign="top"><img src="/_nav/' + strLanguage + '/nav_1_off.gif" width="58" height="25" name="menu1" id="menu1" onmouseover="showMenu(event)" onmouseout="hideMenu(event)" alt="Projects"></td>');
	document.write('<td width="96" valign="top"><img src="/_nav/' + strLanguage + '/nav_2_off.gif" width="96" height="25" name="menu2" id="menu2" onmouseover="showMenu(event)" onmouseout="hideMenu(event)" alt="Investor Center"></td>');
	document.write('<td width="83" valign="top"><img src="/_nav/' + strLanguage + '/nav_3_off.gif" width="83" height="25" name="menu3" id="menu3" onmouseover="showMenu(event)" onmouseout="hideMenu(event)" alt="Silver Market"></td>');
	document.write('<td width="76" valign="top"><img src="/_nav/' + strLanguage + '/nav_4_off.gif" width="76" height="25" name="menu4" id="menu4" onmouseover="showMenu(event)" onmouseout="hideMenu(event)" alt="Contact Us"></td>');
	switch (strLanguage)
	{
		case 'HK':
			document.write('<td width="100%" valign="middle" align=right id="BannerLink"><a href="/" class="BannerLink">主頁</a> | <a href="/SiteMap.asp" class="BannerLink">網站地圖</a>&nbsp;&nbsp;&nbsp;</td>');
		break;

		case 'CN':
			document.write('<td width="100%" valign="middle" align=right id="BannerLink"><a href="/" class="BannerLink">主页</a> | <a href="/SiteMap.asp" class="BannerLink">网站地图</a>&nbsp;&nbsp;&nbsp;</td>');
		break;
	
		default:
			document.write('<td width="100%" valign="middle" align=right id="BannerLink"><a href="/" class="BannerLink">Home</a> | <a href="/SiteMap.asp" class="BannerLink">Site Map</a>&nbsp;&nbsp;&nbsp;</td>');
		break;
	}	
	document.write('</tr>');
	document.write('</table>');			
	document.write('</td>');
	document.write('</tr>');	
	document.write('<tr>');
	document.write('<td height=1 colspan=2 bgcolor=#ffffff></td>');
	document.write('</tr>');						
	document.write('</table>');




}

//================================================
// Footer()
// Creates and displays the Footer
//================================================
function Footer(strLanguage)
{
	switch (strLanguage)
	{

		case 'HK':
			document.write('<table bgcolor="#515C6A" width="100%" border="0" cellspacing="0" cellpadding="0">');
			document.write('<tr>');
			document.write('<td valign="middle" align="center" id=Footer height=20><br>');
			document.write('銀龍資源公司版權所有Copyright &copy; Silver Dragon Resources Inc. 公司保留所有權利。點擊查看隱秘政策： <a href="/PrivacyPolicy.asp" id=FooterLink>Privacy Policy</a>');
			document.write('<br><br>告誡美國投資者：美國證券交易監督委員會（證監會）僅允許礦業公司在其向證監會提交的報告中披露公司可以經濟地、合法地開采或生産的礦藏。我們在本網站使用的一些術語，如“儲量”、“資源量”、“地質資源”、“證實的”、“很可能的”、“探明的”、“控制的”、“推斷的”等等，是證監會嚴禁我們在向其所提交報告中使用的。請美國的投資者仔細查閱我們在10-KSB表格中的披露，文件號000-29657。查看幷獲取報告請訪問證監會的網站 <a href="http://www.sec.gov/edgar.shtml" id="FooterLink" target="blank">http://www.sec.gov/edgar.shtml</a>.');
			document.write('<br><br>本網站也提供了關于我們無權勘探或開采的鄰近礦點的信息。我們特此告知美國的投資者，證監會的礦業規定嚴禁在向其提交的報告中包含此類信息。特此告誡美國的投資者，鄰近礦點的礦藏幷不能說明我們所擁有的礦點的礦藏。');
			document.write('</td>');
			document.write('</tr>');
			document.write('</table>');
		break;

		case 'CN':
			document.write('<table bgcolor="#515C6A" width="100%" border="0" cellspacing="0" cellpadding="0">');
			document.write('<tr>');
			document.write('<td valign="middle" align="center" id=Footer height=20><br>');
			document.write('银龙资源公司版权所有Copyright &copy; Silver Dragon Resources Inc. 公司保留所有权利。点击查看隐秘政策：  <a href="/PrivacyPolicy.asp" id=FooterLink>隱私保護政策</a>');
			document.write('<br><br>告诫美国投资者：美国证券交易监督委员会（证监会）仅允许矿业公司在其向证监会提交的报告中披露公司可以经济地、合法地开采或生产的矿藏。我们在本网站使用的一些术语，如“储量”、“资源量”、“地质资源”、“证实的”、“很可能的”、“探明的”、“控制的”、“推断的”等等，是证监会严禁我们在向其所提交报告中使用的。请美国的投资者仔细查阅我们在10-KSB表格中的披露，文件号000-29657。查看并获取报告请访问证监会的网站 <a href="http://www.sec.gov/edgar.shtml" id="FooterLink" target="blank">http://www.sec.gov/edgar.shtml</a>.');
			document.write('<br><br>本网站也提供了关于我们无权勘探或开采的邻近矿点的信息。我们特此告知美国的投资者，证监会的矿业规定严禁在向其提交的报告中包含此类信息。特此告诫美国的投资者，邻近矿点的矿藏并不能说明我们所拥有的矿点的矿藏。');
			document.write('</td>');
			document.write('</tr>');
			document.write('</table>');
		break;
		default:
			document.write('<table bgcolor="#515C6A" width="100%" border="0" cellspacing="0" cellpadding="0">');
			document.write('<tr>');
			document.write('<td valign="middle" align="center" id=Footer height=20><br>');
			document.write('Copyright &copy; Silver Dragon Resources Inc. All Rights Reserved. <a href="/PrivacyPolicy.asp" id=FooterLink>Privacy Policy</a>');
			document.write('<br><br>Cautionary Note to U.S. Investors &ndash; The United States Securities and Exchange Commission permits mining companies, in their filings with the SEC, to disclose only those mineral deposits that a company can economically and legally extract or produce.  We use certain terms on this web site, such as "reserves", "resources", "geologic resources", "proven", "probable", "measured", "indicated" and "inferred", that the SEC guidelines strictly prohibit us from including in our filing with the SEC. U.S. investors are urged to consider closely the disclosure in our Form 10-KSB, File No. 000-29657.  You can review and obtain copies of these filings from the SEC\'s website at <a href="http://www.sec.gov/edgar.shtml" id="FooterLink" target="blank">http://www.sec.gov/edgar.shtml</a>.');
			document.write('<br><br>This company also contains information about adjacent properties on which we have no right to explore or mine.  We advise U.S. investors that the SEC’s mining guidelines strictly prohibit information of this type in documents filed with the SEC.  U.S. investors are cautioned that mineral deposits on adjacent properties are not indicative of mineral deposits on our properties.<br><br>');
			document.write('</td>');
			document.write('</tr>');
			document.write('</table>');
		break;

	}
}



//================================================
// RightColumn
// Draws the right column
//================================================
function RightColumn(strLanguage)
{
	switch (strLanguage)
	{
		default:
			document.write('<table border="0" cellspacing="0" cellpadding="0">');
			document.write('<tr>');
			document.write('<td height=30 valign=top><img src="/_gui/otc_sdrg.gif" border=0></td>');
			document.write('</tr>');
			document.write('<tr>');
			document.write('<td height=1 align=right><img src="/_gui/faded_line.gif" border=0></td>');
			document.write('</tr>');		
			
			document.write('<tr>');
			document.write('<td height=25><a href="mailto:info@silverdragonresources.com"><img src="/_img/' + strLanguage + '/email_address.gif" border=0></a></td>');
			document.write('</tr>');
			document.write('<tr>');
			document.write('<td height=1 align=right><img src="/_gui/faded_line.gif" border=0></td>');
			document.write('</tr>');	
			document.write('<tr>');
			document.write('<td height=25><img src="/_img/' + strLanguage + '/telephone_number.gif" border=0></td>');
			document.write('</tr>');
			document.write('<tr>');
			document.write('<td height=1 align=right><img src="/_gui/faded_line.gif" border=0></td>');
			document.write('</tr>');	
			document.write('</table>');	
		break;
	}
}

//================================================
// LeftColumn
// Draws the left column
//================================================
function LeftColumn(strLanguage)
{

}

function SignUp(objForm)
{
	if (objForm.SignUpName.value=='')
	{
		alert('You must enter your name');
		objForm.SignUpName.focus();
		return;
	}

	if (objForm.SignUpEmail.value=='' || !vEmail(objForm.SignUpEmail.value))
	{
		alert('You must enter a valid email address');
		objForm.SignUpEmail.focus();
		return;
	}

	objForm.action='/SignUp.asp';
	objForm.submit();
}

//================================================
// vEmail
//================================================
function vEmail(email)
{	
	var tmp = new String( email );
	var whereAt = tmp.indexOf("@",0);
	var whereDot = tmp.indexOf(".",0);
	
	if( whereAt == -1 || whereAt == (email.length-1) || 
			whereDot == -1 || whereDot == (email.length-1) )
	{
		return false;
	}
	return true;
}

//================================================
// GetDate
//================================================
function GetDate()
{
	var dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
  var monthNames = new Array( 'Jan','Feb','March','April','May','June','July','Aug','Sept','Oct','Nov','Dec');
	var now = new Date();
  var theYear = eval(now.getYear());
	if(eval(theYear) < 1900)
		theYear += 1900;
	document.write(dayNames[now.getDay()] + ' ' + monthNames[now.getMonth()] + 	' ' + now.getDate() + ', ' + theYear);
}

//================================================
// OpenNewWindow
//================================================
function OpenNewWindow(strFileName,strWindowName,strProperties) 
{
	if (strWindowName == "NewWindow") 
	{
		//generate random window ID
		 strWindowName = new String(Math.round(Math.random() * 100000));
	}
	window.open(strFileName,strWindowName,strProperties)
}