
var videos = {
	bottling: { title: "Bottling Investments and Supply Chain", subtitle:"Irial Finan, Executive Vice President and President<br>Video recorded on February 19, 2010", path: "irial_finan_message.flv", disclaimer: "<p>This material contains historical information regarding the performance of one of The Coca-Cola Company’s operating groups.  Past performance is not indicative of future performance. The future financial performance, results of operations, financial condition and business of the Company as a whole, or any of its operating groups, are dependent on various factors, many of which the Company does not control.</p>" },
	northamerica: { title: "North America Operating Group", subtitle: "J. Alexander M. Douglas, Jr., President<br>Video recorded February 22, 2010", path: "sandy_douglas_interview.flv", disclaimer: "<p>This material contains historical information regarding the performance of one of The Coca-Cola Company’s operating groups.  Past performance is not indicative of future performance. The future financial performance, results of operations, financial condition and business of the Company as a whole, or any of its operating groups, are dependent on various factors, many of which the Company does not control.</p>" },
	latinamerica: { title: "Latin America Operating Group", subtitle: "José Octavio Reyes, President<br>Video recorded March 8, 2010", path: "Jose.flv", disclaimer: "<p>This material contains historical information regarding the performance of one of The Coca-Cola Company’s operating groups.  Past performance is not indicative of future performance. The future financial performance, results of operations, financial condition and business of the Company as a whole, or any of its operating groups, are dependent on various factors, many of which the Company does not control. </p><p>Please note that this material contains information regarding “currency neutral operating income” growth, which is a non-GAAP financial measure, for the Company’s Latin America Group in 2009.  We have posted a schedule on our Company website at <span class=\"nobr\">www.thecoca-colacompany.com</span> under the “Reports & Financial Information” tab in the “Investors” section, which reconciles this non-GAAP financial measure referred to in this material to the Company’s Latin America Group 2009 operating income growth results as reported under U.S. Generally Accepted Accounting Principles (GAAP).  Please look on our website for this information.</p>" },
	eurasia: { title: "Eurasia &amp; Africa Operating Group", subtitle: "Ahmet C. Bozer, President<br>Video recorded March 8, 2010", path: "Ahmet.flv", disclaimer: "<p>This material contains historical information regarding the performance of one of The Coca-Cola Company’s operating groups.  Past performance is not indicative of future performance. The future financial performance, results of operations, financial condition and business of the Company as a whole, or any of its operating groups, are dependent on various factors, many of which the Company does not control.</p><p>This material contains statements, estimates or projections that constitute &#8220;forward-looking statements&#8221; as defined under U.S. federal securities laws. Generally, the words “believe,” “expect,” “intend,” “estimate,” “anticipate,” “project,” “will” and similar expressions identify forward-looking statements, which generally are not historical in nature. Forward-looking statements are subject to certain risks and uncertainties that could cause actual results to differ materially from The Coca-Cola Company’s historical experience and our present expectations or projections.  See the risks discussed in our Company’s filings with the Securities and Exchange Commission (SEC), including our Annual Report on Form 10-K, which filings are available from the SEC. You should not place undue reliance on forward-looking statements, which speak only as of the date they are made. The Coca-Cola Company undertakes no obligation to publicly update or revise any forward-looking statements.</p>" },
	europe: { title: "Europe Operating Group", subtitle: "Dominique Reiniche, President<br>Video recorded March 26, 2010", path: "Dominique.flv", disclaimer: "<p>This material contains historical information regarding the performance of one of The Coca-Cola Company’s operating groups.  Past performance is not indicative of future performance. The future financial performance, results of operations, financial condition and business of the Company as a whole, or any of its operating groups, are dependent on various factors, many of which the Company does not control. </p><p>This material contains statements, estimates or projections that constitute “forward-looking statements” as defined under U.S. federal securities laws. Generally, the words “believe,” “expect,” “intend,” “estimate,” “anticipate,” “project,” “will” and similar expressions identify forward-looking statements, which generally are not historical in nature. Forward-looking statements are subject to certain risks and uncertainties that could cause actual results to differ materially from The Coca-Cola Company’s historical experience and our present expectations or projections.  See the risks discussed in our Company’s filings with the Securities and Exchange Commission (SEC), including our Annual Report on Form 10-K, which filings are available from the SEC. You should not place undue reliance on forward-looking statements, which speak only as of the date they are made. The Coca-Cola Company undertakes no obligation to publicly update or revise any forward-looking statements.</p>" },
	pacific: { title: "Pacific Operating Group", subtitle: "Glenn G. Jordan S., President<br>Video recorded March 8, 2010", path: "Glenn.flv", disclaimer: "<p>This material contains historical information regarding the performance of one of The Coca-Cola Company’s operating groups.  Past performance is not indicative of future performance. The future financial performance, results of operations, financial condition and business of the Company as a whole, or any of its operating groups, are dependent on various factors, many of which the Company does not control. </p><p>This material contains statements, estimates or projections that constitute “forward-looking statements” as defined under U.S. federal securities laws. Generally, the words “believe,” “expect,” “intend,” “estimate,” “anticipate,” “project,” “will” and similar expressions identify forward-looking statements, which generally are not historical in nature. Forward-looking statements are subject to certain risks and uncertainties that could cause actual results to differ materially from The Coca-Cola Company’s historical experience and our present expectations or projections.  See the risks discussed in our Company’s filings with the Securities and Exchange Commission (SEC), including our Annual Report on Form 10-K, which filings are available from the SEC. You should not place undue reliance on forward-looking statements, which speak only as of the date they are made. The Coca-Cola Company undertakes no obligation to publicly update or revise any forward-looking statements.</p>" },
	leadership:  { title: "Highlights from our 2009 Investor and Analyst Event", subtitle: "Video recorded November 16, 2009", path: "2009_Annual_Review_Highlights.flv", disclaimer: "This material contains statements, estimates or projections that constitute “forward-looking statements” as defined under U.S. federal securities laws. Generally, the words “believe,” “expect,” “intend,” “estimate,” “anticipate,” “project,” “will” and similar expressions identify forward-looking statements, which generally are not historical in nature. Forward-looking statements are subject to certain risks and uncertainties that could cause actual results to differ materially from The Coca-Cola Company’s historical experience and our present expectations or projections.  See the risks discussed in our Company’s filings with the Securities and Exchange Commission (SEC), including our Annual Report on Form 10-K, which filings are available from the SEC. You should not place undue reliance on forward-looking statements, which speak only as of the date they are made. The Coca-Cola Company undertakes no obligation to publicly update or revise any forward-looking statements." }
};




