function NavItem(level, label, code, link, win) { this.level = level; this.label = label; this.code = code; this.link = link; this.targetwin = win; } function setMNavCurrent(s) { var nav = ""; for (var i=0; i 0) { nav += '0) nav += ' target="_blank"'; nav += '>'+nav_ary[i].label+''; } else nav += nav_ary[i].label; nav += ''; if (nav_ary[i].code == "latestpromotions") { nav += ' '; } } nav = '' + nav + '
'; document.getElementById("nav").innerHTML = nav; if (s.length > 0) { if (document.getElementById("mnav_"+s) != null) { var td = document.getElementById("mnav_"+s); td.style.color = "#CC0000"; } } } function openConditionalApprovalForm() { var w = 780; var h = 580; var l = (screen.width/2) - (w/2); var t = (screen.height/2) - (h/2) - 40; var feat = "scrollbars=1,toolbar=0,menubar=0,status=1,location=1,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",resizable=0"; window.open(spath+"forms/inprincipal.html", "wInPrinciple", feat); } function openLoanEnquiries() { self.location = spath + 'propertyportal/loanenquiries.html'; } function getSecureURL(url) { return spath + url; } formURL = self.location+""; var ptc = formURL.substring(0, formURL.indexOf("://")); var url = formURL.substring(formURL.indexOf("://")+3, formURL.length); if (ptc != "http") window.location="http://"+url; if (top!=self) top.location=self.location; var spath = "/global_docs/";//"https://"+location.hostname+"/global_docs/"; var nav_ary = new Array(); nav_ary.push(new NavItem(1, "Home", "home", "index.html", "")); nav_ary.push(new NavItem(1, "properties for sale", "", "", "")); nav_ary.push(new NavItem(2, "Developer launches", "featuredproperties", "propertylist.html", "")); nav_ary.push(new NavItem(2, "completed properties", "classifield", "completedproperties.html", "")); //nav_ary.push(new NavItem(2, "auction properties", "auction", "downloads/auctionlist.pdf", "_blank")); nav_ary.push(new NavItem(2, "auction properties", "auction", "auction.html", "")); nav_ary.push(new NavItem(1, "property developers", "propertydevelopers", "developerlist.html", "")); nav_ary.push(new NavItem(1, "Property Buying Guide", "propertybuyingguide", "buyingguide.html", "")); nav_ary.push(new NavItem(1, "property research", "research", "research.html", "")); nav_ary.push(new NavItem(1, "home loan promotions", "latestpromotions", "http://www.citibank.com.my/APPS/portal/genericLoadPage.do?tabNo=4&htmlPageName=/promo/land/prod_cat/Loans.htm", "_blank")); //nav_ary.push(new NavItem(1, "Online Conditional Approval", "condapproval", "javascript:openConditionalApprovalForm();", "")); nav_ary.push(new NavItem(1, "loan calculators", "loancalculator", "loancalculator.html", "")); nav_ary.push(new NavItem(1, "loan enquiries", "loanenquiries", "javascript:openLoanEnquiries();", ""));