var b = 0;
var w = 255;
var d = 0;

var randMax = "";
var randNumb = "";
var text = "";
var head = "";

function onBodyLoad() {

fadeCommentArray();
setTimeout("fadeCommentFunc()",7000);
}

function fadeCommentArray() {

randMax = fadeComment.length;
randNumb = Math.floor(Math.random()*randMax);

text = fadeComment[randNumb][0];
head = fadeComment[randNumb][1];

area = "boxComment";

replaceH = document.getElementById('commentH');
replaceP = document.getElementById('commentP');

}

function fadeCommentFunc(){ 


if (b < 255) {
b = b+10;
replaceH.style.color="rgb("+b+","+b+","+b+")";
replaceP.style.color="rgb("+b+","+b+","+b+")";
setTimeout("fadeCommentFunc()",10);
}
else if (d == 0) {
replaceH.innerHTML = head;
replaceP.innerHTML = "<img src='style/images/bg/quoteOpen.jpg' style='height:11px;width:15px;border:none;'/> "+text+" <img src='style/images/bg/quoteClose.jpg' style='height:11px;width:15px;border:none;'/>";
setTimeout("fadeCommentFunc()",1);
d = 1;
}
else if (w > 0) {
w = w-10;
replaceH.style.color="rgb("+w+","+w+","+w+")";
replaceP.style.color="rgb("+w+","+w+","+w+")";
setTimeout("fadeCommentFunc()",30);
}
else {
b = 0;
w = 255;
d = 0;
fadeCommentArray();
setTimeout("fadeCommentFunc()",7000);
}



}


