<!-- Retreats Client Comments
$(document).ready(function(){
	$('#testimonials .slide');
	setInterval(function(){
		$('#testimonials .slide').filter(':visible').fadeOut(2000,function(){
			if($(this).next('li.slide').size()){
				$(this).next().fadeIn(1000);
			}
			else{
				$('#testimonials .slide').eq(0).fadeIn(1000);
			}
		});
	},10000);	
});	
//-->

<!-- Quotes
var quote=new Array();

  quote[0]="<span class=\"book_antiqua_16_orange\">SANDY C. NEWBIGGING&nbsp;&nbsp;</span><img src=\"images/new_header/dot.jpg\" width=\"5\" height=\"5\" align=\"absmiddle\" />&nbsp;&nbsp;Creator of the Mind Detox Method";
  quote[1]="<span class=\"book_antiqua_16_orange\">SANDY C. NEWBIGGING&nbsp;&nbsp;</span><img src=\"images/new_header/dot.jpg\" width=\"5\" height=\"5\" align=\"absmiddle\" />&nbsp;&nbsp;Author of 4 books including Peace for Life";
  quote[2]="<span class=\"book_antiqua_16_orange\">SANDY C. NEWBIGGING&nbsp;&nbsp;</span><img src=\"images/new_header/dot.jpg\" width=\"5\" height=\"5\" align=\"absmiddle\" />&nbsp;&nbsp;Teacher of meditation to assist your awakening";
var speed=4000;    /*time in milliseconds*/
var q=0;

function showQuote() {
     document.getElementById("quotes").innerHTML=quote[q];
     q++;
if(q==quote.length) {
     q=0;
  }
}
setInterval('showQuote()',speed);
//-->

<!-- jumpMenu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

