if(document.images)
 {
	  p1 =  new Image();
	  p2 =  new Image();
	  p3 =  new Image();
	  p4 =  new Image();
	  p5 =  new Image();
	  p6 =  new Image();
	  p7 =	new Image();
	  p8 =  new Image();
	  p9 =  new Image();
	  p10 =  new Image();
	  p11 =  new Image();
	  p12 =  new Image();
	  


       
		  p1.src = "/Cobrander/SMBOnline/Custom/btn_over_personal.gif";
		  p2.src = "/Cobrander/SMBOnline/Custom/btn_over_business.gif";
		  p3.src = "/Cobrander/SMBOnline/Custom/btn_over_internet.gif";
		  p4.src = "/Cobrander/SMBOnline/Custom/btn_over_trust.gif";
		  p5.src = "/Cobrander/SMBOnline/Custom/btn_over_investment.gif";
		  p6.src = "/Cobrander/SMBOnline/Custom/btn_over_aboutus.gif";
		  p7.src = "..//Cobrander/SMBOnline/Custom/btn_over_personal.gif";
		  p8.src = "..//Cobrander/SMBOnline/Custom/btn_over_business.gif";
		  p9.src = "..//Cobrander/SMBOnline/Custom/btn_over_internet.gif";
		  p10.src = "..//Cobrander/SMBOnline/Custom/btn_over_trust.gif";
		  p11.src = "..//Cobrander/SMBOnline/Custom/btn_over_investment.gif";
		  p12.src = "..//Cobrander/SMBOnline/Custom/btn_over_aboutus.gif";


 }
//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/
 function populate()
{
	
	
	var box=document.getElementById('selTypeId');
	var number = box.options[box.selectedIndex].value;
	var box2=document.getElementById('selActId');
	box2.options.length = 0;
	box2.options[0] = new Option('Select Type',0);
	if(!number)
	{
		box2.options.length = 0;
		box2.options[0] = new Option('Select Type',0);
	}
	if(number == 3){
		box2.options[1] = new Option('Home Equity',9);
		box2.options[2] = new Option('Home Improvement',8);
		box2.options[3] = new Option('Home Mortgage',10);
		box2.options[4] = new Option('Personal',13);
		box2.options[5] = new Option('RV\’s, Boats and other recreational vehicles',12);
		box2.options[6] = new Option('Vacation Loans',11);
		box2.options[7] = new Option('Vehicle',7);
	}
	if(number == 4){
		box2.options[1] = new Option('Agricultural',19);
		box2.options[2] = new Option('Commercial Mortgage',14);
		box2.options[3] = new Option('Equipment',16);
		box2.options[4] = new Option('Government Guaranteed',18);
		box2.options[5] = new Option('Lease Purchase Financing',17);
		box2.options[6] = new Option('Lines of Credit and Working Capital',15);
		box2.options[7] = new Option('Personal',20);
	}
		
	
}
 
  /*function popNewWindow(pstFile,pstTitle) {
        window.open(pstFile+"?stTitle="+pstFile, "ViewImage", "toolbar=0,status=yes,location=0,directories=0,menubar=0,resizable=1,scrollbars=1,width=400,height=300,left=100,top=100");
		}

	function popUpScreen(pstFile,pstTitle) {
	win=window.open(pstFile+"?stTitle="+pstFile, "ViewDisclosure",
"toolbar=0,status=yes,location=0,directories=0,menubar=0,resizable=1,scrollbars=1,width=560,height=520,left=200,top=200");
       // window.open(pstFile+"?stTitle="+pstFile, "ViewDisclosure", "width=560,height=520,status=yes;toolbar=no;menubar=no;,resizable=yes,left=200,top=200");
		}
function popMapWindow(pstFile,pstTitle) {
        //window.open("dsp_map_templ1.cfm?inZipcode="+pinzipcode+"&stAddress1="+pstAddress1+"&stCity="+pstCity+"&stState="+pstState, "Map", "menubar=1,width=600,height=620,resizable=yes,left=100,top=100");
		window.open(pstFile+"?stTitle="+pstFile, "Map", "menubar=1,width=600,height=620,resizable=yes,left=100,top=100");
        }*/
var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas
 
function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
  if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
   ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
   ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
  }
  else{ //else if this is a sub level menu (ul)
    ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
     ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
  }
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}
 
if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)