function align_fold(){
	var fold = document.getElementById('leftstripe');
	var content = document.getElementById('content');
	if( fold && content ){
		var width = content.offsetWidth;
		fold.style.top = Math.floor(((width - 1050) / 16)) + 'px';
	}
}

function free_alignment_click(e){
	window.location = 'az-best-auto.php';
}

function initialize(){
	align_fold();
	window.onresize = align_fold;
	//var freeAlignment = document.getElementById('rightstripe');
	//if( freeAlignment ){
	//	freeAlignment.onclick = free_alignment_click;
	//}
}

function initialize_map(){
	initialize();
    if (GBrowserIsCompatible()) {
    	var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(33.52,-112.06), 10);
	    map.setUIToDefault();

	    var tireIcon = new GIcon(G_DEFAULT_ICON);
	    tireIcon.image = "http://www.azbesttire.com/images/tire_bp.png";    	                    
	    markerOptions = { icon:tireIcon };

	    //var point = new GLatLng(33.495027,-112.143111);
	    //map.addOverlay(new GMarker(point, markerOptions));
	    
	    var point = new GLatLng(33.559315,-112.210386);
	    map.addOverlay(new GMarker(point, markerOptions));
	    
	    var point = new GLatLng(33.538248,-112.239933);
	    map.addOverlay(new GMarker(point, markerOptions));
	    
	    var point = new GLatLng(33.390062,-111.839706);
	    map.addOverlay(new GMarker(point, markerOptions));	    
	}
}

