var ns4 = (document.layers)? 1 : 0 ;
var ie = (document.all)? 1 : 0 ;
var usr = navigator.userAgent
var objns6 = (usr.indexOf('Netscape6')!=-1)? 1 : 0 ;
var ns = (document.getElementById)? 1 : 0 ;
var isMac = (navigator.userAgent.indexOf('Mac')!=-1) ;
var brsr = (navigator.appName.indexOf("Netscape")!=-1) ;

var arMenu = new Array(4);
var arMenua = new Array(4);
for (i=0;(i<4);i++) {
 arMenu[i] = new Image(147,42); 
 arMenu[i].src = 'images/menu_'+Number(i)+'.jpg'; 
 arMenua[i] = new Image(147,42); 
 arMenua[i].src = 'images/menu_'+Number(i)+'d.jpg'; 
}

function showTestimonial() {
	var d_div=new Array(9);
	d_div[0]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&ldquo;I cannot tell you too  often how beautiful our lot has become since you and your crew completed the  redesign of our front yard. The meandering walkway, set off at various points  with subtle, richly textured shrubs, plants, and ornamental trees, is a wonder  in daylight; and at evening, the drama really unfolds under the well-placed  ground lighting. It is a rare experience to find the landscape one imagines  pales in comparison with the real thing! We are immeasurably impressed and very  happy.&rdquo;</td></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">M. and S. Rotbert, <br>North Potomac</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[1]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&ldquo;The retaining wall and  paver patio was tastefully blended into the back of our house and the contours  and seams were impeccable....&nbsp;&nbsp;The field stone terrace garden plots were truly  a work of art and science...&nbsp;&nbsp;Thanks again for such a beautiful job.&rdquo;</td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">Dr. E. Bothwell, <br>Olney</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[2]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&ldquo;Just wanted to let tell you  how incredibly pleased we are with the landscaping you have done for us...&nbsp;&nbsp;We  are proudly displaying your sign out front and received numerous compliments  from our neighbors...&nbsp;&nbsp;We are enjoying watching everything grown and how much you  have changed the curb appeal of our home!&rdquo; </td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">T. and K. Bauer, <br>Gaithersburg</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[3]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&rdquo;We are thrilled with our  new stream and pond. We waited a long time, did a lot of research and talked to  many landscapers about this work. Although we were expecting you work to be  good, it turned out better than our expectations. Your attitude as well as your  crew was professional and upbeat...&rdquo; </td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">K. Ryan and M. Koslow, <br>Washington,   D.C.</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[4]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&rdquo;My family and I thank you for the magic you created in our backyard.  Your vision of the pond with the waterfall and plantings, as well as the slate patio and natural stone stairs turned out way beyond our expectations....&nbsp;&nbsp;As I look out my kitchen window or sit on the patio or by the pond, I am filled with such joy at the beauty that surrounds me.  Again, thank you for the enchantment that you created for us.&rdquo; </td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">J. Silber<br />Silver Spring, MD</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[5]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&rdquo;One year after you finished our landscaping, I must say that we are overwhelmed at how fabulous you have made our home look.&rdquo; </td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">N. Bobys<br />Rockville, MD</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[6]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&rdquo;Our front yard looks great!  Thank you for such a wonderful transformation. You really have a talent for selecting just the right plants and placing them to create a beautiful landscape.&rdquo; </td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">B. & T. Busch</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[7]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&rdquo;Our thanks to you and your landscaping crews for the beautiful flagstone path we now enjoy on the north side of our house.  The path enhances the natural lay of the land and it complements the existing plantings.  It is also extremely functional, as this side of the house receives lots of foot traffic and was too shady for adequate grass cover.&rdquo; </td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">C. Ferrari<br />Bethesda, MD</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	d_div[8]='<table border="0" cellspacing="0" cellpadding="0" width="78%" align="center"><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td class="htext3">&rdquo;I was very pleased with the project. Mark listened to  our ideas and then sketched a design that we loved, which included some of the  plants that we had. The employee doing the work was professional, hard-working  and the job got done on time. We have received a lot of compliments on the work  and I have recommended East Coast Landscape Design to my neighbors and other friends.&rdquo; </td></tr></tr><tr><td height="8"><img src="images/space.gif" width=1 height=1></td></tr><tr><td class="htext3" align="right">The Lentz Family<br> Laurel, Maryland</td></tr><tr><td><img src="images/space.gif" width=1 height=5></td></tr><tr><td align="right"><a href="testimonials.htm">Next ></a></td></tr></table>';
	
	
	var obj_div = MM_findObj("div_testimonial");
	var rrand = Math.random()*9;
	rrand = Math.floor(rrand); 
	obj_div.innerHTML = d_div[rrand];
}	

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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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 loadfocus()
{
  if ((navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 4)|| (navigator.appName.indexOf("Microsoft") != -1 && parseInt(navigator.appVersion) > 3))
    browserVer = '1';
  else
    browserVer = '2';
  if (browserVer == 1)
	window.focus();
  return true;
}

