function MMnav_swapImgRestore() { //v3.0
  var i,x,a=document.MMnav_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MMnav_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MMnav_p) d.MMnav_p=new Array();
    var i,j=d.MMnav_p.length,a=MMnav_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MMnav_p[j]=new Image; d.MMnav_p[j++].src=a[i];}}
}

function MMnav_swapImage() { //v3.0
  var i,j=0,x,a=MMnav_swapImage.arguments; document.MMnav_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MMnav_findObj(a[i]))!=null){document.MMnav_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function popUp (sURL, sName, dx, dy) {
	window.open(sURL, sName, 'width='+dx+',height='+dy+',scrollbars=1,resizable=1');
}

//-->

function MMnav_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=MMnav_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

MMnav_preloadImages(forevergtroot + 'img/bot/evergreen_h.gif');

buttons = '<table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">\n' + 
'<tr>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  <td style="height: 1px"></td>\n' + 
'  </tr>\n' + 
'<tr>\n' + 
'  <td><a href="#" onclick="OpenLink(\'GreenTV_Btn\')" onMouseOver="MM_swapImage(\'evergreen_btn\',\'\',\'img/bot/evergreen_h.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="img/bot/evergreen_p.gif" alt="CLICK HERE 4EverGreen13 TV SHOW" name="evergreen_btn" border="0" id="evergreen_btn"></a></td>\n' + 
'  <td><button name="QuenchThird_Btn" type="button" class="redbtnstyle"  style="height: 50px;width:93px;" onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)">QUENCH!<br>\n' + 
'Intro</button></td>\n' + 
'  <td><button name="QuenchBack2FAQ_Btn" type="button" class="redbtnstyle" style="height: 50px;width:93px;" onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)">QUENCH!<br>\n' + 
'FAQS</button></td>\n' + 
'  <td><button name="QuenchSimpleForm_Btn" type="button" class="redbtnstyle" style="height: 50px;width:93px;" onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)">QUENCH!<br>\n' + 
'Simple<br>\n' + 
'FORM</button></td>\n' + 
'  <td><button name="QuenchVideo_Btn" type="button" class="redbtnstyle" style="height: 50px;width:93px;" onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)">QUENCH!<br>\n' + 
'Videos</button></td>\n' + 
'  <td><button name="QuenchCarbonHunters_Btn" type="button" class="redbtnstyle" style="height: 50px;width:93px;" onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)">Carbon<br>\n' + 
'Credits</button></td>\n' + 
'  <td><button name="QuenchAccount_Btn" type="button" class="redbtnstyle" style="height: 50px;width:93px;" onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)">QUENCH!<br>\n' + 
'BUSINESSES</button></td>\n' + 
'\n' + 
'<td align="center"><span class="whitebtnstyle">LIVE</span><br><input \n' + 
'name="Chat_Btn" type="button" class="bluebtnstyle" style="width:50px;"  onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)" value="CHAT"><br>\n' + 
'<input name="Video_Btn" type="button"  class="rosebtnstyle" style="width:50px;"  onClick="ButtonClick(this)"  onMouseOver="MouseOverButton(this)" onMouseOut="MouseOutButton(this)" value="VIDEO"></td>\n' + 
'  <td><a href="#" onclick="OpenLink(\'GreenTV_Btn\')" onMouseOver="MM_swapImage(\'evergreen_btn\',\'\',\'img/bot/evergreen_h.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="img/bot/evergreen_p.gif" alt="CLICK HERE 4EverGreen13 TV SHOW" name="evergreen_btn" border="0" id="evergreen_btn"></a></td>\n' + 
'</tr>\n' + 
'</table>\n';


imgsrc = 'src="'+fsperoot+'img';
buttons=buttons.replace(/src=\"img/g, imgsrc);
imgsrc = ",\'"+ forevergtroot +"img/bot";
buttons=buttons.replace(/,\'img\/bot/g, imgsrc);

buttons=buttons.replace(/MM_/g, "MMnav_");

document.write(buttons);
 

