color1 = "#000";
color2 = "#000";
color3 = "#000";
color4 = "#000";
color5 = "#000";



// - - - - 11111111111111111


function moveTheMap1(A,B,C,D) {

	var theRandomNum1 = (Math.floor(Math.random()*7)-3.5)/203;
	var theZoomNum1 = Math.floor(Math.random()*(C+1))+D;
	
	// map1 - - - - - - - - - - - - - - - - - - - - - - - - - -

	var thePosition1 = new google.maps.LatLng(theRandomNum1+A,theRandomNum1+B);
	var myOptions1 = {
		zoom: theZoomNum1,
		center: thePosition1,
		disableDefaultUI: true,
		draggable: false,
		disableDoubleClickZoom: true,
		keyboardShortcuts: false,
		scrollwheel: false,
		mapTypeId: google.maps.MapTypeId.SATELLITE,
		backgroundColor: color1,
	};
	var map1 = new google.maps.Map(document.getElementById("mapCanvas1"), myOptions1);
	map1.setTilt(45);
	
	// - - - - - - - - - - - - - - - - - - - - - - - - - -

	setInterval(function(){map1.panBy(0,-1);},100);	

}


// - - - - 22222222222222222


function moveTheMap2(A,B,C,D) {

	var theRandomNum2 = (Math.floor(Math.random()*6)-3)/282;
	var theZoomNum2 = Math.floor(Math.random()*(C+1))+D;
	
	// map2 - - - - - - - - - - - - - - - - - - - - - - - - - -
	
	var thePosition2 = new google.maps.LatLng(theRandomNum2+A,theRandomNum2+B);
	var myOptions2 = {
		zoom: theZoomNum2,
		center: thePosition2,
		disableDefaultUI: true,
		draggable: false,
		disableDoubleClickZoom: true,
		keyboardShortcuts: false,
		scrollwheel: false,
		mapTypeId: google.maps.MapTypeId.SATELLITE,
		backgroundColor: color2,
	};
	var map2 = new google.maps.Map(document.getElementById("mapCanvas2"), myOptions2);
	map2.setTilt(45);
	
	// - - - - - - - - - - - - - - - - - - - - - - - - - -

	setInterval(function(){map2.panBy(0,-1);},100);

}


// - - - - 33333333333333333


function moveTheMap3(A,B,C,D) {

	var theRandomNum3 = (Math.floor(Math.random()*7)-3.5)/268;
	var theZoomNum3 = Math.floor(Math.random()*(C+1))+D;
	
	// map3 - - - - - - - - - - - - - - - - - - - - - - - - - -
	
	var thePosition3 = new google.maps.LatLng(theRandomNum3+A,theRandomNum3+B);
	var myOptions3 = {
		zoom: theZoomNum3,
		center: thePosition3,
		disableDefaultUI: true,
		draggable: false,
		disableDoubleClickZoom: true,
		keyboardShortcuts: false,
		scrollwheel: false,
		mapTypeId: google.maps.MapTypeId.SATELLITE,
		backgroundColor: color3,
	};
	var map3 = new google.maps.Map(document.getElementById("mapCanvas3"), myOptions3);
	map3.setTilt(45);
	
	// - - - - - - - - - - - - - - - - - - - - - - - - - -

	setInterval(function(){map3.panBy(0,-1);},100);

}


// - - - - 44444444444444444


function moveTheMap4(A,B,C,D) {

	var theRandomNum4 = (Math.floor(Math.random()*8)-4)/304;
	var theZoomNum4 = Math.floor(Math.random()*(C+1))+D;
	
	// map4 - - - - - - - - - - - - - - - - - - - - - - - - - -
	
	var thePosition4 = new google.maps.LatLng(theRandomNum4+A,theRandomNum4+B);
	var myOptions4 = {
		zoom: theZoomNum4,
		center: thePosition4,
		disableDefaultUI: true,
		draggable: false,
		disableDoubleClickZoom: true,
		keyboardShortcuts: false,
		scrollwheel: false,
		mapTypeId: google.maps.MapTypeId.SATELLITE,
		backgroundColor: color4,
	};
	var map4 = new google.maps.Map(document.getElementById("mapCanvas4"), myOptions4);
	map4.setTilt(45);
	
	// - - - - - - - - - - - - - - - - - - - - - - - - - -

	setInterval(function(){map4.panBy(0,-1);},100);

}


// - - - - 55555555555555555


