/*------------------------Google Analytics Code---------------------*/
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-8522363-1");
pageTracker._trackPageview();
} catch(err) {}
/*------------------------Google Analytics Code---------------------*/

/*------------------pull down menus-------------------*/
function mmLoadMenus() {
  if (window.mm_menu_0406194707_0) return;
  window.mm_menu_0406194707_0 = new Menu("root",210,20,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#13310B","#000000","left","middle",10,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0406194707_0.addMenuItem("LANDSCAPE&nbsp;DESIGN","location='services.htm?cat=landscapeDesign'");
  mm_menu_0406194707_0.addMenuItem("OUTDOOR&nbsp;LIVING&nbsp;SPACES","location='services.htm?cat=outdoorLivingSpaces'");
  mm_menu_0406194707_0.addMenuItem("HARDSCAPES","location='services.htm?cat=hardscapes'");
  mm_menu_0406194707_0.addMenuItem("WATER&nbsp;FEATURES","location='services.htm?cat=waterFeatures'");
  mm_menu_0406194707_0.addMenuItem("OUTDOOR&nbsp;LIGHTING","location='services.htm?cat=outdoorLighting'");
  mm_menu_0406194707_0.addMenuItem("COMMERCIAL&nbsp;LAWN&nbsp;MAINTENANCE","location='services.htm?cat=commercialLawnMaintenance'");
  mm_menu_0406194707_0.addMenuItem("RESIDENTIAL&nbsp;LAWN&nbsp;CARE","location='services.htm?cat=residentialLawnCare'");
  mm_menu_0406194707_0.addMenuItem("COMMERCIAL&nbsp;SNOW&nbsp;REMOVAL","location='services.htm?cat=commercialSnowRemoval'");
  mm_menu_0406194707_0.addMenuItem("PUTTING&nbsp;GREENS","location='services.htm?cat=puttingGreens'");
   mm_menu_0406194707_0.hideOnMouseOut=true;
   mm_menu_0406194707_0.bgColor='#40722B';
   mm_menu_0406194707_0.menuBorder=1;
   mm_menu_0406194707_0.menuLiteBgColor='#40722B';
   mm_menu_0406194707_0.menuBorderBgColor='#13310B';

mm_menu_0406194707_0.writeMenus();
}
/*------------------pull down menus-------------------*/

/*-------------Services functions---------------------*/
function getQueryStr(key) {
	hu = window.location.search.substring(1);
	gy = hu.split("&");
	for (i=0;i<gy.length;i++) {
		ft = gy[i].split("=");
		if (ft[0] == key) {
			return ft[1];
		}
	}
	return "";
}

var cat;
function checkCategory() {
	cat=getQueryStr("cat");
	if (cat=="") cat='landscapeDesign';
	writeFlash();
}

function writeFlash() {
 var width = '793'
 var height = '430'
 var src = 'images/flash/smithServices.swf?pageName='+cat
 
 var l1 = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'">'
 var l2 = '<param name="movie" value="'+src+'" />'
 var l3 = '<param name="quality" value="high" /><param name="wmode" value="transparent" />'
 var l4 = '<embed src="'+src+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>'
 var l5 = '</object>'
 document.getElementById("div_services").innerHTML=(l1+l2+l3+l4+l5);
}
/*-------------Services functions---------------------*/

/*------------------holdlink() ------------------*/
function holdlink(id){
	document.getElementById('home').style.display='';
	document.getElementById('tr_home').style.display='none';
	document.getElementById(id).className='navigation_selected';
	document.getElementById(id).onmouseout='navigation_selected';	
}
/*------------------holdlink() ----------*/

/*----------------------------popup functions--------------------------*/
function gardners()
{
	var NewWin;
	NewWin1=window.open("gardners.htm",'NewWin2','height=355,width=420,top=20,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}

function inquiry()
{
	var NewWin;
	NewWin1=window.open("inquiry.htm",'NewWin2','height=355,width=420,top=20,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}

function customerlist()
{
	var NewWin;
	NewWin1=window.open("customerlist.htm",'NewWin2','height=380,width=420,top=20,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}

function requestbid()
{
	var NewWin;
	NewWin1=window.open("requestbid.htm",'NewWin2','height=610,width=420,top=10,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}
/*----------------------------popup functions--------------------------*/

/*------------include function---------------------*/
function include_file(id, url) {
	
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
  if (req) {
    // Synchronous request, wait till we have it all
	req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } 
}
/*------------include function---------------------*/