

function MM_displayStatusMsg(msgStr)  { //v3.0
	status=msgStr; document.MM_returnValue = true;
}

function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

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.0
  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 && document.getElementById) x=document.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 openWin(url, name, attrib)
{
	MyWindow=window.open(url, name, attrib);
}

// Section below is built for the Specials popup

function getCookie(NameOfCookie) {
	if (document.cookie.length > 0) {
		begin = document.cookie.indexOf(NameOfCookie+"=");       
	
		if (begin != -1) {           
			begin += NameOfCookie.length+1;       
			end = document.cookie.indexOf(";", begin);
			if (end == -1) end = document.cookie.length;
	
			return unescape(document.cookie.substring(begin, end));
		} 
	}
	return null;
}

function setCookie(NameOfCookie, value, expiredays) {
	var ExpireDate = new Date ();
	ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

	document.cookie = NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

function delCookie (NameOfCookie) {
	if (getCookie(NameOfCookie)) {
		document.cookie = NameOfCookie + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}

function Special(stuff, url, name)
{
	//attrib="width=500, height=360, resizable=no, toolbar=NO, left=0, top=20";
	//visited=getCookie('visited'+stuff);
	//if (visited==null) {
	//	setCookie('visited'+stuff,'yes',1)
	//	MyWindow=window.open(url, name, attrib);
	//}
	return true;
}

// ***********************************************
// Spam-proof email by deanq.com
// Copyright © 2003. deanq.com
// ***********************************************
function email(who,domain,subject) {
  if (!domain) var domain = "clyderobin.com";
  if (!subject) var subject = " ";
  var attrib = "width=1,height=1,resizable=1,toolbar=0,menubar=0,left=2000,top=2000,screenX=2000,screenY=2000,scrollbars=0";
  MyWindow=window.open('', "email", attrib);
  MyWindow.document.write("<HTML><HEAD><TITLE> <\/TITLE><META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'><\/HEAD><BODY leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=\"javascript:location.href='mailto:" + who + "@" + domain + "?subject=" + subject + "'\" onBlur='window.close()' onFocus='window.close()'><\/BODY><\/HTML>");
  MyWindow.window.resizeTo(1, 1);
  MyWindow.document.title = " ";
  MyWindow.document.close();
}

// ***********************************************
// * Calculate number of years since founding
// ***********************************************

function printYear(count) {
  var time=new Date();
  var year=time.getYear();
  if (year < 2000)    // Y2K Fix, Isaac Powell
  year = year + 1900; // http://onyx.idbsu.edu/~ipowell
  if (count) {
	  document.write(year-1934);
  }else{
	  document.write(year);
  }
}

// ***********************************************
// * Show current month 
// ***********************************************
function makeArray() {
	for (i = 0; i<makeArray.arguments.length; i++)
	this[i + 1] = makeArray.arguments[i];
}

function showMonth(){
	var months = new makeArray('January','February','March','April','May','June','July','August','September','October','November','December');
	var date = new Date();
	var month = date.getMonth() + 1;
document.write(months[month]);
}

// ***********************************************
// * Open a window if it's not already open
// ***********************************************
function KW_safeWindow(a,b,m) {
	d=document;if(!d.popup)d.popup=new Array();for(i=0;i<d.popup.length;i++){
	if (d.popup[i] && !d.popup[i].closed)if (d.popup[i].name==b) break;}
	if (d.popup.length==i)d.popup[i]=window.open(a,b);else
	if (d.popup[i] && !d.popup[i].closed) {	alert(unescape(m))} else {
	d.popup[i]=window.open(a,b)}
}

// Testimonials for random display

var testi_text = new Array ();
testi_text[0] = "&quot;Just wanted to let you know that your seed packets were a huge hit at our November 1st wedding. The design was perfect and it was such an easy process. Thanks!!&quot; &ndash;Melissa T.";
testi_text[1] = "&quot;Thanks for sending your flower seeds. They were planted throughout the Fort Monmouth community in the spring. During June-July the riot of red, white and blue flowers has brightened up our community. Thanks for your support during Operation Desert Storm.&quot; Lt. Col. Edmund E. Hughes, 513th Military Intelligence Brigade";
testi_text[2] = "&quot;I just planted your wildflower seeds and they are already showing growth after just 7 days!&quot; &ndash;Russel P.";
testi_text[3] = "&quot;We recieved the daisy packets today and we love them!!  Can't thank you enough for your wonderful and timely service!   We will be telling our friends about you!&quot; &ndash;Karmen and Ryan";
testi_text[4] = "&quot;I got the packets today and they look great. Thank you so much for your prompt and thorough service, from beginning to end, with this order. You're awesome!&quot; &ndash;Annge";
testi_text[5] = "&quot;The seed packets came today and they look great!! I couldn't be happier with them. Thanks for you fast and personal service. I will definitely recommend your company to others!!&quot; &ndash;Heidi M.";
testi_text[6] = "&quot;I received the packets today, they look great!  Thank you so much for working with me, I know it was a sudden, urgent order.  I greatly appreciate it!  Thank you!&quot; &ndash;Nichole";
testi_text[7] = "&quot;Just wanted you to know that I have received the seed packets and they are so wonderful.  I am so thankful that I happened upon your website! Thank you so much for the quick turn around.  You are greatly appreciated!&quot; &ndash;Jenni";
testi_text[8] = "&quot;Thank you so much&ndash;the packets were at the house when I got there yesterday&mdash;that was fast! And they look fantastic. Thanks.&quot; Melanie";
testi_text[9] = "&quot;We received our packets today and cannot thank you enough!! We love them and are very excited to use them for our wedding favors this upcoming March. They are perfect! Thank you again so much!!&quot; &ndash;Jessica and Christian";
testi_text[10] = "&quot;Thank you for such a pretty product and for such an easy ordering process! I can't believe how quickly and nicely your company responded to me. Even though I made a change to the original order, you had them printed and shipped within days.&quot; &ndash;Sarah"
testi_text[11] = "&quot;Thank you so much for our seeds!  I cannot believe the turnaround time on them. I was very, very pleased. I couldn't wait to show them to the groom, and  he really liked them too.&quot; &ndash;Melanie H."
testi_text[12] = "&quot;I greatly appreciate you going the extra mile to walk me through the ordering process and for getting our order processed and shipped so quickly!  I am looking forward to seeing the packets!  I think they will be a very special gift and advertisement for our Center.&quot; &ndash;Kara" 
testi_text[13] = "&quot;I got the packets in the mail yesterday. They are absolutely PERFECT!! I am more than satisfied!! They are perfect for my garden wedding, and what a wonderful gift for the 'going green' generation!&quot; &ndash;Michelle"
testi_text[14] = "&quot;I just wanted to say thank you for taking care of us and so promptly.  We received our shipment today and they are great!  We are very pleased.&quot; &ndash;Cheryl T."
testi_text[15] = "&quot;You have wonderful customer service and I appreciate all your follow up emails and phone call.  The seed packages were perfect and I will recommend your business to others.&quot; &ndash;Emiley R."

testi_text[16] = "&quot; &quot; &ndash; "

var i = Math.floor(16*Math.random())
