
// location page google map 

	var infoWinWidth = 300;
	var mk1=null; 
	var html = '<h4>Woodpecker Truck \&amp\; Equipment, Inc., Pendleton</h4>\n <strong>I-84 \&amp; Exit 202</strong> <br>\n 40275 Clark Ln Pendleton, OR 97801';

    function load() {
		if (GBrowserIsCompatible()) {
			var icon = new GIcon();
			icon.image = "http://woodpeckertruck.com/images/woodie-map.png";
			icon.shadow = "http://woodpeckertruck.com/images/woodie-shadow.png";
			icon.iconSize = new GSize(23, 40);
			icon.shadowSize = new GSize(40, 40);
			icon.iconAnchor = new GPoint(11, 40);
			icon.infoWindowAnchor = new GPoint(11, 1);

			map = new GMap2(document.getElementById('pendleton_map'));
			map.addControl(new GSmallMapControl());
			map.setCenter(new GLatLng('45.692242','-118.930006'), 15);
		    mk1 = new GMarker(map.getCenter(),icon);
			GEvent.addListener(mk1, "click", function() {
				mk1.openInfoWindowHtml(html,{maxWidth:infoWinWidth});
			});
		    map.addOverlay(mk1);
		    mk1.openInfoWindowHtml(html,{maxWidth:infoWinWidth});
		}
	}
	
	

function newWin(url,img,title,w,h) {

	if (! (url) && ! (img)) { return; }
	var day= new Date();
	var id = day.getTime();
	var ww = w+75;
	var wh = h+125;
	if ((screen.height) && (wh > screen.height-100)) { wh = screen.height-100; }
	var params = 'width='+ww+',height='+wh+',scrollbars,resizable';
	var t = (title != '')?title:img;
	if (url=='') {
		var msg='<!DOCTYPE HTML PUBLIC "-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN" "http:\/\/www.w3.org/TR\/html4\/loose.dtd">\n'+
		'<meta http-equiv="Content-Type" content="text\/html; charset=iso-8859-1">\n'+
		'<html><head><title>'+t+'<\/title><\/head>'+
		'<style type="text\/css">\n'+
		'html,body { font-family: Arial,Helvetica,Sans-Serif; }\n'+
		'h3 { text-align: center; }\n'+
		'td { text-align: center; }\n'+
		'<\/style><body>\n'+
		'<h3>'+t+'<\/h3>\n <table align="center" border="0"><tr><td><img src="/images\/'+img+'" width="'+w+'" height="'+h+'" border="0" alt="'+title+'"></td></tr>\n'+
		'<tr><td><hr width="100%" size="1"><form><input type="button" onClick="javascript:window.close();" value="Close Window">\n'+
		'<hr width="100%" size="1"><\/form><\/td><\/tr><\/table><\/body><\/html>\n';
		var win = open('',id,params);
		win.document.write(msg);
		win.document.close();
	}
	else { var win = open(url,id,params); } 
	return false;
}

