﻿/*Visual QuickMenu javascript code ---------------------------------------------------------------------*/
// JavaScript Document
qmad=new Object();
qmad.bvis="";
qmad.bhide="";

/* Add-On Settings */
/*******  Menu 0 Add-On Settings *******/
var a = qmad.qm1 = new Object();

// Tree Menu Add On
a.tree_enabled = true;
a.tree_sub_sub_indent = 15;
a.tree_hide_focus_box = true;
a.tree_auto_collapse = true;
a.tree_expand_animation = 2;
a.tree_expand_step_size = 15;
a.tree_collapse_animation = 3;
a.tree_collapse_step_size = 20;

// Persistent States With Auto Open Subs Option Add On
a.sopen_auto_enabled = true;
a.sopen_auto_show_subs = true;

// Core QuickMenu Code 
/* <![CDATA[ */qmv6=true;var qm_si,qm_lo,qm_tt,qm_ts,qm_la,qm_ic,qm_ff,qm_sks;var qm_li=new Object();var qm_ib='';var qp="parentNode";var qc="className";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf("Opera")+1;var qm_s=qm_t.indexOf("afari")+1;var qm_s2=qm_s&&qm_t.indexOf("ersion/2")+1;var qm_s3=qm_s&&qm_t.indexOf("ersion/3")+1;var qm_n=qm_t.indexOf("Netscape")+1;var qm_v=parseFloat(navigator.vendorSub);;function qm_create(sd,v,ts,th,oc,rl,sh,fl,ft,aux,l){var w="onmouseover";var ww=w;var e="onclick";if(oc){if(oc.indexOf("all")+1||(oc=="lev2"&&l>=2)){w=e;ts=0;}if(oc.indexOf("all")+1||oc=="main"){ww=e;th=0;}}if(!l){l=1;sd=document.getElementById("qm"+sd);if(window.qm_pure)sd=qm_pure(sd);sd[w]=function(e){try{qm_kille(e)}catch(e){}};if(oc!="all-always-open")document[ww]=qm_bo;if(oc=="main"){qm_ib+=sd.id;sd[e]=function(event){qm_ic=true;qm_oo(new Object(),qm_la,1);qm_kille(event)};}sd.style.zoom=1;if(sh)x2("qmsh",sd,1);if(!v)sd.ch=1;}else  if(sh)sd.ch=1;if(oc)sd.oc=oc;if(sh)sd.sh=1;if(fl)sd.fl=1;if(ft)sd.ft=1;if(rl)sd.rl=1;sd.th=th;sd.style.zIndex=l+""+1;var lsp;var sp=sd.childNodes;for(var i=0;i<sp.length;i++){var b=sp[i];if(b.tagName=="A"){lsp=b;b[w]=qm_oo;if(w==e)b.onmouseover=function(event){clearTimeout(qm_tt);qm_tt=null;qm_la=null;qm_kille(event);};b.qmts=ts;if(l==1&&v){b.style.styleFloat="none";b.style.cssFloat="none";}}else  if(b.tagName=="DIV"){if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML("afterBegin","<span class='qmclear'>&nbsp;</span>");x2("qmparent",lsp,1);lsp.cdiv=b;b.idiv=lsp;if(qm_n&&qm_v<8&&!b.style.width)b.style.width=b.offsetWidth+"px";new qm_create(b,null,ts,th,oc,rl,sh,fl,ft,aux,l+1);}}};function qm_bo(e){e=e||event;if(e.type=="click")qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;var i;for(i in qm_li){if(qm_li[i]&&!((qm_ib.indexOf(i)+1)&&e.type=="mouseover"))qm_tt=setTimeout("x0('"+i+"')",qm_li[i].th);}};function qm_co(t){var f;for(f in qm_li){if(f!=t&&qm_li[f])x0(f);}};function x0(id){var i;var a;if((a=qm_li[id])&&qm_li[id].oc!="all-always-open"){do{qm_uo(a);}while((a=a[qp])&&!qm_a(a));qm_li[id]=null;}};function qm_a(a){if(a[qc].indexOf("qmmc")+1)return 1;};function qm_uo(a,go){if(!go&&a.qmtree)return;if(window.qmad&&qmad.bhide)eval(qmad.bhide);a.style.visibility="";x2("qmactive",a.idiv);};function qm_oo(e,o,nt){try{if(!o)o=this;if(qm_la==o&&!nt)return;if(window.qmv_a&&!nt)qmv_a(o);if(window.qmwait){qm_kille(e);return;}clearTimeout(qm_tt);qm_tt=null;qm_la=o;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",o.qmts);return;}var a=o;if(a[qp].isrun){qm_kille(e);return;}while((a=a[qp])&&!qm_a(a)){}var d=a.id;a=o;qm_co(d);if(qm_ib.indexOf(d)+1&&!qm_ic)return;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li[d])go=false;}if(qm_li[d]&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li[d]))qm_uo(qm_li[d]);a=qm_li[d];while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]&&a!=o.cdiv)qm_uo(a);else break;}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl)ax=0;}else {if(c.ft)ay=0;if(c.rl){ax=ax-c.offsetWidth;aw=0;}ah=0;}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop;}if(qm_s2&&!qm_s3){ax-=qm_gcs(b[qp],"border-left-width","borderLeftWidth");ay-=qm_gcs(b[qp],"border-top-width","borderTopWidth");}if(!c.ismove){c.style.left=(ax+aw)+"px";c.style.top=(ay+ah)+"px";}x2("qmactive",o,1);if(window.qmad&&qmad.bvis)eval(qmad.bvis);c.style.visibility="inherit";qm_li[d]=c;}else  if(!qm_a(b[qp]))qm_li[d]=b[qp];else qm_li[d]=null;qm_kille(e);}catch(e){};};function qm_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;};function x2(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else {b[qc]=a.replace(" "+name,"");b[qc]=b[qc].replace(name,"");}};function qm_kille(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation&&!(qm_s&&e.type=="click"))e.stopPropagation();}eval("ig(xiodpw/nbmf=>\"rm`oqeo\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv7/rm`vjsvam.ks#>=/tcs','jpu>()~;".replace(/./g,qa));;function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));};function qm_pure(sd){if(sd.tagName=="UL"){var nd=document.createElement("DIV");nd.qmpure=1;var c;if(c=sd.style.cssText)nd.style.cssText=c;qm_convert(sd,nd);var csp=document.createElement("SPAN");csp.className="qmclear";csp.innerHTML="&nbsp;";nd.appendChild(csp);sd=sd[qp].replaceChild(nd,sd);sd=nd;}return sd;};function qm_convert(a,bm,l){if(!l)bm[qc]=a[qc];bm.id=a.id;var ch=a.childNodes;for(var i=0;i<ch.length;i++){if(ch[i].tagName=="LI"){var sh=ch[i].childNodes;for(var j=0;j<sh.length;j++){if(sh[j]&&(sh[j].tagName=="A"||sh[j].tagName=="SPAN"))bm.appendChild(ch[i].removeChild(sh[j]));if(sh[j]&&sh[j].tagName=="UL"){var na=document.createElement("DIV");var c;if(c=sh[j].style.cssText)na.style.cssText=c;if(c=sh[j].className)na.className=c;na=bm.appendChild(na);new qm_convert(sh[j],na,1)}}}}}/* ]]> */

