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_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 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 load(){
if (GBrowserIsCompatible()){
	var map = new GMap2(document.getElementById("map"));
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());
	map.setCenter(new GLatLng(36.773752999999999, -76.235369000000006), 14);
	// Creates a marker at the given point with the given number label
	function createMarker(point, number) {
	  var marker = new GMarker(point);  
	  GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml("<strong>Address:</strong><br />1407 Stephanie Way<br />Chesapeake, VA 23320");  });  return marker;}
	  // Add 10 markers to the map at random locations
	  var bounds = map.getBounds();
	  var southWest = bounds.getSouthWest();
	  var northEast = bounds.getNorthEast();
	  var lngSpan = northEast.lng() - southWest.lng();
	  var latSpan = northEast.lat() - southWest.lat();
	  //for (var i = 0; i < 10; i++) {  
	  var point = new GLatLng(36.773752999999999, -76.235369000000006);  
	  map.addOverlay(createMarker(point, 1));
	  //}
	}
}


var random_text = new Array();
// Set the number of text strings to zero to start
var number = 0;// Incremental list of all possible Text 1
random_text[number++] = "<b>Alphatec  Surveyors</b><br><br>&quot;with their new Active Management plans, they call me and tell me when a problem has arisen, or will soon arise&quot; &quot;the entire MERIT Solutions staff has exceeded every expectation we have ever had.&quot; &quot;ALPHATEC Surveyors, LTD has enjoyed unprecedented growth due in large part to the efforts of MERIT Solutions&quot;<br><br>John F. Hill, Jr. LS VA & NC.<br>Alphatec  Surveyors<br><br><p><a href='our_clients.html'><img src='images/more.gif' width='125' height='17'></a></p>"
// Incremental list of all possible Text 2
random_text[number++] = "<b>McCormack & Associates PC.</b><br><br>&quot;We have at this point, a very efficient network system&quot; &quot;our relationship with Randy and the staff of MERIT Solutions has been such that the technical support is always there and only a phone call away with very prompt and efficient resolution of the problems&quot;<br><br>Greg D. McCormack, Esquire.<br>McCormack & Associates PC.<br><br><p><a href='our_clients.html'><img src='images/more.gif' width='125' height='17'></a></p>"
// Incremental list of all possible Text 3
random_text[number++] = "<b>Kempsville Cabinets</b><br><br>&quot;Prompt service, very dependable, like having your own IT department without the hassle.&quot;<br><br>James Zook.<br>Kempsville Cabinets<br><br><p><a href='our_clients.html'><img src='images/more.gif' width='125' height='17'></a></p>"
// Incremental list of all possible Text 4
random_text[number++] = "<b>Crossroads Fuel Service</b><br><br>&quot;Recently, we made major upgrades to our system, through which we can now access our six remote sites online and log directly onto any computer at any location in seconds&quot; &quot;From the days of DOS to the most cutting-edge technology for today’s business needs, they have been able to provide all we’ve needed.&quot; <br><br>Marilyn Keffer.<br>Crossroads Fuel Service<br><br><p><a href='our_clients.html'><img src='images/more.gif' width='125' height='17'></a></p>"


// Create a random number with limits based on the number
// of possible random text strings
function dtxt(){
	try{
var random_nnumber = 0;
	//random_nnumber = Math.floor(Math.random() * number;
do{
	random_nnumber = Math.round(Math.random() * number) ;
} while(!(random_nnumber < number))
// Write out the random text to the browser
document.write(random_text[random_nnumber]);}

catch(e){}
}