// JavaScript Document

function initialize() {
		var latlng = new google.maps.LatLng(38.6497610,-90.5606789);
		var settings = {
			zoom: 15,
			center: latlng,
			mapTypeControl: true,
			mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
			navigationControl: true,
			navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
			mapTypeId: google.maps.MapTypeId.ROADMAP
    	};
	
	var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
	
	var contentString = '<div id="gmap-window">'+
		'<div id="gmap-siteNotice">'+
		'</div>'+
		'<h1 id="gmap-heading" class="gmap-heading">Solution Consultants, INC.</h1>'+
		'<div id="gmap-content">'+
		'<p>Formed in 1989, SCI is one of the oldest and largest locally owned IT consulting companies in St. Louis.  SCI remains a stable resource in the IT industry because we focus on serving our clients and consultants, rather than ourselves.</p>'+
		'</div>'+
		'</div>';
	 
	var infowindow = new google.maps.InfoWindow({
		content: contentString
	});
	
	var companyLogo = new google.maps.MarkerImage('images/googlemaps/scMarker.png',
		new google.maps.Size(195,63),
		new google.maps.Point(0,0),
		new google.maps.Point(94,62)
	);
	var companyShadow = new google.maps.MarkerImage('images/googlemaps/scShadow.png',
		new google.maps.Size(239,40),
		new google.maps.Point(0,0),
		new google.maps.Point(88,39)
	);
	var companyPos = new google.maps.LatLng(38.6497610,-90.5606789);
	var companyMarker = new google.maps.Marker({
		position: companyPos,
		map: map,
		icon: companyLogo,
		shadow: companyShadow,
		title:"Solution Consultants, INC",
		zIndex: 3,
	});
	
	google.maps.event.addListener(companyMarker, 'click', function() {
	  infowindow.open(map,companyMarker);
	});
	
	infowindow.open(map,companyMarker);
}