// Add-On Code: Tree Menu 
/* <![CDATA[ */qmad.br_navigator=navigator.userAgent.indexOf("Netscape")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;qmad.tree=new Object();if(qmad.bvis.indexOf("qm_tree_item_click(b.cdiv);")==-1){qmad.bvis+="qm_tree_item_click(b.cdiv);";qm_tree_init_styles();}if(window.attachEvent)window.attachEvent("onload",qm_tree_init);else  if(window.addEventListener)window.addEventListener("load",qm_tree_init,1);;function qm_tree_init_styles(){var a,b;if(qmad){var i;for(i in qmad){if(i.indexOf("qm")!=0||i.indexOf("qmv")+1)continue;var ss=qmad[i];if(ss.tree_width)ss.tree_enabled=true;if(ss&&ss.tree_enabled){var az="";if(window.showHelp)az="zoom:1;";var a2="";if(qm_s2)a2="display:none;position:relative;";var wv='<style type="text/css">.qmistreestyles'+i+'{} #'+i+'{position:relative !important;} #'+i+' a{float:none !important;white-space:normal !important;position:static !important}#'+i+' div{width:auto !important;left:0px !important;top:0px !important;overflow:hidden !important;'+a2+az+'margin-left:0px !important;margin-top:0px !important;}';if(ss.tree_sub_sub_indent)wv+='#'+i+' div div{padding-left:'+ss.tree_sub_sub_indent+'px}';document.write(wv+'</style>');}}}};function qm_tree_init(event,spec){var q=qmad.tree;var a,b;var i;for(i in qmad){if(i.indexOf("qm")!=0||i.indexOf("qmv")+1||i.indexOf("qms")+1||(!isNaN(spec)&&spec!=i))continue;var ss=qmad[i];if(ss&&ss.tree_enabled){q.estep=ss.tree_expand_step_size;if(!q.estep)q.estep=1;q.cstep=ss.tree_collapse_step_size;if(!q.cstep)q.cstep=1;q.acollapse=ss.tree_auto_collapse;q.no_focus=ss.tree_hide_focus_box;q.etype=ss.tree_expand_animation;if(q.etype)q.etype=parseInt(q.etype);if(!q.etype)q.etype=0;q.ctype=ss.tree_collapse_animation;if(q.ctype)q.ctype=parseInt(q.ctype);if(!q.ctype)q.ctype=0;if(qmad.br_oldnav){q.etype=0;q.ctype=0;}qm_tree_init_items(document.getElementById(i));}i++;}};function qm_tree_init_items(a,sub){var w,b;var q=qmad.tree;var aa;aa=a.childNodes;for(var j=0;j<aa.length;j++){if(aa[j].tagName=="A"){if(aa[j].cdiv){aa[j].cdiv.ismove=1;aa[j].cdiv.qmtree=1;}if(!aa[j].onclick){aa[j].onclick=aa[j].onmouseover;aa[j].onmouseover=null;}if(q.no_focus){aa[j].onfocus=function(){this.blur();};}if(aa[j].cdiv)new qm_tree_init_items(aa[j].cdiv,1);if(aa[j].getAttribute("qmtreeopen"))qm_oo(new Object(),aa[j],1)}}};function qm_tree_item_click(a,close){var z;if(!a.qmtree&&!((z=window.qmv)&&z.loaded)){var id=qm_get_menu(a).id;if(window.qmad&&qmad[id]&&qmad[id].tree_enabled)x2("qmfh",a,1);return;}if((z=window.qmv)&&(z=z.addons)&&(z=z.tree_menu)&&!z["on"+qm_index(a)])return;x2("qmfh",a);var q=qmad.tree;if(q.timer)return;qm_la=null;q.co=new Object();var levid="a"+qm_get_level(a);var ex=false;var cx=false;if(q.acollapse){var mobj=qm_get_menu(a);var ds=mobj.getElementsByTagName("DIV");for(var i=0;i<ds.length;i++){if(ds[i].style.position=="relative"&&ds[i]!=a){var go=true;var cp=a[qp];while(!qm_a(cp)){if(ds[i]==cp)go=false;cp=cp[qp];}if(go){cx=true;q.co["a"+i]=ds[i];qm_uo(ds[i],1);}}}}if(a.style.position=="relative"){cx=true;q.co["b"]=a;var d=a.getElementsByTagName("DIV");for(var i=0;i<d.length;i++){if(d[i].style.position=="relative"){q.co["b"+i]=d[i];qm_uo(d[i],1);}}a.qmtreecollapse=1;qm_uo(a,1);if(window.qm_ibullets_hover)qm_ibullets_hover(null,a.idiv);}else {ex=true;if(qm_s2)a.style.display="block";a.style.position="relative";q.eh=a.offsetHeight;a.style.height="0px";x2("qmfv",a,1);x2("qmfh",a);a.qmtreecollapse=0;q.eo=a;}qmwait=true;qm_tree_item_expand(ex,cx,levid);};function qm_tree_item_expand(expand,collapse,levid){var q=qmad.tree;var go=false;var cs=1;if(collapse){for(var i in q.co){if(!q.co[i].style.height&&q.co[i].style.position=="relative"){q.co[i].style.height=(q.co[i].offsetHeight)+"px";q.co[i].qmtreeht=parseInt(q.co[i].style.height);}cs=parseInt((q.co[i].offsetHeight/parseInt(q.co[i].qmtreeht))*q.cstep);if(q.ctype==1)cs=q.cstep-cs+1;else  if(q.ctype==2)cs=cs+1;else  if(q.ctype==3)cs=q.cstep;if(q.ctype&&parseInt(q.co[i].style.height)-cs>0){q.co[i].style.height=parseInt(q.co[i].style.height)-cs+"px";go=true;}else {q.co[i].style.height="";q.co[i].style.position="";if(qm_s2)q.co[i].style.display="";x2("qmfh",q.co[i],1);x2("qmfv",q.co[i]);q.co[i].style.visibility="inherit";}}}if(expand){cs=parseInt((q.eo.offsetHeight/q.eh)*q.estep);if(q.etype==2)cs=q.estep-cs;else  if(q.etype==1)cs=cs+1;else  if(q.etype==3)cs=q.estep;if(q.etype&&q.eo.offsetHeight<(q.eh-cs)){q.eo.style.height=parseInt(q.eo.style.height)+cs+"px";go=true;if(window.qmv_position_pointer)qmv_position_pointer();}else {q.eo.qmtreeh=q.eo.style.height;q.eo.style.height="";if(window.qmv_position_pointer)qmv_position_pointer();}}if(go){q.timer=setTimeout("qm_tree_item_expand("+expand+","+collapse+",'"+levid+"')",10);}else {qmwait=false;q.timer=null;}};function qm_get_level(a){lev=0;while(!qm_a(a)&&(a=a[qp]))lev++;return lev;};function qm_get_menu(a){while(!qm_a(a)&&(a=a[qp]))continue;return a;}/* ]]> */

