// overview
function showTip(objNum,event){
	var obj = "tip_cont"+objNum;

	if(event.type=="mouseover"){
		document.getElementById(obj).style.display='block';
	}
	if(event.type=="mouseout"){
		document.getElementById(obj).style.display='none';
	}
}
// apply now/login
function hide(page) {
		var atLAS = document.createElement('script'); atLAS.type = 'text/javascript'; atLAS.async = true;
		document.getElementById('step1').style.display='none';
		if(page == "Westpac") {
			steps('westpac');
			atLAS.src="https://view.atdmt.com/jaction/ausbts_Step1BTSFLWestpacApplyButton_2";
		}
		else if(page == "St.George") {
			steps('st');
			atLAS.src="https://view.atdmt.com/jaction/ausbts_Step1BTSFLStGeorgeApplyButton_2";
		}
		else if(page == "BankSA") {
			steps('sa');
			atLAS.src="https://view.atdmt.com/jaction/ausbts_Step1BTSFLBankSAApplyButton_2";
			atLAS.src="https://view.atdmt.com/jaction/ausbts_Step1BTSFLBOMApplyButton_2";
		}
		else if (page == "bankofmelbourne") {
			steps('bom');
		}
		if (atLAS.src) {
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(atLAS, s);
		}
}
// FAQ
function show_sub_step(obj)
{
	var sub_strip=new Array("ans1","ans2","ans3","ans5"); // ,"ans4"
	for(i=0;i<sub_strip.length;i++){
		var strip_id=document.getElementById(sub_strip[i]);
		if(obj==sub_strip[i]){
			if(strip_id.style.display!=''){
				strip_id.style.display='';
			}
			else
				strip_id.style.display='none';
		}
		else{
			strip_id.style.display='none';
		}
	}
}
function show_sub_stepb(obj)
{
	var sub_strip=new Array("b_ans1","b_ans2","b_ans3","b_ans4","b_ans5","b_ans6","b_ans7","b_ans8","b_ans9","b_ans10","b_ans11");
	for(i=0;i<sub_strip.length;i++){
		var strip_id=document.getElementById(sub_strip[i]);
		if(obj==sub_strip[i]){
			if(strip_id.style.display!='')
				strip_id.style.display='';
			else
				strip_id.style.display='none';
		}
		else{
			strip_id.style.display='none';
		}
	}
}
function show_sub_stepc(obj)
{
	var sub_strip=new Array("c_ans1","c_ans2","c_ans3","c_ans4","c_ans5");
	for(i=0;i<sub_strip.length;i++){
		var strip_id=document.getElementById(sub_strip[i]);
		if(obj==sub_strip[i]){
			if(strip_id.style.display!='')
				strip_id.style.display='';
			else
				strip_id.style.display='none';
		}
		else{
			strip_id.style.display='none';
		}
	}
}
