function homeEvent(eventid) {
	logItem("homeEvent called with event ID = " + eventid);
	
	//not starting eventCode with '/' for home page...
	var eventCode = "EVENT/flash/tile/TO/";
	
	switch(eventid) {
		case 'opcf':
			trackEvent(eventCode + 'caffeineFree');
			location.href='/about-diet-coke/our-products/caffeine-free.jsp';
			break;
		case 'ce':
			trackEvent(eventCode + 'kitchen');
			location.href='/cooking-entertaining.jsp';
			break;
		case 'rd':
			trackEvent(eventCode + 'heartHealth');
			location.href='/reddress/';
			break;
		case 'sshd':
			trackEvent(eventCode + 'ssHilaryDuff');
			location.href='/styleseries/';
			break;
		case 'sscs':
			trackEvent(eventCode + 'ssChristianSiriano');
			location.href='/styleseries/';
			break;
		case 'sstc':
			trackEvent(eventCode + 'videoTomColicchio');
			showJQM('tom');
			break;
		case 'op':
			trackEvent(eventCode + 'ourProducts');
			location.href='/about-diet-coke/our-products.jsp';
			break;
		case 'mcr':
			trackEvent(eventCode + 'myCokeRewards');
			window.open('http://www.mycokerewards.com/index.jsp?WT.mc_id=SOURCEREG:DIETCOKE&adParam=1#windowType:brand/id:2');
			break;
		default:
			break;
	}
}

$(document).ready(function () {
	if ($.hasFlashPlayerVersion('9')) {
		$('#homeFlash').hide().flash( { 
			swf:'/inc/obj/home/Dock_V2.swf',
			height:650,
			width:990,
			flashvars: {
				xmlPathName :'/inc/obj/home/xml/dock.xml'
			},
			params: {
				wmode:'transparent'
			}
		}).show();
	}
});
