function place_quote_box(_name,width,height) {
   name = _name.replace(/-/g,'_');
   if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		text_swf_count++;
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', width,
			'height', height,
			'src', 'text-font',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'noshow',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', name,
			'bgcolor', '#ffffff',
			'name', name,
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','always',
			'movie', 'text-font',
			'salign', ''
			); //end AC code
	}
}
function cutHex(h) { return (h.charAt(0)=="#") ? h.substring(1,7) : h}
function quote_list(name,interval) {
	this.name = name;
	this.interval = interval;
	this.quotes = new Array();
	this.add = function(s) {
		this.quotes.push(s);
	}
}
var quotes_array = new Array(0);
function add_quote_list(name,interval) {
	quotes_array.push(new quote_list(name,interval));
	return quotes_array[quotes_array.length - 1];
}
var text_swf_ready = false;
var text_swf_count = 0;
function text_swf_go () {
	text_swf_count--;
	if (text_swf_count == 0) {
		text_swf_ready = true;
	} else {
		text_swf_ready = false;
        }
}
function initialQuote(index) {
	if (text_swf_ready == true) {
		quotes_array[index].change();
	} else {
        	setTimeout("initialQuote(" + index + ")",100);
	}
}
function add_quote(_display,list,color,starttime) {
    var display = _display.replace(/-/g,'_');
    quotes_array.push(new quotes_object("quotes_array[" + quotes_array.length + "]",display,list,color));
    var index = quotes_array.length - 1;
    initialQuote(index);
    setTimeout("quotes_array["+index+"].start()",starttime * 1000);
    setColor(display,color);
}
function setColor(_display,color) {
	var display = _display.replace(/-/g,'_');
	if (text_swf_ready == true) {
		// find the right object
		for (var i = 0; i < quotes_array.length; i++) {
			if (quotes_array[i].name == display) {
				quotes_array[i].setColor(color);
			}
		}
	} else {
        	setTimeout("setColor('"+display+"','"+ color + "')",100);
	}
}
function setFont(_display,font,size) {
	var display = _display.replace(/-/g,'_');
	if (text_swf_ready == true) {
		// find the right object
		for (var i = 0; i < quotes_array.length; i++) {
			if (quotes_array[i].name == display) {
				quotes_array[i].setFont(font,size);
			}
		}
	} else {
        	setTimeout("setFont('"+display+"','"+ font + "','"+ size + "')",100);
	}
}
function setAlign(_display,align) {
	var display = _display.replace(/-/g,'_');
	if (text_swf_ready == true) {
		// find the right object
		for (var i = 0; i < quotes_array.length; i++) {
			if (quotes_array[i].name == display) {
				quotes_array[i].setAlign(align);
			}
		}
	} else {
        	setTimeout("setAlign('"+display+"','"+ align + "')",100);
	}
}
function quotes_object(me,name,list,color) {
    this.me = me;
    this.list = null;
    this.name = name;
    this.count = 0;
    this.timer = null; 
    this.interval = 0;
    for (var i = 0; i < quotes_array.length; i++) {
    	if (quotes_array[i].name == list) {
     		this.list = quotes_array[i];
    	}
    }
    this.setColor = function(color) {
	var c = Number("0x" + cutHex(color));
        var mov = this.movie();
        if (mov != null) {
              	mov.setColor(c);
          }
    }
    this.setFont = function(font,size) {
        var mov = this.movie();
        if (mov != null) {
              	mov.setFont(font,size);
          }
    }
    this.setAlign = function(align) {
	var mov = this.movie();
        if (mov != null) {
              	mov.setAlign(align);
         }
    }
    this.change = function() {
            if (this.list.quotes.length > 0) {
                var num = Number(this.list.quotes.length);
                var temp = this.current;
                while (temp == this.current) {
                    this.current =  Math.floor(num  * Math.random()) ;
                }
                var mov = this.movie();
                if (mov != null) {
                	mov.change(this.list.quotes[this.current]);
                }
            }
    }
    this.movie = function() {          
       if (navigator.appName.indexOf("Microsoft") != -1) {
           return window[this.name]
       } else {
           return document[this.name]
       }
   }  
   this.start = function() {
	if (text_swf_ready == true) {
		if (this.list != null) {
           		this.change();
           		this.interval = this.list.interval * 1000;
           		if (this.timer == null) {
               			this.timer = setInterval('top.' + this.me + '.change()',this.interval);
           		}
        	}
	} else {
        	setTimeout('top.' + this.me + '.start()',100);
	}
    }
    this.stop = function () {
        if (this.timer != null) {
            window.clearInterval(this.timer);
            this.timer = null;
        }
    }
}

