

function ForumAudios() {
	this.isShortClip=false;
	this.isAudios=true;
	this.isPublicUrl=true;
}

ForumAudios.prototype.melb0903=new Array(
new Array('','2009/CosfordHandout-MelbourneMarch2009InfectionsDysbiosisandMINDD.pdf','Infections, Antibiotics, Dysbiosis & Mindd','Dr. R. Cosford',true),
new Array('','2009/Duff-Melbourne-AutismandADHD.pdf','Autism and ADHD','Jacques Duff',true),
//new Array('','2009/Mack-Melbourne09-NeuroTherapies.pdf','Neuro Therapies','Martha Mack',true),
new Array('','2009/McGinnis-Melbourne2009SecondtalkOxidativeStressbrainfindingsMauve.pdf','Oxidative Stress, brain findings, Mauve','Dr. Woody McGinnis',true),
new Array('','2009/Shattock-Melbourne09.pdf','A Rational Approach to Treating Autism','Paul Shattock',true),
new Array('','2009/Wheelwright-Melbourne09Melbourne.pdf','Which Diet is the Right Diet for My Child','Karen Wheelwright',true)
);



ForumAudios.prototype.mifoc09general=new Array(
new Array("","2009/02-SAT-G-03_Mumper_SatGP_Metabolic.pdf","Metabolic","Dr Elizabeth Mumper",true),
new Array("","2009/02-SAT-G-04_Wardly.pdf","The Answer May Be In The Genes","Dr Juanita Wardley",true),

new Array("","2009/02-SAT-G-05_MatthewBourkeAllergyWorkshop3.pdf","Allergy Workshop","Matthew Bourke",true),
new Array("","2009/02-SAT-G-06A_Dalton_Sat_GP.pdf","Natural Solutions for Improving Digestive Function & Healing the Gut","Frances Dalton",true),
new Array("","2009/02-SAT-G-06B_2009SichelMINDD.pdf","Chelating Our Children From Heavy Metals","Michael Sichel",true),

new Array("","2009/02-SAT-G-07_PURECTakingMedicineCanBeEasierKimGould.pdf","Taking Medicine Can Be Easier","Kim Gould",true),
new Array("","2009/02-SAT-G-08_CARDAust.Presentation2009version2.pdf","The Child As A Whole","Vince Redmond",true),
new Array("","2009/02-SAT-G-10_Hermiston-Homeopathy.pdf","Homeopathic Drug Free Solutions  for ASD Kids","Nyema Hermiston",true)
);
ForumAudios.prototype.mifoc09food=new Array(
new Array("","2009/01-FRI-01_Cosford_Fri_Infections-Dysbiosis-Mindd_MIFOC09.pdf","Infections, Dysbiosys","Dr Robyn E Cosford MBBS(Hons)FACNEM",true),
new Array("","2009/01-FRI-02_Hungerford_SoilHealth_FriMIFOC09.pdf","Soil Health and why it matters for Human Health","Dr Carole Hungerford",true),
new Array("","2009/01-FRI-03_MatthewsGeneral.pdf","Nourishing Our Children","Julie Mathews",true),
new Array("","2009/01-FRI-04_KarenWheelwrightMarch09Melbourne.pdf","Which Diet is the Right Diet for MY Child?","Karen Wheelwright",true),
new Array("","2009/Davis_Recipes.pdf","Traditional Foods","Holly Davis",true),
new Array("","2009/Hunt_Recipesx.pdf","Body Ecology Diet","Maria Hunt",true),
new Array("","2009/Hywood_Recipes.pdf","Healing Herbs","Angela Hywood",true),
new Array("","2009/Ramacher_recipesF.pdf","MONDAY’S LUNCHBOX","Sandra Ramacher",true),
new Array("","2009/Matthews_Recipesx.pdf","Nourishing Hope","Julie Matthews",true)
);


ForumAudios.prototype.cranbrook0903=new Array(
new Array('','2009/MinddFoundation-Cranbrookhandouts.pdf','Mindd handouts','Mindd Foundation',true),
new Array('','2009/CranbrookKdeVosrevisedCranbrookHandout.pdf','Cranbrook handout','K de Vos',true),
new Array('','2009/UnderwoodCranbrook-2009.pdf','Food, Chemicals, the Gut &amp; Behaviour','Dr. A. Underwood',true)
);




