	var popup2="ここが<b>systemlink</b><br />です";
	var popup="systemlinkへの道です<br />";
   window.onload=function(){
   _map = new YahooMapsCtrl("map", "33.44.25.50,130.29.16.300", 2);
   _map.addIcon("myh", "33.44.25.50,130.29.16.300",popup2,'L1','自宅');
   _map.setEnableClickPopup(true);
    document.getElementById("map2").innerHTML=_map.getCenter();
    
   var style = {strokeWidth: 3, strokeColor: 'FF0000', strokeOpacity: 1};
   var pos = new Array();

   _map.addPolyline('polyline1', pos, popup, style);
   pos.push( new YLLPoint("33.44.43.871,130.28.42.881"));
   pos.push( new YLLPoint("33.44.43.671,130.28.43.601"));
   pos.push( new YLLPoint("33.44.42.839,130.28.46.563"));
   pos.push( new YLLPoint("33.44.42.107,130.28.49.925"));
   pos.push( new YLLPoint("33.44.41.807,130.28.52.767"));
   pos.push( new YLLPoint("33.44.41.075,130.28.58.21"));
   pos.push( new YLLPoint("33.44.38.812,130.29.2.732"));
   pos.push( new YLLPoint("33.44.38.446,130.29.3.293"));
   pos.push( new YLLPoint("33.44.38.014,130.29.3.613"));
   pos.push( new YLLPoint("33.44.37.148,130.29.5.374"));
   pos.push( new YLLPoint("33.44.30.692,130.29.15.78"));
   pos.push( new YLLPoint("33.44.29.527,130.29.14.779"));
   pos.push( new YLLPoint("33.44.27.73,130.29.14.619"));
   pos.push( new YLLPoint("33.44.27.098,130.29.14.739"));
   pos.push( new YLLPoint("33.44.26.399,130.29.15.5"));
   pos.push( new YLLPoint("33.44.25.5,130.29.16.3"));
  _map.addPolyline('polyline1', pos, popup, style);
   _map.addEvent(YEventType.MAP_MOVING,function(){
   	document.getElementById("map2").innerHTML=_map.getCenter();
   	document.getElementById("lat").innerHTML=_map.getCenter().lat;
   	document.getElementById("lng").innerHTML=_map.getCenter().lon;   	
   	});
   }
   
   
 function mapdisp(map,map2){
   _map = new YahooMapsCtrl("map", "33.44.25.50,130.29.16.300", 2);
   _map.addIcon("myh", "33.44.25.50,130.29.16.300",popup2,'L1','自宅');
   _map.setEnableClickPopup(false);   
   _map.setEnableClickPopup(true);
    document.getElementById("map2").innerHTML=_map.getCenter();
    
   var style = {strokeWidth: 3, strokeColor: 'FF0000', strokeOpacity: 1};
   var pos = new Array();

   _map.addPolyline('polyline1', pos, popup, style);
   pos.push( new YLLPoint("33.44.43.871,130.28.42.881"));
   pos.push( new YLLPoint("33.44.43.671,130.28.43.601"));
   pos.push( new YLLPoint("33.44.42.839,130.28.46.563"));
   pos.push( new YLLPoint("33.44.42.107,130.28.49.925"));
   pos.push( new YLLPoint("33.44.41.807,130.28.52.767"));
   pos.push( new YLLPoint("33.44.41.075,130.28.58.21"));
   pos.push( new YLLPoint("33.44.38.812,130.29.2.732"));
   pos.push( new YLLPoint("33.44.38.446,130.29.3.293"));
   pos.push( new YLLPoint("33.44.38.014,130.29.3.613"));
   pos.push( new YLLPoint("33.44.37.148,130.29.5.374"));
   pos.push( new YLLPoint("33.44.30.692,130.29.15.78"));
   pos.push( new YLLPoint("33.44.29.527,130.29.14.779"));
   pos.push( new YLLPoint("33.44.27.73,130.29.14.619"));
   pos.push( new YLLPoint("33.44.27.098,130.29.14.739"));
   pos.push( new YLLPoint("33.44.26.399,130.29.15.5"));
   pos.push( new YLLPoint("33.44.25.5,130.29.16.3"));
  _map.addPolyline('polyline1', pos, popup, style);
   _map.addEvent(YEventType.MAP_MOVING,function(){
   	document.getElementById("map2").innerHTML=_map.getCenter();
   	document.getElementById("lat").innerHTML=_map.getCenter().lat;
   	document.getElementById("lng").innerHTML=_map.getCenter().lon;   	
   	});
   }

   










myID = "myCursor";                  // DIVタグで付けたID
myX = 8;            // カーソル先端から少しずらす(X座標)
myY = 16;           // カーソル先端から少しずらす(Y座標)

function myGetBrowser(){            // ブラウザを判断する
   myOP = (navigator.userAgent.indexOf("Opera",0) != -1)?1:0; //OP
   myN6 = document.getElementById;  // N6 or IE
   myIE = document.all;             // IE
   myN4 = document.layers;          // N4

   if (myOP){                          // OP?
      document.onmousemove = myMoveOP;
   }else if (myIE){                    // IE?
      document.onmousemove = myMoveIE;
   }else if (myN6){                    // N6?
      window.addEventListener("mousemove",myMoveN6,true);
   }else if (myN4){                    // N4?
      window.captureEvents(Event.MOUSEMOVE);
      window.onmousemove = myMoveN4;
   }
}

function myMoveOP(){ // OPでマウスが動いた
  myObj=document.getElementById(myID).style;
  myObj.left = myX + window.event.clientX + "px";
  myObj.top  = myY + window.event.clientY + "px";
}
function myMoveN6(myEvent){  // N6でマウスが動いた
  myObj=document.getElementById(myID).style;
  myObj.left = myX + myEvent.clientX + window.pageXOffset + "px";
  myObj.top  = myY + myEvent.clientY + window.pageYOffset + "px";
}
function myMoveIE(){ // IEでマウスが動いた
  myObj=document.all[myID].style;
  myObj.left = myX + window.event.clientX + document.body.scrollLeft + "px";
  myObj.top  = myY + window.event.clientY + document.body.scrollTop + "px";
  
  document.getElementById("ecap1").value=myObj.left;
  document.getElementById("ecap2").value=myObj.top;
}
function myMoveN4(myEvent){ // N4でマウスが動いた
  myObj=document[myID];
  myObj.left = myX + myEvent.x ;
  myObj.top  = myY + myEvent.y ;
}



function RoadHtml(id,uri) {
	new Ajax.Request(uri,
	{
		method:'get',
		onSuccess: function(transport){
			$(id).innerHTML = transport.responseText;
		}
	});
}

