$(document).ready(function() {
						   
	/* Start Digipass */
	
	$("#digipass-demo").click(function(){
		$("#digipass-demo-content").slideDown();
		$("#iac-demo-content").hide();
		return false;						  				  
	});
	
	$(".btnDigipass-login").click(function(){
		$("#login").hide();
		$("#content-wrapper").show();
	});
	
	$(".internalTransfer").click(function(){
		$(".picInternalTransfer").show();
		$(".picHistoryQuery").hide();
		$(".picBalance").hide();
		$(".picExchange").hide();
		$(".navigation").hide();
		$(".picNewQuery").hide();
		$(".cancelEx").hide();		
	});
	
	$(".externalTransfer").click(function(){
		$(".picExternalTransfer").show();
		$(".picHistoryQuery").hide();
		$(".picBalance").hide();
		$(".picExchange").hide();
		$(".navigation").hide();
		$(".picNewQuery").hide();
		$(".cancelEx").show();		
	});
	
	$(".historyQuery").click(function(){
		$(".picHistoryQuery").show();
		$(".picExchange").hide();
		$(".picExternalTransfer").hide();
		$(".picInternalTransfer").hide();
		$(".picBalance").hide();
		$(".picNewQuery").hide();
		$(".navigation").show();		
	});
	
	$(".btnNewQuery").click(function(){
		$(".picNewQuery").show();
		$(".picExchange").hide();
		$(".picExternalTransfer").hide();
		$(".picInternalTransfer").hide();
		$(".picBalance").hide();
		$(".picHistoryQuery").hide();
		$(".navigation").show();		
	});
	
	$(".exchange").click(function(){
		$(".picExchange").show();
		$(".picExternalTransfer").hide();
		$(".picInternalTransfer").hide();
		$(".picHistoryQuery").hide();
		$(".picBalance").hide();
		$(".picNewQuery").hide();
		$(".navigation").hide();		
	});
	
	$(".cancel").click(function(){
		$(".picInternalTransfer").hide();
		$(".picBalance").show();
		$(".navigation").show();		
	});
	
	$(".cancelEx").click(function(){
		$(".picExternalTransfer").hide();
		$(".picBalance").show();
		$(".navigation").show();		
	});
	
	$(".cancelNewQuery").click(function(){
		$(".picNewQuery").hide();
		$(".picHistoryQuery").show();
		$(".navigation").show();		
	});
	
	$(".cancelExchange").click(function(){
		$(".picExchange").hide();
		$(".picBalance").show();
		$(".navigation").show();		
	});
	
	$(".exit").click(function(){
		$("#content-wrapper").hide();
		$("#login").show();
	});
	
	$(".balance").click(function(){
		$(".picBalance").show();
		$(".navigation").show();
		$(".picHistoryQuery").hide();
		$(".picExternalTransfer").hide();
		$(".picInternalTransfer").hide();
		$(".picNewQuery").hide();
		$(".picExchange").hide();
	});
	
	$(".balance").mouseover(function(){
		$("#btnBalanceTooltip").fadeIn('fast');
	});
	
	$(".balance").mouseout(function(){
		$("#btnBalanceTooltip").fadeOut('fast');
	});
	
	$(".internalTransfer").mouseover(function(){
		$("#btnInternalTransferTooltip").fadeIn('fast');
	});
	
	$(".internalTransfer").mouseout(function(){
		$("#btnInternalTransferTooltip").fadeOut('fast');
	});
	
	$(".externalTransfer").mouseover(function(){
		$("#btnExternalTransferTooltip").fadeIn('fast');
	});
	
	$(".externalTransfer").mouseout(function(){
		$("#btnExternalTransferTooltip").fadeOut('fast');
	});
	
	$(".historyQuery").mouseover(function(){
		$("#btnHistoryQueryTooltip").fadeIn('fast');
	});
	
	$(".historyQuery").mouseout(function(){
		$("#btnHistoryQueryTooltip").fadeOut('fast');
	});
	
	$(".exchange").mouseover(function(){
		$("#btnExchangeTooltip").fadeIn('fast');
	});
	
	$(".exchange").mouseout(function(){
		$("#btnExchangeTooltip").fadeOut('fast');
	});
	
	$(".exit").mouseover(function(){
		$("#btnExitTooltip").fadeIn('fast');
	});
	
	$(".exit").mouseout(function(){
		$("#btnExitTooltip").fadeOut('fast');
	});
	
	$(".btnNewQuery").mouseover(function(){
		$("#btnNewQueryTooltip").fadeIn('fast');
	});
	
	$(".btnNewQuery").mouseout(function(){
		$("#btnNewQueryTooltip").fadeOut('fast');
	});
	
	$("#btn-iac-login").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
	});
	
	$("#btn-iac-login-balance").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
	});
	
	$("#btn-iac-login-internal-transfer").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
	});
	
	$("#btn-iac-login-external-transfer").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
	});
	
	$("#btn-iac-login-history-query").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
	});
	
	$("#btn-iac-login-exchange").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
	});
	
	$("#btn-iac-login-new-query").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
	});
	/* End Digipass */
	
	/* Start Internet Access Code */
	
	$("#btn-digipass-login").click(function(){
		$("#digipass-demo-content").slideDown();
		$("#iac-demo-content").hide();
	});
	
	$("#iac-demo").click(function(){
		$("#iac-demo-content").slideDown();
		$("#digipass-demo-content").hide();
		return false;						  				  
	});
	
	$(".btnIac-login").click(function(){
		$("#Iaclogin").hide();
		$("#iac-content-wrapper").show();
	});
	
	$(".iacBalance").mouseover(function(){
		$("#btnIacBalanceTooltip").fadeIn('fast');
	});
	
	$(".iacBalance").mouseout(function(){
		$("#btnIacBalanceTooltip").fadeOut('fast');
	});
	
	$(".iacInternalTransfer").mouseover(function(){
		$("#btnIacInternalTransferTooltip").fadeIn('fast');
	});
	
	$(".iacInternalTransfer").mouseout(function(){
		$("#btnIacInternalTransferTooltip").fadeOut('fast');
	});
	
	$(".iacHistoryQuery").mouseover(function(){
		$("#btnIacHistoryQueryTooltip").fadeIn('fast');
	});
	
	$(".iacHistoryQuery").mouseout(function(){
		$("#btnIacHistoryQueryTooltip").fadeOut('fast');
	});
	
	$(".iacExit").mouseover(function(){
		$("#btnIacExitTooltip").fadeIn('fast');
	});
	
	$(".iacExit").mouseout(function(){
		$("#btnIacExitTooltip").fadeOut('fast');
	});
	
	$(".iacBalance").click(function(){
		$(".picIacBalance").show();
		$(".iacNavigation").show();
		$(".picIacHistoryQuery").hide();		
	});
	
	$(".iacHistoryQuery").click(function(){
		$(".picIacHistoryQuery").show();
		$(".iacNavigation").show();
		$(".picIacBalance").hide();		
	});
	
	$(".btnIacNewQuery").mouseover(function(){
		$("#btnNewQueryTooltip").fadeIn('fast');
	});
	
	$(".btnIacNewQuery").mouseout(function(){
		$("#btnNewQueryTooltip").fadeOut('fast');
	});
	
	$(".btnIacNewQuery").click(function(){
		$(".picIacNewQuery").show();
		$(".iacNavigation").show();
		$(".picIacBalance").hide();		
		$(".picIacHistoryQuery").hide();
	});
	
	$(".cancelNewIacQuery").click(function(){
		$(".picIacNewQuery").hide();
		$(".iacNavigation").show();
		$(".picIacBalance").hide();		
		$(".picIacHistoryQuery").show();
	});
	
	$(".iacExit").click(function(){
		$("#iac-content-wrapper").hide();
		$("#Iaclogin").show();
	});
	
	$("#btn-digipass-login").click(function(){
		$("#digipass-demo-content").slideDown();
		$("#iac-demo-content").hide();
	});
	
	$("#btn-digipass-login-balance").click(function(){
		$("#digipass-demo-content").slideDown();
		$("#iac-demo-content").hide();
	});
	
	$("#btn-digipass-login-history-query").click(function(){
		$("#digipass-demo-content").slideDown();
		$("#iac-demo-content").hide();
	});
	
	$("#btn-digipass-login-new-query").click(function(){
		$("#digipass-demo-content").slideDown();
		$("#iac-demo-content").hide();
	});
	/* End Internet Access Code */
});

