// JScript source code
var m_sleep_index;
var m_sleep_length=5000;
var m_sleep_max=200;
var m_blnIncludeItem=false;
//alert('g_arrFooter.length='+g_arrFooter.length);
//alert('g_arrFooterData.length='+g_arrFooterData.length);

function g_doCreateFooter(){
	//alert('g_arrFooter.length='+g_arrFooter.length);
	//alert('g_arrFooterData.length='+g_arrFooterData.length);
	//g_blnFooterWaiting=true;
	if ((g_arrFooter.length<=0) || (g_arrFooterData.length<=0)) {
		for (m_sleep_index=0;m_sleep_index<m_sleep_max;m_sleep_index++) {
			if (g_doSleep(m_sleep_length)==true) {
			//	alert('sleep count: '+m_sleep_index+'; g_arrFooter.length='+g_arrFooter.length+'; g_arrFooterData.length='+g_arrFooterData.length);
			}
			if ((g_arrFooter.length>0) && (g_arrFooterData.length>0)) {
				m_sleep_index=m_sleep_max;
			}
		}
	}
	if ((g_arrFooter.length>0) && (g_arrFooterData.length>0)) {
		//with(g_strFooterHTML){
			g_index_FTR_Copyright=g_doGetIndexInSingleArray(g_strFTR_COPYRIGHT, g_arrFooter, g_index_FTR_Copyright);
			if (isNaN(g_index_FTR_Copyright)==false) {
				//window.alert('g_arrFooter.length: '+g_arrFooter.length+ ', g_index_FTR_Copyright: '+g_index_FTR_Copyright);


			g_strFooterHTML=g_strFooterHTML+'	<!-- area for COPYRIGHT //-->';
			g_strFooterHTML=g_strFooterHTML+'	<table cellpadding="0" cellspacing="0" bgcolor="#ffffff" width="753" height="20" border="0">';
			g_strFooterHTML=g_strFooterHTML+'		<tr>';
			g_strFooterHTML=g_strFooterHTML+'			<td valign="middle">';
			g_strFooterHTML=g_strFooterHTML+'				<div class="Copyright"">';
			g_strFooterHTML=g_strFooterHTML+'					</div></td>';
			g_strFooterHTML=g_strFooterHTML+'		</tr>';
			g_strFooterHTML=g_strFooterHTML+'	</table>';

			}

			g_strFooterHTML=g_strFooterHTML+'	<table cellpadding="0" cellspacing="0" bgcolor="#5976B2" width="753" height="20" border="0">';
			g_strFooterHTML=g_strFooterHTML+'		<tr>';
			g_strFooterHTML=g_strFooterHTML+'			<td valign="middle" width="498">';
			g_strFooterHTML=g_strFooterHTML+'				<div class="footer">';
			g_index_FTR_About=g_doGetIndexInSingleArray(g_strFTR_ABOUT, g_arrFooter);
			if (isNaN(g_index_FTR_About)==false) {
				g_strFooterHTML=g_strFooterHTML+'> <a href="'+g_arrFooterData[g_index_FTR_About][0]+'">'+g_arrFooterData[g_index_FTR_About][1]+'</a> &nbsp; &nbsp; &nbsp;';
			}
			g_index_FTR_Privacy=g_doGetIndexInSingleArray(g_strFTR_PRIVACY, g_arrFooter);
			if (isNaN(g_index_FTR_Privacy)==false) {
				g_strFooterHTML=g_strFooterHTML+'> <a href="'+g_arrFooterData[g_index_FTR_Privacy][0]+'">'+g_arrFooterData[g_index_FTR_Privacy][1]+'</a> &nbsp; &nbsp; &nbsp;';
			}
			g_index_FTR_Terms=g_doGetIndexInSingleArray(g_strFTR_TERMS, g_arrFooter);
			//alert('g_index_FTR_Terms: '+g_index_FTR_Terms);
			//alert (g_strFooterHTML.length);
			if (isNaN(g_index_FTR_Terms)==false) {
				g_strFooterHTML=g_strFooterHTML+'> <a href="'+g_arrFooterData[g_index_FTR_Terms][0]+'">'+g_arrFooterData[g_index_FTR_Terms][1]+'</a> &nbsp; &nbsp; &nbsp;';
			}
			g_index_FTR_ContactUs=g_doGetIndexInSingleArray(g_strFTR_CONTACTUS, g_arrFooter);
			if (isNaN(g_index_FTR_ContactUs)==false) {
				if (g_blnIsHTTP==true) {
					g_strFooterHTML=g_strFooterHTML+'> <a href="'+g_arrFooterData[g_index_FTR_ContactUs][0]+'">'+g_arrFooterData[g_index_FTR_ContactUs][1]+'</a> &nbsp; &nbsp; &nbsp;';
				}
				else {
					g_index_Feature_HelpDesk=g_doGetIndexInSingleArray(g_strFEATURE_HELPDESK, g_arrFeatures);
					if (isNaN(g_index_Feature_HelpDesk)==false) {
						g_strFooterHTML=g_strFooterHTML+'> <a href="'+g_arrFeatureData[g_index_Feature_HelpDesk][0]+'">'+g_arrFooterData[g_index_FTR_ContactUs][1]+'</a> &nbsp; &nbsp; &nbsp;';
					}
				}
			}
			g_strFooterHTML=g_strFooterHTML+'		</div></td>';
			g_strFooterHTML=g_strFooterHTML+'		<td valign="bottom" width="17" height="20">';
			g_strFooterHTML=g_strFooterHTML+'			<img SRC="images2/FooterBar_corner.gif" WIDTH="17" HEIGHT="20" alt></TD>';
			//g_strFooterHTML=g_strFooterHTML+'		<td valign="top" bgcolor="#ffffff" width="238" HEIGHT="20"></td>';
		
			g_index_Feature_SlideShow=g_doGetIndexInSingleArray(g_strFEATURE_SLIDESHOW, g_arrFeatures);
			if ((g_strPageName==g_strPG_MAIN)&&(isNaN(g_index_Feature_SlideShow)==false)) {
				//g_strFooterHTML=g_strFooterHTML+'	<TD BACKGROUND="'+g_arrFeatureData[g_index_Feature_SlideShow][g_index_FEATUREDATA_IMG]+'" WIDTH="238" HEIGHT="20">';
				g_strFooterHTML=g_strFooterHTML+'	<TD WIDTH="29" height="20" bgcolor="white" valign="bottom">';
				g_strFooterHTML=g_strFooterHTML+'		<!--<img src="images2/SlideShow2.gif" width="29" height="20">//--></td>';
				g_strFooterHTML=g_strFooterHTML+'	<TD WIDTH="209" height="20" bgcolor="white" valign="bottom">';
				g_strFooterHTML=g_strFooterHTML+'		<span class="slideshow">';
				g_strFooterHTML=g_strFooterHTML+'		<!--<a href="javascript:var winSlideShow=window.open(\''+g_arrFeatureData[g_index_Feature_SlideShow][g_index_FEATUREDATA_URL]+'\',\'SlideShow\',\'width=675,height=450\');">'+g_arrFeatureData[g_index_Feature_SlideShow][g_index_FEATUREDATA_NAME]+'</a></span>//--></td>';
				g_strFooterHTML=g_strFooterHTML+'</tr>';
				g_strFooterHTML=g_strFooterHTML+'</table>';
			}
			else {

				g_strFooterHTML=g_strFooterHTML+'	<td valign="top" bgcolor="#ffffff" width="238" HEIGHT="20"></td>';
				g_strFooterHTML=g_strFooterHTML+'</tr>';
				g_strFooterHTML=g_strFooterHTML+'</table>';
			}
		//}
	}
}

//g_doCreateFooter();
//document.writeln('<span name="spnFooter" id="spnFooter">footer goes here</span>');

function g_doDisplayCustomText() {
	g_doCreateFooter();
	//alert (g_strFooterHTML.length);
	if (document.all) {
		if(document.all["spnFooter"]) {
			document.all["spnFooter"].innerHTML=g_strFooterHTML;
		}
	}
	else {
		if (document.layers) {
			//nothing yet
			with(document.layers["spnFooter"]){
				open();
				write(g_strFooterHTML); 
				close(); 
			}
		}
	}
}
//alert('footer script was executed');
g_doCreateFooter();
window.document.write('<center>');
window.document.write(g_strFooterHTML);
window.document.write('</center>');

window.document.write('<img src="http://www.jangomail.com/et/a.z?UID=34354">');