<!--
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_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

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 M_Over(thiss)
	{
	eval(thiss).style.backgroundColor='yellow';
	eval(thiss).style.cursor='hand';
	}
function M_Out(thiss)
	{
	eval(thiss).style.backgroundColor='white';
	}
function ShowMe(ImageID){
	document.getElementById('PreviewImage').innerHTML='<img style=\"border:2px solid white;\" id=GalImage name=GalImage src=\"ViewImage.asp?ImageID=' + ImageID + '\">';
	document.getElementById('GalImage').style.width = 150;
	//document.getElementById('GalImage').style.height = 75;
	
	
	var isIE = document.all?true:false;
	if (!isIE) document.captureEvents(Event.MOUSEMOVE);

  	var _x;
  	var _y;
	  if (!isIE) {
	    _x = e.pageX;
	    _y = e.pageY;
	  }
	  if (isIE) {
	    _x = event.clientX + document.body.scrollLeft;
	    _y = event.clientY + document.body.scrollTop;
	  }

  document.getElementById('PreviewImage').style.left = _x;
  document.getElementById('PreviewImage').style.top = _y;



	}
function WriteRotator(myFileID,myWidth,myHeight,myVars){
	document.write('<object  width="' + myWidth +'" height="' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=FlashVars VALUE="'+ myVars +'">');
	document.write('<param name="movie" value="viewImage.asp?Imageid='+ myFileID +'" /><param name="quality" value="high" />');
	document.write('<embed FlashVars="'+ myVars +'" width="' + myWidth + '" height="' + myHeight +'"  wmode="transparent" src="viewImage.asp?Imageid='+ myFileID +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');

}

function WriteFlash(myFileID,myWidth,myHeight,myVars){
	document.write('<object  width="' + myWidth +'" height="' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=FlashVars VALUE="myURL='+ myVars +'">');
	document.write('<param name="movie" value="viewImage.asp?Imageid='+ myFileID +'" /><param name="quality" value="high" />');
	document.write('<embed FlashVars="myURL='+ myVars +'" width="' + myWidth + '" height="' + myHeight +'"  wmode="transparent" src="viewImage.asp?Imageid='+ myFileID +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');

}
function WriteFlashMed(myFileID,myWidth,myHeight,myVars){
	document.write('<object  width="' + myWidth +'" height="' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=FlashVars VALUE="myURL='+ myVars +'">');
	document.write('<param name="movie" value="viewMedia.asp?Mediaid='+ myFileID +'" /><param name="quality" value="high" />');
	document.write('<embed FlashVars="myURL='+ myVars +'" width="' + myWidth + '" height="' + myHeight +'"  wmode="transparent" src="viewMedia.asp?Mediaid='+ myFileID +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');

}
function WriteWindowsMed(myFileID,myWidth,myHeight){
	document.write('<object  width="' + myWidth +'" height="' + myHeight +'"  classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" align="">');
	document.write('<param name="uiMode" value="full" />');
	document.write('<param name="autoStart" value="false" />');
	document.write('<param name="URL" value="'+ myFileID +'" />');
	document.write ('<embed name="player" width="' + myWidth +'" height="' + myHeight +'" type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/windows/windowsmedia/" filename="'+ myFileID +'" src="'+ myFileID +'"');
        document.write ('allowchangedisplaysize="1" autosize="1" displaysize="1"');
        document.write ('showcontrols="1" showstatusbar="1" autorewind="1" autostart="0">');
        document.write ('</embed>');
	document.write('</object>');
}

function ScrollRotator(CurrentImage,AdrotID,strImageIDs,strLinks,strRate){
	myArr = strImageIDs.split(',');
	myLinkArr = strLinks.split(',');
	myCount = myArr.length;
	myDiv = 'AdRotDiv'+AdrotID;
	myReg = /'/gi;
	myHTML = '<a href="'+ myLinkArr[CurrentImage].replace(myReg,'') +'" target=new><img src="/ViewImage.asp?ImageID=' + myArr[CurrentImage] +'" border=0></a><br><br>';
	if (CurrentImage < myCount-1){
		CurrentImage +=1;
		self.setTimeout('ScrollRotator('+CurrentImage+',' + AdrotID +',"'+strImageIDs+'","' +strLinks +'",'+strRate+')',strRate);
		}
	else{
		CurrentImage=0;
		self.setTimeout('ScrollRotator('+CurrentImage+',' + AdrotID +',"'+strImageIDs+'","' +strLinks +'",'+strRate+')',strRate);
	}
	document.getElementById(myDiv).innerHTML=myHTML;
	
}


function WriteFlash_Manual(myFileID,myWidth,myHeight,myVars){
	document.write('<object  width="' + myWidth +'" height="' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=FlashVars VALUE="myURL='+ myVars +'">');
	document.write('<param name="movie" value="'+ myFileID +'" /><param name="quality" value="high" />');
	document.write('<embed FlashVars="myURL='+ myVars +'" width="' + myWidth + '" height="' + myHeight +'"  wmode="transparent" src="'+ myFileID +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');

}

function PositionDiv(){

	if (navigator.appName.indexOf("Microsoft")!=-1) {
	scrWidth = document.body.clientWidth;
	}else{
	scrWidth = window.innerWidth ;
	}
	CenterPos = scrWidth/2-225;
	document.getElementById('PopUp').style.left = CenterPos;
	document.getElementById('PopUp').style.width = 450;
	document.getElementById('PopUp').style.top = 220;
	document.getElementById('PopUp').style.visibility = 'visible';
}

function ClosePopUp(){
	document.getElementById('PopUp').style.visibility = 'hidden';
}


function createMarker(point, number) {
	  var marker = new GMarker(point);
	  GEvent.addListener(marker, "click", function() {
	    marker.openInfoWindowHtml("<b>Botkin & Hall, LLP</b><br>105 E Jefferson Blvd<br>South Bend, IN  46601<br><br><A href='http://maps.yahoo.com/dd?taddr=105%20E%20Jefferson%20Blvd&tcsz=South+Bend%2C+IN+46601&tcountry=US&tdesc=' target=new>Click here for directions.</a>");
	  });
	  return marker;
	}
	
function loadMe() {
	if (GBrowserIsCompatible()) {
		var Mymap = new GMap2(document.getElementById("map"));
		//Controls
		Mymap.addControl(new GSmallMapControl());
		Mymap.addControl(new GMapTypeControl());
		//Location point
		var Mypoint = new GLatLng(41.675033,-86.250248);
		
		//Center map at Location
		Mymap.setCenter(Mypoint, 15);
		//Add Marker
  		Mymap.addOverlay(createMarker(Mypoint, 1));
 	}
 }




//-->