//function introEnd(){
    //    EvalSound(true);
	// $("#flashcontent").fadeOut('2000');
$(document).ready(function() {
/*	$(".anythingSlider").css("opacity",1).anythingSlider({
easing: "swing",                // Anything other than "linear" or "swing" requires the easing plugin
        autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not
        startStopped: false,            // If autoPlay is on, this can force it to start stopped
        delay: 3000,                    // How long between slide transitions in AutoPlay mode
        animationTime: 600,             // How long the slide transition takes
        hashTags: true,                 // Should links change the hashtag in the URL?
        buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
        pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        startText: "Start",             // Start text
        stopText: "Stop",               // Stop text
        navigationFormatter: null       // Details at the top of the file on this use (advanced use)

    });
//}
*/
     $('.anythingSlider').cycle({
		fx: 'fade',
        timeout: 8000,
        speed:           1000,
        delay:           4000 
	});

});

function EvalSound(playing) {
  var thissound=document.getElementById('sound1'); //id of embed
  if(document.getElementById('music').className!='selected'){
	thissound.Play();
        document.getElementById('music').className = 'selected';
        setOpacity("music",10);
  }
  else{
        thissound.Stop();
        document.getElementById('music').className = '';
  }
}



function show_scene(id){
	document.getElementById('scene1').style.display = "none";
	document.getElementById('scene2').style.display = "none";
	document.getElementById('scene3').style.display = "none";
	document.getElementById('scene4').style.display = "none";
	document.getElementById('scene5').style.display = "none";
	document.getElementById('scene6').style.display = "none";
	document.getElementById('scene7').style.display = "none";
	
	document.getElementById(id).style.display = "";
}

function setOpacity(id,value) {
    if(value!=1 || document.getElementById(id).className!='selected'){
		document.getElementById(id).style.opacity = value/10;
		//if(this.filters) this.filters.alpha.opacity=value*10;
		document.getElementById(id).style.filter = 'alpha(opacity=' + value*10 + ')';
    }
}

function simplePreload() {
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++) {
   document.imageArray[i] = new Image;
   document.imageArray[i].src = args[i];
  }
}

