//This Event Logger defines the interface to which any derived logger must obey
//to be used correctly by the flash. Once created, the logger are assigned as a window property
var DebugFlashEventLogger=function(flyerId,region,language){
	this.flyerId=flyerId;
	this.region= region;
	this.language=language;	

	this.LogZoomEvent=function(flyerPageView,zoomedInPage, coordX, coordY)
	{	
		alert('The LogZoomEvent must be overriden in application.\n'+'flyerPageView: '+flyerPageView+'\n'+'coordX: '+coordX+'\n'+'coordY: '+coordY+'\nzoomedInPage: '+zoomedInPage);
	}

	this.LogPagePrint=function(flyerPageView,pagePrinted)
	{
		alert('The LogPagePrint must be overriden in application.\n'+'flyerPageView: '+flyerPageView+'\npagePrinted: '+pagePrinted);
	}

	this.LogPageView=function(flyerPageView)
	{
		alert('The LogPageView must be overriden in application.\n'+'flyerPageView: '+flyerPageView);
	}
}
// This class implements the FlashEventLogger specific for the CE application. 
// Since no tracking is present on site, the methods are empty but are called by the flash because it 
// is the same for all project. 
var ForzaniFlashEventLogger=function(flyerId,region,language){
	this.flyerId=flyerId;
	this.region= region;
	this.language=language;	

	//This function handles the logging of a user zoom in on the flyer. 
	//Parameters:
	//			string flyerPageView: The current page(s) viewed by the user. ex: '2-3'
	//			string zoomedInPage: The specific page in which the zoom in occured. ex: '2'
	//			string coordX,coordY: The x and y axis coordinates with the origin set in the bottom
	//						   middle of the flyer. ex:'-50','200' for left page
	this.LogZoomEvent=function(flyerPageView,zoomedInPage, coordX, coordY)
	{	
		
	}
	
	//This function handles the logging of a user request for a page print on the flyer. 
	//Parameters:
	//			string flyerPageView: The current page(s) viewed by the user. ex: '2-3'
	//			string pagePrinted: The specific page that was printed. ex: '2'	
	this.LogPagePrint=function(flyerPageView,pagePrinted)
	{
		
	}
	//This function handles the logging of a user page view request issued either from 
	//page flipping, direct page access throught the dropdown or previous-next navigation
	//Parameters:
	//			string flyerPageView: The current page(s) viewed by the user. ex: '2-3'
	this.LogPageView=function(flyerPageView)
	{
		
	}
}

//Small diagnostic function
function TestLogger()
{	
	window.FlashEventLogger.LogZoomEvent('1-2','1',230,45);
	window.FlashEventLogger.LogPagePrint('1','1');
	window.FlashEventLogger.LogPageView('1-2');
}