function catalog2004() {
  win = window.open("http://www.clearimaging.com/cms/catalogs/catalog2004/index.php?signature=eastcoastland","_blank","width=250,height=150,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
  win.focus();
}

function catalog2005() {
  win = window.open("http://www.clearimaging.com/cms/catalogs/belgard_catalog_2005/index.php?signature=eastcoastland","_blank","width=250,height=150,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
  win.focus();
}

function seizemoment() {
 win = window.open("http://clearimaging.com/cms/catalogs/catalog2003/index.php?signature=eastcoastland","_blank","width=250,height=150,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
 win.focus();
}

function oasis() {
 win = window.open("http://clearimaging.com/cms/catalogs/oasis/index.php?signature=eastcoastland","_blank","width=250,height=150,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
 win.focus();
}

function matteroftaste() {
 win = window.open("http://clearimaging.com/cms/catalogs/matter_of_taste/index.php?signature=eastcoastland","_blank","width=250,height=150,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
 win.focus();
}

function nuance() {
 win = window.open("http://clearimaging.com/cms/catalogs/nuance/index.php?signature=eastcoastland","_blank","width=250,height=150,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
 win.focus();
}

function patternBrowser() {
  win = window.open("http://www.clearimaging.com/cms/catalogs/patternbrowser1/index.php?signature=eastcoastland","_blank","width=250,height=150,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
  win.focus();
}

function showTeeBinder() {
  win = window.open("http://clearimaging.com/cms/catalogs/techart/index.php?signature=eastcoastland","_blank","width=10,height=10,left=17,top=17,statusbar=no,toolbar=no,scrollbars=never,navbar=no");
  win.focus();
}

function showImageLarger(imgname, w, h) {
   var w=75 + w , h=120+h;
   var l=(screen.availWidth-w)/2 , t=(screen.availHeight-h)/2;
   win=window.open('big_image1.htm?img='+imgname,"_blank","width="+w+",height="+h+",left="+l+",top="+t+",statusbar=no,toolbar=no,scrollbars=no,navbar=no");
   win.focus();
}

function showprivate() {
 popup('privacy_policy.htm');
}

function shownotices() {
 popup('legal_notice.htm');
}

function popup(adresa){
  var w=550 , h=400;
  var l=(screen.availWidth-w)/2 , t=(screen.availHeight-h)/2;
  win=window.open(adresa,"_blank","width="+w+",height="+h+",left="+l+",top="+t+",statusbar=no,toolbar=no,scrollbars=yes,navbar=no");
  win.focus();
}

function popupn(adresa){
  var w=450 , h=400;
  var l=(screen.availWidth-w)/2 , t=(screen.availHeight-h)/2;
  win=window.open(adresa,"_blank","width="+w+",height="+h+",left="+l+",top="+t+",statusbar=no,toolbar=no,scrollbars=no,navbar=no");
  win.focus();
}

function popup1(adresa, w, h){
  var l=(screen.availWidth-w)/2 , t=(screen.availHeight-h)/2;
  win=window.open(adresa,"_blank","width="+w+",height="+h+",left="+l+",top="+t+",statusbar=no,toolbar=no,scrollbars=yes,navbar=no");
  win.focus();
}


function showImage(id, src) {
  if (ie)
   	document.all[id].src = src;
  else if (ns)
	   document.getElementById(id).src = src;
}

function showBig(imageName, width, height) {
  win = window.open("big.htm?path="+imageName+"&width="+width+"&height="+height,"_blank","width="+Number(width+70)+",height="+Number(height+100)+",left=17,top=17,statusbar=no,toolbar=no,scrollbars= never,navbar=no");
  win.focus();
}

function showElement(id) {
  if(ie)
   	document.all[id].style.visibility = "visible";
  else if (ns)
   	document.getElementById(id).style.visibility = "visible";
}

function hideElement(id) {
  if(ie)
   	document.all[id].style.visibility = "hidden";
  else if (ns)
   	document.getElementById(id).style.visibility = "hidden";
}

function showMessage(id, text) {
  if(ie)
   	document.all[id].innerText = text;
  else if (ns)
   	document.getElementById(id).innerHTML = text;
  showElement(id);
}

function showImagePopup(scriptName,section,ind,width,height) {
  width = (width>750)?750:width;
  height = (height>500)?500:height;
  width+=50;
  height+=150;
  width = (width<370)?371:width;
  height = (height<200)?200:height;
  win = window.open('big_image.htm?script='+scriptName+'&section='+section
	+'&ind='+ind,'_blank','width='+width+',height='
	+height+',left=17,top=17,statusbar=no,toolbar=no,scrollbars= never,navbar=no');
  win.focus();
}

function getParameter(str, name) {
  var res = "";
  if (str.indexOf("?")!=-1) {
    str = str.substring(str.indexOf("?")+1, str.length);
    if (str.indexOf(name)!=-1) {
      if (str.indexOf("&"+name, str.indexOf(name)+name.length)!=-1)
        res = str.substring(str.indexOf("&"+name)+name.length+1, str.indexOf("&"+name))
   	  else
        res = str.substring(str.indexOf(name)+name.length+1, str.length);
      if (res.indexOf("&")!=-1)
        res = res.substring(0,res.indexOf("&"));
   	}
  }
  return res;
}
function showhideElement(id) {
  if (ie) {
    if (document.all[id].style.visibility == "hidden")
      document.all[id].style.visibility = "visible";
    else
      document.all[id].style.visibility = "hidden";
  }
  else if (ns) {
    if (document.getElementById(id).style.visibility == "hidden")
  	   document.getElementById(id).style.visibility = "visible";
    else
  	   document.getElementById(id).style.visibility = "hidden";
  }
}

function showMessage(id, text) {
  if(ie)
   	document.all[id].innerText = text;
  else if (ns)
   	document.getElementById(id).innerHTML = text;
  showElement(id);
}

 var message = 
':. For the Company Contact Information,' + String.fromCharCode(13,10)+
'   please click on the <Contact Us> site link.' + String.fromCharCode(13,10)+
':. For Website and Technical Support,' + String.fromCharCode(13,10)+
'   visit us at: www.clearimaging.com' + String.fromCharCode(13,10)+
':. Website Source Code Copyrighted by' + String.fromCharCode(13,10)+
'    Clear Imaging '+(new Date()).getFullYear();
  
function clickIE4(){
  if (event.button==2){
    alert(message);
    return false;
  }
}

function clickNS4(e){
  if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
      alert(message);
      return false;
    }
  }
}

if (document.layers){
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
  document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false");