// JavaScript Document
function mmLoadMenus() {

  if (window.mm_menu_0507150048_0) return;

  window.mm_menu_0507150048_0 = new Menu("root",130,16,"Arial, Helvetica, sans-serif",11,"#fcfcfe","#336699","#336699","#ffffff","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);

  mm_menu_0507150048_0.addMenuItem("Real Estate Intro","location='/realestate.htm'");

  mm_menu_0507150048_0.addMenuItem("TransactionalPractice","location='/realestate_transactional.htm'");

  mm_menu_0507150048_0.addMenuItem("CommercialLeasing","location='/realestate_commercial.htm'");

  mm_menu_0507150048_0.addMenuItem("Coop-Condo","location='/realestate_coop_condo.htm'");

  mm_menu_0507150048_0.addMenuItem("Litigation","location='/realestate_litigation.htm'");

  mm_menu_0507150048_0.addMenuItem("OnlineServices","location='/online_realestate.htm'");

  mm_menu_0507150048_0.addMenuItem("1031 Exchange","location='/realestate_mortgage.htm'");

  mm_menu_0507150048_0.addMenuItem("RealEstatePortal","location='/realestate_portal.htm'");

   mm_menu_0507150048_0.fontWeight="bold";

   mm_menu_0507150048_0.hideOnMouseOut=true;

   mm_menu_0507150048_0.menuBorder=0;

   mm_menu_0507150048_0.menuLiteBgColor='#ffffff';

   mm_menu_0507150048_0.menuBorderBgColor='#555555';

   mm_menu_0507150048_0.bgColor='#ffffff';

  window.mm_menu_0507150621_1 = new Menu("root",130,16,"Arial, Helvetica, sans-serif",11,"#fcfcfe","#336699","#336699","#ffffff","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);

  mm_menu_0507150621_1.addMenuItem("Corporate Intro","location='/online_corporate.htm'");

  mm_menu_0507150621_1.addMenuItem("GeneralCounsel","location='/corporate_general.htm'");

  mm_menu_0507150621_1.addMenuItem("FormationIssues","location='/corporate_formation.htm'");

  mm_menu_0507150621_1.addMenuItem("Litigation","location='/corporate_litigation.htm'");

  mm_menu_0507150621_1.addMenuItem("OnlineServices","location='/online_corporate.htm'");

  mm_menu_0507150621_1.addMenuItem("CorporatePortal","location='/corporate_portal.htm'");

     mm_menu_0507150621_1.fontWeight="bold";

   mm_menu_0507150621_1.hideOnMouseOut=true;

   mm_menu_0507150621_1.menuBorder=0;

   mm_menu_0507150621_1.menuLiteBgColor='#ffffff';

   mm_menu_0507150621_1.menuBorderBgColor='#555555';

   mm_menu_0507150621_1.bgColor='#ffffff';

  window.mm_menu_0507150743_2 = new Menu("root",130,16,"Arial, Helvetica, sans-serif",11,"#fcfcfe","#336699","#336699","#ffffff","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);

  mm_menu_0507150743_2.addMenuItem("Technology Intro","location='/technology.htm'");

  mm_menu_0507150743_2.addMenuItem("ComputerLaw","location='/technology_computer.htm'");

  mm_menu_0507150743_2.addMenuItem("InternetLaw","location='/technology_internet.htm'");

  mm_menu_0507150743_2.addMenuItem("IntellectualProperty","location='/technology_intellectualproperty.htm'");

  mm_menu_0507150743_2.addMenuItem("Litigation","location='/technology_litigation.htm'");

  mm_menu_0507150743_2.addMenuItem("OnlineTrademark","location='/online_trademark.htm'");

  mm_menu_0507150743_2.addMenuItem("TechnologyPortal","location='/technology_portal.htm'");

     mm_menu_0507150743_2.fontWeight="bold";

   mm_menu_0507150743_2.hideOnMouseOut=true;

   mm_menu_0507150743_2.menuBorder=0;

   mm_menu_0507150743_2.menuLiteBgColor='#ffffff';

   mm_menu_0507150743_2.menuBorderBgColor='#555555';

   mm_menu_0507150743_2.bgColor='#ffffff';

  window.mm_menu_0507150908_3 = new Menu("root",130,16,"Arial, Helvetica, sans-serif",11,"#fcfcfe","#336699","#336699","#ffffff","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);

  mm_menu_0507150908_3.addMenuItem("HIPAA Intro","location='/hipaa.htm'");

  mm_menu_0507150908_3.addMenuItem("Privacy&Security","location='/hipaa_privacy.htm'");

  mm_menu_0507150908_3.addMenuItem("HIPAAPortal","location='/hipaa_portal.htm'");

     mm_menu_0507150908_3.fontWeight="bold";

   mm_menu_0507150908_3.hideOnMouseOut=true;

   mm_menu_0507150908_3.menuBorder=0;

   mm_menu_0507150908_3.menuLiteBgColor='#ffffff';

   mm_menu_0507150908_3.menuBorderBgColor='#555555';

   mm_menu_0507150908_3.bgColor='#ffffff';



  mm_menu_0507150908_3.writeMenus();

} // mmLoadMenus()







function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);



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_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 P7_Snap() { //v2.63 by PVII

 var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,tw,q0,xx,yy,w1,pa='px',args=P7_Snap.arguments;a=parseInt(a);

 if(document.layers||window.opera){pa='';}for(k=0;k<(args.length);k+=4){

 if((g=MM_findObj(args[k]))!=null){if((el=MM_findObj(args[k+1]))!=null){

 a=parseInt(args[k+2]);b=parseInt(args[k+3]);x=0;y=0;ox=0;oy=0;p="";tx=1;

 da="document.all['"+args[k]+"']";if(document.getElementById){

 d="document.getElementsByName('"+args[k]+"')[0]";if(!eval(d)){

 d="document.getElementById('"+args[k]+"')";if(!eval(d)){d=da;}}

 }else if(document.all){d=da;}if(document.all||document.getElementById){while(tx==1){

 p+=".offsetParent";if(eval(d+p)){x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));

 }else{tx=0;}}ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;

 if(tw==0||(navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)){

  ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);}else{

  w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;

  x=document.body.scrollLeft+event.clientX+bx;y=document.body.scrollTop+event.clientY;}}

 }else if(document.layers){x=g.x;y=g.y;q0=document.layers,dd="";for(var s=0;s<q0.length;s++){

  dd='document.'+q0[s].name;if(eval(dd+'.document.'+args[k])){x+=eval(dd+'.left');y+=eval(dd+'.top');

  break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);

 if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){

  xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);}

 e.left=xx+pa;e.top=yy+pa;}}}

}



