
$(document).ready(init);
function init()
{
/* Using custom settings */
$("a[rel='thumbnail']").fancybox({
	'zoomSpeedIn': 400,
	'zoomSpeedOut': 400,
	'overlayShow': true,
	'enableEscapeButton':true
	})
	.click(function(){
  	_gaq.push(['_trackPageview','/pictures/mainpage']);
	}); 
	function goodbye(e) {
	if(!e) e = window.event;
	//e.cancelBubble is supported by IE - this will kill the bubbling process.
	e.cancelBubble = true;
	alert("Stay tuned");
	//e.stopPropagation works in Firefox.
	if (e.stopPropagation) {
		e.stopPropagation();
	}
  function track(view)
  {
  	_gaq.push(['_trackPageview',view]);
  }
}
//if(window.innerHeight) var windowsize = window.innerWidth;
//else var windowsize = document.body.clientWidth;
//window.onbeforeunload=goodbye;

}