var quotes_array = new Array(["\"I believe you are doing a great service to women desperately in need. I know we never would've conceived had it not been for your group.\"","Mind/Body Graduate"],
["\"I frequently credit you and following Dr. Domar's \"program\" to helping us become parents and maybe even saving my life. The toll of multiple miscarriages and the overall stress was definitely taking a toll on my health.\"","Mind/Body Graduate"],
["\"Without question, I believe that my experience in your seminar was integral to my eventually conceiving, and wish you every success.\"","Mind/Body Graduate"],
["\"Your guidance in our decision to go forward with the donor program is much appreciated. You helped us get out of months of uncertainty and indecision. Thank you.\"","Mind/Body Graduate"],
["\"I am still very close with most everyone that was in our group. Taking the class was one of the best decisions my husband and I ever made.\"","Mind/Body Graduate"],
["\"I want to thank you again for all your help counseling. Without it,  Adam wouldn't be here. it was a tough journey but very much worth it!\"","Mind/Body Graduate"],
["\"The Mind/Body group is still in close touch, although the arrival of all the babies had made actual get-togethers more difficult. I will be forever grateful for those friendships that got me through that time.\"","Mind/Body Graduate"],
["\"You are seriously my lifesaver during the most difficult time of my life.<br />\"","Mind/Body Graduate"],
["\"I entered Jeanette's Mind/Body Program as someone with things in control–except infertility. After ten short weeks, I went away with the ability to let go, be in the moment and trust all is well.\"","Mind/Body Graduate"],
["\"I can honestly say it's changed my life, and I don't believe I'd be pregnant now if I hadn't taken our class...I think I needed to learn what I've learned through this journey to be a good parent...The success from our group has been staggering!\"","Mind/Body Graduate"],
["\"Thanks so much for the valuable support... The best thing I took from the Resolve support group was your recommendation to work backwards–decide how many children you want and by what age. Proceeding with adoption was the first time that I felt empowered during the entire time we have dealt with infertility.\"","Adoption Client"],
["\"I'm so fortunate that you were put in my life at the exact moment that I needed you. You made such a huge difference for me and thank you doesn't begin to express how much my time with you has meant.\"","Individual Client"],
["\"All the sadness and heartache of infertility has rapidly disappeared. Keep teaching the classes...taking your class was the best thing that I ever have done for myself. I didn't really believe you at first when you told the class that in a year all of our lives would be very different, but you were right!\"","Mind/Body Graduate"]
);

sfHover = function() {
	var sfEls = document.getElementById("navul").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


function popwin(pageName, windowWidth, windowHeight){
	window.open(pageName, 'window', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+windowWidth+',height='+windowHeight+',top=150,left=150');return false;
	return false;
}

function u(id, img){
	document.getElementById(id).src = 'assets/images/'+img;
}

function navover(id){
	document.getElementById(id).style.display='block';
}
function navout(id){
	document.getElementById(id).style.display='none';
}
function testimonial(){
	var r=Math.floor(Math.random()*quotes_array.length);
	if(quotes_array[r][0].length >300) document.getElementById('quote').style.marginTop='10px';
	document.getElementById('quote').innerHTML=quotes_array[r][0]+" <strong>"+quotes_array[r][1]+"</strong>";

	var recur_call = "testimonial()";
	setTimeout(recur_call, 10000);
}



function Querystring(){
	var querystring=location.search.substring(1,location.search.length);
	var args = querystring.split('&');
	for (var i=0;i<args.length;i++){
		var pair = args[i].split('=');
		temp = unescape(pair[0]).split('+');
		name = temp.join(' ');
		temp = unescape(pair[1]).split('+');
		value = temp.join(' ');
		this[name]=value;
	}
	this.get=Querystring_get;
}
function Querystring_get(strKey,strDefault){
	var value=this[strKey];
	if (!value){
		value=strDefault;
	}
	return value;
}



