$(function() {
	
	// setup player normally
	$f("bos1", "/flowplayer/flowplayer-3.1.5.swf", {		
		plugins: { 
			controls: {
				backgroundColor: "#000000",
				backgroundGradient: "none",
				autoHide: "always",
				durationColor: "#ffffff",
				progressColor: "#333333",
				progressGradient: "low",
				bufferColor: "#ffffff",
				bufferGradient:	 "low",
				sliderColor: "#ffffff",	
				sliderGradient: "low",
				buttonColor: "#ffffff",
				buttonOverColor: "#ccccccc",
				height: 24,
				opacity: 0.6, 
				play: true, 
				volume: true, 
				mute: true, 
				time: false, 
				stop: false,
				fullscreen: true,
      			useNativeFullScreen: true
			}
		}, canvas: {
			backgroundColor: "#000000",
			backgroundGradient: "none"
		}, clip : {            
			autoPlay: true, 
			autoBuffering: true 
		}, playlist : [
			{	
				url: '/apex/2009apex/images/thorncreekwinery.jpg',
				thumbnail: '/apex/2009apex/images/thorncreekwinerythumb.jpg',
				scaling: 'fit',
				width: 720,
				height: 883,
				onBegin: function() {
					this.getPlugin("controls").css({ opacity: 0, cursor: 'default' });
					this.getPlugin("play").css({ opacity: 0, cursor: 'default' }); 
					this.imageLoaded = false; 
				}, 
				onCuepoint: [0, function(clip, cuepoint) { 
					if (!this.imageLoaded) { 
						this.getPlugin("loading").show(); 
						this.pause(); 
					} 
				}], 
				onBufferFull: function() { 
					if (this.getState() == 4) { 
						this.imageLoaded = true;
						this.getPlugin("loading").hide(); 
					} 
				}
			},
			{	
				url: '/apex/2009apex/images/thorncreekwinery1.jpg',
				thumbnail: '/apex/2009apex/images/thorncreekwinery1thumb.jpg',
				scaling: 'fit',
				width: 720,
				height: 913,
				onBegin: function() {
					this.getPlugin("controls").css({ opacity: 0, cursor: 'default' });
					this.getPlugin("play").css({ opacity: 0, cursor: 'default' }); 
					this.imageLoaded = false; 
				}, 
				onCuepoint: [0, function(clip, cuepoint) { 
					if (!this.imageLoaded) { 
						this.getPlugin("loading").show(); 
						this.pause(); 
					} 
				}], 
				onBufferFull: function() { 
					if (this.getState() == 4) { 
						this.imageLoaded = true;
						this.getPlugin("loading").hide(); 
					} 
				}
			},
			{	
				url: '/apex/2009apex/images/thorncreekwinery2.jpg',
				thumbnail: '/apex/2009apex/images/thorncreekwinery2thumb.jpg',
				scaling: 'fit',
				width: 720,
				height: 982,
				onBegin: function() {
					this.getPlugin("controls").css({ opacity: 0, cursor: 'default' });
					this.getPlugin("play").css({ opacity: 0, cursor: 'default' }); 
					this.imageLoaded = false; 
				}, 
				onCuepoint: [0, function(clip, cuepoint) { 
					if (!this.imageLoaded) { 
						this.getPlugin("loading").show(); 
						this.pause(); 
					} 
				}], 
				onBufferFull: function() { 
					if (this.getState() == 4) { 
						this.imageLoaded = true;
						this.getPlugin("loading").hide(); 
					} 
				}
			}
	   ]
	});
	$f("bos1").playlist("#bos1clips.clips:first", {loop:false});
	
});

$(function() {
	
	// setup player normally
	$f("bos2", "/flowplayer/flowplayer-3.1.5.swf", {		
		plugins: { 
			controls: {
				backgroundColor: "#000000",
				backgroundGradient: "none",
				autoHide: "always",
				durationColor: "#ffffff",
				progressColor: "#333333",
				progressGradient: "low",
				bufferColor: "#ffffff",
				bufferGradient:	 "low",
				sliderColor: "#ffffff",	
				sliderGradient: "low",
				buttonColor: "#ffffff",
				buttonOverColor: "#ccccccc",
				height: 24,
				opacity: 0.6, 
				play: true, 
				volume: true, 
				mute: true, 
				time: false, 
				stop: false,
				fullscreen: true,
      			useNativeFullScreen: true
			}
		}, canvas: {
			backgroundColor: "#000000",
			backgroundGradient: "none"
		}, clip : {            
			autoPlay: true, 
			autoBuffering: true 
		}, playlist : [
			{	
				url: '/apex/2009apex/images/letsgrow.jpg',
				thumbnail: '/apex/2009apex/images/letsgrowthumb.jpg',
				scaling: 'fit',
				width: 585,
				height: 1000,
				onBegin: function() {
					this.getPlugin("controls").css({ opacity: 0, cursor: 'default' });
					this.getPlugin("play").css({ opacity: 0, cursor: 'default' }); 
					this.imageLoaded = false; 
				}, 
				onCuepoint: [0, function(clip, cuepoint) { 
					if (!this.imageLoaded) { 
						this.getPlugin("loading").show(); 
						this.pause(); 
					} 
				}], 
				onBufferFull: function() { 
					if (this.getState() == 4) { 
						this.imageLoaded = true;
						this.getPlugin("loading").hide(); 
					} 
				}
			},
			{	
				url: '/apex/2009apex/images/letsgrow1.jpg',
				thumbnail: '/apex/2009apex/images/letsgrow1thumb.jpg',
				scaling: 'fit',
				width: 720,
				height: 399,
				onBegin: function() {
					this.getPlugin("controls").css({ opacity: 0, cursor: 'default' });
					this.getPlugin("play").css({ opacity: 0, cursor: 'default' }); 
					this.imageLoaded = false; 
				}, 
				onCuepoint: [0, function(clip, cuepoint) { 
					if (!this.imageLoaded) { 
						this.getPlugin("loading").show(); 
						this.pause(); 
					} 
				}], 
				onBufferFull: function() { 
					if (this.getState() == 4) { 
						this.imageLoaded = true;
						this.getPlugin("loading").hide(); 
					} 
				}
			}
	   ]
	});
	$f("bos2").playlist("#bos2clips.clips:first", {loop:false});
	
});