$(function(){

    /* $('#pictureSlideshow').cycle({ 
	fx:     'toss',
	timeout: 4000, // msecs between slides
	speed: 900,
        animOut: { left: "0", top: "0" }, // hack to avoid the toss ("0" evaluates to true, but doesn't do anything)
        timeoutFn: function (current, next, opts, isForward) {
            return opts.currSlide % 2 == 1 ? 1200 : false;
        }
    });*/


    /*$('#pictureSlideshow').slideshow({
        title:false,
        panel:false,
        play:true,
        playframe:false,  
	height: 400,
	width: 800,
	time:8000,  
	effect:'random',
	effecttime:1500,
    });*/


    /*    var index = -1;
    var ps = $(".frontpageText p");
    
    function animateText() {
	index = (index + 1) % ps.length;
	var left = Math.floor(Math.random() * 400);
	var top = Math.floor(Math.random() * 300);

	var p = ps.eq(index);
	
    	p.css({ left: left, top: top });

	var randNum = Math.floor(Math.random() * 3);
	if (randNum == 0) {
	    p.fadeIn(2000, function() {
		setTimeout(function() {
		    p.fadeOut(2000, function() {
			setTimeout(animateText, 1000);
		    });
		}, 2000);
	    });
	}
	else if (randNum == 1) {
	    p.fadeIn(2000, function() {
		index = (index + 1) % ps.length;
		var next = ps.eq(index);
		next.css({ left: left + 30, top: top + 50 });
		next.fadeIn(1000, function() {
		    next.animate({ left: left + 75 }, 5000);
		    
		    setTimeout(function() {
			p.fadeOut(2000, function() {
		 	    next.fadeOut(1000);
			    setTimeout(animateText, 2000);
			}, 2000);
		    });
		});
	    });
	}
	else if (randNum == 2) {
	    p.fadeIn(4000, function() {
		setTimeout(function() {
		    p.fadeOut(4000, function() {
			setTimeout(animateText, 1000);
		    });
		},100);
	    });
	}
    }

    
    animateText();*/
});
