function videoHandler(video_id, video_title, video_url, video_slug, video_image, video_duration) {

	var code = '<iframe src=\'http://bankier.tv/embeder/' + video_id + '.html\' frameborder=\'0\' scrolling=\'no\' width=\'512\' height=\'288\' style=\'margin: 0px; padding: 0px;\'></iframe>';
	var link = 'http://bankier.tv/' + video_slug + '-' + video_id + '.html';

	jwplayer('btv_player_inner').setup({
		flashplayer: MEDIA_URL + 'player/player.swf',
		file: video_url,
		width: 616,
		height: 367,
		stretching: 'uniform',
		autostart: true,
		controlbar: 'bottom',
		provider: 'http',
		'http.startparam': 'start',
		playlist: 'none',
		image: '/' + video_image,
		duration: video_duration,
		volume: 90,

		backcolor: '285177',
		frontcolor: 'FFFFFF',
		plugins: [
			MEDIA_URL + 'player/sharing.swf',
			MEDIA_URL + 'player/adttext.swf',
			// 'adtvideo',
			'gapro-1'
		].join(','),
		'gapro.accountid': 'UA-325086-8',
		'gapro.trackcompletes': 'true',
		'gapro.trackerror': 'true',
		'gapro.pluginmode': 'FLASH',
		// 'adtvideo.config': MEDIA_URL + 'preroll/preroll_' + Math.floor(Math.random()*3) + '.xml',
		'adttext.config': '/videotext' + video_id + '.xml',
		'sharing.code': code, 
		'sharing.link': link,
	});
}

function audioHandler(video_id, video_title, video_url, video_image, video_duration) {
	jwplayer('btv_player_inner').setup({
		flashplayer: MEDIA_URL + 'player/player.swf',
		file: video_url,
		width: 574,
		height: 85,
		stretching: 'uniform',
		autostart: true,
		controlbar: 'bottom',
		'http.startparam': 'start',
		playlist: 'none',
		image: '/' + video_image,
		duration: video_duration,
		volume: 90,
		backcolor: '285177',
		frontcolor: 'FFFFFF',
		plugins: [
			MEDIA_URL + 'player/adttext.swf',
			'gapro-1'
		].join(','),
		'gapro.accountid': 'UA-325086-8',
		'gapro.trackcompletes': 'true',
		'gapro.trackerror': 'true',
		'adttext.config': '/videotext' + video_id + '.xml'
	});
}

