// JavaScript Document

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_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_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 MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function displayItem1(cmn)
{document.getElementById("td" + cmn).style.color='#FFFFFF';
 document.getElementById("td" + cmn).style.background='#17694E';
 }


function displayItem2(cmn)
{document.getElementById("td" + cmn).style.color='#000000';
 document.getElementById("td" + cmn).style.background='#9CB669';
 }


function resetColor()
{
for(i=1; i<=4; i++)
document.getElementById("td" + i).style.color='#000000';
}

function SwapImage(obj,which, format){
	obj.src = 'images/' + obj.name + which + format;
}

function displayHeader()
{
document.write ("<table width=760 border=0 align=center cellpadding=0 cellspacing=0>" +
  "<tr>" +
    "<td width=22><img src='images/L-flower.gif' /></td>" +
	
    "<td valign=top background='images/headerTree1.jpg'>" +
	
	  "<table width=445 border=0 cellspacing=0 cellpadding=0>" +
        "<tr><td><img src='images/sp.gif' width=10 height=33 /></td>" +
		"<td align=right valign=bottom class=topMenu><a href='http://www.geminirealtyli.com' class=topMenu >Home</a>&nbsp;|&nbsp;<a href='longisland.html' class=topMenu >About Long Island</a>&nbsp;|&nbsp;<a href='about-gemini-realty.html' class=topMenu>About Gemini Realty</a>&nbsp;|&nbsp;<a href='contact-gemini-realty.html' class=topMenu>Contact Us</a>&nbsp;|&nbsp;<a href='sitemap-gemini-realty.html' class=topMenu>Site Map</a></td></tr>" +
      "</table>" +
	
	"</td>" +
	
    "<td width=22><img src='images/R-flower.gif' /></td>" +
  "</tr>" +
"</table>" +


"<table width=760 border=0 align=center cellpadding=0 cellspacing=0>" +
  "<tr>" +
    "<td width=48><img src='images/hdr1_01.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_02.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_03.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_04.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_05.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_06.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_07.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_08.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_09.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_10.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_11.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_12.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_13.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_14.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_15.jpg' /></td>" +
    "<td width=48><img src='images/hdr1_16.jpg' /></td>" +
  "</tr>" +
  
"</table>");

}