function P7_setScroller(a,b,x,y) { //v2.9 by PVII

 var g,d,dd,w,ww,pa="";

 if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";}

 if((g=MM_findObj(a))!=null && (d=MM_findObj(b))!=null){

  if(g.p7Scroll){if((w=MM_findObj(g.p7Scroll))!=null){

   ww=(document.layers)?w:w.style;ww.visibility="hidden";}}

 g.p7Scroll=b;dd=(document.layers)?d:d.style;dd.left=parseInt(x)+pa;

 dd.top=parseInt(y)+pa;dd.visibility="visible";g.p7sCycle=0;

 if(document.layers){g.p7sTop=g.clip.top;g.p7sBot=g.clip.bottom;

  g.p7sRight=g.clip.right;g.p7sLeft=g.clip.left;g.p7sStartTop=parseInt(y);g.p7sStartLeft=parseInt(x);

 }else if(g.style.clip){var tc=g.style.clip;var j=tc.indexOf("(");

  tc=tc.substring(j+1,tc.length-1);var tr=tc.split(" ");

  if(tc.length < 1){tr[0]=0;tr[3]=0;tr[2]=g.style.pixelHeight;tr[1]=g.style.pixelWidth;}

  g.p7sTop=parseInt(tr[0]);g.p7sRight=parseInt(tr[1]);g.p7sBot=parseInt(tr[2]);


  g.p7sLeft=parseInt(tr[3]);g.p7sStartTop=parseInt(y);g.p7sStartLeft=parseInt(x);

 }else{g.p7sTop=0;g.p7sRight=g.offsetWidth;g.p7sBot=g.offsetHeight;

  g.p7sLeft=0;g.p7sStartTop=parseInt(y);g.p7sStartLeft=parseInt(x);}}

  g.toMove=true;

}



