﻿VideoAppear =  {
	menuClick : function(DivID) {
		new Effect.Appear(DivID, { duration : 0.3, delay : 0.3 });	
	}	
}

VideoFade =  {
	menuClick : function() {
		new Effect.Fade($("Video"), { duration : 0.3 });
	}	
}




SampleArrows =  {
	menuClick : function(divFadeIn, divFadeOut, InfoFadeIn, InfoFadeOut) {
        
		if ($(divFadeOut).style.display != 'none') {
			new Effect.Fade($(divFadeOut), { duration : 0.3 });
		}
		if ($(InfoFadeOut).style.display != 'none') {
			new Effect.Fade($(InfoFadeOut), { duration : 0.3 });
		}

		new Effect.Appear(divFadeIn, { duration : 0.3, delay : 0.3 });	
		new Effect.Appear(InfoFadeIn, { duration : 0.3, delay : 0.3 });
	}	
}



ExpandSample =  {
	menuClick : function(Main, appearID, fadeID, infoBox) {
	
		
	    if ($(fadeID).style.display != 'none') {
			new Effect.Fade($(fadeID), { duration : 0.2 });
		}
		
	    if ($(infoBox).style.display != 'none') {
			new Effect.Fade($(infoBox), { duration : 0.2 });
		}
		
        new Effect.Appear(appearID, { duration : 0.3, delay : 0.2 });
		new Effect.Appear(Main, { duration : 0.3, delay : 0.2 });	

	}	
}



FadeSample =  {
	menuClick : function(Main, appearID, fadeID, infoBox) {
	
		if ($(appearID).style.display != 'none') {
			new Effect.Fade($(appearID), { duration : 0.2 });
		}
		if ($(Main).style.display != 'none') {
			new Effect.Fade($(Main), { duration : 0.2 });
		}

	    new Effect.Appear(fadeID, { duration : 0.3, delay : 0.2 });
        new Effect.Appear(infoBox, { duration : 0.3, delay : 0.2 });

	}	
}


CloseSample =  {
	menuClick : function(divID) {
       
		new Effect.Fade($(divID), { duration : 0.5 });	

	}	
}