window.addEvent("domready", function(){								 
	$('menu').getElements('a').each(function(el){
		el.set('morph', {duration: 200});
		el.addEvents({
			'mouseenter': function(){
				this.morph('.navover');
			},
			'mouseleave': function(){
				this.morph('.navup');
			}
		});
	});
});

jQuery.noConflict();

jQuery(document).ready(function()
{
  //hide the all of the element with class msg_body
  jQuery(".msg_body").hide();
  //toggle the componenet with class msg_body
  jQuery(".msg_head").click(function()
  {
    jQuery(this).next(".msg_body").slideToggle(600);
  });
});

jQuery(function(){
	jQuery('.slide-out-div').tabSlideOut({
		tabHandle: '.handle',                     //class of the element that will become your tab
		pathToTabImage: 'images/menu-special-offer.png', //path to the image for the tab //Optionally can be set using css
		imageHeight: '220px',                     //height of tab image           //Optionally can be set using css
		imageWidth: '109px',                       //width of tab image            //Optionally can be set using css
		tabLocation: 'right',                      //side of screen where tab lives, top, right, bottom, or left
		speed: 300,                               //speed of animation
		action: 'click',                          //options: 'click' or 'hover', action to trigger animation
		topPos: '198px',                          //position from the top/ use if tabLocation is left or right
		leftPos: '220px',                          //position from left/ use if tabLocation is bottom or top
		fixedPosition: false                      //options: true makes it stick(fixed position) on scroll
	});

});


function initialize() {
		var latlng = new google.maps.LatLng(43.769575,11.264741);
		var settings = {
			zoom: 16,
			center: latlng,
			mapTypeControl: true,
			mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
			navigationControl: false,
			navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
			mapTypeId: google.maps.MapTypeId.ROADMAP
    };
	var map = new google.maps.Map(document.getElementById("map_canvas_preform"), settings);
	var companyLogo = new google.maps.MarkerImage('/images/logo-google-maps3.png',
	new google.maps.Size(425,125),
	new google.maps.Point(0,0),
	new google.maps.Point(175,85)
);
	var companyPos = new google.maps.LatLng(43.770193, 11.26478);
	var companyMarker = new google.maps.Marker({
	position: companyPos,
	map: map,
	icon: companyLogo,
	title:"Tuscany Bike Tours",
	zIndex: 4
});
}
