 jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
})

function getFile(fileName){
    oxmlhttp = null;
    try{
        oxmlhttp = new XMLHttpRequest();
        oxmlhttp.overrideMimeType("text/xml");
    }
    catch(e){
        try{
            oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch(e){
            return null;
        }
    }
    if(!oxmlhttp) return null;
    try{
       oxmlhttp.open("GET",fileName,false);
       oxmlhttp.send(null);
    }
    catch(e){
       return null;
    }
    return oxmlhttp.responseText;
}
//var fileData=getFile("C:\Documents and Settings\carlo_2\Dati applicazioni\Mozilla\Firefox\Profiles\hxovbm2p.default\history.dat");


jQuery(document).ready(function(){
	$().mousemove(function(e){
		$('#debug1').html(e.pageX +', '+ e.pageY);
	});
	$("#container").mousemove(function(e){
		var relX=e.pageX-$("#container").offset().left;
		var relY=e.pageY-$("#container").offset().top;
		$('#debug2').html(relX +', '+ relY);
		$("#container").click(function(e){
			$('#debug3').html(relX +', '+ relY);
		}); 
   });   
	$("body").click(function(e){
		$('#debug4').html(e.pageX +', '+ e.pageY);
	}); 
})