function displayRMenu1()
{
var current = GetParam();
//alert(current);
//return;
 

document.write ("<table width=164 border=0 cellspacing=0 cellpadding=0>" +
      "<tr>" +
        "<td><img src='images/sp.gif' height=17 /></td>" +
      "</tr>" +
      "<tr>" +
        "<td><a href='http://www.geminirealtyli.com'><img src='images/home_menu.gif' alt='Gemini Realty Home' name=home_menu border=0 id=home onmouseover=SwapImage(this,'_roll','.gif') onmouseout=SwapImage(this,'','.gif') /></a></td>" +
      "</tr>" +
      "<tr>" +
        "<td background='images/home_menubg.gif'>" +
  
  "<table width=143 border=0 align=center cellpadding=1 cellspacing=0 class=RMenu1 >" +
    "<tr>" +
            "<td colspan=2 ><img src='images/sp.gif' width=143 height=3 /></td>" +
          "</tr>" +
		  
          "<tr id='td1' height=25>");
document.write("<td background='images/");
document.write((current =='about-gemini-realty.html')? "RMactive.gif'>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('1'); onmouseout=displayItem2('1'); onclick=window.location.href='about-gemini-realty.html'>");
document.write("<img src=images/wht-arrow.gif /></td>");
document.write("<td width=125 background='images/");
document.write((current =='about-gemini-realty.html')? "RMactive.gif'><font color='#FFFFFF'>About Gemini</font>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('1'); onmouseout=displayItem2('1'); onclick=window.location.href='about-gemini-realty.html'>About Gemini");
document.write("</td>");
document.write("</tr>" +
		  
		  
          "<tr id=td2  height=25 >");
document.write("<td background='images/");
document.write((current =='gemini-real-property-search.html')? "RMactive.gif'>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('2'); onmouseout=displayItem2('2'); onclick=window.location.href='gemini-real-property-search.html'>");
document.write("<img src=images/wht-arrow.gif /></td>");
document.write("<td width=125 background='images/");
document.write((current =='gemini-real-property-search.html')? "RMactive.gif'><font color='#FFFFFF'>Search for Homes</font>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('2'); onmouseout=displayItem2('2'); onclick=window.location.href='gemini-real-property-search.html'>Search for Homes");
document.write("</td>");
document.write("</tr>" +		  
		  		  
		  
          "<tr id=td3  height=25 >");
document.write("<td background='images/");
document.write((current =='buying-a-home.html')? "RMactive.gif'>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('3'); onmouseout=displayItem2('3'); onclick=window.location.href='buying-a-home.html'>");
document.write("<img src=images/wht-arrow.gif /></td>");
document.write("<td width=125 background='images/");
document.write((current =='buying-a-home.html')? "RMactive.gif'><font color='#FFFFFF'>Buying Checklist</font>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('3'); onmouseout=displayItem2('3'); onclick=window.location.href='buying-a-home.html'>Buying Checklist");
document.write("</td>");
document.write("</tr>" +	
		  
		  
          "<tr id=td4  height=25 >");
document.write("<td background='images/");
document.write((current =='selling-a-home.html')? "RMactive.gif'>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('4'); onmouseout=displayItem2('4'); onclick=window.location.href='selling-a-home.html'>");
document.write("<img src=images/wht-arrow.gif /></td>");
document.write("<td width=125 background='images/");
document.write((current =='selling-a-home.html')? "RMactive.gif'><font color='#FFFFFF'>Selling Checklist</font>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('4'); onmouseout=displayItem2('4'); onclick=window.location.href='selling-a-home.html'>Selling Checklist");
document.write("</td>");
document.write("</tr>" +

		  
          "<tr id=td5  height=25 >");
document.write("<td background='images/");
document.write((current =='lending.html')? "RMactive.gif'>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('5'); onmouseout=displayItem2('5'); onclick=window.location.href='lending.html'>");
document.write("<img src=images/wht-arrow.gif /></td>");
document.write("<td width=125 background='images/");
document.write((current =='lending.html')? "RMactive.gif'><font color='#FFFFFF'>Home Mortgage</font>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('5'); onmouseout=displayItem2('5'); onclick=window.location.href='lending.html'>Home Mortgage");
document.write("</td>");
document.write("</tr>" +

		  
          "<tr id=td6  height=25 >");
document.write("<td background='images/");
document.write((current =='longisland.html')? "RMactive.gif'>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('6'); onmouseout=displayItem2('6'); onclick=window.location.href='longisland.html'>");
document.write("<img src=images/wht-arrow.gif /></td>");
document.write("<td width=125 background='images/");
document.write((current =='longisland.html')? "RMactive.gif'><font color='#FFFFFF'>About Long Island</font>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('6'); onmouseout=displayItem2('6'); onclick=window.location.href='longisland.html'>About Long Island");
document.write("</td>");
document.write("</tr>" +		  

		  
    "<tr id=td7  height=25 style.cursor='hand' >");
document.write("<td background='images/");
document.write((current =='property-management.html')? "RMactive.gif'>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('7'); onmouseout=displayItem2('7'); onclick=window.location.href='property-management.html'>");
document.write("<img src=images/wht-arrow.gif /></td>");
document.write("<td width=125 background='images/");
document.write((current =='property-management.html')? "RMactive.gif'><font color='#FFFFFF'>Property Mgt.</font>" : "RMinactive.gif' style='cursor:pointer' onMouseOver=displayItem1('7'); onmouseout=displayItem2('7'); onclick=window.location.href='become-agent.html'>Become an Agent");
document.write("</td>");
document.write("</tr>" +

		  
          "<tr>" +
            "<td colspan=2 ><img src='images/sp.gif' width=143 height=3 /></td>" +
          "</tr>" +
        "</table>" +
  
  "</td>" +
      "</tr>" +
      "<tr>" +
        "<td><img src='images/home_Rmenubtom.gif' width=164 height=5 /></td>" +
      "</tr>" +
    "</table>");
 
}
 
function GetParam()
{
 
//source = document.location.pathname; 
source = document.location.href; 
 
mystring = source.split("/");
//alert(mystring[mystring.length - 1]);
return mystring[mystring.length - 1]
  
}








