

										 
	var observer = {};
	
	observer.nextEffect = false;
	observer.onPostEffect = function(e){
		if (this.nextEffect)
		{
			var eff = this.nextEffect;
			setTimeout(function(){eff.start();}, 10);
		}
	
		this.nextEffect = false;
	}
	
	
   FadeSlide = function(element, options)
	 {
	 Spry.Effect.Cluster.call(this, options);
	 var duration = 1000;
	 var from = 0;
	 var to = 100;
	 var transition = Spry.fifthTransition;
	 var toggle = false;
	 if (options)
	 {
		if (options.duration != null) duration = options.duration;
		if (options.from != null) from = options.from;
		if (options.to != null) to = options.to;
		if (options.transition != null) transition = options.transition;
		if (options.toggle != null) toggle = options.toggle;
	 }
	var fadeEffect = new Spry.Effect.Fade(element, {duration: 700, from: from, to: to, transition: transition, toggle: toggle});
	var slideEffect = new Spry.Effect.Slide(element, {duration: duration, from: from, to: to, transition: transition, toggle: toggle});
	
	//for Mac/Safari users quick browser sniff
	var ua = navigator.userAgent.toString();
	var re_gecko = /gecko/i;
	var re_safari = /(applewebkit|safari)\/([\d\.]*)/i;
	
	if (ua.match(/mac/i)){
		if (!ua.match(re_safari)){
		    if (ua.match(re_gecko)){
				//alert('mac/FF');
					this.addParallelEffect(fadeEffect);
			 }
		 }
	}
	 this.addParallelEffect(slideEffect);
   };

	 FadeSlide.prototype = new Spry.Effect.Cluster();
	 FadeSlide.prototype.constructor = FadeSlide;
	
	 

function singleVideoSlide(source, panelId){
		 
		 if (toggleVideo.direction == 1){
			window.setTimeout(function(){swfobject.removeSWF('videoPanel')}, 400);
		 } else {
		
		 var temp = $("videoPanel");
			if (!temp ) {
				var div_holder = document.createElement("div");
				div_holder.setAttribute("id", "videoPanel");
				$(panelId).appendChild(div_holder);
			}
		
		 swfobject.createSWF( {data:source, width:"464", height:"298"}, {menu:"false", wmode: "transparent" }, "videoPanel");
		}
		
		toggleVideo.start(); 
	  }
     						 
	

