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.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_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_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function randimg(imgs){
  var randomimg = (Math.floor(Math.random()*imgs))+1
  document.write("<img src=\"images/header-photo" + randomimg + ".jpg\" alt=\"Slide Show Gallery\" name=\"photoimg1\" border=\"0\" id=\"photoimg1\"/>")
}

function random_quote(num){
var quote=new Array()
  quote[0]='I began in the early 1990\'s getting various pains when I was in my mid to late 40\'s. They were foot pain (diagnosed as arthritis), shoulder and elbow pain, hip pain (diagnosed as trochanteric bursitis), much back pain, and especially severe sciatica. I tried everything for over 3 years: physical therapy, acupuncture, chiropractic manipulation, a podiatrist, and various M.D. consultations. I even had, in retrospect a needless operation on my foot to treat the "arthritis." After about 3 ½ years and failing to find any relief I went to the Mayo Clinic. Their verdict: I had fibromyalgia, for which there was no cure, only possible management techniques...'
  quote[1]='I am a 56-year-old female who for most of my life has had to live with continual pain. Even as a young child, my early memories were of pain, mainly in my legs. I was told these were growing pains. Later in life, I had carpal tunnel syndrome and pain in my hands. Then I got lower back pain in the L4-L5 area. I went to many doctors and chiropractors offices for years, but the pain always returned after a short while. Because I couldn\'t take it any longer, I was finally scheduled for back surgery in December 2006. I was in tremendous pain and felt that my only option was to have surgery to get rid of the pain...'
  quote[2]='After years of intermittent anxiety, followed by depression, I knew I could no longer fool myself into thinking that my problem was caused just by a set of certain circumstances. I told myself that I only needed to get beyond the next problem and everything would be okay, only to be faced with a new set of problems that caused me to be anxious or depressed. After medication and therapy, I still did not have the tools to understand and deal with this reoccurring problem. I wasn\'t sure that Dr. Schubiner could help when he invited me to his class. From what I understood, his approach dealt with physical symptoms, not mental or emotional ones...'
  quote[3]='I began to have stomach pains about 9 years ago. They began in the fall and got worse every fall for several years. I tried to ignore it, but when it was particularly bad one fall, I had my gall bladder removed, but the pain continued. The pain intensified each year to the point where I saw several gastroenterology doctors and even went to the U of Michigan for another consultation. No one could identify the problem, and they called it "functional dyspepsia." I started counseling but that didn\'t help...'
  quote[4]='I want to thank you for allowing me to attend the Tension Myositis workshop last year. As you already know, I have played competitive soccer for about 10 years now. I started playing when I was 7. I suffered a back/hip injury about five years ago that never seemed to heal. I didn\'t take any time off and the pain would flare up now and then. Sometimes the pain was so bad that I had to be taken out of the games because I could barely run or strike a ball. I never would know when the pain would hit because some days I would be fine but others I would suffer...'
  quote[5]='I am so glad I found you and your course! It has certainly helped me make tremendous progress in a short time, when I thought I would never see any improvement and I was getting beyond despair. After the first three weeks I was operating at 75-80% of my ability, with pain no more than a 2-3 and often 0-1 on a 1-10 scale (with 1 being the best), and before I started the course I would say I was at 50% of my ability with pain as high as 6-7. I also started to regain the ability to do things that I could not do before, like sit for more than 15-20 minutes at a time with no pain upon getting up, where by week two I could sit for an hour at a stretch multiple times a day with no pain getting up.'
  quote[6]='I am a 23-year-old woman who has had migraine headaches about 3 times a week for about 6 years. For the past year, I started having pains in my lower legs. The pain got so bad that I could not sleep at night. Some nights I didn\'t want to go to sleep because my legs hurt so bad. I saw all sorts of doctors from neurologists to sleep doctors. And I was put on many medications to stop the pain and to help me sleep better. No one could figure out the cause, but my leg pain just kept getting worse. I was referred to Dr. Schubiner and enrolled in the Mind Body Medicine Program...'
  quote[7]='Three years ago I changed to a more physical job and immediately began to have hip pain. Physical therapy did not help and the pain continued to worsen. Within six months my back and joints ached everyday, I could barely walk a flight of stairs, and I was exhausted by midday. Four specialists and three courses of physical therapy later, I was diagnosed with fibromyalgia. I began to understand the emotional stresses that contributed to the hip problem...'
  quote[8]='Before I was referred to Dr. Schubiner by my regular doctor, I was nearly incapacitated. I was "diagnosed" with interstitial cystitis, fibromyalgia, vulvar vestibulitis, irritable bowel syndrome, trochanteric bursitis, back problems, all of which caused PAIN—PAIN—PAIN. I was feeling that my life as an active, productive human being was over. The PAIN as well as the medications (Darvocet, Vicoden, etc.) made me so tired, I could hardly function. Truly I had "chronic fatigue" and I was somewhat depressed and homebound...'
  quote[9]='I am a 59-year-old woman who is generally in very good health. However about 2 years ago, I developed pain in my left upper hip that continually woke me up from sleep during the night. The pain was excruciating and scared me a great deal. I saw my regular internist who took several X-rays and did not find the source of the problem. Then I took Dr. Schubiner\'s Mind Body Medicine class and after starting the meditation and writing techniques, the pain disappeared and has not recurred. I highly recommend taking this class for people who suffer from painful conditions for which no medical therapy has been found...'
  quote[10]='In the spring of 2005, I came to a point where I knew I could no longer sit and wait for a "cure." I needed to take action! Coincidentally, I had just received a brochure from Providence Hospital that gave a brief description of the TMS program: the Mind Body Medicine clinic. After I attended an introductory lecture and an interview, I knew you were offering me a solution to the chronic pain I had experienced for the past 32 years...'
  quote[11]='In May, 2005, my sister and and I were goofing off and standing on our tip toes for about 15 minutes straight. I got a sharp pain in one of my Achilles tendons, and stopped immediately. The pain went away, but about 2 days later I got the same sharp pain in both of my ankles while walking to class. At softball practice that night, my coach made me go see the school trainer. She pressed on my upper calves and on the sides of my lower Achilles tendon. She said I didn\'t have Achilles tendonitis because it only hurt when she pressed on my lower Achilles tendon. When the pain persisted, I went to our family doctor, and he told me that the cause of my problem was the tip-toe walking...'
  quote[12]='I\'ve always been an amateur athlete and sports junkie, but severe low-back pain changed my life from active to sedentary. It started about six years ago. I got the first episode of back pain in January, but got over it relatively quickly and I promptly forgot about it. One year later, it happened again. I reasoned that the two January episodes were linked to a change in exercise patterns: Every November, soccer season ended so I\'d start jogging three days a week in the winter...'
  quote[13]='I have had chronic health problems for over 30 years. I have had a history of Crohn\'s disease, back pain, TMJ and fibromyalgia. I have seen many doctors and tried numerous disciplines. I tried every treatment, every doctor recommended - physical therapy, traction, spinal adjustments, muscle relaxants, pain medications, steroids, TENS treatments, myotherapy, acupressure, acupuncture, hypnosis, novocaine injections, and prolotherapy...'
  quote[14]='I attended a presentation that Dr. Schubiner gave in March of this year concerning our mind\'s ability to create physiological responses to stress. While sitting there I began thinking of a reoccurring chest and left arm pain that I was experiencing on a regular basis. I had seen my physician about it and had had the routinely prescribed tests to determine its cause, and unfortunately nothing was found. I started to think about when these pains would occur...'
  quote[15]='In February of 2007, after living with severe pain for over 4 yrs, I found Dr. Schubiner and his Mind Body Program. In the last four years I have had several diagnostic tests, including 2 MRI\'s, a CT scan, a discogram, and a nerve conduction test. I was told I have 3 bulging discs, spinal stenosis which was impinging on my sciatic nerve and degenerative disc disease, osteoarthritis, and radiculopathy. I tried physical therapy but it didn\'t help...'
  quote[16]='Thank you so much for your encouragement to challenge myself to take control of my pain. I have been in pain for as long as I can remember. My pain has been from the top of my head to the bottom of my toes and I often felt like I had run 20 miles without any training. It made even getting out of bed difficult many mornings. I am so thankful that I was able to take your course in the comfort of my own surroundings and to spend some time mending "me" instead of everyone else for a change...'
  quote[17]='I have had recurring anxiety attacks between January and February every year for many years. I became very frustrated because I did not know what brought on these attacks and why it was happening during the same time frame. I did not want to use medications any more. I decided to attend Dr. Schubiner\'s 3-week TMS class at the suggestion of my primary care doctor. At the end of the 3-week class, I can now say I understand why I was having these anxiety attacks every year around the same time...'
  quote[18]='Well I\'ve been running with no pain, 2 times a week, since the second week of your TMS workshop! I\'m ecstatic! As you know it had been 4 years since I had stopped doing any type of aerobic activity due to an incessant pain in my left buttock and leg. I have now been 90% pain free for the last 6 weeks. I can\'t begin to tell you how happy I am. I truly feel as though I have my life back. At one point 3 years ago, I was entertaining the thought of just getting rid of my leg altogether; I figured a prosthetic leg with no pain was much more appealing than living the rest of my life in pain. Thank goodness I found you...'
  quote[19]='Approximately one year ago, I was diagnosed with polymyalgia rheumatica, a painful condition of the muscles and joints that I knew I had been suffering with for years. In fact, a few months earlier it had gotten so bad I couldn\'t get out of the truck. My career has been in commercial construction for 38 years starting out at the age of 17, and my entire career I have been a go-getter, making things happen. At the age of 20, I was a carpenter foreman, at the age of 22 a superintendent and so my entire life, I\'ve had to deal with deadlines that don\'t change, weather that always changes...'
  quote[20]='Books have always been great sources of information for me. I picked up Dr. John Sarno\'s book "The Divided Mind" and saw myself and my personality characteristics written there. I had been suffering with fibromyalgia, plantar fasciitis and fatigue, amongst other conditions. As I read the book, my fibromyalgia began to get better. I got on the internet and found Dr. Schubiner\'s name and phone number, contacted him and checked out the website. We met, I took his class and my life is different now. The foot pain had bothered me for years. It began suddenly on a hiking trip (not able to hike very much on that trip!)...'
  quote[21]='In the beginning of 2004, I was 26 years old. I had recently acquired a Bachelor\'s degree from The Ohio State University, gotten a job, a promotion, and a new boyfriend. I was looking forward to moving out of my mom\'s home, once again, and establishing my financial independence. After the first month, or so, of my new job position as Assistant to the Director of Marketing, I suddenly got a sharp, stabbing pain over my right ovary. The pain persisted and began cramping my entire pelvic region...'
  quote[22]='The diagnosis was Fibromyalgia. It took about 10 years before I was given that diagnosis, but when I did I was finally glad that someone put a label to a very painful, and at times, strange condition I had. I had a great variety of symptoms such as pain all over my body, fatigue, sensitivity to smells and lights, headaches, and many more. Some days I would feel better than others. I was told there was no cure and that I would have to learn to cope with pain and to maintain myself as much as possible, which would determine my daily quality of living...'
  quote[23]='Since I was in my teens I had developed all kinds of physical symptoms which included IBS, acid reflux, back and neck pain, and overall fatigue. My symptoms would come and go throughout an entire year. I had a family member listen to Dr. Schubiner speak about Tenision Myositis Syndrome and its affect on the body. I decided to see Dr. Schubiner and was diagnosed with Tension Myositis Syndrome. After attending his classes I was able to finally help myself and heal...'
  quote[24]='In order to heal yourself from fibromyalgia and other TMS symptoms, you have to look at the truth in your life, no matter what it is. If you live an illusion, you will never reach the end you seek. Once you make the decision that you will live in truth, there\'s no going back. I wanted to hear the truth and to speak the truth. It is very difficult at times, but I have had to choose either the path that everyone else takes or the road that was right for me...'
  quote[25]='For many years I have struggled with a panic reaction to speaking or reading in public. While many people have public speaking jitters, my reaction has been more severe; resembling a full blown panic-attack. I began to experience panic disorder symptoms (which started as claustrophobia) about 20 years ago. At a later point in time, the panic reaction generalized to situations that involved public presentations. After several years of various forms of treatment, I was able to overcome the claustrophobia and general anxiety, but I still experienced panic when faced with public speaking or reading.'
  quote[26]='I first went to hear Dr. Schubiner give a talk on TMS in preparation for an upcoming graduate class I was going to be taking related to mind body medicine-never considering it would directly impact me. One of his slides listed about a dozen common disorders linked to TMS and to my surprise I have or had experienced about half of them over the past twenty years. These symptoms came and went and appeared to be totally unrelated including: sciatica, irritable bowel syndrome, GERD, migraines, insomnia and neck/shoulder pain. I made an appointment that night for a consultation with Dr. Schubiner that ended up connecting the dots to a long history of pain and suffering...'
  quote[27]='TMS intruded my life in August of 2004. Only two weeks before I started my freshman year of college, I began to notice sharp pains in the metatarsals of my left foot whenever I ran. At the time, I assumed the pain came from the intense workout schedule that I was following as I prepared to try-out for my school\'s soccer team in the fall. Looking back now, however, TMS was clearly the culprit. I was anxious about playing college soccer and overwhelmed by the intensity of our summer workout program. I worried about how I would measure up on this new team, and the thought of being away from home terrified me...'
var quotehead=new Array()
  quotehead[0]='Migraine headaches in a 61-year old man'
  quotehead[1]='Back pain in a 56-year old woman'
  quotehead[2]='Anxiety in a 51-year old man'
  quotehead[3]='Abdominal pain for 9 years'
  quotehead[4]='Sacro-iliac pain in a teenager'
  quotehead[5]='Fibromyalgia in a 42-year old woman'
  quotehead[6]='Leg pain & migraines in a young woman'
  quotehead[7]='Fatigue and Fibromyalgia in a 46-year old woman'
  quotehead[8]='Widespread pain in a 58-year old woman'
  quotehead[9]='Chronic hip pain in a 59-year old woman'
  quotehead[10]='A 68-year old lady with back pain'
  quotehead[11]='All I did was walk on my tip toes!'
  quotehead[12]='Back pain in a 36-year old athletic male'
  quotehead[13]='Back pain, TMJ and fibromyalgia in a 75-year old woman'
  quotehead[14]='Chest pain and sinus congestion in a 42-year old man'
  quotehead[15]='Severe back pain in a 47 year old woman'
  quotehead[16]='Fibromyalgia and sciatica in a 38-year old woman'
  quotehead[17]='Anxiety and panic attacks in a 49-year old woman'
  quotehead[18]='Pain in the buttocks and leg in a 42-year old athletic woman'
  quotehead[19]='Widespread pain in a 55-year old man'
  quotehead[20]='Fibromyalgia, chronic fatigue, and foot pain in a 58-year old woman'
  quotehead[21]='Interstitial cystitis and pelvic pain in a 29-year old woman'
  quotehead[22]='Fibromyalgia in a 45-year old woman'
  quotehead[23]='Neck pain and abdominal symptoms in a 42-year old man'
  quotehead[24]='Fibromyalgia and migraine headaches in a 52-year old woman'
  quotehead[25]='Fear of public speaking in a 51-year old woman'
  quotehead[26]='37-year old woman with sciatica, IBS, GERD, migraines & more'
  quotehead[27]='TMS almost ruined my life!'

var i = 1
var r = 0
var q1 = 99
var q2 = 99
var q3 = 99
var q4 = 99
var q5 = 99
var q6 = 99

var imagea="<img src='../../images/story-pic"
var imageb=".jpg' align='right'>"
//Listen to this story: <object data=\"http://www.yourpainisreal.com/images/musicplayer/musicplayer.swf?&song_url=http://www.yourpainisreal.com/images/upload/03_Male_Migraine_Testimonial.mp3&\" type=\"application/x-shockwave-flash\" width=\"17\" height=\"17\" align=\"absmiddle\"><param value=\"http://www.yourpainisreal.com/images/musicplayer/musicplayer.swf?&song_url=http://www.yourpainisreal.com/images/upload/03_Male_Migraine_Testimonial.mp3&\" name=\"movie\"/><img src=\"noflash.gif\" alt=\"\" width=\"17\" height=\"17\" align=\"absmiddle\"/></object>

var link1a="Listen to this story: <object data=\"http://www.yourpainisreal.com/images/musicplayer/musicplayer.swf?&song_url=http://www.yourpainisreal.com/images/upload/"
var link1b=".mp3&\" type=\"application/x-shockwave-flash\" width=\"17\" height=\"17\" align=\"absmiddle\"><param value=\"http://www.yourpainisreal.com/images/musicplayer/musicplayer.swf?&song_url=http://www.yourpainisreal.com/images/upload/"
var link1c=".mp3&\" name=\"movie\"/><img src=\"noflash.gif\" alt=\"\" width=\"17\" height=\"17\" align=\"absmiddle\"/></object>&nbsp;|&nbsp;"
var link1=""

var link2a="<a href='/index.php?testimonial-"
var link2b="' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('read','','../../images/stories-arrow-over.gif',1)\">Read More<img src='../../images/stories-arrow.gif' name='read' hspace='5' border='0'></a>"

while (i<=num)
{
var r=Math.floor(Math.random()*quote.length)
 while (r == q1 || r == q2 || r == q3 || r == q4 || r == q5 || r == q6)
 {
 var r=Math.floor(Math.random()*quote.length)
 }
if (q1==99) {q1=r; if(q1<6){link1=link1a+q1+link1b+q1+link1c}; document.write("<h3>"+imagea+q1+imageb+quotehead[q1]+"</h3><br>"+quote[q1]+"</div><div class='stories-more'>"+link1+link2a+q1+link2b+"<div>")}
else if (q2==99) {q2=r; document.write("<h3>"+imagea+q2+imageb+quotehead[q2]+"</h3><br>"+quote[q2]+"</div><div class='stories-more'>"+link1+link2a+q2+link2b+"<div>")}
else if (q3==99) {q3=r; document.write("<h3>"+imagea+q3+imageb+quotehead[q3]+"</h3><br>"+quote[q3]+"</div><div class='stories-more'>"+link1+link2a+q3+link2b+"<div>")}
else if (q4==99) {q4=r; document.write("<h3>"+imagea+q4+imageb+quotehead[q4]+"</h3><br>"+quote[q4]+"</div><div class='stories-more'>"+link1+link2a+q4+link2b+"<div>")}
else if (q5==99) {q5=r; document.write("<h3>"+imagea+q5+imageb+quotehead[q5]+"</h3><br>"+quote[q5]+"</div><div class='stories-more'>"+link1+link2a+q5+link2b+"<div>")}
else {q6=r; document.write("<h3>"+imagea+q6+imageb+quotehead[q6]+"</h3><br>"+quote[q6]+"</div><div class='stories-more'>"+link1+link2a+q6+link2b+"<div>")}
i++
}
}