function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function mmLoadMenus() {
  if (window.mm_menu_0322112829_0) return;
  window.mm_menu_0322112829_0 = new Menu("root",142,18,"Verdana, Arial, Helvetica, sans-serif",10,"#0e436e","#ffffff","#efefef","#1f5078","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
  //Company
  mm_menu_0322112829_0.addMenuItem("About&nbsp;Us","window.open('/company/about_us.htm', '_self');");
  mm_menu_0322112829_0.addMenuItem("Clients","window.open('/company/clients.htm', '_self');");
  mm_menu_0322112829_0.addMenuItem("Locations","window.open('/company/locations.htm', '_self');");
  mm_menu_0322112829_0.addMenuItem("Management","window.open('/company/management.htm', '_self');");
  mm_menu_0322112829_0.addMenuItem("Milestones","window.open('/company/milestones.htm', '_self');");
  mm_menu_0322112829_0.addMenuItem("Careers","window.open('/company/careers.htm', '_self');");
   mm_menu_0322112829_0.fontWeight="bold";
   mm_menu_0322112829_0.hideOnMouseOut=true;
   mm_menu_0322112829_0.menuBorder=1;
   mm_menu_0322112829_0.menuLiteBgColor='#ffffff';
   mm_menu_0322112829_0.menuBorderBgColor='#a9aeba';
   mm_menu_0322112829_0.bgColor='#ffffff';
 //Products Kickout menu
  window.mm_menu_0322112829_1_1 = new Menu("Products",142,18,"Verdana, Arial, Helvetica, sans-serif",10,"#0e436e","#ffffff","#efefef","#1f5078","left","middle",3,0,100,-15,1,true,true,true,0,false,false);
    mm_menu_0322112829_1_1.addMenuItem("CreditLine&nbsp;Plus&reg;","window.open('/products/credit_line.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("DataDirect&trade;","window.open('/products/data_direct.htm', '_self');");
	//mm_menu_0322112829_1_1.addMenuItem("FleetWare&trade;","window.open('/products/fleetware.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("Hamlet&trade;","window.open('/products/hamlet.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("InfoAnalysis&reg;","window.open('/products/infoanalysis.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("InfoLease&reg;","window.open('/products/infolease.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("LeaseEnterprise&reg;","window.open('/products/leaseenterprise.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("PortfolioEvaluation&trade;","window.open('/products/portfolioevaluation.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("ProFinia&trade;","window.open('/products/profinia.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("Rapport&reg;","window.open('/products/rapport.htm', '_self');");
	mm_menu_0322112829_1_1.addMenuItem("TopCalc&trade;","window.open('/products/topcalc.htm', '_self');");
 
     mm_menu_0322112829_1_1.fontWeight="bold";
     mm_menu_0322112829_1_1.hideOnMouseOut=true;
     mm_menu_0322112829_1_1.menuBorder=1;
     mm_menu_0322112829_1_1.menuLiteBgColor='#ffffff';
     mm_menu_0322112829_1_1.menuBorderBgColor='#a9aeba';
     mm_menu_0322112829_1_1.bgColor='#ffffff';
 //Solutions
   window.mm_menu_0322112829_1 = new Menu("root",142,18,"Verdana, Arial, Helvetica, sans-serif",10,"#0e436e","#ffffff","#efefef","#1f5078","left","middle",3,0,100,-5,1,true,true,true,0,false,false);
 mm_menu_0322112829_1.addMenuItem("Overview","window.open('/solutions/overview.htm', '_self');");
  mm_menu_0322112829_1.addMenuItem("Equipment&nbsp;Finance","window.open('/solutions/by_function.htm', '_self');");
  mm_menu_0322112829_1.addMenuItem("Commercial&nbsp;Lending","window.open('/solutions/by_industry.htm', '_self');");
  //mm_menu_0322112829_1.addMenuItem("Consulting","window.open('/services/consulting.htm', '_self');");
  //mm_menu_0322112829_1.addMenuItem("Products","window.open('/solutions/products.htm', '_self');");
    mm_menu_0322112829_1.addMenuItem(mm_menu_0322112829_1_1);
   mm_menu_0322112829_1.fontWeight="bold";
   mm_menu_0322112829_1.hideOnMouseOut=true;
   mm_menu_0322112829_1.menuBorder=1;
   mm_menu_0322112829_1.menuLiteBgColor='#ffffff';
   mm_menu_0322112829_1.menuBorderBgColor='#a9aeba';
  // mm_menu_0322112829_1.childMenuIcon="http://www.internationaldecisionsystems.com/images/arrows.gif";
   mm_menu_0322112829_1.bgColor='#ffffff';
  window.mm_menu_0322112829_2 = new Menu("root",153,18,"Verdana, Arial, Helvetica, sans-serif",10,"#0e436e","#ffffff","#efefef","#1f5078","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
  //Services
  mm_menu_0322112829_2.addMenuItem("Overview","window.open('/services/overview.htm', '_self');");
  mm_menu_0322112829_2.addMenuItem("Client&nbsp;Support","window.open('/services/client_support.htm', '_self');");
  mm_menu_0322112829_2.addMenuItem("Implementation&nbsp;Services","window.open('/services/implementation_services.htm', '_self');");
  mm_menu_0322112829_2.addMenuItem("Consulting","window.open('/services/consulting.htm', '_self');");
  mm_menu_0322112829_2.addMenuItem("Education&amp;Training","window.open('/services/education_and_training.htm', '_self');");
   mm_menu_0322112829_2.fontWeight="bold";
   mm_menu_0322112829_2.hideOnMouseOut=true;
   mm_menu_0322112829_2.menuBorder=1;
   mm_menu_0322112829_2.menuLiteBgColor='#ffffff';
   mm_menu_0322112829_2.menuBorderBgColor='#a9aeba';
   mm_menu_0322112829_2.bgColor='#ffffff';
  window.mm_menu_0322112829_3 = new Menu("root",142,18,"Verdana, Arial, Helvetica, sans-serif",10,"#0e436e","#ffffff","#efefef","#1f5078","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
  //Partners
  mm_menu_0322112829_3.addMenuItem("Overview","window.open('/partners/overview.htm', '_self');");
  mm_menu_0322112829_3.addMenuItem("Directory","window.open('/partners/directory.htm', '_self');");
  mm_menu_0322112829_3.addMenuItem("Strategic&nbsp;Partners","window.open('/partners/strategic_partners.htm', '_self');");
  mm_menu_0322112829_3.addMenuItem("Partner&nbsp;Program","window.open('/partners/partner_program.htm', '_self');");
   mm_menu_0322112829_3.fontWeight="bold";
   mm_menu_0322112829_3.hideOnMouseOut=true;
   mm_menu_0322112829_3.menuBorder=1;
   mm_menu_0322112829_3.menuLiteBgColor='#ffffff';
   mm_menu_0322112829_3.menuBorderBgColor='#a9aeba';
   mm_menu_0322112829_3.bgColor='#ffffff';
  window.mm_menu_0322112829_4 = new Menu("root",142,18,"Verdana, Arial, Helvetica, sans-serif",10,"#0e436e","#ffffff","#efefef","#1f5078","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
  //News
  mm_menu_0322112829_4.addMenuItem("Press&nbsp;Releases","window.open('/news/press_releases.htm', '_self');");
  mm_menu_0322112829_4.addMenuItem("Articles","window.open('/news/articles.htm', '_self');");
  mm_menu_0322112829_4.addMenuItem("Training","window.open('/news/training.htm', '_self');");
  mm_menu_0322112829_4.addMenuItem("See&nbsp;Us&nbsp;At","window.open('/news/see_us_at.htm', '_self');");
   mm_menu_0322112829_4.fontWeight="bold";
   mm_menu_0322112829_4.hideOnMouseOut=true;
   mm_menu_0322112829_4.menuBorder=1;
   mm_menu_0322112829_4.menuLiteBgColor='#ffffff';
   mm_menu_0322112829_4.menuBorderBgColor='#a9aeba';
   mm_menu_0322112829_4.bgColor='#ffffff';
   //mm_menu_0322112829_4.writeMenus();
   
  window.mm_menu_0322112829_5 = new Menu("root",142,18,"Verdana, Arial, Helvetica, sans-serif",10,"#0e436e","#ffffff","#efefef","#1f5078","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
  //Investors
   mm_menu_0322112829_5.addMenuItem("Overview","window.open('/investors/overview.htm', '_self');");
   mm_menu_0322112829_5.fontWeight="bold";
   mm_menu_0322112829_5.hideOnMouseOut=true;
   mm_menu_0322112829_5.menuBorder=1;
   mm_menu_0322112829_5.menuLiteBgColor='#ffffff';
   mm_menu_0322112829_5.menuBorderBgColor='#a9aeba';
   mm_menu_0322112829_5.bgColor='#ffffff';
   mm_menu_0322112829_5.writeMenus();
} // mmLoadMenus()

function LoginToggle(){
	var login = document.getElementById("cl");
	var news = document.getElementById("news");
	//alert("Login style " + login.style.visibility);
	if(login.style.display == "none"){
		login.style.display = "block";
	} else {
		login.style.display = "none"
	}
	if(news.style.display == "none"){
		news.style.display = "block";
	} else {
		news.style.display = "none"
	}
}

function setCookie(name, value, expires, path, domain, secure) {
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    } else {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

function LoginInit() {
	var thisLogin = getCookie("IDSLogin");
	if(thisLogin != null){
		//document.forms[0].r_txtLogin.value = thisLogin;
		document.frmLogin.r_txtLogin.value = thisLogin;
		if(document.frmLogin2.r_txtLogin){
			document.frmLogin2.r_txtLogin.value = thisLogin;
		}
	}
}