var quots = ["SigX, your way!",
"Halleluja, it's a SigX.",
"SigX, the smart choice.",
"There's a bit of SigX in all of us.",
"Let's SigX!",
"SigX rocks.",
"It's my SigX!",
"SigX - If you love SigX.",
"The original SigX.",
"SigX - One name. One legend.",
"SigX - Your personal entertainer.",
"Nobody doesn't like SigX.",
"Don't play with fire, play with SigX.",
"SigX, better than sex.",
"SigX is good for you.",
"Always the real thing, always SigX.",
"SigX - first class!",
"The SigX way of life.",
"SigX? You bet.",
"Ooh la la, SigX.",
"SigX online.",
"The art of SigX.",
"With a name like SigX, it has to be good.",
"SigX forever.",
"Think different, think SigX.",
"It's not a dream. SigX is real!",
"Break through with SigX.",
"The Power of SigX.",
"SigX, the freshmaker.",
"God made SigX.",
"Everyone loves SigX.",
"There's only one true SigX!",
"You better get inside SigX.",
"Enjoy SigX.",
"SigX for everybody.",
"SigX is your friend.",
"Next stop, SigX.",
"Think. Feel. SigX.",
"Can you feel it? SigX.",
"SigX, you've got it!",
"SigX... whatever you want.",
"I believe in SigX.",
"SigX, the real thing.",
"Just SigX.",
"Oh my goddess, it's a SigX.",
"SigX it's a kind of magic.",
"3... 2... 1... SigX.",
"SigX. We build smiles.",
"SigX for president.",
"Food or SigX? I'll have SigX.",
"SigX will do anything for you.",
"Discover the world of SigX.",
"SigX? Yes please.",
"hhmmmmm... SigX.",
"Stay cool with SigX.",
"SigX is the only way to be happy.",
"No SigX, no kiss.",
"Are you ready for SigX?",
"SigX will be for you what you want it to be.",
"Oh my gods, it's a SigX.",
"SigX innovate your world.",
"Everything is simple with SigX."];
	

pickQuote = function(){
	var num = parseInt((Math.random()*(quots.length)));
	quote = quots[num];
	qdiv = document.getElementById("random");
	changeOpac(0,"random");
	qdiv.innerHTML = quote;
	opacity("random",0,100,1500);	
	starttimer();
	

}

function starttimer()
{
	setTimeout("startdelay()",5000);
}

function startdelay()
{
	opacity("random",100,0,1500);	
	setTimeout("pickQuote()",1700);
}


function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
} 

window.onload = pickQuote;
