var bgcolor='#FFFFFF'; //set backbground color
var init_r=255; // initial text color (rgb format, matches bgcolor)
var init_g=255;
var init_b=255;

// Browser type

// var ie4=document.all&&!document.getElementById;
var ie4=document.all; // ie4+
var ns4=document.layers; // ns4
var ns6=document.getElementById&&!document.all; // ns6
var DOM2=document.getElementById; // ie4||ns6

if (ie4) { var fheight=85; } // scroller height, ie
else { var fheight=68; } // scroller height, firefox

var delay=ns4 ? 9000 : 7000; // delay between messages (in miliseconds); slow down for ns4
var faderdelay=0;

// var index=0;
var index=Math.floor(Math.random()*12);


// Browser-specific parameters

if (ns4) { 
	FDRfntSiz = "9pt"; // Use points for better Small fonts display; 14px for better Large fonts display
	FDRfntColor=' color=#000000>';
	FDRopenQuote='<b><font face=times new roman size=+1>&#8220;</font><font style=font-size:6px>&#32;</font>';
	FDRcloseQuote='<font style=font-size:6px>&nbsp;</font><font face=times new roman size=+1>&#8221;</font></b><p align=right>&#151;';
}
else { 
	FDRfntSiz = "18px"; // Use pixels, not points, in case Display Properties set to Large fonts
	FDRfntColor='>';
	FDRopenQuote='<i><font style=font-size:18px;font-family:Times New Roman>&#8220;</font><font style=font-size:6px>&#32;</font>';
	FDRcloseQuote='<font style=font-size:6px>&nbsp;</font><font style=font-size:18px;font-family:Times New Roman>&#8221;</font></i>';
	FDRopenCitation='<font style=font-size:10px;line-height:24px;font-family:arial,helvetica,sans-serif'+FDRfntColor+'';
}

begintag='<div align=left><font style=font-size:'+FDRfntSiz+';line-height:24px;font-family:book antiqua,palatino linotype,palatino,serif'+FDRfntColor+'';
closetag='</font></div>';

if (ie4) { var fwidth=525; } // scroller width ie4+
else if (ns4) { var fwidth=525; } // scroller width ns4
else { var fwidth=525; } // scroller width ne6+ 

// Messages
var fcontent=new Array()
fcontent[0]=FDRopenQuote+"I\'ve been hot-flash free for 8 weeks! I\'m not bloated, moody, or anxious. Thank you for making me feel healthier than ever."+FDRcloseQuote+FDRopenCitation+" -Pam J, Ft. Washington, PA"
fcontent[1]=FDRopenQuote+"Olivia\'s Secret really helps with my PMS and menstrual cycle. I hardly have any symptoms after years of horrendous cramps and bloating."+FDRcloseQuote+FDRopenCitation+" -Colleen W, Shawnee, KS"
fcontent[2]=FDRopenQuote+"I was having 4 to 5 hot flashes every day and night. Two weeks after taking Olivia\'s Secret the symptoms disappeared."+FDRcloseQuote+FDRopenCitation+" -Kay D, Travelers Rest, SC"
fcontent[3]=FDRopenQuote+"Within a week I was feeling like my old self. Energetic, happy! All I can say is thank you."+FDRcloseQuote+FDRopenCitation+" -Carmen N, Lincoln, RI"
fcontent[4]=FDRopenQuote+"The comfort level of my sleep has improved 100%. Even my husband was amazed."+FDRcloseQuote+FDRopenCitation+" -Judy H, Atlanta, GA"
fcontent[5]=FDRopenQuote+"I notice a tremendous difference in my overall mental health when I take Olivia\'s Secret. I do not like to run out."+FDRcloseQuote+FDRopenCitation+" -Nicol R, Reston, VA"
fcontent[6]=FDRopenQuote+"I tried other natural remedies which only seemed to take the edge off the symptoms. Olivia\'s Secret has made me human again."+FDRcloseQuote+FDRopenCitation+" -Julie M, Antrim, N. Ireland"
fcontent[7]=FDRopenQuote+"I didn\'t want to take hormone therapy and this was absolutely the answer to my problem."+FDRcloseQuote+FDRopenCitation+" -Betsy D, Naples, FL"
fcontent[8]=FDRopenQuote+"I\'ve been on your product for 2 months now. I recommend it to everyone. Thank you for Olivia\'s Secret. I\'m back in control."+FDRcloseQuote+FDRopenCitation+" -Sharon R, Crescent City, CA"
// fcontent[8]=FDRopenQuote+"I signed up for auto reorder. Olivia\'s Secret is awesome!"+FDRcloseQuote
fcontent[9]=FDRopenQuote+"My doctor had no problem that I took myself off Premarin and started on Olivia\'s Secret. That was almost 4 years ago. Thank you."+FDRcloseQuote+FDRopenCitation+" -Lynn P, Highlands Ranch, CO"
fcontent[10]=FDRopenQuote+"I am like a new person! No more hot flashes and mood swings. Thank you for a wonderful product!"+FDRcloseQuote+FDRopenCitation+" -Barbara R, Hicksville, NY"
fcontent[11]=FDRopenQuote+"Absolute magic &#151; nothing else I have tried helped at all. Thank you Olivia\'s Secret."+FDRcloseQuote+FDRopenCitation+" -M. Spencer, East Yorkshire, England"
fcontent[12]=FDRopenQuote+"Olivia\'s Secret gives you a combined formula with black cohosh and a way to decrease the bloating. It has helped tremendously."+FDRcloseQuote+FDRopenCitation+"<br>-Juanita S, Ontario, CA"

if (DOM2) { faderdelay=2000; }  // ie4||ns6

//function to change content
function changecontent() {
	if (index>=fcontent.length) {
		index=0; }
	if (DOM2) { // ie4|ns6
		document.getElementById("fscroller").style.color="rgb(255,255,255)";
		document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag;
		colorfade();
		}
	else if (ie4) {
		document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag; }
	else if (ns4) {
		document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag);
		document.fscrollerns.document.fscrollerns_sub.document.close();
		}
	index++;
//	index=Math.floor(Math.random()*12);
	CCtimeout = setTimeout("changecontent()",delay+faderdelay);
}


frame=20; // 20 frames fading process
hex_r=init_r;  // Initial color value
hex_g=init_g;
hex_b=init_b;

function colorfade() {
if(frame>0) {
	hex_r-=12; // decrease color value
	hex_g-=12;
	hex_b-=12;
	document.getElementById("fscroller").style.color="rgb("+hex_r+","+hex_g+","+hex_b+")"; // Set color value.
	frame--;
	setTimeout("colorfade()",20);
}
else {
	document.getElementById("fscroller").style.color="rgb(0,0,0)";  // final text color (eg, black)
	frame=20;
	hex_r=init_r;  // Reset Initial color value
	hex_g=init_g;
	hex_b=init_b;
	}
}

if (ns4) {
	document.write('<ilayer id="fscrollerns" width='+fwidth+' height='+fheight+' bgColor='+bgcolor+'><layer id="fscrollerns_sub" width='+fwidth+' height='+fheight+' left=6 top=4></layer></ilayer>'); }
else { document.write('<div id="fscroller" style="border:0px solid black; background-Color:'+bgcolor+'; width:'+fwidth+';height:'+fheight+';padding:6px"></div>'); }

// window.onload=changecontent