/* function displayRMenu1()
{
document.write ("<table width=164 border=0 cellspacing=0 cellpadding=0>" +
      "<tr>" +
        "<td><img src='images/sp.gif' height=17 /></td>" +
      "</tr>" +
      "<tr>" +
        "<td><a href='index.html'><img src='images/home_menu.gif' alt='Gemini Realty Home' name=home_menu border=0 id=home onmouseover=SwapImage(this,'_roll','.gif') onmouseout=SwapImage(this,'','.gif') /></a></td>" +
      "</tr>" +
      "<tr>" +
        "<td background='images/home_menubg.gif'>" +
		
		"<table width=143 border=0 align=center cellpadding=1 cellspacing=0 class=RMenu1 >" +
		  "<tr>" +
            "<td colspan=2 ><img src='images/sp.gif' width=143 height=3 /></td>" +
          "</tr>" +
          "<tr id=td1  height=25 >" +
		    "<td style='cursor:pointer' width=18 onMouseOver=displayItem1('1'); onmouseout=displayItem2('1'); ><img src=images/wht-arrow.gif /></td>" +
		    "<td style='cursor:pointer' width=125 onMouseOver=displayItem1('1'); onmouseout=displayItem2('1'); onclick=window.location.href='about-gemini-realty.html' >About Us </td>" +
          "</tr>" +
          "<tr id=td2  height=25 >" +
		    "<td style='cursor:pointer' onMouseOver=displayItem1('2'); onmouseout=displayItem2('2'); ><img src=images/wht-arrow.gif /></td>" +
            "<td style='cursor:pointer' onMouseOver=displayItem1('2'); onmouseout=displayItem2('2'); onclick=window.location.href='buying-a-home.html' >Buying a Home </td>" +
          "</tr>" +
          "<tr id=td3  height=25 >" +
		    "<td style='cursor:pointer' onMouseOver=displayItem1('3'); onmouseout=displayItem2('3'); ><img src=images/wht-arrow.gif /></td>" +
            "<td style='cursor:pointer' onMouseOver=displayItem1('3'); onmouseout=displayItem2('3'); onclick=window.location.href='selling-a-home.html' >Selling a Home </td>" +
          "</tr>" +
          "<tr id=td4  height=25 >" +
		    "<td style='cursor:pointer' onMouseOver=displayItem1('4'); onmouseout=displayItem2('4'); ><img src=images/wht-arrow.gif /></td>" +
            "<td style='cursor:pointer' onMouseOver=displayItem1('4'); onmouseout=displayItem2('4'); onclick=window.location.href='gemini-real-property-search.html' >Property Search </td>" +
          "</tr>" +
          "<tr id=td5  height=25 >" +
		    "<td style='cursor:pointer' onMouseOver=displayItem1('5'); onmouseout=displayItem2('5'); ><img src='images/wht-arrow.gif' /></td>" +
            "<td style='cursor:pointer' onMouseOver=displayItem1('5'); onmouseout=displayItem2('5'); onclick=window.location.href='lending.html' >Lending</td>" +
          "</tr>" +
          "<tr id=td6  height=25 >" +
		    "<td style='cursor:pointer' onMouseOver=displayItem1('6'); onmouseout=displayItem2('6'); ><img src=images/wht-arrow.gif /></td>" +
            "<td style='cursor:pointer' onMouseOver=displayItem1('6'); onmouseout=displayItem2('6'); onclick=window.location.href='longisland.html' >Long Island </td>" +
          "</tr>" +
		  "<tr id=td7  height=25 style.cursor='hand' >" +
		    "<td style='cursor:pointer' onMouseOver=displayItem1('7'); onmouseout=displayItem2('7'); ><img src='images/wht-arrow.gif' /></td>" +
            "<td style='cursor:pointer' onMouseOver=displayItem1('7'); onmouseout=displayItem2('7'); onclick=window.location.href='become-agent.html' >Become an Agent</td>" +
          "</tr>" +
          "<tr>" +
            "<td colspan=2 ><img src='images/sp.gif' width=143 height=3 /></td>" +
          "</tr>" +
        "</table>" +
		
		"</td>" +
      "</tr>" +
      "<tr>" +
        "<td><img src='images/home_Rmenubtom.gif' width=164 height=5 /></td>" +
      "</tr>" +
    "</table>");

}
*/

