// Coordinates for the menu, if the page is reloaded
var screen_width = null; 
screen_width = screen.width;
var top_position = 0;
var left_position = 0;
var navegador = navigator.appName;
var navVer = parseInt(navigator.appVersion);
if (navegador == "Netscape")
 {
  if(navVer>=5)
   {
      top_position = 54; 
      left_position = 129;
   }
   else
   {
    top_position = 55; 
    left_position = 134;
   } 
 
 }
 else  //Explorer
 {
   top_position = 53;    
   left_position = 135;
 }


var win_width = 0;


if (navegador == "Microsoft Internet Explorer") 
 {
  
   win_width = document.body.clientWidth;
  if (win_width >= 780) {    //&& (screen_height_left > 600)
	
	left_position += ((win_width - 800)/2);
  }
  else
  {
        left_position -= 7;
  }
  
 } 
 if (navegador == "Netscape") 
 {
  win_width = window.innerWidth; 
  if(navVer>=5)  //En navegadores despues del 4 (sin incluirlo)
  {
   if (win_width >= 780) {    //&& (screen_height_left > 600)
	
	left_position += ((win_width - 800)/2);
   }
   else
   {
        left_position -= 7;
   }
  }
  else   //4 and up
  {
   if (win_width >= 800) {    //&& (screen_height_left > 600)
	
	left_position += ((win_width - 818)/2);
   }
   else
   {
        left_position -= 7;
   } 
  }
  
  
 }


// End coordinates


_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x


with(menuStyleOriginal=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="menu/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(menuStyle=new mm_style()){
onbgcolor="#FFFFFF";
oncolor="#ffffff";
offbgcolor="#FFFFFF";
offcolor="#515151";
bordercolor="#FFFFFF";
borderstyle="none";
borderwidth=0;
separatorcolor="#2D729D";
separatorsize="0";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="";
subimagepadding="0";
overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color='#FFFFFF', Direction=0, Strength=0)";
outfilter="randomdissolve(duration=0.3)";
}
with(subMenuStyleBlue=new mm_style()){
onbgcolor="#7A7BFA";
oncolor="#ffffff";
offbgcolor="#DBDBFE";
offcolor="#00068E";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="menu/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(subMenuStyleGreen=new mm_style()){
onbgcolor="#7EBF6F";
oncolor="#ffffff";
offbgcolor="#CFE8CA";
offcolor="#226413";
bordercolor="#226413";
borderstyle="solid";
borderwidth=1;
separatorcolor="#226413";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#56D050";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="menu/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(subMenuStylePurple=new mm_style()){
onbgcolor="#BD88DF";
oncolor="#ffffff";
offbgcolor="#E9D7F4";
offcolor="#7D1ABC";
bordercolor="#7D1ABC";
borderstyle="solid";
borderwidth=1;
separatorcolor="#7D1ABC";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#D52ECF";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="menu/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("Main Menu")){
style=menuStyle;
top= top_position;
left=left_position;
alwaysvisible=1;
orientation="horizontal";
aI("text=;showmenu=HomeLoans;image=http://www.securitypacificfinancial.com/images/home_loans.gif;url=http://www.securitypacificfinancial.com/loan_types.htm");
aI("text=;showmenu=Insurance;image=http://www.securitypacificfinancial.com/images/insurance.gif;url=http://www.securitypacificfinancial.com/insurance/");
aI("text=;showmenu=Credit;image=http://www.securitypacificfinancial.com/images/credit_services.gif;url=http://www.securitypacificfinancial.com/credit/");
}
with(milonic=new menuname("HomeLoans")){
style=subMenuStyleBlue;
overflow="scroll";
aI("text=Apply Now;url=http://www.securitypacificfinancial.com/apply_online.htm;");
aI("text=Purchases;url=http://www.securitypacificfinancial.com/mortgage/home_purchase.htm;");
aI("text=Refinances;url=http://www.securitypacificfinancial.com/mortgage/refinance_loans.htm;");
aI("text=Home Equity;url=http://www.securitypacificfinancial.com/mortgage/home_equity.htm;");
aI("text=Debt Consolidation;url=http://www.securitypacificfinancial.com/mortgage/debt_consolidation.htm;");
aI("text=Less Than Perfect Credit;url=http://www.securitypacificfinancial.com/mortgage/less_than_perfect_credit.htm;");
}
with(milonic=new menuname("Insurance")){
style=subMenuStyleGreen;
aI("text=Apply Now;url=http://www.securitypacificfinancial.com/insurance/apply.htm;");
aI("text=Life;url=http://www.securitypacificfinancial.com/insurance/life_insurance.htm;");
aI("text=Long Term Care;url=http://www.securitypacificfinancial.com/insurance/long_term_care_insurance.htm;");
aI("text=Health;url=http://www.securitypacificfinancial.com/insurance/health_insurance.htm;");
aI("text=Homeowners;url=http://www.securitypacificfinancial.com/insurance/homeowners_insurance.htm;");
aI("text=Auto;url=http://www.securitypacificfinancial.com/insurance/auto_insurance.htm;");
aI("text=Annuities;url=http://www.securitypacificfinancial.com/insurance/annuities.htm;");
}
with(milonic=new menuname("Credit")){
style=subMenuStylePurple;
aI("text=Apply Now;url=http://www.securitypacificfinancial.com/credit/apply.htm;");
aI("text=Credit Report;url=http://www.securitypacificfinancial.com/credit/report.htm;");
aI("text=Credit Enhancement;url=http://www.securitypacificfinancial.com/credit/enhancement.htm;");
}

drawMenus();
