	var agt=navigator.userAgent.toLowerCase();
	var is_safari = agt.indexOf("safari")!=-1;

	function getdropdowns(){
		var neh;
		var dn = 'hp';startdiv(dn,'150');
		neh = 'oddm';
		bi('/'+homepg,dn,'Home Page',neh);
		bi('/florida_orlando_area_map.asp',dn,'Area Map',neh);
		bi('/florida_investment_property/',dn,'New Homes',neh);
		bi('/florida_property_enquiry.asp',dn,'Enquiry Form',neh);
		bi('/testimonials.asp',dn,'Testimonials',neh);
		bi('/why_pilgrim.asp',dn,'Why Pilgrim',neh);
		bi('/your_next_step.asp',dn,'Your Next Step',neh);
		bi('/questions_and_answers.asp',dn,'Q &amp; A',neh);
		bi('/partner_opportunities.asp',dn,'Agent Opportunities',neh);
		bi('/about_us.asp',dn,'About Us',neh);
		bi('/contact_us.asp',dn,'Contact Us',neh);
		bi('http://www.pilgrimhomes.com/',dn,'The Pilgrim Index',neh);
		enddiv(); 
		dn = 'prop';startdiv(dn,'150');
		neh = 'evem';
		bi('/florida_investment_property/',dn,'Property Overview',neh);
		bi('/florida_investment_property/investment_homes.asp',dn,'New Homes',neh);
		bi('/florida_investment_property/florida_real_estate.asp',dn,'Resale Homes',neh);
		bi('/florida_investment_property/orlando_florida_area_map.asp',dn,'Area Map',neh);
		bi('/florida_investment_property/selling_your_florida_home.asp',dn,'Selling Your Home',neh);
		bi('/florida_investment_property/furniture.asp',dn,'Furniture',neh);
		bi('/florida_investment_property/florida_property_enquiry.asp',dn,'Enquiries',neh);
		bi('/contact_us.asp?m=2',dn,'Contact Us',neh);
		enddiv(); 
		dn = 'mw';startdiv(dn ,'150');
		neh = 'oddm';
		bi('/florida_market_watch/',dn,'Florida Market Watch',neh);
		bi('/florida_market_watch/article.asp',dn,'Articles of Interest',neh);
		bi('/direct_finance/foreign_exchange.asp?m=mw',dn,'Currency Exchange',neh);
		enddiv();
		dn = 'rent';startdiv(dn,'150');
		neh = 'evem';
		bi('/orlando_florida_villa_rentals/',dn,'Florida Villa Rentals',neh);
		bi('/orlando_florida_villa_rentals/disney_holiday_homes.asp',dn,'Find a Florida Villa',neh);
		bi('/orlando_florida_villa_rentals/orlando_villas_map.asp',dn,'Map of Orlando',neh);
		bi('/orlando_florida_villa_rentals/last_minute_deals.asp',dn,'Last Minute Deals',neh);
		bi('/orlando_florida_villa_rentals/rental_villa_price_list.asp',dn,'Price List',neh);
		bi('/orlando_florida_villa_rentals/enquiry_form.asp',dn,'Enquiry Form',neh);
		bi('/orlando_florida_villa_rentals/rent_your_villa.asp',dn,'Rent Your Villa',neh);
		bi('/contact_us.asp?m=3',dn,'Contact Us',neh);
		bi('/orlando_florida_villa_rentals/terms_and_conditions.asp',dn,'Rental Terms and Conditions',neh);
		enddiv();
		dn = 'fin';startdiv(dn,'150');
		neh = 'oddm';
		bi('/direct_finance/',dn,'Pilgrim Direct Finance',neh);
		bi('/direct_finance/enquiry_form.asp',dn,'Finance Enquiry Form',neh);
		bi('/direct_finance/foreign_exchange.asp',dn,'Foreign Exchange',neh);
		bi('/partner_opportunities.asp?m=bf',dn,'Agent Opportunities',neh);
		bi('/contact_us.asp?m=4',dn,'Contact Us',neh);
		enddiv();
		dn = 'mngmt';startdiv(dn,'150');
		neh = 'evem';
		bi('/property_management/',dn,'Property Management',neh);
		bi('/property_management/property_management.asp',dn,'Enquiry Form',neh);
		bi('/contact_us.asp?m=5',dn,'Contact Us',neh);
		enddiv();
	// 1/3
	}
	
	function startdiv(idval,w){
		var s = document.write ('<div id="'+idval+'"><table width="'+w+'" border="0" cellpadding="0" cellspacing="0" class="mt">');
	}
	function enddiv(){
		var s = document.write ("</table></div>");
	}
	function bi(link,div,name,neh){
		if (neh == 'oddm'){
			var s = document.write ("<tr><td onClick=\"lnk('"+link+"');\" onMouseOver=\"menuovr('"+div+"','"+pn(name)+"',this);\" onMouseOut=\"menuout('"+div+"',this);\" class=\"nav2 "+neh+"\">"+name+"</td></tr>");}
		else {
			var s = document.write ("<tr><td onClick=\"lnk('"+link+"');\" onMouseOver=\"menuovr2('"+div+"','"+pn(name)+"',this);\" onMouseOut=\"menuout2('"+div+"',this);\" class=\"nav2 "+neh+"\">"+name+"</td></tr>");}
	}
	//function mh(div,name){
	//	var s = document.write ("<tr><td onMouseOver=\"menuovr3('"+div+"','"+pn(name)+"',this);\" onMouseOut=\"menuout3('"+div+"',this);\" class=\"nav3\">"+name+"</td></tr>");
	//}
	function pn(name){
		var s=name;if(s.indexOf("<")>0) {return(s.slice(0,s.indexOf("<")-1));}return(s);
	}
	function lnk(link){
		internal_clicked = true;
		window.open(link,'_self');
	}
	function mainovr(div,status){
		if(is_safari){
			bHover=status;window.status=status;setDD(div,status,false);}
		else{
			bHover=status;window.status=status;setTimeout('setDD(\'' + div + '\', \'' + status + '\', false)',0);}
	}
	function mainout(div){
		bHover='';window.status='';setDDTimeout(div);
	}
	function menuovr(div, link, item){
		window.status=link;item.style.backgroundColor='#B9D0FF';setDD(div,'',true);
	}
	function menuovr2(div, link, item){
		window.status=link;item.style.backgroundColor='#CEDEFF';setDD(div,'',true);
	}
	//function menuovr3(div, link, item){
	//	window.status=link;item.style.backgroundColor='#FFFFFF';setDD(div,'',true);
	//}
	function imgovr(div){
	}
	function menuout(div, item){
		setDDTimeout(div);item.style.backgroundColor='#CEDEFF';
	}
	function menuout2(div, item){
		setDDTimeout(div);item.style.backgroundColor='#B9D0FF';
	}
	//function menuout3(div, item){
	//	setDDTimeout(div);item.style.backgroundColor='#FFFFFF';
	//}
	function findDiv(n, d) { 
		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=findDiv(n,d.layers[i].document);
	  if(!x && document.getElementById) x=document.getElementById(n); return x;
	}
	function tNav() { 	
		var i,p,v,obj,args=tNav.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=findDiv(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
	    obj.visibility=v; }    
	}
	function hideDDs(sect) {
		tNav('hp','','hide');tNav('prop','','hide');tNav('mw','','hide');tNav('mngmt','','hide');tNav('usa','','hide');tNav('rent','','hide');tNav('fin','','hide');showElement('SELECT');showElement('OBJECT');showElement('EMBED');
	// 2/3 -> css
	}
	function hideDD(sect) {
		tNav(sect,'','hide');hideDDs(sect);
	}
	var secSet = null;
	var activeTimer = null;
	var bHover = '';
	var img = '';
	function setDD(sect, windowStatusVal, bshow) {
		hideDDs(sect);
		if ((bHover==windowStatusVal)||(bshow)){
			tNav(sect,'','show');
			if (secSet != null) window.clearTimeout(secSet);
			if (document.all)
			{
			hideElement('SELECT', document.all[sect]); 
			//hideElement('OBJECT', document.all[sect]); 
			hideElement('EMBED', document.all[sect]); 
			}
			// NEH hideElement('SELECT', document.getElementById[sect]); 
			// NEH hideElement('OBJECT', document.getElementById[sect]); 
			// NEH hideElement('EMBED', document.getElementById[sect]); 
		}
	}
	function setDDTimeout(sect){
		if (secSet != null) window.clearTimeout(secSet);
		secSet = window.setTimeout('hideDD("' + sect + '")',500);
	}

	function hideElement( elmID, overDiv ) {
	  if(document.all) {
	  // NEH if(document.getElementById) {
	    for(i = 0; i < document.all.tags( elmID ).length; i++) {
		// NEH for(i = 0; i < document.getElementsByTagName( elmID ).length; i++) {
	      obj = document.all.tags( elmID )[i];
		 // NEH obj = document.getElementsByTagName( elmID )[i];
	      if(!obj || !obj.offsetParent) continue;
	      // NEH Find the element's offsetTop and offsetLeft relative to the BODY tag.
		  objLeft   = obj.offsetLeft - overDiv.offsetParent.offsetLeft;
	      objTop    = obj.offsetTop;
	      objParent = obj.offsetParent;
	      while(objParent.tagName.toUpperCase() != 'BODY') {
	        objLeft  += objParent.offsetLeft;
	        objTop   += objParent.offsetTop;
	        objParent = objParent.offsetParent;}
	      objHeight = obj.offsetHeight;
	      objWidth  = obj.offsetWidth;

//alert(objLeft + "\n" + objTop + "\n" + objParent + "\n" + objHeight+ "\n" + objWidth);	      
//alert(overDiv.offsetLeft + "\n" + overDiv.offsetWidth + "\n" + overDiv.offsetParent.offsetTop + "\n" + overDiv.offsetHeight + "\n" + overDiv.offsetTop + "\n" + overDiv.offsetLeft);	      

	      if((overDiv.offsetLeft + overDiv.offsetWidth) <= objLeft);
	      else if((overDiv.offsetParent.offsetTop + overDiv.offsetHeight + 20) <= objTop);
	      else if(overDiv.offsetParent.offsetTop >= eval(objTop + objHeight));
	      else if(overDiv.offsetLeft >= eval(objLeft + objWidth));
	      else {
	        obj.style.visibility = 'hidden';
	      }

	    }
	  }
	}

	function showElement(elmID) {
	  if(document.all) {
	  // NEH if(document.getElementById) {
	    for(i = 0; i < document.all.tags( elmID ).length; i++) {
		// NEH for(i = 0; i < document.getElementsByTagName( elmID ).length; i++) {
	      obj = document.all.tags(elmID)[i];
		  // NEH obj = document.getElementsByTagName(elmID)[i];
	      if(!obj || !obj.offsetParent) continue;
	      obj.style.visibility = '';
	    }
	  }
	}