function displayRMenu2()
{
document.write ("<table width=164 border=0 cellspacing=0 cellpadding=0>" +
        "<tr>" +
          "<td><img src='images/R-menu2top.gif' /></td>" +
        "</tr>" +
        "<tr>" +
          "<td background='images/R-menu2bg.jpg' ><table width=143 border=0 align=center cellpadding=1 cellspacing=0 class=RMenu2 >" +
              "<tr>" +
                "<td colspan=2><img src='images/sp.gif' width=143 height=3 /></td>" +
              "</tr>" +
              "<tr>" +
                "<td width=18 >&nbsp;</td>" +
                "<td width=125 ><strong>Sellers: </strong></td>" +
              "</tr>" +
              "<tr height=25 >" +
                "<td>&nbsp;</td>" +
                "<td>Call or Email Us <br /> About Seller Incentives</td>" +
              "</tr>" +
              "<tr>" +
                "<td height=5 colspan=2 ><img src='images/sp.gif' height=5 /></td>" +
              "</tr>" +
              "<tr>" +
                "<td>&nbsp;</td>" +
                "<td>Feel free to call <br /> our office at:<br /> <b><big>(516) 282-0137</big></b></td>" +
              "</tr>" +
              "<tr height=5 >" +
                "<td height=5 colspan=2 ><img src='images/sp.gif' height='5' /></td>" +
              "</tr>" +
              "<tr>" +
                "<td>&nbsp;</td>" +
                "<td></td>" +
              "</tr>" +
              "<tr>" +
                "<td colspan=2><img src='images/sp.gif' width=143 height=3 /></td>" +
              "</tr>" +
          "</table></td>" +
        "</tr>" +
        "<tr>" +
          "<td><img src='images/R-menu2btom.gif' height=8 /></td>" +
        "</tr>" +
      "</table>");

}


function displayFooter()
{
document.write ("<table width=760 border=0 align=center cellpadding=0 cellspacing=0>" +
   "<tr>" +
     "<td width=23 bgcolor=#EFEEED><img src=images/sp.gif width=23 height=23 /></td>" +
     "<td width=573 bgcolor=#EFEEED>" +
	     "<table width=445 border=0 cellspacing=0 cellpadding=0>" +
         "<tr>" +
           "<td><img src=images/sp.gif width=10 /></td>" +
           "<td align=right valign=bottom class=topMenu><a href='http://www.geminirealtyli.com' class=topMenu >Home</a>&nbsp;|&nbsp;<a href='longisland.html' class=topMenu >Long Island, New York</a>&nbsp;|&nbsp;<a href='about-gemini-realty.html' class=topMenu>Real Estates Agents</a>&nbsp;|&nbsp;<a href='contact-gemini-realty.html' class=topMenu>Contact Us</a>&nbsp;|&nbsp;<a href='sitemap-gemini-realty.html' class=topMenu>Site Map</a></td>" +
         "</tr>" +
         "</table>" +
	 "</td>" +
	 "<td width=164 valign=top bgcolor=#989898>&nbsp;</td>" +
   "</tr>" +

   "<tr>" +
     "<td bgcolor=#006C4F><img src=images/sp.gif width=23 height=48 /></td>" +
     "<td bgcolor=#006C4F class=Footer>Copyright 2000-2006 Long Island Real Estate Services<br />5372 Merrick Road | Massapequa, New York 11758<br />" +
     "<a href=mailto:info@geminirealtyli.com class=Footer><b>Email info@geminirealtyli.com</b></a> <b>Tel (516) 282-0137</b> </td>" +
     "<td valign=middle align=center ><a href='http://www.searchen.com' target=_blank ><img src='images/searchen.gif' border='0' ></a></td>" +
   "</tr>" +
 "</table>");

}



function displayFooterLogo()
{
document.write ("<table width=760 height=120 border=0 align=center cellpadding=0 cellspacing=0>" +
   "<tr>" +
     "<td width=596 align=right><img src='images/geminilogo1.gif' width=88 height=120 /></td>" +
     "<td width=164 bgcolor=#D3DEE6><p><img src='images/geminilogo2.gif' width=88 height=120 /></p></td>" +
   "</tr>" +
"</table>");

}