/*
 * armorall.com FlowPlayer Video Parameters
 * Updated: 02/18/2010
 * 
 */

$(document).ready(function() {

//tracking
$clxcommon.attachClickAnalytics('video');
$clxcommon.attachClickAnalytics('promo');

$('a[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });



$('div#vid_dirtywheels').flowplayer({src: '/swf/flowplayer.commercial-3.0.7.swf', wmode: 'opaque'},  { 
	
		<!-- Licences: Needed to remove Flowplayer logo from player  -->
		<!--key: '#d8bfd4e132b932b43fb',	<!-- production Licence. Comment out when testing in Staging -->
		key: '#@d8bfd4e132b932b43fb',   		//<!--staging Licence. Comment out when going Live -->
	
		// default clip
		clip:{ 
			url: '/swf/wheel/dirty_wheels.flv',
			autoPlay: true,
			autoBuffering: true,
			onStart: function(clip) { 
    	        $clxcommon.trackAnalyticsPageView('video','dirty-wheels');
	        }
		},											
		
		

		canvas: {backgroundColor: "#fe7d18"},
		
		
		plugins: {
			controls: {
				timeColor: '#ffffff',
				buttonOverColor: '#fe7d18',
				bufferColor: '#fe7d18',
				backgroundColor: '#fe7d18',
				buttonColor: '#ffad11',
				sliderColor: '#ffad11',
				durationColor: '#ffffff',
				progressGradient: 'medium',
			
				sliderGradient: 'none',
				bufferGradient: 'none',
				progressColor: '#fe7d18',
				fullscreen: false,
				opacity:1.0
			}
		}

});

});