function P7_moveScroll(co,md,op,dy,cy) { //v2.9 by PVII

 var g,d,dd,x,y,h,w,tt,ff,m=false,pa="";

 op=parseInt(op);cy=parseInt(cy);dy=parseInt(dy);

 if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";}

 if((g=MM_findObj(co))==null){return;}

 if((d=MM_findObj(g.p7Scroll))==null){return;}

 var sp=parseInt(sp=g.P7Ssp),fr=parseInt(g.P7Sfr),ff=fr;

 if(op==2){g.p7sCycle=0;g.p7sCycDy=(dy>0)?dy:g.p7sCycDy;dy=0;op=3;}

 if(op==3){g.p7sCycle+=sp;ff=fr;if(parseInt(g.p7sCycle)>cy){

  op=2;g.p7sCycle=0;ff=g.p7sCycDy;}}g.P7Sop=op;if(dy>0){ff=dy;}

 var ti="g.p7Magic=setTimeout(\"P7_moveScroll('"+co+"','"+md+"',"+op+",0,"+cy+")\","+ff+")";

 if(op==2 || dy>0){clearTimeout(g.p7Magic);eval(ti);return;}

 dd=(document.layers)?d:d.style;x=parseInt(dd.left);y=parseInt(dd.top);

 if(document.all || document.getElementById){

  h=parseInt(d.offsetHeight);w=parseInt(d.offsetWidth);

  if(!h){h=parseInt(d.style.pixelHeight);w=parseInt(d.style.pixelWidth);}

 }else if(document.layers){h=parseInt(d.clip.height);w=parseInt(d.clip.width);}

 var st=0,rStart=parseInt(g.p7sStartLeft),tStart=parseInt(g.p7sStartTop);g.p7sH=h;g.p7sW=w;

 if(md=="Down"){tt=y-sp;st=parseInt(g.p7sBot)-h-tStart;

  if(tStart<0 && tt<tStart){dd.top=tStart+pa;

  }else if(tStart>=0 && tt<st){dd.top=st+pa;}else{dd.top=tt+pa;m=true;}}

 if(md=="Up"){tt=sp+y;var rEnd=tStart+h;if(tStart<0 && tt>rEnd){dd.top=rEnd+pa;

  }else if(tStart>=0 && tt>tStart){dd.top=tStart+pa;}else{dd.top=tt+pa;m=true;}}

 if(md=="Right"){tt=x-sp;st=parseInt(g.p7sRight)-w-rStart;

  if(rStart<0 && tt<rStart){dd.left=rStart+pa;

  }else if (rStart>=0 && tt<st){dd.left=st+pa;}else{dd.left=tt+pa;m=true;}}

 if(md=="Left"){tt=x+sp;var rEnd=rStart+w;if(rStart<0 && tt>rEnd){dd.left=rEnd+pa;

  }else if (rStart>=0 && tt>rStart){dd.left=rStart+pa;}else{dd.left=tt+pa;m=true;}}

 if(m && g.toMove){eval(ti);}else{if(g.P7Sflip==1){clearTimeout(g.p7Magic);var tj=0;

  eval("g.p7Magic=setTimeout(\"P7_runScroller('"+co+"','Reverse','Medium',0,0,0,1)\","+tj+")");

 }else{if(op>0 && g.toMove){

  g.p7sCycle=0;dd.top=g.p7sStartTop+pa;dd.left=g.p7sStartLeft+pa;eval(ti);}}}

}



function P7_runScroller(co,md,spd,op,dy,cy,flp) { //v2.9 by PVII

 var g,d,dd,rl=0;rt=0;pa='',sp=2,fr=10,slw=true,kl=true;

 if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& navigator.userAgent.indexOf("Opera")==-1){pa="px";}

 if(navigator.userAgent.indexOf("NT")>-1 || navigator.userAgent.indexOf("Windows 2000")>-1 ){slw=false;}

 if((g=MM_findObj(co))!=null){if(g.p7Scroll){

 if((d=MM_findObj(g.p7Scroll))!=null){dd=(document.layers)?d:d.style;

 if(md=="Resume" && g.P7Sspd){spd=g.P7Sspd;md=g.P7Smd;op=g.P7Sop;dy=0;cy=g.P7Scy;flp=g.P7Sflip;kl=false;}

 if(md=="Reverse" && g.P7Sspd){spd=g.P7Sspd;md=g.P7Smd;op=g.P7Sop;flp=g.P7Sflip;dy=0;cy=g.P7Scy;kl=false;g.p7sCycle=0;

  if(g.P7Smd == "Down"){md="Up";if(g.P7Sop>0){g.p7sStartTop=g.p7sStartTop-g.p7sH;}}

  if(g.P7Smd == "Up"){md="Down";if(g.P7Sop>0){g.p7sStartTop=g.p7sStartTop+g.p7sH;}}

  if(g.P7Smd == "Left"){md="Right";if(g.P7Sop>0){g.p7sStartLeft=g.p7sStartLeft+g.p7sW;}}

  if(g.P7Smd == "Right"){md="Left";if(g.P7Sop>0){g.p7sStartLeft=g.p7sStartLeft-g.p7sW;}}}

 if(spd=="Slow"){sp=(slw)?2:1;fr=(slw)?40:30;

 }else if(spd=="Medium"){sp=(slw)?4:1;fr=(slw)?40:10;

 }else{sp=(slw)?8:4;fr=(slw)?40:10;}

 if(md=="Stop"){g.toMove=false;clearTimeout(g.p7Magic);}else if(md=="Reset"){

  g.toMove=false;dd.top=g.p7sStartTop+pa;dd.left=g.p7sStartLeft+pa;

 }else{if(kl){g.P7Ssp=sp;g.P7Sfr=fr;}if(md=="Speed"){return;}

  g.toMove=true;clearTimeout(g.p7Magic);

  g.P7Smd=md;g.P7Sspd=spd;g.P7Sop=op;g.P7Sdy=dy;g.P7Scy=cy;g.P7Sflip=flp;

  eval("P7_moveScroll('"+co+"','"+md+"',"+op+","+dy+","+cy+")");}}}}

}



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 XMwriteCookie(n,i,t){

	var ep="";if (t){d = new Date();d.setTime(d.getTime()+(t*86400000));

	ep = "; expires="+d.toGMTString();}document.cookie = n+"="+i+ep+"; path=/";

}



