jQuery.noConflict();
jQuery(document).ready(function()
{
	jQuery('#cw-video-youtube').hide();
	jQuery('#cw-video-link').click(function() {
		jQuery('#cw-video-image').hide();
		jQuery('#cw-video-youtube').show();
		//jQuery('#cw-video-youtube').tubeplayer('play', 'F8K3ssIrXLo');	
		return false;
	});
	jQuery("#cw-video-youtube").tubeplayer({
		width: 325, // the width of the player
		height: 200, // the height of the player
		autoplay: 1,
		allowFullScreen: "true", // true by default, allow user to go full screen
		initialVideo: "F8K3ssIrXLo", // the video that is loaded into the player
		playerID: "youtube-player", // the ID of the embedded youtube player
		preferredQuality: "default",// preferred quality: default, small, medium, large, hd720
		onPlay: function(id){}, // after the play method is called
		onPause: function(){}, // after the pause method is called
		onStop: function(){}, // after the player is stopped
		onSeek: function(time){}, // after the video has been seeked to a defined point
		onMute: function(){}, // after the player is muted
		onUnMute: function(){} // after the player is unmuted
	});
	jQuery('#colorbox_link').click(function()
	{
		colorbox_fix();
		return false;
	}
	);

});

function colorbox_fix()
{
		jQuery().colorbox({width:"400px", height:"600px", inline:true, href:"#aweber_box"});
}


