//Global Internet Explorer JavaScript File

var CurrentPopup

CurrentPopup=""

function isIE()
{
	var IEBrowser;
	var IE;
	IE=document.all;
	IEBrowser=false;
	
	if(IE)
		IEBrowser=true
		
	return IEBrowser;
}

function showfocus(src)
{
//	event.cancelBubble=true
	
	src.className="hasfocus"
}	


function losefocus(src)
{
//	event.cancelBubble=true
	
	src.className="nofocus"
}	


function DrawBanner(strCountry, strHost, strSecure)
{
var strHTML;
strHTML = "";
strHTML= "<TABLE  id='banner' cellpadding=0 cellspacing=0 width=100% height=81 border=0>";
strHTML = strHTML +	"<tr valign=top>";
strHTML = strHTML +	"<td align=center>";
strHTML = strHTML + "<img src='" + strHost + "/images/kwikpaylogo.gif'>";
strHTML = strHTML + "</td>";
strHTML = strHTML + "</tr>"	;
strHTML = strHTML + "</TABLE>";
document.write (strHTML);
}

function DrawCountryMenu( strCountry, strUser, strHost, strSecure)
{
var strHTML
strHTML = ""
strHTML = strHTML +"<table border=1  width=100 bordercolor=lightsteelblue  cellpadding=3 cellspacing=5>"
strHTML = strHTML +"<tr width=100%>"

if (strUser != '' ) {
	strHTML = strHTML +"<a href='" + strHost + "/logout.php'>"
	strHTML = strHTML +"<td id=menuitem width=100% class=nofocus "
						+ "ONMOUSEOVER='showfocus(this);' ONMOUSEOUT='losefocus(this);'>"
	strHTML = strHTML +"<a id=menutext href=" + strHost 
						+ "/logout.php>Logout " + strUser + "</a>"
	strHTML = strHTML +"</td>";
	strHTML = strHTML +"</a>"
	strHTML = strHTML +"</tr>"
	
	strHTML = strHTML +	"<tr width=100%>"
	strHTML = strHTML +"<a href='" + strHost + "/registerform.php?Action=update'>"
	strHTML = strHTML +"<td id=menuitem width=100% class=nofocus "
						+ "ONMOUSEOVER='showfocus(this);' ONMOUSEOUT='losefocus(this);'>"
	strHTML = strHTML +"<a id=menutext href=" + strHost 
						+ "/registerform.php?Action=update>Update Member Details</a>";
	
	strHTML = strHTML +	"<tr width=100%>"
	strHTML = strHTML +"<a href='" + strHost + "/accountstatus.php'>"
	strHTML = strHTML +"<td id=menuitem width=100% class=nofocus "
						+ "ONMOUSEOVER='showfocus(this);' ONMOUSEOUT='losefocus(this);'>"
	strHTML = strHTML +"<a id=menutext href=" + strHost 
						+ "/accountstatus.php?Action=update>Show Account Status</a>";
}
else {
	strHTML = strHTML +"<a href='" + strHost + "/loginform.php'>"
	strHTML = strHTML +"<td id=menuitem width=100% class=nofocus "
						+ "ONMOUSEOVER='showfocus(this);' ONMOUSEOUT='losefocus(this);'>"
	strHTML = strHTML +"<a id=menutext href=" + strHost 
						+ "/loginform.php>Member Login</a>";
}
	strHTML = strHTML +"</td>";
	strHTML = strHTML +"</a>"
	strHTML = strHTML +"</tr>"
	
	strHTML = strHTML +"</table>"
		
	strHTML = strHTML +"<br>"
document.write(strHTML);
}				

function DrawCorporateMenu(strHost, strSecure)
{					
		
			
	var strHTML
	strHTML = ""
	strHTML = strHTML +"<table width=100% border=1 bordercolor=lightsteelblue cellpadding=3 cellspacing=5> "
		
	strHTML = strHTML +"<tr width=100%>"
	strHTML = strHTML +"<td  width=100% id=menuitem class=nofocus ONMOUSEOVER='showfocus(this);' ONMOUSEOUT='losefocus(this);'>"
	strHTML = strHTML +"<a id=menutext href='http://www.kwikpay.net'> Kwik-Pay International</a>"
	strHTML = strHTML +"</td>"
	strHTML = strHTML + "</a>"
	strHTML = strHTML +"</tr>"
	strHTML = strHTML +"</table>"
	strHTML = strHTML +"<br>"

	strHTML = strHTML +"<table width=100% border=1 bordercolor=lightsteelblue cellpadding=3 cellspacing=5> "
	strHTML = strHTML +"<tr width=100%>"
	strHTML = strHTML + "<a href=" + strHost + "/aboutus.php>"
	strHTML = strHTML +"<td  width=100% id=menuitem class=nofocus ONMOUSEOVER='showfocus(this);' ONMOUSEOUT='losefocus(this);'>"
	strHTML = strHTML +"<a id=menutext href='" + strHost + "/aboutus.php'> About Us</a>"
	strHTML = strHTML +"</td>"
	strHTML = strHTML + "</a>"
	strHTML = strHTML +"</tr>"
		
	strHTML = strHTML +"</table>"
	//strHTML = strHTML +"</td>"
	//strHTML = strHTML +"</tr>"
	//strHTML = strHTML +"</table>"
	document.write(strHTML);

}

//These functions control the behavior of the homepage go arrows.
function liteGo(spNo){
	spNo.style.background="#cc0033";
	spNo.style.color="#FFFFFF";
}

function liteOff(spNo){
	spNo.style.background="transparent";
	spNo.style.color="#000000";
}