current = add_quote_list("stage-hypnosis-reviews",25);
current.add("I want to express our appreciation for the wonderful show you put on for our annual Bank party. Your professionalism and friendly personality were a <b>perfect fit for our group</b>. Everyone is talking about the show and as people recall the responses to the various suggestions you made to those who were hypnotized, we laugh all over again. It is a fact that everyone who was at the party was wholeheartedly entertained. The President mentioned that <b>your act (literally) will be a hard act to follow</b> for next year's party. I personally found your program educational as well as entertaining. Your experience was evident as you skillfully performed the hypnotic inductions.<br> -- Carole Westhuis * National Bank of Waupun");
current.add("Her shows are <b>entertaining, lively and always fresh.</b> She relates well to the audience and has a keen sense of timing and execution. As the advisor for several student groups on campus, I have been able to see first-hand Melissa's professional talents on stage as well as with pre-event arrangements.  She has excellent communication skills that have helped my student leaders run programs virtually glitch-free. <b>She has the performance characteristics of a legend, but the energy of a young talent.</b><br> -- Sachin Tuli * Residence Life Coordinator * Witte Hall");
current.add("Melissa's show was perfect for our spring Bid Day! <b>Two hours filled with non-stop laughter.</b> The show ran smoothly because it was well thought out and very organized. Her suggestions to the participants were original, creative, and entertaining. One audience member told me that she has not laughed that hard in years. Not only did her show create life-long memories for everyone present, but also gave the girls on the house a chance to bond with each other and with the new pledges. The performance was <b>definitely the highlight of our Bid Day</b>. I would recommend this show to anyone, and I hope we are lucky enough to have Melissa perform for us again someday.<br> -- Katie Walter * Pi Beta Phi");
current.add("I have co-chaired the 30 Hour Famine for the past three years.  We have asked Melissa Barnes to perform her hypnosis show for us each year. We have consistently been <b>impressed with her professionalism and ability to entertain our crowd</b>. Her shows have always occurred near the end of our fast so it is crucial that she can provide entertainment for the audience, most of whom have been fasting and are hungry. <b>Audience members and participants are always entertained</b> with her shows. She has interesting techniques and storylines that are funny and unique. Our shows are usually composed of people who know each other and they always enjoy seeing their friends in crazy situations!<br> -- Carrie Johnson * 30 Hour Famine Fundraiser");
current.add("The Sellery House Fellows and residents can not think of enough good things to say about your show. <b>It was fantastic!</b> I really enjoyed being hypnotized and felt as well rested as you said I would. I knew I had to see your show again.  When I was thinking of programs for my first year as a House Fellow, I knew you'd be perfect. <b>My residents loved the show</b>. After the shows I heard comments like, 'She was very funny' 'I really had a lot of fun' 'This is the first program I have enjoyed so far' and 'It was great chance to relax, let loose, and enjoy myself.' I hope we can have you perform again.<br> -- Anne Haupt * House Fellow * Sellery Hall");

current = add_quote_list("stage-hypnosis-comments",8);
current.add("\"Two hours filled with non-stop laughter!\"");
current.add("\"Great show!\"");
current.add("\"Lots of fun and great entertainment!\"");
current.add("\"We really had a good time!\"");
current.add("\"Crazy!\"");
current.add("\"Hilarious!\"");
current.add("\"Can't think of enough good things to say about your show!\"");
current.add("\"Pretty cool!\"");
current.add("\"Awesome!\"");
current.add("\"Definitely the highlight of our event!\"");
current.add("\"It rocked!\"");
current.add("\"Haven't laughed that hard in years!\"");
current.add("\"Really great!\"");
current.add("\"Perfect fit for our group!\"");
current.add("\"Hard act to follow!\"");
current.add("\"My residents loved the show!\"");
current.add("\"Keen sense of timing and execution!\"");
current.add("\"Entertaining, lively and always fresh!\"");
current.add("\"Enjoy seeing friends in crazy situations!\"");
current.add("\"Fantastic!\"");
current.add("\"Everyone gets a huge kick out of your shows!\"");