//These are the functions for the text rotation script...

var tickercontent2=new Array()
x = 0;
/*tickercontent2[x++] = 'Stock20 was recently<br>featured on:<br><br><B><a target="_blank" href="http://www.stevengotz.com/">www.stevengotz.com</a></b>';*/
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Keep up the good work. I hope you guys are very successful!<br><br>- Kade (Fairbanks, AK)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'This is a very cool way to buy production music. Thanks.<br><br>- Roland (Buchanan, MI)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'I like it - good tunes - look forward to your growing library!<br><br>- Ken (Seattle, WA)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Great work guys. Nice to see an easy way to buy good music<br><br>- Mal (Bangor NSW Australia)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 10pt;">' + 'I like the fact that I can listen to entire arrangement. Very important in creating the proper mood. Also that I can purchase the exact arrangements that I choose, and not an entire CD that I can maybe only use one selection. Keep up the good work!<br><br>- Freda (Ore City, TX)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Great setup and music, keep up the good work!<br><br>- Casper (New York, NY)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 10pt;">' + 'You are the first site that I have found that truly meets the needs of photographers. Thank you for finally giving us what we need! Multiple format, multiple length tracks, affordability!<br><br>-Amber Schmidt' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Love the music - can\'t wait to use it on my website and in client slideshows. Thanks for including all of the song lengths.<br><br>- Kimberly (Surfside Beach, CA)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 10pt;">' + 'I found your site today and I\'m just thrilled with the music that you are providing. The quality is excellent and even though you do not have the selection some other RF music providers do, what you DO have is just outstanding, unique... I really just love it.<br><br>- Joy (Knightdale, NC)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Keep making great music.<br><br>- Chris (Grass Valley, CA)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Great concept and great tunes. I\'ll be using Stock 20 for as many of my clients projects as I can.<br><br>- Andrew (Queensland, Australia)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Your music sounds wonderful and it is reasonably priced. Thank you!<br><br>- Kathryn (Hays, KS)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Awesome stuff! Thanks for the service :)<br><br>- Teri (Hutto, TX)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'This is wonderful. Looking forward to more great selections.<br><br>- Melanie (Waukesha, WI)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'Love the site and the music! Thanks for creating a low cost alternative with great music selections.<br><br>- Theresa (Acworth, GA)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'I love this site I will be back monthly to look for your new stuff.<br><br>- Sonya (Boynton Beach, FL)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'I LOVE your site, and WILL BE BACK! In addition, I know a lot of folks who I plan to refer to Stock20. THANKS!!!<br><br>- Rhonda (Bailey, MS)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'This website is almost too good to be true!! Excellent selection and at such a great price! I will definitely be coming back again and again!<br><br>- Tamy (Albany, GA)' + '</font>';
tickercontent2[x++] = '<font style="font-size: 11pt;">' + 'I love the service folks! Please keep the new music coming. Music beds are the most important thing to me personally. Thanks again!<br><br>- Dave' + '</font>';
tickercontent2[x++] = '<font style="font-size: 10pt;">' + 'Easy to use interface, simple billing and great customer attention make stock20 the choice of the Gemini Production Group. But the best part—big budget sound without any high expenses or membership fees, and you don\'t need to purchase alternative cuts.<br><br>- Matthew Pessoni' + '</font>';
/*tickercontent2[x++] = '<font style="font-size: 8pt;">' + '' + '</font>';*/

//Functions for text rotation script...
/***********************************************
* DHTML Ticker script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
function fisherYates ( myArray ) {
  var i = myArray.length;
  if ( i == 0 ) return false;
  while ( --i ) {
     var j = Math.floor( Math.random() * ( i + 1 ) );
     var tempi = myArray[i];
     var tempj = myArray[j];
     myArray[i] = tempj;
     myArray[j] = tempi;
   }
}
function domticker(content, divId, divClass, delay, randomizeit, fadeornot){
this.content=content
if (typeof randomizeit=="undefined") {
	fisherYates(this.content) //Randomize variable on initial load...
}
this.tickerid=divId //ID of master ticker div. Message is contained inside first child of ticker div
this.delay=delay //Delay between msg change, in miliseconds.
//this.delay=500 //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
this.pointer=1
this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : ""
if (this.opacitystring!="") this.delay+=500 //add 1/2 sec to account for fade effect, if enabled
this.opacitysetting=0.2 //Opacity value when reset. Internal use.
document.write('<div id="'+divId+'" class="'+divClass+'"><div style="'+this.opacitystring+'">'+content[0]+'</div></div>')
var instanceOfTicker=this
setTimeout(function(){instanceOfTicker.initialize()}, delay)
}
domticker.prototype.initialize=function(){
var instanceOfTicker=this
this.contentdiv=document.getElementById(this.tickerid).firstChild //div of inner content that holds the messages
document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0}
this.rotatemsg()
}
domticker.prototype.rotatemsg=function(){
var instanceOfTicker=this
if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
else{
this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
this.contentdiv.innerHTML=this.content[this.pointer]
this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
this.pointer=(this.pointer<this.content.length-1)? this.pointer+1 : 0
setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container
}
}
domticker.prototype.fadetransition=function(fadetype, timerid){
var contentdiv=this.contentdiv
if (fadetype=="reset")
this.opacitysetting=0.2
if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100
else //IE 5.5
contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")"
}
else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!=""){
contentdiv.style.MozOpacity=this.opacitysetting
}
else
this.opacitysetting=1
if (fadetype=="up")
this.opacitysetting+=0.2
if (fadetype=="up" && this.opacitysetting>=1)
clearInterval(this[timerid])
}
