var strC = "color";

function makeSlide() 
{
	var mySlider = new Fx.Slide('content', {duration: 500});
	mySlider.slideOut(); //toggle the slider up and down.
}

function creation() {
	//document.p5applet.setLine(document.theform.thestring.value);
	document.p5applet.createIt();
	var myFx = new Fx.Style('buttonR', 'opacity').start(0,1); //display a transition from transparent to opaque.
	//var myBounce = $('buttonR').effect('width', {duration: 100, transition: Fx.Transitions.backIn});
	//myBounce.start(0,100);
	//var myBounce = new Fx.Style('buttonR', 'width', {duration:500})
	//myBounce.start(30);
	//return false;
}

function colorB()
{
	strC = "Blue";
	alert (strC);

}

function colorR()
{
	strC = "Red";
	alert (strC);

}

function colorG()
{
	strC = "Green";
	alert (strC);
}




var checkApplet = function () {
    if ( document.applets && document.applets.length > 0 )
    {
        var papplet = document.applets[0];  // processing applet
 
        if ( papplet.frameCount > 0 )  // it's running
        {
            alert( papplet.frameCount );  // do smtg usefull instead ...
        }
        else
        {
            setTimeout( 'checkApplet()', 1000 );  // try again in 1 sec.
        }
    }
}
 

/*
window.onload = function () {
    setTimeout( 'checkApplet()', 1000 );
}
*/