ForumAudios.prototype.therapiesInfos=new Array(
new Array('D1 Bourke_128K.mp3','','Allergy Relief','Matthew Bourke, BMS Chirop.*',true),
new Array('D1R2 Courtney_128K.mp3','2007/Friday/Courteney - Forum 2007.pdf','Breathing Dysfunction In Kids','Rosalba Courtney, ND DO*',false),
new Array('D1 Taylor_128K.mp3','2007/Friday/Gates - Forum 2007.pdf','LEAP; Kinesiology','Janet Taylor*',true),
new Array('D2 FultonSichel_128K.mp3','2007/Saturday/Sichel - Forum 2007.pdf','Natural Solutions','M. Sichel, ND DO PhD & Frances Dalton, ND Herb Nutr*',true),
new Array('D3 Baden_128K.mp3','2007/Sunday/Baden - Forum 2007.pdf','Asthma','Daniel Baden, ND*',true),
new Array('D3 GriffinLanham_128K.mp3','2007/Sunday/Griffin - Forum 2007.pdf','Sequential & Integrative Homeopathy','C. Griffin & L. Lanham, DIs Hom*',false),
new Array('D3 Fravall_128K.mp3','2007/Sunday/Fraval - Forum 2007.pdf','Osteopathy For ASD & Inflammation','M. Fravall, DO MOSc*',true),
new Array('D3 Darcey_128K.mp3','','Integrating Alternative Treatments W/ Biomedicine','Anne Darcy, RN ND*',false),
new Array('D2 Hermiston_128K.mp3','','Homeopathy For Children','N. Hermiston, RN ND*',false)
);


ForumAudios.prototype.biomedicineInfos=new Array(
new Array('D1 Cole_128K.mp3','2007/Friday/ColeWeb - Forum 2007.pdf','Prenatal Care','Dr. Valerie Cole*',false),
new Array('D2 Bock_128K.mp3','2007/Friday/Bock - Forum 2007.pdf','Healing The New Childhood Epidemics','Dr. K. Bock*',true),
new Array('D3 Usman_128K.mp3','2007/Saturday/Usman - Forum 2007.pdf','Environment & Genetics','Dr. A. Usman*',true),
new Array('D3 Lord_128K.mp3','2007/Sunday/Lord - Forum 2007.pdf','Scientific Basis For Biomedical Treatments','R. Lord PhD*',true),
new Array('D2 Quig_128K.mp3','2007/Sunday/Quig - Forum 2007.pdf','Studies Of Metals In Neuro-Developmental Disorders','David Quig PhD*',false),
new Array('D2 Cosford_128K.mp3','','Infections','Dr. Robyn Cosford*',true),
new Array('D2 Bode_128K.mp3','2007/Saturday/Bode - Forum 2007.pdf','Issues with Excitotoxins & PSTs','Dr. Sinclair Bode*',false),
new Array('D2 Dingle_128K.mp3','','Environmental Contaminants & Kids','Peter Dingle, PhD*',true),
new Array('sun06_disc1_2_lord.mp3','','Focusing Biomedical Treatments With Laboratory Data','R. Lord Phd*',false),
new Array('D4 Bock_128K.mp3','','Treatments For Immune System Dysfunction & Inflammation','Dr. K. Bock*',true),
new Array('D4 Usman_128K.mp3','','Safe Path To Heavy Metal Detoxification','Dr. A. Usman*',false),
new Array('D3 Quig_128K.mp3','','Pharmacology & Lab Evidence Supporting Chelation','D. Quig, PhD*',false),
new Array('D3 Underwood_128K.mp3','2007/Sunday/Underwood - Forum 2007.pdf','Case Studies In MINDD Illness','Dr. A. Underwood*',false),
new Array('D3 Stuckey_128K.mp3','2007/Sunday/Stuckey - Forum 2007.pdf','The Pfeiffer Approach','Dr. R. Stuckey*',false),
new Array('sat06_desc3_1_varipatis.mp3','','Toxicity & Neuro-Developmental Problems','Dr. E. Varipatis*',false),
new Array('D3 Harnett_128K.mp3','','Prenatal Care As Prevention','Joanna Harnett, PhD*',false)
);