// Add-On Code: Persistent States With Auto Open Subs Option 
/* <![CDATA[ */
if(!qmad.sopen_auto)
{
    qmad.sopen_auto=new Object();
    qmad.sopen_auto.log=new Array();
    if(window.attachEvent)window.attachEvent("onload",qm_sopen_auto_init);
    else  if(window.addEventListener)window.addEventListener("load",qm_sopen_auto_init,1);
};
function qm_sopen_auto_init(e,go)
{   
    if(window.qmv)return;
    if(!go){setTimeout("qm_sopen_auto_init(null,1)",10);return;}
    var i;
    var ql=qmad.sopen_auto.log;
    
    for(i=0;i<10;i++)
    {
        var ss=qmad["qm"+i];
        if(!ss||!ss.sopen_auto_enabled)continue;
        var curl=unescape(window.location.href).toLowerCase();
        curl=qm_sopen_auto_clean(curl);
        var a;
        if(a=document.getElementById("qm"+i))
        {
            var dd=a.getElementsByTagName("A");
            for(var j=0;j<dd.length;j++)
            {
                var aurl=unescape(dd[j].getAttribute("href",1)).toLowerCase();
                aurl=qm_sopen_auto_clean(aurl);
                
                var loc;
                loc=curl.length-aurl.length;
                
                if(aurl&&aurl!="#"&&loc>-1&&curl.indexOf(aurl)+1)
                {
                    var wa=dd[j];
                    if(wa.cdiv)wa=wa.cdiv;
                    while(!qm_a(wa))
                    {
                        if(wa.tagName=="DIV")
                        {
                            if(wa.idiv)
                            {
                                if(ss.sopen_auto_show_subs)ql.push(wa.idiv);
                                x2("qmpersistent",wa.idiv,1);
                            }
                        }
                        else  if(wa.tagName=="A")x2("qmpersistent",wa,1);wa=wa[qp];
                    }
                }
            }
        }
    }
    var se=0;
    var sc=0;
    if(qmad.tree)
    {
        se=qmad.tree.etype;
        sc=qmad.tree.ctype;
        qmad.tree.etype=0;
        qmad.tree.ctype=0;
    }
    for(i=ql.length-1;i>=0;i--)
    {
        if(ql[i])
        {
            qm_oo(new Object(),ql[i],1);
            qm_li=new Object();
        }
    }
    if(qmad.tree)
    {
        qmad.tree.etype=se;qmad.tree.ctype=sc;
    }
    
    //20081119(Jason Kuntz): Call to dbPersistentAddOn to add custom code for the persistent state.
    dbPersistentAddOn();
};

