// 	CausinLaw.com General API(JavaScript)
// 	Author : EJFIIIWebDesign.com

//	Browser Brand Determination
	var isIE=false; var isNN=false; var isOP=false; isFF=false; 
	if (navigator.userAgent.indexOf("Opera")!=-1) isOP=true;
	if ((navigator.appName.indexOf("Microsoft")!=-1) && (navigator.userAgent.indexOf("Opera")==-1)) isIE=true;
	if (navigator.userAgent.indexOf("Firefox")!=-1) isFF=true;
	if ((navigator.appName.indexOf("Netscape")!=-1) && (navigator.userAgent.indexOf("Firefox")==-1)) isNN=true;

//	Launch Google Maps pop-up Window
	function launchMap() {
		popUpWin=window.open("http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=102350236807590028947.000480494a6e81bd27543&ll=40.664168,-73.708735&spn=0.024447,0.038581&t=p&output=embed", "map", "width=425px,height=350px,toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,location=0");
		if (window.focus) {popUpWin.focus();}
		}

//	Reposition Content for Window Containers set Smaller than Content
// 	Necessary to prevent non-scrollable off screen content with negative margin style sheet centering method
	function checkVerticalPosition() {
	var viewHeight = 0, contentHeight = 700; thresholdHeight = 720;

	// 	Determine Available Window Size
  		if (isIE) {viewHeight = document.documentElement.clientHeight;}
		else{viewHeight = window.innerHeight;} 

	// 	Set Content Window Coordinates
		if (viewHeight < thresholdHeight) {
			document.getElementById('verticalPosition').style.top = ((contentHeight/2)+10)+"px";
			}
		}

//	Launch Terms of Use Disclaimer Pop-Up Window
	function launchTerms() {
		popUpWin=window.open("","terms", "width=420px,height=270px,toolbar=0,status=0,menubar=0,scrollbars=0,resizable=1,location=0");
		if (window.focus) {popUpWin.focus();}
		popUpCode="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'\n    'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n\n<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n<head>\n\n<meta http-equiv='content-type' content='text/html; charset=iso-8859-1' />\n<meta http-equiv='content-lauguage' content='en' />\n<meta http-equiv='imagetoolbar' content='no' />\n<meta name='author' content='EJFIII Web Design - JavaScript Created xHTML' />\n<meta name='copyright' content='2010 Harriet Causin, Esq.' />\n\n<title>Harriet Causin, Esq. - WebSite Terms of Use</title>\n\n";
		popUpCode+="<link rel='stylesheet' href='clStyle.css' type='text/css' />\n</head>\n\n";
		popUpCode+="<body>\n";
		popUpCode+="<span class='subHeading'>HARRIET CAUSIN, Esq. - WEBSITE TERMS OF USE</span><br />\n";
		popUpCode+="<p>PLEASE BE ADVISED THAT THE INFORMATION CONTAINED IN THIS WEBSITE IS GENERAL INFORMATION REGARDING THE LAW.  THE LAW IS QUITE COMPLEX AND IS CONSTANTLY CHANGING. NOTHING CONTAINED HEREIN CONSTITUTES THE FORMAL RENDERING OF LEGAL ADVICE, NOR CAN THE CREATION OF AN ATTORNEY/CLIENT RELATIONSHIP BE FORMED BY MERELY VISITING THIS WEBSITE.  A SIGNED AGREEMENT IS REQUIRED BY THIS LAW FIRM TO CREATE AN ATTORNEY/CLIENT RELATIONSHIP.</p>\n";
		popUpCode+="<p>WE WILL TREAT ANY INQUIRIES WITH THE UTMOST CARE. HOWEVER, BE ADVISED THAT ANY COMMUNICATION VIA THE INTERNET IS NOT CONFIDENTIAL.  FOR SUCH MATTERS, PLEASE TELEPHONE OR VISIT IN PERSON.</p>\n";
		popUpCode+="\n<div align='right'><a href='javascript: this.window.close();'>[ CLOSE WINDOW ] </a></div>\n\n\n</body></html>";
		popUpWin.document.write(popUpCode);
		popUpWin.document.close();
		}