ForumAudios.prototype.dietInfos2=new Array(
new Array('D1 Fallon_128K.mp3','2007/Friday/Fallon - Forum 2007.pdf','Nourishing Traditions','Sally Fallon*',true),
new Array('D1McBride_128K.mp3','2007/Friday/Campbell McBride - Forum 2007.pdf','Gut And Psychology Syndrome','Dr. Natasha Campbell-McBride*',true),
new Array('sat06_disc2_1_mcbride','','Learning Disabilities, Diabetes, Allergies; The Gut Connection','Dr. Campbell-McBride*',false),
new Array('D1 Wheelright_128K.mp3','2007/Friday/Wheelwright - Forum 2007.pdf','The Right Diet?','Karen Wheelright*',true)
);

ForumAudios.prototype.dietInfos=new Array(
new Array('D1 Fallon_128K.mp3','2007/Friday/Fallon - Forum 2007.pdf','Nourishing Traditions','Sally Fallon*',true),
new Array('D1 Gates_128K.mp3','2007/Friday/Gates - Forum 2007.pdf','Body Ecology Diet','Donna Gates*',true),
new Array('D1McBride_128K.mp3','2007/Friday/Campbell McBride - Forum 2007.pdf','Gut And Psychology Syndrome','Dr. Natasha Campbell-McBride*',true),
new Array('D1 Wheelright_128K.mp3','2007/Friday/Wheelwright - Forum 2007.pdf','The Right Diet?','Karen Wheelright*',true),
new Array('sat06_disc2_1_mcbride','','Learning Disabilities, Diabetes, Allergies; The Gut Connection','Dr. Campbell-McBride*',false),
new Array('D3 Williams_128K.mp3','','The Dietary Wheelchair','Donna Williams, Adult with Autism*',true),
new Array('D2 McBride_128K.mp3','','Managing GAPS On A Daily Basis','Dr. Campbell-McBride*',true),
new Array('sat06_disc2_2_gates.mp3','','Body Ecology Diet In Practice','Donna Gates*',false)
);


ForumAudios.prototype.neuroInfos2=new Array(
new Array('D1 Larter_128K.mp3','2007/Friday/Larter - Forum 2007.pdf','Visual Processing','Sue Larter*',true),
//new Array('D1 Mack_128K.mp3','2007/Friday/Mack - Forum 2007.pdf','Sound Therapies','Martha Mack*',true),
new Array('D1R2 Ahrens_128K.mp3','2007/Friday/Ahrens - Forum 2007.pdf','Floortime','Georgina Ahrens*',true)
);

ForumAudios.prototype.neuroInfos=new Array(
new Array('D1 Larter_128K.mp3','2007/Friday/Larter - Forum 2007.pdf','Visual Processing','Sue Larter*',true),
//new Array('D1 Mack_128K.mp3','2007/Friday/Mack - Forum 2007.pdf','Sound Therapies','Martha Mack*',true),
new Array('D1 Wilson_128K.mp3','','Auditory Processing & Speech','Wayne Wilson PhD*',false),
new Array('D1R2 Ahrens_128K.mp3','2007/Friday/Ahrens - Forum 2007.pdf','Floortime','Georgina Ahrens*',true),
new Array('D1R2 RogFraser_128K.mp3','','Applied Behavioural Analysis','Rogerson-Fraser*',false),
new Array('D2 Duff_128K.mp3','','NeuroFeedback','Jacques Duff, MAPs, AMACNEM*',true),
new Array('D2 Gutstein_128K.mp3','','Relationship Development Intervention','Dr. Gutstein*',false)
);

ForumAudios.prototype.otherInfos=new Array(
new Array('D1R2 Filmer_128K.mp3','','Tips For Teachers & Educators','Rhonda Filmer*',false),
new Array('D1R2 Watson_128K.mp3','','Managing Grief & Relationships','Justine Watson*',false),
new Array('D2 Brenton_128K.mp3','','Managing Treatments','Jan & David Brenton*',false)
//new Array('D3 Austin_128K.mp3','2007/Sunday/Austin - Forum 2007.pdf','Making Sense Of All The Options','D. Austin, PhD*',true)
);

