var submenu=new Array()

/* ***** User defined fade objects and messages ******************** */
 
submenu[100] = "";

submenu[0] = ''
		+	'<b>'
		+	' <div align="left" id="sign_up"> <a href="http://www.alamopoker.com/poker_guide/sign_up.php" class="style6">Sign Up</a> '
		+	'| <a href="http://www.alamopoker.com/poker_guide/game_selection.php" class="style6">Game Selection</a> '
		+	'| <a href="http://www.alamopoker.com/poker_guide/hand_ranking.php" class="style6">Hand Ranking</a> '
		+	'| <a href="http://www.alamopoker.com/chat/index.php3" target="_blank" class="style6">Chat</a> '
		+	'| <a href="http://www.alamopokerforum.com/" class="style6" target="_blank">Forum</a></div>'
		+	'</b>'
		+	''
		
		
		
submenu[1] = ''
		+	'<b>'
		+	'  <div align="left" id="banking"> <a href="http://www.alamopoker.com/banking/deposit_methods.php" class="style6">Deposit Methods</a> '
		+	'| <a href="http://www.alamopoker.com/banking/cashier.php" class="style6">Cashier</a> '
		+	'| <a href="http://www.alamopoker.com/banking/transfer_funds.php" class="style6">Transfer Funds</a> '
		+	'| <a href="http://www.alamopoker.com/banking/my_account.php" class="style6">My Account</a> '
		+	'| <a href="http://www.alamopoker.com/banking/help.php" class="style6">Help</a> </div>'
		+	'</b>'
		+	''
		
		
submenu[2] = ''
		+	'<b>'
		+	'  <div align="left" id="tournaments"><a href="http://www.alamopoker.com/tournaments/tournaments.php" class="style6">Featured Tournaments</a> '
		+	'| <a href="http://www.alamopoker.com/tournaments/calendar.php" class="style6">Weekly Calendar</a> '
		+	'| <a href="http://www.alamopoker.com/tournaments/rules.php" class="style6">Rules</a> '
		+	'| <a href="http://www.alamopoker.com/tournaments/freerolls.php" class="style6">Freerolls</a> '
		+	'| <a href="http://www.alamopoker.com/tournaments/info.php" class="style6">Tourneys Info</a></div>'
		+	'</b>'
		+	''
		

submenu[3] = ''
		+	'<b>'
		+	' <div align="left" id="promotions"> <a href="http://www.alamopoker.com/promotions/promotions.php" class="style6">Current Promotions</a> '
		+	'| <a href="http://www.alamopoker.com/promotions/bonusRules.php" class="style6">Bonus Rules</a> '
		+	'| <a href="http://www.alamopoker.com/promotions/Refer_a_Friend.php" class="style6">Refer a Friend</a> '
		+	'| <a href="http://www.alamopoker.com/promotions/clubCash.php" class="style6">Club Cash</a></div> '
		+	'</b>'
		+	''
		
		
submenu[4] = ''
		+	'<b>'
		+	'<div align="right"><a href="http://www.alamopoker.com/help/faq.php" class="style6">F.A.Q.</a> '
		+	'| <a href="http://www.alamopoker.com/help/contacUs.php" class="style6">Contact Us</a> </div>'
		+	'</b>'
		+	''
		



var delay_hide=200

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}




function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function shiftOpacity(id, millisec) {
	//if an element is invisible, make it visible, else make it ivisible
	if(document.getElementById(id).style.opacity == 0) {
		opacity(id, 0, 100, millisec);
	} else {
		opacity(id, 100, 0, millisec);
	}
}

function blendimage(divid, imageid, imagefile, millisec) {
	var speed = Math.round(millisec / 100);
	var timer = 0;
	
	//set the current image as background
	document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";
	
	//make image transparent
	changeOpac(0, imageid);
	
	//make new image
	document.getElementById(imageid).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed));
		timer++;
	}
}

function currentOpac(id, opacEnd, millisec) {
	//standard opacity is 100
	var currentOpac = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id).style.opacity < 100) {
		currentOpac = document.getElementById(id).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity(id, currentOpac, opacEnd, millisec)
}



//Display Tooltip JS------------------------------------------------------

