// new section added by jon, digital ink

var refid = '' ;

function parseGetVars() 
{
var qString = unescape(top.location.search.substring(1));
var pairs = qString.split(/\&/);
for (var i in pairs)
{
var nameVal = pairs[i].split(/\=/);
window[nameVal[0]] = nameVal[1];
} 
}
parseGetVars();

// end of new section

_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(menuStyle=new mm_style()){
onbgcolor="#000080";
oncolor="#ffffff";
offbgcolor="#9AB2E9";
offcolor="#000000";
bordercolor="#000080";
borderstyle="solid";
borderwidth=2;
separatorcolor="#000080";
separatorsize="2";
padding=4;
fontsize="80%";
fontstyle="bold";
fontfamily="Arial, Helvetica";
subimage="arrow.gif";
onsubimage="arrow-on.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("services")){
style=menuStyle;
overflow="scroll";

aI("text=Buy&nbsp;To&nbsp;Let;showmenu=buytolet;");
aI("text=Residential&nbsp;Mortgages;url=Residentialmortgages.ink?refid=" + refid +";");
aI("text=Mortgage&nbsp;Protection;url=MortgageProtection.ink?refid=" + refid +";");
aI("text=Home&nbsp;Insurance;url=HomeInsurance.ink?refid=" + refid +";");
aI("text=Personal&nbsp;Loans;url=PersonalLoans.ink?refid=" + refid +";");
aI("text=Conveyancing;url=Conveyancing.ink?refid=" + refid +";");
aI("text=Calculators;url=Calculators.ink?refid=" + refid +";");
aI("text=Spanish Property;url=spanish_property.ink?refid=" + refid +";");
aI("text=Commercial Finance;url=CommercialFinance.ink?refid=" + refid +";");
aI("text=Development Finance;url=DevelopmentFinance.ink?refid=" + refid +";");
 }

with(milonic=new menuname("Aboutus")){
style=menuStyle;

aI("text=flexible-mortgage.net;url=AboutUs.ink?refid=" + refid);
aI("text=flexible-mortgage.net&nbsp;Contact&nbsp;Centre;url=ContactCentre.ink?refid=" + refid);
aI("text=Testimonials;url=Testimonials.ink?refid=" + refid);
aI("text=Customer&nbsp;Satisfaction&nbsp;Survey;url=customersatisfaction.ink?refid=" + refid);
}

with(milonic=new menuname("buytolet")){
style=menuStyle;

aI("text=Buy&nbsp;To&nbsp;Let;url=BuyToLet.ink?refid=" + refid);
aI("text=Best&nbsp;Buy;url=BestBuy.ink?refid=" + refid);
aI("text=Management&nbsp;Agents;url=ManagementAgents.ink?refid=" + refid);
}

with(milonic=new menuname("Contactus")){
style=menuStyle;

aI("text=Contact&nbsp;Form;url=ContactForm.ink?refid=" + refid);
aI("text=Telephone&nbsp;&&nbsp;Email;url=TelephoneEmail.ink?refid=" + refid);
}

with(milonic=new menuname("News")){
style=menuStyle;

aI("text=News;url=NewsIndex.ink?refid=" + refid);
aI("text=Links;url=Links.ink?refid=" + refid);
}

with(milonic=new menuname("Recruitment")){
style=menuStyle;

aI("text=Mortgage&nbsp;Consultants;url=vacancylist.ink?refid=" + refid + "&department=consultants");
aI("text=Sales&nbsp;Support;url=vacancylist.ink?refid=" + refid +"&department=Sales Support");
aI("text=Administration;url=vacancylist.ink?refid=" + refid + "&department=admin");
}


with(milonic=new menuname("Legal")){
style=menuStyle;

aI("text=Privacy&nbsp;Policy;url=PrivacyPolicy.ink?refid=" + refid);
aI("text=FSA;url=http://www.fsa.gov.uk");
}


drawMenus();