ForumAudios.prototype.playAudio=function(url) {
	var d=document.getElementById('audioEmbed');
	//url=url.replace(".mp3",".m3u");
  var sx = new SWFObject('/serendipity/templates/mindd/mediaplayer.swf','apv','470','20','7');
  sx.addVariable('width','470');
  sx.addVariable('height','20');
  sx.addVariable('autostart','true');
  sx.addVariable('file',url);
  sx.write('audioEmbed');

if(0) {
	d.innerHTML='<EMBED src="'+url+'" autostart="true" loop=false volume=100 hidden=false></embed>';
	d.innerHTML='<OBJECT id="VIDEO" width="320" height="240" '+
		'	CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"'+
		'	type="application/x-oleobject">'+
		'	<PARAM NAME="URL" VALUE="http://mindd.org'+url+'">'+
		'	<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">'+
		'	<PARAM NAME="AutoStart" VALUE="True">'+
		'	<PARAM name="PlayCount" value="1">'+
		'</OBJECT>';
}
}

ForumAudios.prototype.printFileInfo=function(info) {
	if(info[4]!=true && this.isShortClip) {
		return;
	}
	if(info[1]=="" && this.isAudios!=true) {
		return;
	}

	var desc="<b>"+info[2]+"</b>,"+info[3];
	document.writeln("<tr><td width='100%'>");
	if(this.isShortClip) {
		url="/audio_shorts/"+info[0];
	} else {
		url="/registration_user_files.php/members/audio/"+info[0];
	}

	var pptUrl="/registration_user_files.php/members/pdfs/"+info[1];
	if(this.isPublicUrl) {
		url="uploads/public_members/audio/"+info[0];
		pptUrl="uploads/public_members/pdfs/"+info[1];
	}
	if(this.isAudio!=true) {
		document.writeln("<a href='"+pptUrl+"'>"+desc+"</a>");
	} else if(info[0]!="") {
		document.writeln("<a href='javascript:;' onclick='javascript:ForumAudios.prototype.playAudio(\""+url+"\");'>"+desc+"</a>");
	} else if(info[1]!="") {
		document.writeln("<a href='"+info[1]+"'>"+desc+"</a>");
	} else {
		return;
	}

	document.writeln("</td>");
	if(!this.isShortClip) {
		if(this.isAudios==true && info[0]!="") {
			document.writeln("<td><a href='"+url+"'><img src='/icons/small/sound.gif' title='Right click and Save As' border='0' /></a></td>");
		}
		if(info[1]!=""){
			document.writeln("</td><td><a href='"+pptUrl+"'><img src='uploads/misc/pdf.gif' title='Powerpoint' border='0' /></a></td>");
		}
	}
	document.writeln("</tr>");
}


ForumAudios.prototype.printFileInfos=function(infos) {
	for(var i=0; i<infos.length; i++){
		this.printFileInfo(infos[i]);
	}
}

ForumAudios.prototype.printSection=function(title,infos) {
	document.writeln("<font class='title2'>"+title+"</font>");
	document.writeln("<table border='0' width='100%'>");
	this.printFileInfos(infos);
	document.writeln("</table><br />");
}

ForumAudios.prototype.printSections=function() {
	this.printSection("Mindd International Forum On Children '09, Sydney, Food Is Medicine, 15 May 2009",this.mifoc09food);
	this.printSection("Mindd International Forum On Children '09, Sydney, General Session, 16-17 May 2009",this.mifoc09general);
	this.printSection("Integrative Solutions, Cranbrook, March 24 '09",this.cranbrook0903);
	this.printSection("Integrative Solutions, Melbourne, March 7 '09",this.melb0903);
	this.printSection('Allied Therapies',this.therapiesInfos);
	this.printSection('Biomedicine',this.biomedicineInfos);
	this.printSection('Diet',this.dietInfos);
	this.printSection('Neuro & Behavioural Therapies',this.neuroInfos);
	this.printSection('Other',this.otherInfos);
}


ForumAudios.prototype.printSections2=function() {
	this.printSection('Biomedicine',this.biomedicineInfos);
	this.printSection('Diet',this.dietInfos2);
	this.printSection('Neuro & Behavioural Therapies',this.neuroInfos2);
}