function showBranch(branch,posTitle,posBody){

var titleText = new Array(9);
var bodyText = new Array(9);

titleText[0] = "How do I open an account?";
titleText[1] = "How long does it take for my money<BR>to clear once I've authorized the deposit?";
titleText[2] = "How do I make a real money withdrawal?";
titleText[3] = "Can I deposit/withdraw in multiple currencies?";
titleText[4] = "What is Free Money?";
titleText[5] = "How do I make a real money deposit?";
titleText[6] = "What is the difference between<BR>my poker account and my cashier's account?";
titleText[7] = "How long does it take for me to receive my withdrawal?";
titleText[8] = "What is my PIN and why is it necessary?";
titleText[9] = "Who do I speak to if I need further assistance?";


bodyText[0] =  '<table cellspacing="0" cellpadding="5">'
			 + '<tr>'
			 + '<td colspan="2" align="left"><p><strong>1.</strong><strong>Create A New Account</strong></p>'
			 + '<ul>'
			 + '<li><a href="../poker_guide/sign_up.php"><strong class="sublink">Sign up</strong></a> for a free poker account. It`s simple, safe and confidential</li>'
			 + '</ul>'
			 + '<p><strong>2.</strong><strong>Deposit Funds</strong></p>'
			 + '<ul>'
			 + '<li>Make a deposit into your gaming account using our 100% safe and secure <strong>Cashier</strong>.</li>'
			 + '<li>Deposit using your credit card, Neteller or many other easy to use deposit options. <a href="deposit_methods.php" ><strong class="sublink">View deposit methods</strong></a></li>'
			 + '<li>Get a 30% signup deposit bonus using Neteller or get a 50% signup deposit bonus on up to $250 on every other deposit method.</li>'
			 + '</ul>'
			 + '<p><strong>3.</strong><strong>Buy Poker Chips</strong></p>'
			 + '<ul>'
			 + '<li>After you have made your deposit, purchase poker chips from the Cashier or in the <strong class="sublink"><a href="../poker_guide/sign_up.php" >My Account</a></strong> area </li>'
			 + '</ul>'
			 + '<p><strong>4.</strong><strong>Play Instantly</strong> </p>'
			 + '<ul>'
			 + '<li>No downloading or complicated software to use. Simply click on the big PLAY button above to start playing! </li>'
			 + '</ul></td>'
			 + '</tr>'
			 + '</table>';

bodyText[1] = 	'<table width="100%" cellpadding="0" cellspacing="0">'
				+ '<tr>'
				+ '<td width="62%" align="left">Neteller/Neteller Instacash'
				+ '<br />'
				+ 'Nexum'
				+ '<br />'
				+ 'E-Wallet Express'
				+ '<br />'
				+ 'Western'
				+ '<br />'
				+ 'ACH'
				+ '<br />'
				+ '900 Pay'
				+ '<br />'
				+ 'Credit Card'
				+ '<br />'
				+ 'Bank Wire</td>'
				+ '<td width="38%" align="left">*INSTANT'
				+ '<br />'
				+ '*INSTANT'
				+ '<br />'
				+ '*INSTANT'
				+ '<br />'
				+ '*30 Min' 
				+ '<br />'
				+ '*4-5 Days '
				+ '<br />'
				+ '*INSTANT'
				+ '<br />'
				+ '*INSTANT'
				+ '<br />'
				+ '*1-2 Days</td>'
				+ '</tr>'
				+ '</table>';
				
bodyText[2] =   '<table border="0" cellpadding="0" cellspacing="0" width="99%">'
				+ '<tbody>'
				+ '<tr>'
				+ '<td colspan="2" align="left"><p><strong>1.</strong><strong>Click on Cashier</strong><br />'
				+ 'First, make sure your funds have been transferred from your poker or casino account, to your cashier account.</p>'
				+ '<p><strong>2.</strong><strong>Re-enter your username and password</strong><br />'
				+ 'For security purposes you`ll be prompted to re-enter your username and password</p>'
				+ '<p><strong>3.</strong><strong>Click on the tab labeled "Withdraw" </strong><strong>Choose your withdrawal method<br />'
				+ '</strong>Choose the withdrawal method that best suits you</p>'
				+ '<p><strong>4.</strong><strong>Follow step by step instructions</strong><br />'
				+ 'Follow the step by step withdrawal instructions<br />'
				+ '<strong>Please note:</strong> You may be required to verify your identity before your withdrawal can be processed.</p></td>'
				+ '</tr>'
				+ '<tr>'
				+ '<td align="left"></td>'
				+ '<td align="left"></td>'
				+ '</tr>'
				+ '</tbody>'
				+ '</table>';
				
				
				
bodyText[3] = 	'<table border="0" cellpadding="0" cellspacing="0" width="100%">'
				+'<tbody>'
				+'<tr>'
				+'<td align="left"><p>Funds  can be deposited/ withdrawn in whichever currency you choose however  your cashier account always remains whichever currency you chose during  registration. Should you make a deposit in a different currency the  funds will be converted once processed in your cashier account.  Withdrawals are paid out in USD only. </p></td>'
				+'</tr>'
				+'</tbody>'
				+'</table>';

bodyText[4] = '<table border="0" cellpadding="0" cellspacing="0" width="100%">'
				+'<tbody>'
				+'<tr>'
				+'<td align="left"><p>Free money is money given to you as a promotion by AlamoPoker.com. '
				+'The  amount of free money given depends on both the promotion and deposit  amount.'
				+'You can view the status of your free money bonus in the <a href="../poker_guide/sign_up.php" >'
				+'<strong class="sublink">"My Account"</strong></a> section of our website.'
				+'Free  money is automatically deposited into your cashier account.</p></td>'
				+'</tr>'
				+'</tbody>'
				+'</table>';
				
bodyText[5] = '<table border="0" cellpadding="0" cellspacing="0" width="100%">'
				+'<tbody>'
				+'<tr>'
				+'<td align="left"><p><strong>1.</strong><strong>Click on Cashier</strong><br />'
				+'This will take you to the cashier section of our website</p>'
				+'<p><strong>2.</strong><strong>Re-enter your username and password </strong><br />'
				+'For security purposes you`ll be prompted to re-enter your username and password</p>'
				+'<p><strong>3.</strong><strong>Choose your deposit method</strong></p>'
				+'<p><br />'
				+'Click the <strong>deposit</strong> tab to view deposit methods and choose which one suits you best or <strong class="sublink"><a href="deposit_methods.php" >click here to view deposit method information and instructions</a></strong> </p>'
				+'<p><strong>4.</strong><strong><BR />'
				+'Follow step by step instructions</strong><BR>'
				+'Follow the step by step deposit instructions<strong><br />'
				+'Please note:</strong> These vary based on deposit method chosen, <strong class="sublink"><a href="deposit_methods.php" >click here to view further information and instruction regarding individual deposit methods</a></strong></p></td>'
				+'</tr>'
				+'</tbody>'
				+'</table>';
				
bodyText[6] =   '<table border="0" cellpadding="0" cellspacing="0" width="100%">'
				+ '<tr>'
				+ '<td align="left"><p>Once  newly deposited funds have cleared they are processed into your  cashier`s account. Before playing poker for real money, you must  transfer funds from your cashier`s account to your poker account.<br />'
				+ 'The cashier is your general account that allows you to transfer funds between poker, the casino and sports.<br />'
				+ '<br />'
				+ '</p></td>'
				+ '</tr>'
				+ '<tr>'
				+ '<td align="left"><BR><p><strong>Please note:</strong> you must also transfer your funds back into your cashier account before making your withdrawal</p></td>'
				+ '</tr>'
				+ '<tbody>'
				+ '<tr>'
				+ '<td></td>'
				+ '</tr>'
				+ '</tbody>'
				+ '</table>';
				
bodyText[7] =   '<table border="0" cellpadding="0" cellspacing="0" width="100%">'
				+ '<tbody>'
				+ '<tr>'
				+ '<td align="left" width="44%">Neteller</td>'
				+ '<td align="left" width="50%">24 - 48 Hours</td>'
				+ '</tr>'
				+ '<tr>'
				+ '<td align="left">Nexum</td>'
				+ '<td align="left">24 - 48 Hours</td>'
				+ '</tr>'
				+ '<tr>'
				+ '<td align="left">Check<br />'
				+ 'FirePay</td>'
				+ '<td align="left">7 - 14 Days <br />'
				+ '24 - 48 Hours</td>'
				+ '</tr>'
				+ '</tbody>'
				+ '</table>';

bodyText[8] =   '<table border="0" cellpadding="0" cellspacing="0" width="100%">'
				+ '<tbody>'
				+ '<tr>'
				+ '<td align="left"><p>Your  PIN is a unique number specific to your account. '
				+ 'As an added security  measure you will be required to provide your PIN '
				+ 'when requesting a  withdrawal. </p></td>'
				+ '</tr>'
				+ '</tbody>'
				+ '</table>';
				
bodyText[9] =   '<table border="0" cellpadding="0" cellspacing="0" width="100%">'
				+ '<tbody>'
				+ '<tr>'
				+ '<td><p>Should you require any further assistance please '
				+ 'refer to the<a href="http://www.alamopoker.com/help/contacUs.php">'
				+ '<strong class="sublink">"Help"</strong> </a> section of our site which lists '
				+ 'contact information and allows you to access 24hr live chat support.</p></td>'
				+ '</tr>'
				+ '</tbody>'
				+ '</table>';



	var objBranch = document.getElementById(branch).style;

	var elementT = document.getElementById('titleCont'); 
	elementT.innerHTML = titleText[posTitle];

	var elementB = document.getElementById('contextDiv'); 
	elementB.innerHTML = bodyText[posBody];
 
	objBranch.display="block";
	
}

function closeBranch(branch){
		var objBranch = document.getElementById(branch).style;
		objBranch.display="none";
}

function displayInitBranch(branch){
		var objBranch = document.getElementById(branch).style;
		objBranch.display="block";
}
//Display Tooltip JS------------------------------------------------------
 



//Menu Validation
function validateLoginForm(formObject)
{
  if (formObject.UserName.value.length == 0)
  {
    alert("Please enter your username.");
    formObject.UserName.focus();
    return false; 
  }
  if (formObject.PassWord.value.length == 0)
  {
    alert("Please enter your password.");
    formObject.PassWord.focus();
    return false; 
  } 
  return true;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 