<!-- welcome video controls
$(document).ready(function(){
						   		   
	//When you click on a link with class of poplight and the href starts with a # 
	$('a.poplight[href^=#]').click(function() {
		var popID = $(this).attr('rel'); //Get Popup Name
		var popURL = $(this).attr('href'); //Get Popup href to define size
				
		//Pull Query & Variables from href URL
		var query= popURL.split('?');
		var dim= query[1].split('&');
		var popWidth = dim[0].split('=')[1]; //Gets the first query string value

		//Fade in the Popup and add close button
		$('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="images/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>');
		
		//Define margin for center alignment (vertical + horizontal) - we add 80 to the height/width to accomodate for the padding + border width defined in the css
		var popMargTop = ($('#' + popID).height() + 40) / 2;
		var popMargLeft = ($('#' + popID).width() + 40) / 2;
		
		//Apply Margin to Popup
		$('#' + popID).css({ 
			'margin-top' : -popMargTop,
			'margin-left' : -popMargLeft
		});
		
		//Fade in Background
		$('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
		$('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer 
		
		return false;
	});
	
	
	//Close Popups and Fade Layer
	$('a.close, #fade').live('click', function() { //When clicking on the close or fade layer...
	  	$('#fade , .popup_block').fadeOut(function() {
			$('#fade, a.close').remove();  
	}); //fade them both out
		
		return false;
	});

	
});
//-->

<!-- accordion
$(document).ready(function(){
	$(".accordion h3:first").addClass("active");
	$(".accordion p:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});
});
//-->

function mmLoadMenus() {
	 if (window.mm_menu_1028160445_0) return;

window.mm_menu_1028160445_0 = new Menu("root",152,17,"Verdana, Arial, Helvetica, sans-serif",11,"#006666","#FFFFFF","#D0E9F2","#002D40","left","middle",5,0,100,-5,7,true,true,true,0,true,true);
	mm_menu_1028160445_0.addMenuItem("Why&nbsp;Join?","window.open('online_club.php', '_self');");
	mm_menu_1028160445_0.addMenuItem("Join&nbsp;Online&nbsp;Club","window.open('online_club_form.php', '_self');");
  mm_menu_1028160445_0.addMenuItem("Newsletter&nbsp;Subscribe","window.open('newsletter_subscribe.php', '_self');");
  mm_menu_1028160445_0.addMenuItem("Tell&nbsp;A&nbsp;Friend","window.open('online_club_tell_friend.php', '_self');");
   mm_menu_1028160445_0.hideOnMouseOut=true;
   mm_menu_1028160445_0.bgColor='#FFFFFF';
   mm_menu_1028160445_0.menuBorder=1;
   mm_menu_1028160445_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1028160445_0.menuBorderBgColor='#FFFFFF';

window.mm_menu_0915160202_0 = new Menu("root",195,21,"Verdana, Arial, Helvetica, sans-serif",11,"#006666","#FFFFFF","#D0E9F2","#002D40","left","middle",5,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_0915160202_0.addMenuItem("About Sandy's&nbsp;Retreats","window.open('retreats.php', '_self');");
  //mm_menu_0915160202_0.addMenuItem("Mind&nbsp;Detox&nbsp;in&nbsp;Australia","window.open('retreats_australia.php', '_self');");
  //mm_menu_0915160202_0.addMenuItem("Mindbody&nbsp;Detox&nbsp;in&nbsp;UK","window.open('retreats_uk.php', '_self');");  
  mm_menu_0915160202_0.addMenuItem("Mindbody&nbsp;Detox&nbsp;in&nbsp;Turkey","window.open('retreats_turkey.php', '_self');");
  //mm_menu_0915160202_0.addMenuItem("Mindbody&nbsp;Detox&nbsp;in&nbsp;Thailand","window.open('retreats_thailand.php', '_self');");
   mm_menu_0915160202_0.hideOnMouseOut=true;
   mm_menu_0915160202_0.bgColor='#FFFFFF';
   mm_menu_0915160202_0.menuBorder=1;
   mm_menu_0915160202_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915160202_0.menuBorderBgColor='#FFFFFF';

  window.mm_menu_0915161843_0 = new Menu("root",152,17,"Verdana, Arial, Helvetica, sans-serif",11,"#006666","#FFFFFF","#D0E9F2","#002D40","left","middle",5,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_0915161843_0.addMenuItem("About&nbsp;Clinics","window.open('clinics.php', '_self');");
  mm_menu_0915161843_0.addMenuItem("Find&nbsp;A&nbsp;Practitioner","window.open('clinics_find_practitioner.php', '_self');");
  mm_menu_0915161843_0.addMenuItem("Meet&nbsp;Sandy","window.open('clinics_meet_sandy.php', '_self');");
  mm_menu_0915161843_0.addMenuItem("Terms&nbsp;&&nbsp;Conditions","window.open('clinics_terms.php', '_self');");
   mm_menu_0915161843_0.hideOnMouseOut=true;
   mm_menu_0915161843_0.bgColor='#FFFFFF';
   mm_menu_0915161843_0.menuBorder=1;
   mm_menu_0915161843_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915161843_0.menuBorderBgColor='#FFFFFF';

  window.mm_menu_1028161631_0 = new Menu("root",161,17,"Verdana, Arial, Helvetica, sans-serif",11,"#006666","#FFFFFF","#D0E9F2","#002D40","left","middle",5,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_1028161631_0.addMenuItem("Why&nbsp;Train?","window.open('academy_why_train.php', '_self');");
  mm_menu_1028161631_0.addMenuItem("About&nbsp;MDM","window.open('academy_about.php', '_self');");
  mm_menu_1028161631_0.addMenuItem("Course&nbsp;Contents","window.open('academy_content.php', '_self');");
  mm_menu_1028161631_0.addMenuItem("Participants&nbsp;Comments","window.open('academy_comments.php', '_self');");
  mm_menu_1028161631_0.addMenuItem("Qualification","window.open('academy_qualification.php', '_self');");
  mm_menu_1028161631_0.addMenuItem("Investment","window.open('academy_investment.php', '_self');");
  mm_menu_1028161631_0.addMenuItem("Dates&nbsp;&&nbsp;Bookings","window.open('calendar.php', '_self');");
  mm_menu_1028161631_0.addMenuItem("Disclaimer","window.open('academy_disclaimer.php', '_self');");
   mm_menu_1028161631_0.hideOnMouseOut=true;
    mm_menu_1028161631_0.bgColor='#FFFFFF';
   mm_menu_1028161631_0.menuBorder=1;
   mm_menu_1028161631_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1028161631_0.menuBorderBgColor='#FFFFFF';

    window.mm_menu_1028162020_0 = new Menu("root",166,17,"Verdana, Arial, Helvetica, sans-serif",11,"#006666","#FFFFFF","#D0E9F2","#002D40","left","middle",5,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_1028162020_0.addMenuItem("About&nbsp;Sandy","window.open('about.php', '_self');");
  mm_menu_1028162020_0.addMenuItem("Mind&nbsp;Detox&nbsp;Method","window.open('about_mdm.php', '_self');");
  mm_menu_1028162020_0.addMenuItem("Mind-Body&nbsp;Connection","window.open('about_connection.php', '_self');");
  mm_menu_1028162020_0.addMenuItem("Ascension&nbsp;Meditation","window.open('about_ascension.php', '_self');");
  mm_menu_1028162020_0.addMenuItem("Success&nbsp;Stories","window.open('about_success.php', '_self');");
  mm_menu_1028162020_0.addMenuItem("Client&nbsp;Comments","window.open('about_comments.php', '_self');");
  mm_menu_1028162020_0.addMenuItem("Video&nbsp;Clips","window.open('about_video.php', '_self');");
  mm_menu_1028162020_0.addMenuItem("TV&nbsp;/&nbsp;Radio","window.open('about_tv_radio.php', '_self');");
   mm_menu_1028162020_0.hideOnMouseOut=true;
     mm_menu_1028162020_0.bgColor='#FFFFFF';
   mm_menu_1028162020_0.menuBorder=1;
   mm_menu_1028162020_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1028162020_0.menuBorderBgColor='#FFFFFF';
   
   <!--
window.mm_menu_1220140658_0 = new Menu("root",178,17,"Verdana, Arial, Helvetica, sans-serif",11,"#006666","#FFFFFF","#D0E9F2","#002D40","left","middle",5,0,100,-5,7,true,true,true,0,true,true);
  mm_menu_1220140658_0.addMenuItem("Online&nbsp;Club&nbsp;Login","location='online_club_login.php'");
  mm_menu_1220140658_0.addMenuItem("MDM&nbsp;Practitioners&nbsp;Login","location='members/index.php'");
   mm_menu_1220140658_0.hideOnMouseOut=true;
   mm_menu_1220140658_0.bgColor='#FFFFFF';
   mm_menu_1220140658_0.menuBorder=1;
   mm_menu_1220140658_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1220140658_0.menuBorderBgColor='#FFFFFF';//-->

mm_menu_1028162020_0.writeMenus();
} // mmLoadMenus()
//-->

<!--
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_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

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_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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}


<!-- form functions
function doClear(theText)
{
	if (theText.value == theText.defaultValue)
	{
		theText.value = ""
	}
}

function confirmSubmit() 
{
	var acc = document.getElementById("accept");
	if (!acc.checked) 
	{
		alert("You must agree with the Terms & Conditions before you can submit the form.");
		return false;
	} 
	else 
	{
		return true;
	}
}
 //-->