function moveTheMap5(A,B,C,D) {

	var theRandomNum5 = (Math.floor(Math.random()*6)-3)/220;
	var theZoomNum5 = Math.floor(Math.random()*(C+1))+D;
	
	// map5 - - - - - - - - - - - - - - - - - - - - - - - - - -
	
	var thePosition5 = new google.maps.LatLng(theRandomNum5+A,theRandomNum5+B);
	var myOptions5 = {
		zoom: theZoomNum5,
		center: thePosition5,
		disableDefaultUI: true,
		draggable: false,
		disableDoubleClickZoom: true,
		keyboardShortcuts: false,
		scrollwheel: false,
		mapTypeId: google.maps.MapTypeId.SATELLITE,
		backgroundColor: color5,
	};
	var map5 = new google.maps.Map(document.getElementById("mapCanvas5"), myOptions5);
	map5.setTilt(45);
	
	// - - - - - - - - - - - - - - - - - - - - - - - - - -

	setInterval(function(){map5.panBy(0,-1);},100);

}


// - - - - - - - - - - - - - - - - - - - - - - - - - -


setInterval("randamPlace(moveTheMap1)",69000);
setInterval("randamPlace(moveTheMap2)",55000);
setInterval("randamPlace(moveTheMap3)",90000);
setInterval("randamPlace(moveTheMap4)",77000);
setInterval("randamPlace(moveTheMap5)",100000);


// - - - - - - - - - - - - - - - - - - - - - - - - - -


function randamPlace(AA){
//javascript:void(prompt('',gApplication.getMap().getCenter()));
//D=最小(テレ) / C+D=最大(ズーム) / 最大18
var theNum=Math.floor(Math.random()*(25+1));
/*@*/ if (theNum==00){AA(41.915914496841250, 12.463474273681640, 2, 16);//コロッセオ近く
}else if (theNum==01){AA(35.363390000000000, 138.73070000000000, 2, 14);//富士山
}else if (theNum==02){AA(51.873497030685165, 4.3866348266601560, 1, 17);//ロッテルダム港
}else if (theNum==03){AA(59.919118548289110, 10.749607086181640, 1, 17);//オスロ
}else if (theNum==04){AA(35.705654308420890, 139.75188732147217, 2, 17);//東京ドーム
}else if (theNum==05){AA(35.667647459780426, 139.70017701387405, 2, 17);//代々木体育館
}else if (theNum==06){AA(40.756205427163240, -73.98632168769836, 3, 16);//タイムズスクエア
}else if (theNum==07){AA(28.170010147603097, 86.914558410644530, 1, 15);//エベレスト
}else if (theNum==08){AA(34.705290548527780, 135.48979282379150, 2, 17);//梅田スカイビル
}else if (theNum==09){AA(40.756205427163240, -73.98632168769836, 3, 16);//タイムズスクエア
}else if (theNum==10){AA(51.471591652240050, -0.462002456188201, 2, 17);//ヒースロー空港
}else if (theNum==11){AA(52.530732192930905, 13.451111912727356, 1, 17);//ベルリン
}else if (theNum==12){AA(-3.050525388169858, 37.365875244140625, 2, 16);//キリマンジャロ
}else if (theNum==13){AA(-19.54936669566089, -68.67068767547607, 2, 15);//南米の山青い方
}else if (theNum==14){AA(-19.97670151881046, -68.37789773941040, 2, 16);//ボリビアの山
}else if (theNum==15){AA(35.634440380530975, 139.74034309387207, 1, 19);//東京の操車場
}else if (theNum==16){AA(37.617469357042750, -122.3815584182739, 1, 18);//サンフランシスコ空港
}else if (theNum==17){AA(35.351168471307110, 139.87009763717650, 1, 17);//千葉南西の工場地帯
}else if (theNum==18){AA(-25.34476294017566, 131.03449344635010, 3, 16);//エアーズロック
}else if (theNum==19){AA(51.471591652240050, -0.462002456188201, 2, 17);//ヒースロー空港
}else if (theNum==20){AA(35.667647459780426, 139.70017701387405, 2, 17);//代々木体育館
}else if (theNum==21){AA(51.471591652240050, -0.462002456188201, 2, 17);//ヒースロー空港
}else if (theNum==22){AA(50.037214072407430, 8.5598945617675780, 2, 17);//フランクフルト空港
}else if (theNum==23){AA(34.705290548527780, 135.48979282379150, 2, 17);//梅田スカイビル
}else if (theNum==24){AA(36.222014896745215, -112.4142551422119, 2, 15);//グランドキャニオン
}else if (theNum==25){AA(49.828238708790515, 2.7180862426757812, 1, 14);//ヨーロッパの畑
};
}


// - - - - - - - - - - - - - - - - - - - - - - - - - -


n_date=new Date();
y=n_date.getFullYear();
