function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("syd_map"));
		map.setMapType(G_NORMAL_MAP);
		map.addControl(new GSmallMapControl());
        map.setCenter(new GLatLng(-33.860843, 151.208256), 16);
        map.openInfoWindowHtml(map.getCenter(), "returnity Sydney<br>Level 9, 155 George Street <br>The Rocks NSW 2000");
      }
}
$(function() {		   
	$('ul.menu').superfish({ 
		delay: 2000,
		animation: {opacity:'show',height:'show'}, 
		speed: 'fast', 
		autoArrows: false, 
		dropShadows: false
        }); 
	$('#test').cycle({
		// speed defines transition speed
		speed:    200,
		// timeout defines the gap between transitions
		timeout:  10000 
	});
    $('.flash_anim').cycle();
	$("#showdialog").click(function(e) {
		$("#dialog").dialog('open');
	});
	$("#logindialog").dialog({
		bgiframe: true,
		autoOpen: false,
		modal: true,
		title: 'Login',
		zIndex: 999,
		buttons: { "Close": function() { $(this).dialog('close'); }, "Submit": function() { 
				$('#reactlogin').submit();
				$(this).dialog('close');
			} 
		}
	});
/*	$("#login").click(function(e) {
		$("#logindialog").dialog('open');
		return false;
	});*/
	$("#show_syd_map").click(function(e) {
		window.open('http://www.hostedona.com/agl/about/syd_map.html','sydmap','width=300,height=300')
		return false;
	});
});