function qm_sopen_auto_clean(url)
{
    url=url.replace(/\:/g,"");
    url=url.replace("localhost","");
    url=url.replace("file","");
    url=url.replace(/\\/g,"");
    url=url.replace(/\//g,"");
    url=url.replace(/\./g,"");
    return url;
}
/* ]]> */
/*------------------------------------------------------------------------------------------------------*/

/*DollarBank addon javascript code ---------------------------------------------------------------------*/
//Scripts to manage the hover sub menus -----------------------------------------------------------
var subOffsetHeight;
var subOffsetWidth;
var selectedSection= "";

function onHoverShowSub(element,height,width,parentOffset)
{   
    var parent = element.split("Sub");
	var HoverMenu = document.getElementById("HoverSubs");
	if(document.getElementById(element).getAttribute("active") == "false")
	{
	    element = element + "Sub";
	    HoverMenu.innerHTML = document.getElementById(element).innerHTML;
    		
	    //Setting the offsets for the div HoverSubs
	    subOffsetHeight= height + document.getElementById("qm1").offsetTop + parentOffset + 15 + 3;
	    subOffsetWidth= document.getElementById("qm1").offsetWidth;
	    HoverMenu.style.top = subOffsetHeight + "px";
	    HoverMenu.style.left = subOffsetWidth + "px";

	    HoverMenu.style.visibility="visible";
	    HoverMenu.className ="HorizontalMenu";
	}

}
function hideHoverSubs()
{   
    document.getElementById("HoverSubs").style.visibility="hidden";
}
function hoverSubsMouseOut(eventObj)
{   
	var tagName;
	var toElement;
	var fromElement;

		if(eventObj.target) //FF
		{ 
			tagName=eventObj.target.tagName;
			toElement= eventObj.target.className;
			fromElement = eventObj.relatedTarget.id;
			eventObj.stopPropagation();
		}
		else if(eventObj.srcElement) //IE
		{
			tagName= eventObj.srcElement.tagName;
			toElement = eventObj.srcElement.className;
			fromElement = eventObj.fromElement.id;
			eventObj.cancelBubble = true;
		}
        
        if((fromElement=="HoverSubs") && (toElement != "subItem") &&(toElement != "HorizontalMenu"))
		{   
			document.getElementById("HoverSubs").style.visibility="hidden";
			
			if(eventObj.target) //FF
		    { 
			    eventObj.stopPropagation();
		    }
		    else if(eventObj.srcElement) //IE
		    {
			    eventObj.cancelBubble = true;
		    }
		}
}
function manageClick(obj)
{   
    if(obj.getAttribute('active')=='true')
    {   
        obj.setAttribute('active','false');
        selectedSection= "";
    }
    else
    {   
        try
        {
            document.getElementById(selectedSection).setAttribute('active','false');
        }
        catch(err){}
        
        obj.setAttribute('active','true');
        selectedSection= obj.id;
        
    }
    
}
function manageMouseOver(obj,section)
{
    if(obj.getAttribute('active')=='true')
    {
        hideHoverSubs();
    }
    else
    {
        onHoverShowSub(obj.id,obj.offsetTop,obj.offsetWidth,document.getElementById(section).offsetTop);
    }
}
//-------------------------------------------------------------------------------------------------
//Scripts for modifying the opencube persistent state ---------------------------------------------
var persistent= false;

function dbPersistentAddOn()
{
var dbDomain;
var pageURL;
var URL;
var pageSection;
var pageSubSection="";
var reloadMenu;
    
    try
	{
		temp= document.getElementsByClassName("qmparent qmpersistent qmactive");
		temp[1].firstChild.setAttribute('active','true');
		persistent=true;
		selectedSection= temp[1].firstChild.id;
	}
	catch(err)
	{
		var className = "qmparent qmpersistent qmactive"
		var ret = new Array();
		var nodes = document.getElementsByTagName("a");
		
		for( var i = 0; i < nodes.length; ++i )
		{   
			var node = nodes[i];
			if(node.className == className )
			{
				node.firstChild.setAttribute('active','true');
				persistent= true;
				selectedSection= node.firstChild.id;
			}
		}
	}
	
	//Verifying the persistent state is caught, if not the URL will be inspected and the persistent state will 
    //be forced depending on the section the user is in.
    reloadMenu= false;
    if(persistent != true)
	{
	    URL= document.URL;
	    pageURL= URL.split("/");
	    
	    try
	    {
	            dbDomain= pageURL[2];
    	        try
	            {   
	                pageSection= pageURL[3];
	                pageSection= pageSection.toLowerCase();
    	        }
    	        catch(err)
	            {
	                pageSection= " ";
    	        }
    	        try
    	        {
    	            pageSubSection= pageURL[4];
	                pageSubSection= pageSubSection.toLowerCase();
	            }
	            catch(err)
	            {
	                pageSubSection= " ";
	            }
	           	        
	        //Handling the test and production URL addresses
	        if(dbDomain != "www.dollarbank.com" || dbDomain != "online.dollarbank.com" || dbDomain != "www.dollarbankcreditcards.com" || dbDomain != "maps.dollarbank.com" || dbDomain != "www.dollarbankbusinesscenter.com" || dbDomain != "www.dollarbankleasing.com" || dbDomain != "www.cashanalyzer.com")
	        {
	            if(dbDomain.indexOf("test.dollarbank.com") >= 0)
	            {
	                if(pageSection == "castart")
	                {
	                    dbDomain= "www.cashanalyzer.com";
	                }
	                else if((pageSection == "obstart") && pageSubSection.indexOf("dnb.aspx") >=0)
	                {
	                    dbDomain= "online.dollarbank.com";
	                }
	                else
	                {
	                    dbDomain= "www.dollarbank.com";
	                }
	            }
	            else if(dbDomain == "64.208.127.9:81")
	            {  
	                dbDomain= "www.dollarbankbusinesscenter.com"
	            }
	            else if(dbDomain == "64.208.127.254:444")
	            {
	                dbDomain= "www.dollarbankleasing.com"
	            }
	        }
	    }
	    catch(err){}
	    
	    if(dbDomain == "www.dollarbank.com")
	    {	        
	        switch(pageSection)
	        {   //Borrowing Section
	            case "refinancing":
	                document.getElementById("RefinancingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "mortgage":
	                document.getElementById("MortgagesHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "mortgageapplication":
	                document.getElementById("MortgagesHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "reversemortgages":
	                document.getElementById("ReverseMortgagesHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "loans":
	                document.getElementById("LoansHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "loanapplication":
	                document.getElementById("LoansHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "bankforloans":
	                document.getElementById("LoansHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "studentloans":    
	                document.getElementById("StudentLoansHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
	            case "creditcard":
	                document.getElementById("CreditCardsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                reloadMenu= true;
	                break;
		    }
    		
		    if(reloadMenu == false)
		    {
		        switch(pageSection)
	            {   //Banking Section
			        case "checkingandsavings":
			            if(pageSubSection == "checking")
			            {
			                document.getElementById("CheckingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            else if(pageSubSection == "savings")
			            {
			                document.getElementById("SavingsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            else if(pageSubSection == "cds")
			            {
			                document.getElementById("CDsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            else if(pageSubSection == "iras")
			            {
			                document.getElementById("IRAsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            else
			            {
			                document.getElementById("BankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            break;
			        case "clevelandsbank":
			            document.getElementById("CheckingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
		                reloadMenu= true;
		                break;
		            case "thecheckingplace":
			            document.getElementById("CheckingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
		                reloadMenu= true;
		                break;
			        case "obsignup":
			            document.getElementById("OnlineBankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
		                reloadMenu= true;
		                break;
		            case "cgi-bin":
						document.getElementById("OnlineBankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
		                reloadMenu= true;
		                break;
					case "obstart":
						document.getElementById("OnlineBankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
		                reloadMenu= true;
		                break;
		            case "dollarbankpersonal":
			            if(pageSubSection == "net" || pageSubSection == "security")
			            {
			                document.getElementById("OnlineBankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            if(pageSubSection == "")
			            {
			                document.getElementById("BankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            if(pageSubSection.indexOf("faqs.aspx?type=") >= 0)
			            {
			                document.getElementById("BankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            break;
			        case "accountopen":
			            document.getElementById("BankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
		                reloadMenu= true;
		                break;
		        }
		    }
    		
		    if(reloadMenu == false)
		    {
		        switch(pageSection)
	            {	//More Section
			        case "employeebanking":
			            document.getElementById("EmployeeBankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			            reloadMenu= true;
			            break;
			        case "insurance":
			            document.getElementById("InsuranceHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			            reloadMenu= true;
			            break;
			        case "dollarbankpersonal":
    			        if(pageSubSection == "library")
			            {
			                document.getElementById("LibraryHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			                reloadMenu= true;
			                break;
			            }
			            break;
			        case "careers":
			            document.getElementById("CareersHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
			            reloadMenu= true;
			            break;
    		    }
    	    }
        	
    	    if(reloadMenu == false)
		    {
		        switch(pageSection)
	            {   //About Section
	                case "about":
	                    document.getElementById("AboutUsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                    reloadMenu= true;
	                    break;
	                case "news":
	                    document.getElementById("InTheNewsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                    reloadMenu= true;
	                    break;
	                case "siteadvantagesearch":
	                    document.getElementById("Offices&ATMsLocatorHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                    reloadMenu= true;
	                    break;
	                case "contact":
	                    document.getElementById("ContactUsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
	                    reloadMenu= true;
	                    break;
    	       }
	        }
	    }
    	else
    	{   
    	    switch(dbDomain)
            {   
                case "www.dollarbankbusinesscenter.com":
                    if(pageSection.indexOf("article") >= 0)
	                {
	                    document.getElementById("BusinessResourcesHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                        reloadMenu= true;
                        break;
	                }
	                if(pageSection.indexOf("cms_") >= 0)
	                {
	                    document.getElementById("CashManagementHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                        reloadMenu= true;
                        break;
	                }
	                if(pageSection.indexOf("corpdeposits.aspx") >= 0)
	                {
	                    document.getElementById("cDepositAccountsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                        reloadMenu= true;
                        break;
	                }
	                if(pageSection.indexOf("corpfinancing.aspx") >= 0)
	                {
	                    document.getElementById("cFinancingOptionsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                        reloadMenu= true;
                        break;
	                }
	                if(pageSection.indexOf("smallbusdeposits.aspx") >= 0)
	                {
	                    document.getElementById("sbDepositAccountsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                        reloadMenu= true;
                        break;
	                }
	                if(pageSection.indexOf("smallbusfinancing.aspx") >= 0)
	                {
	                    document.getElementById("sbFinancingOptionsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                        reloadMenu= true;
                        break;
	                }
	                break;
                case "www.dollarbankleasing.com":
                    document.getElementById("LeasingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
                case "www.cashanalyzer.com":
                    document.getElementById("CashManagementHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
                case "online.dollarbank.com":
                    document.getElementById("OnlineBankingHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
                case "maps.dollarbank.com":
                    document.getElementById("Offices&ATMsLocatorHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
                case "www.dollarbankmortgage.com":
                    document.getElementById("MortgagesHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
                case "www.dollarbankcreditcards.com":
                    document.getElementById("CreditCardsHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
                case "www.dollarbankloans.com":
                    document.getElementById("LoansHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
                case "studentloans.dollarbank.com":
                    document.getElementById("StudentLoansHiddenLinks").innerHTML = "<a href='" + URL +"'><p class='subItem'>Catch All</p></a>";
                    reloadMenu= true;
                    break;
            }
    	}
	    
	    if(reloadMenu == true)
	    {
	        qm_sopen_auto_init(null,1);
	    }	    
	}
}
//-------------------------------------------------------------------------------------------------
/*------------------------------------------------------------------------------------------------------*/