var openHeight = 820;
var closedHeight = 500;
var currentVideoName;

function playVideo( videoName )
{
	if ( videos[videoName] != null )
	{
		currentVideoName = videoName;
		pageTracker._trackPageview( "/ourcompany/2009/videos/" + videoName );
		
		var videoObj = videos[videoName];	
		
		// REBUILD flash container
		$("#video-player").html("<div id='video-player-flash'></div>");
		//$("#video-disclaimer-toggle a").text('Hide the disclaimer');
		
		if ( videoObj.path == "")
		{
			$("#video-player-flash").html("<div class='comingsoon'>Video coming soon</div>");
		}
		else
		{
			swfobject.embedSWF("video/videoplayer.swf", "video-player-flash", "470", "405", "9.0.0","",{ videoURL: videoObj.path }, { id:"video-player-flash" }, { id:"video-player-flash" });
		}
		
		$("#video-player-content h2").html( videoObj.title );
		$("#subtitle").html( videoObj.subtitle );
		$("#disclaimer").html( videoObj.disclaimer );
		$("#video-disclaimer-toggle a").text("Hide the disclaimer");
		
		$.fancybox({
			'href' : '#video-player-container',
			'autoDimensions' : false,
			'autoScale' : false,
			'width' : 473,
			'height' : 820,
			'scrolling' : 'no',
			'overlayOpacity' : .9,
			'overlayColor' : "#000",
			'showCloseButton' : true,
			'showNavArrows' : false,
			'titleShow' : false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'onStart' : fb_onStart,
			'onCleanup' : fb_onCleanup
		});
	}

	isDisclaimerShown = true;
}


function fb_onCleanup()
{
	if ( (navigator.userAgent.toLowerCase().indexOf("safari") > -1) &&
			 (navigator.userAgent.toLowerCase().indexOf("chrome") < 0)
		 ) $("#flashmap").show(0);
		
	pageTracker._trackPageview( "/ourcompany/2009/videos_closed/" + currentVideoName );
	
}
function fb_onStart()
{
	if ( (navigator.userAgent.toLowerCase().indexOf("safari") > -1) &&
			 (navigator.userAgent.toLowerCase().indexOf("chrome") < 0)
		 ) $("#flashmap").hide(0);
}


var isDisclaimerShown = true;

jQuery(document).ready(function() {
	
	$("#video-disclaimer-toggle a").click(function()
	{
		if ( isDisclaimerShown )
		{
			$(this).removeClass("hide").addClass("view");
			$(this).text("View the disclaimer");
							
			if ( navigator.userAgent.toLowerCase().indexOf("firefox") < 0) // only non-FF gets animation
			{

				$("#fancybox-wrap").animate({height: closedHeight + 'px'}, 400);
				$("#fancybox-inner").animate({height: (closedHeight - 25) + 'px'}, 400);
			} 
			else
			{
				$("#fancybox-wrap").css('height', closedHeight + 'px');
				$("#fancybox-inner").css('height', (closedHeight - 25) + 'px');
			}
			
		}
		else
		{
			$(this).removeClass("view").addClass("hide");
			$(this).text("Hide the disclaimer");


			if ( navigator.userAgent.toLowerCase().indexOf("firefox") < 0) // only non-FF gets animation
			{
				$("#fancybox-wrap").animate({height: openHeight + 'px'}, 400);
				$("#fancybox-inner").animate({height: openHeight + 'px'}, 400);
			}
			else
			{
				$("#fancybox-wrap").css('height', openHeight + 'px');
				$("#fancybox-inner").css('height', openHeight + 'px');
			}
			
		}
		
		isDisclaimerShown = !isDisclaimerShown;
		return false;
	});
	
});

