	window.onresize = new Function("window.location.reload();");
	var ie=(document.all)?1:0;
	var hide=-1;
	var isMozilla=false;
	var bDom = document.getElementById?1:0;
	var bVersion=navigator.appVersion;
	isMozilla=(bDom&&parseInt(bVersion)>=5)?1:0;
	opera=window.opera?1:0;

	var isMozilla=false;
	var bDom = document.getElementById?1:0;
	var bVersion=navigator.appVersion;
	isMozilla=(bDom&&parseInt(bVersion)>=5)?1:0;
	
	if(ie)
	{
		var menu_x=[342,396,528,663,758];
		var menu_y=[367,367,367,367,367];
	}
	else
	{
		var menu_x=[334,388,520,655,750];
		var menu_y=[367,367,367,367,367];
	}
	
	var str=""
	str+="<style>";
	if(ie)
	{
	str+="#Mmenu0{filter:alpha(opacity=100);position:absolute;top:" + menu_y[0] + "px;left:" + menu_x[0] + "px;visibility:hidden;z-index:10;}";
	str+="#Mmenu1{filter:alpha(opacity=100);position:absolute;top:" + menu_y[1] + "px;left:" + menu_x[1] + "px;visibility:hidden;z-index:10;}";
	str+="#Mmenu2{filter:alpha(opacity=100);position:absolute;top:" + menu_y[2] + "px;left:" + menu_x[2] + "px;visibility:hidden;z-index:10;}";
	str+="#Mmenu3{filter:alpha(opacity=100);position:absolute;top:" + menu_y[3] + "px;left:" + menu_x[3] + "px;visibility:hidden;z-index:10;}";
	str+="#Mmenu4{filter:alpha(opacity=100);position:absolute;top:" + menu_y[4] + "px;left:" + menu_x[4] + "px;visibility:hidden;z-index:10;}";

	

	}
	else
	{
	str+="#Mmenu0{position:absolute;top:" + menu_y[0] + "px;left:" + menu_x[0] + "px;visibility:hidden;}";
	str+="#Mmenu1{position:absolute;top:" + menu_y[1] + "px;left:" + menu_x[1] + "px;visibility:hidden;}";
	str+="#Mmenu2{position:absolute;top:" + menu_y[2] + "px;left:" + menu_x[2] + "px;visibility:hidden;}";
	str+="#Mmenu3{position:absolute;top:" + menu_y[3] + "px;left:" + menu_x[3] + "px;visibility:hidden;}";
	str+="#Mmenu4{position:absolute;top:" + menu_y[4] + "px;left:" + menu_x[4] + "px;visibility:hidden;}";
	

	}
	str+="</style>";
	document.write(str);
	
	<!--  submenu functions -->
	
	function hideall()
	{
		for(i=0;i<=4;i++) { 
			if(ie) eval("Mmenu"+i +".style.visibility='hidden';");
			else if (isMozilla){
				var objMDiv = document.getElementById("Mmenu"+i);
				objMDiv.style.visibility="hidden";
			}
			else  document.layers[i].visibility="hide";
			}
	}
	
	
	
	function menu(x){
		temp=x;
		//shideall();
		var winW,winH;
		if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		  winW = window.innerWidth;
		 }
		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		  winW = document.body.offsetWidth;
		 }
		}
		shideall();
		winW=winW-0;
		if(ie)eval("Mmenu"+ x).style.left = (winW>1024?(winW-1024)-((winW-1024)/2)+menu_x[x]:menu_x[x]-10)+"px";
		if(ie) eval("Mmenu"+ x +".style.visibility='visible';");
		
		else if (isMozilla)
		{
			var objMDiv = document.getElementById("Mmenu"+ x);
			objMDiv.style.left = (window.innerWidth>1024?(window.innerWidth-1024)-((window.innerWidth-1024)/2)+menu_x[x]:menu_x[x]-10)+"px";
			objMDiv.style.visibility="visible";
		}
		else  document.layers[x].visibility="show";
	}
	
		
	
	
	function smout(x,y){
		if (!isMozilla){
		eval("c"+x+y).style.backgroundColor = "#fbfbfb";
		eval("c"+x+y).style.color = "#000000";			}
		else{
			document.getElementById("c"+x+y).style.backgroundColor = "#fbfbfb";
			document.getElementById("c"+x+y).style.color = "#000000";
			}
	}

	function smover(x,y){
		if (!isMozilla){
			eval("c"+x+y).style.backgroundColor = "#5d83c1";
			eval("c"+x+y).style.color = "#ffffff";
			}
		else{
			document.getElementById("c"+x+y).style.backgroundColor = "#5d83c1";
			document.getElementById("c"+x+y).style.color = "#ffffff";
		}
	}
	
	<!--  inner submenu functions -->
	
	function shideall()
	{
		for(i=0;i<=4;i++) { 
			if(ie) eval("Mmenu"+i +".style.visibility='hidden';");
			else if (isMozilla){
				var objMDiv = document.getElementById("Mmenu"+i);
				objMDiv.style.visibility="hidden";
			}
			else  document.layers[i].visibility="hide";
			}
	}
	
	//alert(val);	
	//alert(linkPath);
	<!--  sub menus  -->
	if(!ie)
	document.write("<div id='mMenu' style='width:100%'><img src='images/spacer.gif' width='100%' height='0'></div>");
	
	document.write("<div id='Mmenu0'>");
	document.write("<table cellpadding=2 cellspacing=0 border=0 bgcolor='#f03c23' style='border:#5d83c1 1px solid; width:127px;'>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c00' name='c00' height='22' onmouseover=smover('0','0'); onmouseout=smout('0','0'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='fha_mortgage_calculator.html'>&nbsp;Mortgage Calculator</td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c01' name='c01' height='22' onmouseover=smover('0','1'); onmouseout=smout('0','1'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='fha_application.html'>&nbsp;Application</td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='font-size:12px; color:#000000; cursor:pointer;' id='c02' name='c02' height='22' onmouseover=smover('0','2'); onmouseout=smout('0','2'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='fha_faq.html'>&nbsp;FAQ's</td></tr>");
	document.write("</table>");
	document.write("</div>");
	
	document.write("<div id='Mmenu1'>");
	document.write("<table cellpadding=2 cellspacing=0 border=0 bgcolor='#ffffff' style='border:#5d83c1 1px solid; width:173px;'>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c10' name='c10' height='22' onmouseover=smover('1','0'); onmouseout=smout('1','0'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='reverse_mortgage_mortgage_calculator.html'>&nbsp;Mortgage Calculator</td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c11' name='c11' height='22' onmouseover=smover('1','1'); onmouseout=smout('1','1'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='reverse_mortgage_info_center.html'>&nbsp;Info Center</td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='font-size:12px; color:#000000; cursor:pointer;' id='c12' name='c12' height='22' onmouseover=smover('1','2'); onmouseout=smout('1','2'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='reverse_mortgage_faq.html'>&nbsp;FAQ's</td></tr>");
	document.write("</table>");
	document.write("</div>");
	
	document.write("<div id='Mmenu2'>");
	document.write("<table cellpadding=2 cellspacing=0 border=0 bgcolor='#ffffff' style='border:#5d83c1 1px solid; width:175px;'>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c20' name='c20' height='22' onmouseover=smover('2','0'); onmouseout=smout('2','0'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='eligible_property_types_commercial_loans.html'>&nbsp; </td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='font-size:12px; color:#000000; cursor:pointer;' id='c21' name='c21' height='22' onmouseover=smover('2','1'); onmouseout=smout('2','1'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='commercial_loans_application.html'>&nbsp;Application </td></tr>");
	document.write("</table>");
	document.write("</div>");
	
	document.write("<div id='Mmenu3'>");
	document.write("<table cellpadding=2 cellspacing=0 border=0 bgcolor='#ffffff' style='border:#5d83c1 1px solid; width:135px;'>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c30' name='c30' height='22' onmouseover=smover('3','0'); onmouseout=smout('3','0'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='hard_money_mortgage_calculator.html'>&nbsp;Mortgage Caculator</td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c31' name='c31' height='22' onmouseover=smover('3','1'); onmouseout=smout('3','1'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='hard_money_application.html'>&nbsp;Application</td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='font-size:12px; color:#000000; cursor:pointer;' id='c32' name='c32' height='22' onmouseover=smover('3','2'); onmouseout=smout('3','2'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='hard_money_faq.html'>&nbsp;FAQ’s</td></tr>");
	document.write("</table>");
	document.write("</div>");
	
	document.write("<div id='Mmenu4'>");
	document.write("<table cellpadding=2 cellspacing=0 border=0 bgcolor='#ffffff' style='border:#5d83c1 1px solid; width:179px;'>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='border-bottom:#5d83c1 1px solid; font-size:12px; color:#000000; cursor:pointer;' id='c40' name='c40' height='22' onmouseover=smover('4','0'); onmouseout=smout('4','0'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='conventional_loans_mortgage_calculator.html'>&nbsp;Mortgage Calculator</td></tr>");
	document.write(	"<tr bgcolor='#fbfbfb'><td style='font-size:12px; color:#000000; cursor:pointer;' id='c41' name='c41' height='22' onmouseover=smover('4','1'); onmouseout=smout('4','1'); class='menu_default_color' style='cursor:pointer; color:#ffffff;' align='left' onClick=location.href='conventional_loans_application.html'>&nbsp;Application </td></tr>");
	document.write("</table>");
	document.write("</div>");
	
