	/* Menus Our Business */
var slideShowSpeed = 5000
var crossFadeDuration = 3
var Pic = new Array() // don't touch this
Pic[0] = 'images/main1.jpg'
Pic[1] = 'images/consumer1.jpg'
Pic[2] = 'images/loanInstall.gif'
Pic[3] = 'images/consumer3.jpg'
Pic[4] = 'images/consumer4.jpg'
Pic[5] = 'images/consumer5.jpg'
var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
function pUpdChanged(){
		selection 		= document.frm.updProduct.options[document.frm.updProduct.selectedIndex].value; 
		if(selection 	== -1) return;	
		location.href="ZeroPercent.php?pUpdId="+selection;		
	}	
	
	function mUpdChanged(){
		selection 	= document.frm.updProduct.options[document.frm.updProduct.selectedIndex].value; 
		selection1 	= document.frm.updProvider.options[document.frm.updProvider.selectedIndex].value; 
		if(selection 	== -1) return;		
		if(selection1 	== -1) return;		
		location.href="ZeroPercent.php?pUpdId="+selection+"&mid="+selection1;				
	}
	
	function validate(){
		if(document.frm.radiobutton[0].checked == true){
			calculate();
		}else if(document.frm.radiobutton[1].checked == true || document.frm.radiobutton[2].checked == true || document.frm.radiobutton[3].checked == true){
			calculateOther();
		}
		else return;
	}
	
	function calculate(){
		selection 	= document.frm.updProduct.options[document.frm.updProduct.selectedIndex].value; 
		selection1 	= document.frm.updProvider.options[document.frm.updProvider.selectedIndex].value; 
		selection3 	= document.frm.updOption.options[document.frm.updOption.selectedIndex].value; 	
		if(selection 	== -1) return;		
		if(selection1 	== -1) return;		
		if(selection3 	== -1) return;				
		location.href="calcStep2.php?pUpdId="+selection+"&mid="+selection1+"&op_id="+selection3;				
	}
	function search_post(){
		var q=document.search_form.query.value;
		document.search_form.submit() ;
	}	
function regardingSubject(){
		var i=document.getElementById("regSubject").selectedIndex;
		if(i==1){
			document.getElementById("sub").style.display="block";
			var a=new Array("Current","Savings","Term Deposit");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else if(i==2){
			document.getElementById("sub").style.display="block";
			var a=new Array("Balance Transfer Facility","Personal Installment Loan","Home Finance","Loan Against Shares");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else if(i==3){
			document.getElementById("sub").style.display="block";
			var a=new Array("Future Perfect Credit Card","ABN AMRO Ufone Credit Card");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else if(i==4){
			document.getElementById("sub").style.display="block";
			var a=new Array("Treasure Plus","Golden Years","All Rounder","Global Accident Protection Plan","ATM Withdrawal Insurance");
			for(arr=0;arr<a.length;arr++){
				document.getElementById("subCatagory").options[arr]=new Option(a[arr],a[arr]);
			}
		}else{
			document.getElementById("sub").style.display="none";
		}
		
	}
	function validate(){
		var n=document.getElementById("cname");
		var e=document.getElementById("email");
		var cat=document.getElementById("category");
		var m=document.getElementById("msg");
		
		if(n.value==""){
			alert("Please Enter Name");
			n.focus();
			return false;
		}else if(e.value.indexOf('@')==-1 || e.value=="" || e.value.indexOf('.')==-1){
			alert("Please Enter Valid Email Address");
			e.focus();
			return false;
		}else if(cat.value==""){
			alert("Please Select Category");
			cat.focus();
			return false;
		}else if(m.value==""){
			alert("Please Select Regarding Subject");
			m.focus();
			return false;
		}
			return true;
		
	}
	
	
	
	<!--
function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
//-->