<!-- tracks31 script javascript 2007 v1.0

/* ----------- */

// Victory event & var clik
// winingURL get from the parent frame, from an hidden form txt field
//Launch ONLY IF CALL FROM PARENT FRAME !
function jeu_souris() {
	//check right script presence
	if(parent.document.jeuFLA) {
		winingURL = parent.document.getElementById('winingURL').value;
		if(document.URL == winingURL) {
			var clik = '2';
			parent.document.jeuFLA.SetVariable('sxy', 'win');
		} else {
			var clik = '1';
		}
		
		//Var initialisation
		function doPassVar(args){
			var sendSxy = args.value;	
			window.document.jeuFLA.SetVariable("sxy", sendSxy);
		}
		
		
		// Temporary variables to hold mouse x-y pos.s
		var tempX = 0
		var tempY = 0
		
		function getMouseXY(e) // works on IE6,FF,Moz,Opera7
		{ 
		  if (!e) e = window.event; // works on IE, but not NS (we rely on NS passing us the event)
		 
		  if (e)
		  { 
			if (e.pageX || e.pageY)
			{ // this doesn't work on IE6!! (works on FF,Moz,Opera7)
			  mousex = e.pageX;
			  mousey = e.pageY;
			  algor = '[e.pageX]';
			  if (e.clientX || e.clientY) algor += ' [e.clientX] '
			}
			else if (e.clientX || e.clientY)
			{ // works on IE6,FF,Moz,Opera7
			  // Note: I am adding together both the "body" and "documentElement" scroll positions
			  //       this lets me cover for the quirks that happen based on the "doctype" of the html page.
			  //         (example: IE6 in compatibility mode or strict)
			  //       Based on the different ways that IE,FF,Moz,Opera use these ScrollValues for body and documentElement
			  //       it looks like they will fill EITHER ONE SCROLL VALUE OR THE OTHER, NOT BOTH 
			  //         (from info at http://www.quirksmode.org/js/doctypes.html)
			  mousex = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
			  mousey = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
			  algor = '[e.clientX]';
			  if (e.pageX || e.pageY) algor += ' [e.pageX] '
			}
		  }
		  sourisXY = mousex+","+mousey+","+clik
		  parent.document.jeuFLA.SetVariable("sxy", sourisXY);
		}
		
		// Set-up to use getMouseXY function onMouseMove
		// getMouseXY
		document.onclick = getMouseXY;
	}
}
//-->