		/* google map */
		var owhtml="<div class='gmapx'>";
			 owhtml+="<img src='images/gmap-img.jpg' width='50' height='25' title='Ready Hedge (IRL) Ltd'/><div><h3>Ready Hedge (IRL) Ltd</h3>";
 owhtml+="<p>Deerpark, Streamstown, Mullingar, Co. Westmeath <br/>Contact: 087 2616812 or email us at info@readyhedge.ie</p></div></div>";

		
		function createMarker(point,html) {
			var marker = new GMarker(point);
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowHtml(html);
			});
			return marker;
		}
		
		function loadmap() {
			if (GBrowserIsCompatible()) {
				var map = new GMap2(document.getElementById("gmap"));
				var point = new GLatLng(53.441525,-7.575873);

				map.addControl(new GLargeMapControl3D());
				map.addControl(new GMapTypeControl());
				map.setCenter(point, 13, G_NORMAL_MAP);
				
				pt_unitic = new GLatLng(53.441525,-7.575873);
				mrk  = createMarker(pt_unitic,owhtml);
				map.addOverlay(mrk);
				mrk.openInfoWindowHtml(owhtml);
			}
			
		}
		

		function menu(){
			$("#nav li").hover(
				function(){
					$(this).children('a:first-child').addClass('hvr');
					$(this).children('ul').stop(true, true).slideDown(200);
				},
				function(){
					$(this).children('ul').stop(true, true).slideUp(200);
					$(this).children('a:first-child').removeClass('hvr');
				}
			);
		}		
	
	function product_fn(){
		// hover on table row
		$('.tbl_avail tr.prod').hover(
			function(){$(this).addClass('trHover');},
			function(){$(this).removeClass('trHover');}
		);
		//click on table row
		$('.tbl_avail tr.prod').click(
			function(){
				$(this).find('a').trigger('click');
			}
		);
	}
