/* Temp fade */

var scenes = new Array("animation", "animation2", "animation3", "animation4", "animation5");
var pointer = 0;

// window.onload = function(){		
	// setFocusInputBoxes();
	// slideShow();
	// for(i = 1; i < scenes.length; i++){
		// document.getElementById(scenes[i]).style.display = "none";
	// }
	// setTimeout("initFade()", 6000);
// }

 /* Temporary Fade */
function initFade(){
	Effect.Fade(scenes[pointer], {from: 1.0, to: 0.0, duration: 2.0, transition:Effect.Transitions.sinoidal});
	pointer++;
	if(pointer == scenes.length){
		pointer = 0;
	}
	Effect.Appear(scenes[pointer], {from: 0.0, to: 1.0, duration: 2.0, transition:Effect.Transitions.sinoidal});
	setTimeout("initFade()", 6000);
}

/* Who is Exhibiting? */

function showExhibitorInfo(id, show){
	if(show == true){
		var allpopups = document.getElementsByTagName("div");
		for(i = 0; i < allpopups.length; i++){
			if(allpopups[i].className == "popup"){
				allpopups[i].style.display = "none";
			}
		}
		document.getElementById(id).style.display = "block";
	}
	else{
		document.getElementById(id).style.display = "none";
	}
	return false;
}

/* Helper Functions */

function setOpacity(obj, value){
	obj.style.opacity = value/10;
	obj.style.filter = 'alpha(opacity=' + value*10 + ')';
}

// Array.push() - Add an element to the end of an array, return the new length
if( typeof Array.prototype.push==='undefined' ) {
 Array.prototype.push = function() {
  for( var i = 0, b = this.length, a = arguments, l = a.length; i<l; i++ ) {
   this[b+i] = a[i];
  }
  return this.length;
 };
}

