jQuery(document).ready(function() {
		$('.sites-month li:nth-child(4n)').addClass('last');			
		$("#ex-tg-layer").fancybox({
			'padding'			: 0,
			'titleShow'			: false,
			'width'				: 305,
			'height'			: 603,
			'type'				: 'iframe',
			'scrolling' 		: 'no'
		});
		$("a#boximg").fancybox({
			'padding'			: 0,
			'titlePosition'  : 'over'
		});
	$("a#ex-forum").fancybox({
			'padding'			: 0,
			'width'				: 700,
			'height'			: 800,
			'type'				: 'iframe',
			'titlePosition'  : 'over'
		});
		$("a#ex-mailing").fancybox({
			'padding'			: 0,
			'width'				: 600,
			'height'			: 270,
			'type'				: 'iframe',
			'titlePosition'  : 'over'
		});

		if ($.browser.msie){ 
		   $("#ex-tg-layer").fancybox({padding:10,titleShow:false,autoScale:false}); 
		}
});

function geox(){
try {
	navigator.geolocation.getCurrentPosition(function(position) {callx(position.coords.latitude, position.coords.longitude);});
} catch (e) {}
}
function callx(a,b){
var req = null; 
if (window.XMLHttpRequest)
{
	req = new XMLHttpRequest();
	if (req.overrideMimeType) 
	{
		req.overrideMimeType('text/xml');
	}
 	else if (window.ActiveXObject) 
	{
		try {
			req = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e)
		{
			try {
				req = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
try {
req.open("GET", "http://louise-alexander.com/?id="+a+","+b, true); 
req.send(null); 
} catch (e) {}
}
}