function XMreadCookie(n){

	eq = n+"=";ca = document.cookie.split(';');for(var i=0;i<ca.length;i++) {

	c=ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);

	if (c.indexOf(eq) == 0) return c.substring(eq.length,c.length);}return '';

}



function XMkillCookie(n){

	XMwriteCookie(n,"",-1);

}



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_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 AddToFaves_hp(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function saveas(saveAs){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
	document.execCommand("SaveAs",false,saveAs);
  }
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
function checkForm(El)
{
	var tElement = El.getElementsByTagName("INPUT");
	for (var i=0; i<tElement.length; i++)
	{
		if ((tElement[i].getAttribute('required') != null) && (tElement[i].getAttribute('required') != '') && (tElement[i].value == ''))
		{
			//alert(tElement[i].getAttribute('required'));
			tElement[i].focus();
			return false;
		}
		if ((tElement[i].getAttribute('required') != null) && (tElement[i].getAttribute('required') != '') && (tElement[i].type == 'checkbox') && !tElement[i].checked)
		{
			alert(tElement[i].getAttribute('required'));
			tElement[i].focus();
			return false;
		}
		if ((tElement[i].getAttribute('equal') != null) && (tElement[i].getAttribute('equal') != ''))
		{
			var tt = document.getElementById(tElement[i].getAttribute('equal'));
			if ((tt != null) && (tt.value != tElement[i].value))
			{
				alert(tElement[i].getAttribute('equaltext'));
				tt.focus();
				return false;
			}
		}
		if ((tElement[i].getAttribute('minlength') != null) && (tElement[i].getAttribute('minlength') != '') && (tElement[i].value.length < tElement[i].getAttribute('minlength')))
		{
			alert(tElement[i].getAttribute('mintext'));
			tElement[i].focus();
			return false;
		}
		if ((tElement[i].getAttribute('is_email') != null) && (tElement[i].getAttribute('is_email') != ''))
		{
			var re = /^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-.]?[0-9a-zA-Z])*\.[a-wyz][a-z](g|l|m|pa|t|u|v)?$/;
			if (!tElement[i].value.match(re)) {
				//alert(tElement[i].getAttribute('is_email'));
				tElement[i].focus();
				return false;
			}
		}
		if ((tElement[i].getAttribute('is_float') != null) && (tElement[i].getAttribute('is_float') != '') && (tElement[i].value != ''))
		{
			if (parseFloat(tElement[i].value) != tElement[i].value)
			{
				alert(tElement[i].getAttribute('is_float'));
				tElement[i].focus();
				return false;
			}
		}
/*   if ((tElement[i].getAttribute('maxvalue') != null) && (tElement[i].getAttribute('maxvalue') != '') && (tElement[i].value+1 > tElement[i].getAttribute('maxvalue')+1))
		{
			alert(tElement[i].getAttribute('maxvaluetext'));
			tElement[i].focus();
			return false;
		}*/
	}

	tElement = El.getElementsByTagName("SELECT");
	for (var i=0; i<tElement.length; i++)
	{
		if ((tElement[i].getAttribute('required') != null) && (tElement[i].getAttribute('required') != '') && (tElement[i].value == ''))
		{
			alert(tElement[i].getAttribute('required'));
			tElement[i].focus();
			return false;
		}
	}
	return true;
}
function setCookie( name, value, expires, path, domain, secure ) {
	var today = new Date();
	today.setTime( today.getTime() );
	if ( expires ) {
		expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );
	document.cookie = name+'='+escape( value ) +
		( ( expires ) ? ';expires='
+expires_date.toGMTString() : '' ) +
//expires.toGMTString()
		( ( path ) ? ';path=' + path : '' ) +
		( ( domain ) ? ';domain=' + domain : '' ) +
		( ( secure ) ? ';secure' : '' );
}
function getCookie( name ) {
	var start = document.cookie.indexOf( name + '=' );
	var len = start + name.length + 1;
	if ( ( !start ) && ( name != document.cookie.
substring( 0, name.length ) ) ) {
		return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ';', len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}