		browserOk = (
			((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 ))
			||
			((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
			||
			((navigator.appName == "Opera") && (parseInt(navigator.appVersion) >= 7 ))
		);
		
		//Debug.writeln(navigator.appName);

		imgon=new Array();
		imgoff=new Array();

		list = new Array("nav_home","nav_about","nav_philosophy","nav_practice","nav_contact");

		for(i = 0; i < list.length; i++){
			var imgname = list[i];
			imgon[imgname] = new Image();
			imgon[imgname].src = "navigation\\"+imgname+"_on.gif";
			imgoff[imgname] = new Image();
			imgoff[imgname].src = "navigation\\"+imgname+".gif";
		}

		imageRef="document.images";

		function msover(which) {
			if (browserOk) {
				eval(imageRef + '["' + which + '"].src = imgon[which].src');
			}
		}

		function msout(which) {
			if (browserOk) {
				eval(imageRef + '["' + which + '"].src = imgoff[which].src');
			}
		}
		
		function gettext(fname)
		{
			//if(!System.IO.File.Exists(fname))
			//{
			//	document.write("File does not exist: " + fname);
			//	return;
			//}
			//var sr = System.IO.File.OpenText(fname);
			//document.write(sr.ReadToEnd());
			//sr.Close();
			//myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
			//obj = WScript.createobject("Scripting.FileSystemObject");
			//myFile = myActiveXObject.GetFile(fname);
			//alert(fname);
			//document.write(fname);
			//Response.write(fname);
			//var wdApp = new ActiveXObject("Word.Application");
			//document.write(wdApp.Version);
		}

		function send_email()
		{
			var to = "vbaidoon@eegsoft.com";
			var subj = "customer request";
			var from = document.getElementById("e-mail").value;
			if (from != null && from != "" && from != "undefined")
			{
				var msg = "company_name=" + document.getElementById("company_name").value;
				msg += "\ncustomer_name=" + document.getElementById("your_name").value;
				msg += "\nphone=" + document.getElementById("phone").value;
				msg += "\ncomments=" + document.getElementById("comments").value;
				msg += "\nfrom=" + from;
				var myMail = Server.CreateObject("CDO.Message");
				//var myMail = new CDO.Message();
				myMail.Subject = subj;
				myMail.From = from;
				myMail.To = to;
				myMail.TextBody = msg;
				myMail.Send();
				from = "";
			}
		}

		function MM_openBrWindow(theURL,winName,features) { //v2.0
			window.open(theURL,winName,features);
		}
  
		function adjustStylesAll()
		{
			var tableText=document.getElementById('TableText');
			var cellDynaText=document.getElementById('CellDynaText');
			var curveExtension=document.getElementById('CurveExtension');
			var email=document.getElementById('Email');
			var emailHeight = 0;
			if (email != null) emailHeight = parseInt(email.offsetHeight);
			var mesotherapyLinks=document.getElementById('MesotherapyLinks');
			var mesotherapyLinksHeight = 0;
			if (mesotherapyLinks != null) mesotherapyLinksHeight = parseInt(mesotherapyLinks.offsetHeight);
			var footer=document.getElementById('Footer');
			var copyRight=document.getElementById('CopyRight');
			var usGraphix=document.getElementById('UsGraphix');
			var rightHeaderHeight = 93;
			var navHeight = 426;
			var totalLeftHeight = 450;
			var totalRightHeight = parseInt(usGraphix.offsetTop) + parseInt(usGraphix.height); 
			if (totalLeftHeight >= totalRightHeight)
			{
				//alert(navigator.appName + ": cellDynaText.height=" + cellDynaText.height + " totalRightHeight=" + totalRightHeight);
				if (navigator.appName == "Microsoft Internet Explorer")
				{
					cellDynaText.style.top = "-2px";
					cellDynaText.height = totalLeftHeight - 2 - (rightHeaderHeight
											+ emailHeight
											+ mesotherapyLinksHeight
											+ parseInt(footer.height)
											+ parseInt(copyRight.height)
											+ parseInt(usGraphix.height));
					curveExtension.height = totalLeftHeight - navHeight;
				}
				else if (navigator.appName == "Netscape")
				{
					cellDynaText.style.top = "-0px";
					cellDynaText.height = totalLeftHeight - (rightHeaderHeight
											+ emailHeight
											+ mesotherapyLinksHeight
											+ parseInt(footer.height)
											+ parseInt(copyRight.height)
											+ parseInt(usGraphix.height));
					curveExtension.height = totalLeftHeight - navHeight;
				}
				else
				{
					cellDynaText.style.top = "-2px";
					cellDynaText.height = totalLeftHeight - 2 - (rightHeaderHeight
											+ emailHeight
											+ mesotherapyLinksHeight
											+ parseInt(footer.height)
											+ parseInt(copyRight.height)
											+ parseInt(usGraphix.height));
					curveExtension.height = totalLeftHeight - navHeight;
				}
				//alert(navigator.appName + ": cellDynaText.height=" + cellDynaText.height);
			}
			else
			{
				if (navigator.appName == "Microsoft Internet Explorer")
				{
					cellDynaText.style.top = "-2px";
					curveExtension.height = totalRightHeight - navHeight;
				}
				else if (navigator.appName == "Netscape")
				{
					cellDynaText.style.top = "-0px";
					curveExtension.height = totalRightHeight - navHeight;
				}
				else
				{
					cellDynaText.style.top = "-2px";
					curveExtension.height = totalRightHeight - navHeight;
				}
			}
//			alert(navigator.appName + " style.position=" + tableText.style.position + " style.top=" + tableText.style.top);

//			var checkers=document.getElementById('Checkers');
//			alert(navigator.appName + " checkers.height=" + checkers.height + " curveExtension.height=" + curveExtension.height
//				 + " cellDynaText.offsetHeight=" + cellDynaText.offsetHeight
//			);
		}

		//function onDownloadDone1(s) {
		//	oText.value=s;
		//}

		//function msclick(link) {
		//	if (browserOk) {
		//		alert(link);
		//		eval('<a href='+link+'></a>');
		//	}
		//}

