var keys = { 
 'kcdhh.org' : '#$1c8d5f8be8ed817c174', 
 'kcdhh.net' : '#$fa0865dc02947d211ca', 
 'kcdhh.com' : '#$79765b4d2294088f19d',
 'kcdhh.ky.gov' : '#$c84d18957c17675fd09'  
};

flowplayer("player", "../media/fp/flowplayer-3.1.0.swf", {

  key: keys[location.host.replace("www.", "")],
	// key: '$1c8d5f8be8ed817c174',

	clip: {  
	autoPlay: true,
	autoBuffering: true,
	fadeInSpeed: 4000,
	showCaptions: true,
	captionUrl: '../media/ice-captions.srt'
	},

	plugins:  { 
	    // default controls with the same background color as the page background 
		controls:  { 
			backgroundColor: '#ffffff',
			backgroundGradient: 'none',             
			play:true, 
      			volume:false, 
      			mute:false, 
      			time:true, 
      			stop:true, 
      			playlist:false, 
      			fullscreen:true,   
			height:30, 
			progressColor: '#2382c4', 
			bufferColor: '#254558' //'#333333' 
		}, 
		
		//configure a content plugin to that it looks good for showing subtitles 
		content: { 
			url:'../media/fp/flowplayer.content-3.0.2.swf', 
			bottom: 30, 
			width: '100%', 
			height:50,
			backgroundColor: '#254558',
			backgroundGradient: 'low',
		  	opacity: 1.0,
			border: 0, 
			style: {  
				body: {  
				fontSize: '16px',
				fontWeight: 'bold',
				fontFamily: 'Verdana, Helvetica, sans-serif', 
				textAlign: 'center', 
				color: '#ffffff' 
				}  
			}
		},
		
		captions: { 
			url: '../media/fp/flowplayer.captions-3.0.0.swf',
			//pointer to content plugin 
			captionTarget: 'content'
		}
	},
	
	screen: { 
		width:448,
		height:336,
		top:0 
	},
	
	// logo: { 
		// url: 'media/img/KCDHH-splash.jpg', 
		// fullscreenOnly: false,
		// fadeSpeed: 10000,
		// zIndex:0, 
		// top: '65%', 
		// left: '50%' 
	// },
	
	canvas: {
		backgroundColor: '#ffffff'
	}
});
function getField() {
	return document.getElementById('info');
	}
function info(infostr) {
	getField().innerHTML = infostr;
	return false;
	}
var actions = {
	captionOff: function(content) {
		$f().getPlugin(content).hide();
		$f().getControls().animate({top:'88%'}, 1000);
	},
	captionOn: function(content) {
		$f().getPlugin(content).show();
		$f().getControls().animate({top:'96.5%'}, 1000);
	}
}			
