//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 Rona application. 
// In order to work it requires the Xiti's library(xtoi.js)
var RenoFlashEventLogger=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)
	{	
//		if(typeof(xt_med)!='undefined')
//		{xt_med('F','3', flyerPageView+"::"+zoomedInPage);}
//		else
//		{alert('Xiti library was not found. It must be added for logging');}
	}
	
	//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)
	{
//		if(typeof(xt_med)!='undefined')
//		{
//		xt_multc = "&"+pagePrinted;
//		//do not modify below
//		if (window.xtparam!=null){window.xtparam+=xt_multc;}
//		else{window.xtparam =xt_multc;};
//		xt_med('F','3',flyerPageView);
//		}
//		else
//		{alert('Xiti library was not found. It must be added for logging');}
	}
	//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)
	{
//		if(typeof(xt_med)!='undefined')
//		{xt_med('F','3', flyerPageView);}
//		else
//		{alert('Xiti library was not found. It must be added for logging');}
	}
}

//Small diagnostic function
function TestLogger()
{	
//	window.FlashEventLogger.LogZoomEvent('1-2','1',230,45);
//	window.FlashEventLogger.LogPagePrint('1','1');
//	window.FlashEventLogger.LogPageView('1-2');
}
