dojo.require("dojox.image.Gallery");
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dijit.layout.ContentPane");
dojo.require("dojo.parser");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.Tree");
var IMAGES=["purple-pushpin","red-pushpin","blue-pushpin","purple-pushpin"];
var ICONS=[];
var mgr;
var map;
var overlay;
var tripnote=0;
var lastPoint;
var poly;
var circle=[];
var store=new dojo.data.ItemFileReadStore({url:"/jeb/jebf.json"});
var art2=new dojo.data.ItemFileReadStore({url:"/jeb/art.json"});
var art;
var batch=[];
var batch2=[];
var batch3=[];
var my_lat=[];
var my_long=[];
var myHash=new Hash();
var gmarkers=new Hash();
var goJebf=function(_1,_2){
if(_1.length){
var id=store.getValue(_1[0],"id");
if(store.hasAttribute(_1[0],"racine")){
store.fetch({query:{name:store.getValue(_1[0],"racine")},queryOptions:{ignoreCase:true},onComplete:function(_3,_4){
var _5=new GLatLng(store.getValue(_3[0],"lat"),store.getValue(_3[0],"lon"));
var _6=store.getValue(_3[0],"title");
var _7=store.getValue(_3[0],"country");
var _8=_7+"-"+_6;
var _9=createMarker(_5,_8,1,id);
batch3.push(_9);
my_lat.push(store.getValue(_3[0],"lat"));
my_long.push(store.getValue(_3[0],"lon"));
}});
}else{
var _a=new GLatLng(store.getValue(_1[0],"lat"),store.getValue(_1[0],"lon"));
var _b=store.getValue(_1[0],"title");
var _c=store.getValue(_1[0],"country");
var _d=_c+"-"+_b;
var _e=createMarker(_a,_d,1,id);
batch3.push(_e);
my_lat.push(store.getValue(_1[0],"lat"));
my_long.push(store.getValue(_1[0],"lon"));
}
}
};
var goArt=function(_f,_10){
if(_f.length){
for(var i=0;i<_f.length;i++){
var _11=_f[i];
var _12=new GLatLng(art2.getValue(_11,"lat"),art2.getValue(_11,"lon"));
var _13=art2.getValue(_11,"title");
var id=art2.getValue(_11,"id");
var _14=createMarker(_12,_13,1,id);
batch3.push(_14);
}
}
};
function locate(_15){
var url="/cgi-bin/search2.pl?glue="+_15;
var _16=new Array();
dojo.xhrGet({url:url,load:function(_17,_18){
var _19="6318-3031-1186.1 ";
_16=_17.split(/ /);
for(var x=0;x<_16.length-1;x++){
store.fetch({query:{id:_16[x]},queryOptions:{ignoreCase:true,deep:true},onComplete:goJebf});
art2.fetch({query:{id:_16[x]},queryOptions:{ignoreCase:true,deep:true},onComplete:goArt});
}
for(var i=0;i<batch3.length;i++){
map.addOverlay(batch3[i]);
}
var _1a=document.getElementById("click");
if(_1a.firstChild){
_1a.removeChild(_1a.firstChild);
}
var _1b=document.createElement("div");
_1b.id="jeb";
_1a.appendChild(_1b);
_1b.innerHTML="Similar:<br>";
for(var i=0;i<my_long.length;i++){
geonames(_1b,my_lat[i],my_long[i]);
}
my_lat=[];
my_long=[];
myHash=new Hash();
return _17;
},error:function(_1c,_1d){
dojo.byId("click").innerHTML="locate:An error occurred, with response: "+_1c;
return _1c;
},handleAs:"text"});
};
function geonames(ref,lat,lng){
lat=lat.replace(/ /g,"");
lng=lng.replace(/ /g,"");
var url="/cgi-bin/fl2.cgi?radius=10&lat="+lat+"&lng="+lng;
dojo.xhrGet({url:url,load:function(_1e,_1f){
var len=_1e.geonames.length;
if(len){
for(i=0;i<len;i++){
var _20=_1e.geonames[i].wikipediaUrl;
if(!myHash.hasItem(_20)){
var _21="<a href=\"javascript:site('http://"+_20+"');\">"+_20+"</a><br>";
ref.innerHTML+=_21;
myHash.setItem(_20,"1");
}
}
}
return _1e;
},error:function(_22,_23){
dojo.byId("click").innerHTML="geonames:An error occurred, with response: "+_22;
return _22;
},handleAs:"json"});
};
function placeMarker(lat,lng){
var url="/cgi-bin/fl2.cgi?radius=10&lat="+lat+"&lng="+lng;
dojo.xhrGet({url:url,load:function(_24,_25){
var len=_24.geonames.length;
if(len){
for(i=0;i<len;i++){
var _26=_24.geonames[i].wikipediaUrl;
if(!gmarkers.hasItem(_26)){
var _27=new GLatLng(_24.geonames[i].lat,_24.geonames[i].lng);
var _28=_24.geonames[i].summary;
var _29=_28.substring(0,64);
_29=_29.replace(/'/,"%27");
var _26=_24.geonames[i].wikipediaUrl;
var _2a="<div class=\"sitenote2\"><b>"+_28+"</b><br><a href=\"javascript:site('http://"+_26+"');\">"+_26+"</a></div>";
var _2b=createMarker2(_27,_29,2,_2a);
gmarkers.setItem(_26,"1");
batch2.push(_2b);
map.addOverlay(_2b);
}
}
}
return _24;
},error:function(_2c,_2d){
dojo.byId("click").innerHTML="placeMarker:An error occurred, with response: "+_2c;
return _2c;
},handleAs:"json"});
};
function Results(){
var _2e=document.myform.glue.value;
var _2f=new RegExp(" +","g");
_2e=_2e.replace(_2f,"+");
var g=dijit.byId("gallery2");
if(typeof (g)!="undefined"){
g.destroyRecursive();
}
for(var i=0;i<batch3.length;i++){
map.removeOverlay(batch3[i]);
}
batch3=[];
var _30="/cgi-bin/search.pl?glue="+_2e;
var _31=new dojo.data.ItemFileReadStore({url:_30});
var _32={query:{},count:20};
var _33={imageThumbAttr:"thumb",imageLargeAttr:"large"};
var _34=dijit.byId("center");
var _35=new dojox.image.Gallery({id:"gallery2",imageWidth:580,imageHeight:700,autoLoad:true,pageSize:20,linkAttr:"link",titleAttr:"title",imageLargeAttr:"large",imageThumbAttr:"thumb",autoStart:"true"});
_35.setDataStore(_31,_32,_33);
_34.setContent(_35.domNode);
locate(_2e);
};
function mapClick(){
var _36=new GLatLng(lastPoint.lat().toFixed(8),lastPoint.lng().toFixed(8));
drawCircle(_36,10,40);
placeMarker(lastPoint.lat().toFixed(8),lastPoint.lng().toFixed(8));
};
function popImg(ref,_37){
var _38=document.getElementById("my_root");
var img="<a href=\"javascript:delpopImg()\"><img border=\"0\" class=\"popimg\" src=\"/cgi-bin/slideshow2.pl?ref="+ref+"&ico=700\"/></a><br><a href=\"javascript:delpopImg()\">Close Window</a>";
img+=" - <a href=\"javascript:getText('/wat1/puzzle2','popImg','"+ref+"','no','no');\">Puzzle</a>";
img+=" - <a href=\"javascript:site('/cgi-protected/Legend_editor.pl?id="+ref+"&ref="+_37+"');\">Legend Editor</a>";
img+=" - <a href=\"javascript:site('/cgi-protected/Slideshow_editor.pl?id="+_37+"');\">Slideshow Editor</a>";
var pop=document.createElement("DIV");
pop.id="popImg";
pop.className="popimg";
_38.appendChild(pop);
pop.innerHTML=img;
};
function delpopImg(){
var _39=document.getElementById("my_root");
var _3a=document.getElementById("popImg");
var _3b=_39.removeChild(_3a);
};
function initGallery(_3c,_3d){
var _3e;
timeline();
var reg=new RegExp("China");
if(reg.test(_3d)){
timeline(0);
}
reg=new RegExp("Japan");
if(reg.test(_3d)){
timeline(2);
}
reg=new RegExp("India");
if(reg.test(_3d)){
timeline(1);
}
reg=new RegExp("France");
if(reg.test(_3d)){
timeline(3);
}
reg=new RegExp("Germany");
if(reg.test(_3d)){
timeline(3);
}
reg=new RegExp("Italy");
if(reg.test(_3d)){
timeline(4);
}
reg=new RegExp("Egypt");
if(reg.test(_3d)){
timeline(6);
}
reg=new RegExp("Germany|CSZ|Austria");
if(reg.test(_3d)){
timeline(7);
}
reg=new RegExp("Turkey");
if(reg.test(_3d)){
timeline(8);
}
reg=new RegExp("Indonesia");
if(reg.test(_3d)){
timeline(9);
}
var g=dijit.byId("gallery2");
if(typeof (g)!="undefined"){
g.destroyRecursive();
}
if(typeof (_3c)=="undefined"){
_3e="6318-3031-2304.1";
}else{
_3e=_3c;
}
var _3f="/cgi-bin/get_json2.pl?id="+_3e;
var _40=new dojo.data.ItemFileReadStore({url:_3f});
var _41={query:{},count:20};
var _42={imageThumbAttr:"thumb",imageLargeAttr:"large"};
var _43=dijit.byId("center");
var _44=new dojox.image.Gallery({id:"gallery2",imageWidth:580,imageHeight:700,autoLoad:true,pageSize:20,linkAttr:"link",titleAttr:"title",imageLargeAttr:"large",imageThumbAttr:"thumb",autoStart:"true"});
_44.setDataStore(_40,_41,_42);
_43.setContent(_44.domNode);
};
var gotNames=function(_45,_46){
var _47=store.getValues(_45[0],"type");
var _48;
var _49;
if(_47=="A"){
_48=3;
}else{
if(_47=="B"){
_48=3;
}else{
_48=3;
}
}
for(var i=0;i<_45.length;i++){
var _4a=_45[i];
var _4b=new GLatLng(store.getValues(_4a,"lat"),store.getValues(_4a,"lon"));
var _4c=store.getLabel(_4a);
var _4d=store.getValues(_4a,"country");
if(store.getValues(_4a,"children").length){
var _4e=store.getValues(_4a,"title");
var _4f;
if(_4c=="British Museum"||_4c=="Thebes"||_4c=="Abydos"){
_4f="<div class=\"sitenote2\"><b>"+_4e+"</b><br>";
}else{
_4f="<div class=\"sitenote\"><b>"+_4e+"</b><br>";
}
var id;
dojo.forEach(store.getValues(_4a,"children"),function(_50){
if(store.getValues(_50,"children2").length){
_4f+=store.getValue(_50,"title")+":<br>";
dojo.forEach(store.getValues(_50,"children2"),function(_51){
id=store.getValue(_51,"id");
_4f+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"javascript:initGallery('"+id+"')\">"+store.getValue(_51,"title")+"</a><br>";
});
}else{
id=store.getValue(_50,"id");
_4f+="<a href=\"javascript:initGallery('"+id+"')\">"+store.getValue(_50,"title")+"</a><br>";
}
});
_4f+="</div>";
if(_4e=="China - Annex Photo"||_4e=="India - Annex Photo"||_4e=="Japan - Annex Photo"||_4e=="Egypt - Annex Photo"){
_48=1;
}
var _52=_4d+"-"+_4e;
_49=createMarker2(_4b,_52,_48,_4f,id);
}else{
_48=3;
var _4e=store.getValues(_4a,"title");
var id=store.getValues(_4a,"id");
var _52=_4d+"-"+_4e;
if(store.getValues(_4a,"info").length){
var _53=store.getValues(_4a,"info");
var _4f="<div class=\"sitenote\"><b>"+_4e+"</b><br>"+_53+"</div>";
_49=createMarker2(_4b,_52,_48,_4f,id);
}else{
_49=createMarker(_4b,_52,_48,id);
}
}
batch.push(_49);
}
if(_47=="A"){
mgr.addMarkers(batch,1);
}else{
if(_47=="B"){
mgr.addMarkers(batch,5);
}else{
mgr.addMarkers(batch,9);
}
}
mgr.refresh();
};
function setupMarkers(){
mgr=new MarkerManager(map);
store.fetch({query:{type:"A"},queryOptions:{ignoreCase:true},onComplete:gotNames});
store.fetch({query:{type:"B"},queryOptions:{ignoreCase:true},onComplete:gotNames});
store.fetch({query:{type:"C"},queryOptions:{ignoreCase:true},onComplete:gotNames});
};
function createMarker(_54,_55,_56,_57){
var _58=new GMarker(_54,{title:_55,icon:getIcon(_56)});
GEvent.addListener(_58,"click",function(){
initGallery(_57,_55);
});
return _58;
};
function createMarker2(_59,_5a,_5b,_5c,_5d){
var _5e=new GMarker(_59,{title:_5a,icon:getIcon(_5b)});
GEvent.addListener(_5e,"click",function(){
_5e.openInfoWindowHtml(_5c);
if(_5d){
initGallery(_5d,_5a);
}
});
return _5e;
};
function getIcon(i){
if(!ICONS[i]){
var _5f=new GIcon();
_5f.image="/jeb/images/"+IMAGES[i]+".png";
_5f.iconAnchor=new GPoint(16,16);
_5f.infoWindowAnchor=new GPoint(16,0);
_5f.iconSize=new GSize(16,16);
ICONS[i]=_5f;
}
return ICONS[i];
};
function getRandomPoint(){
var lat=48.25+(Math.random()-0.5)*14.5;
var lng=11+(Math.random()-0.5)*36;
return new GLatLng(Math.round(lat*10)/10,Math.round(lng*10)/10);
};
function site(url){
window.open(url,"mywindow","width=1300,height=780,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes");
};
function setupMap(){
if(GBrowserIsCompatible()){
map=new GMap2(document.getElementById("map"),{mapTypes:[G_PHYSICAL_MAP,G_NORMAL_MAP,G_SATELLITE_MAP]});
map.setCenter(new GLatLng(35,15),1);
var _60=new GHierarchicalMapTypeControl();
map.addControl(_60);
map.addControl(new GScaleControl());
map.addControl(new GSmallMapControl());
map.enableScrollWheelZoom();
GEvent.addListener(map,"mousemove",function(_61){
lastPoint=_61;
});
GEvent.addListener(map,"dblclick",mapClick);
}
setupMarkers();
};
function removeCircle(){
for(i=0;i<circle.length;i++){
map.removeOverlay(circle[i]);
}
circle=[];
};
function drawCircle(_62,_63,_64){
var _65=_62.distanceFrom(new GLatLng(_62.lat()+0.1,_62.lng()))/100;
var _66=_62.distanceFrom(new GLatLng(_62.lat(),_62.lng()+0.1))/100;
var _67=[];
var _68=parseInt(360/_64)||10;
for(var i=0;i<=360;i+=_68){
var _69=new GLatLng(_62.lat()+(_63/_65*Math.cos(i*Math.PI/180)),_62.lng()+(_63/_66*Math.sin(i*Math.PI/180)));
_67.push(_69);
}
_67.push(_67[0]);
poly=new GPolygon(_67,"#ff0000",2,0,"#000000",0.3);
circle.push(poly);
var _6a=map.addOverlay(poly);
};
function tree(_6b){
map.setCenter(new GLatLng(35,-10),1);
removeOldMarkers(1);
var _6c=document.getElementById("center");
_6c.removeChild(_6c.firstChild);
var _6d=dijit.byId("my_tree");
if(_6d){
_6d.destroyRecursive();
}
var _6e=document.getElementById("center");
var _6f;
var _70;
var _71;
if(_6b=="Art and Civilization"){
_6f="<h4>Art and Civilization</h4>In contrast to the usual way of setting up a small or huge data banks according to a documentary or historical perspective, our ambition is to build a specific approach for each itinerary, each time taking into account and emphasizing a specific and original trait in order not only to provide information, but to give birth to give birth to a truly new experience thanks to cutting-edge technology.<hr  style=\"width:300px; margin:5px 0 5px 0;\">";
_70="art";
_71="/jeb/art.json";
}else{
_6f="<h4>On Behalf of Art</h4>Lectures are developed along three parallel lines:<ul><li>Continuous analysis of major movements, trends, and schools punctuating the course of history<li>Analysis of certain major centers and sites which, through their importance, presided over transmutations in the realm on the aesthetic<li> In-depth study of artists, painters, sculptors and architects whose work provides keys.</ul><p>Lausanne from 1979 - Geneva from 1990.<hr  style=\"width:300px; margin:5px 0 5px 0;\">";
_70="lecture";
_71="/jeb/lecture.json";
}
_6e.innerHTML=_6f;
newDiv=document.createElement("div");
newDiv.id="my_tree";
_6c.appendChild(newDiv);
art=new dojo.data.ItemFileReadStore({url:_71});
var _72=new dijit.tree.ForestStoreModel({store:art,query:{"type":_70},rootId:"my_tree",rootLabel:_6b,childrenAttrs:["children","chidren2"]});
if(_6b=="Art and Civilization"){
new dijit.Tree({model:_72,showRoot:true,persist:false,onClick:function(_73){
var _74=art.getValue(_73,"page");
if(typeof (_74)=="undefined"){
var id=art.getValue(_73,"id");
initGallery(id);
if(art.getValue(_73,"name")=="Ancient Greek"){
removeOldMarkers();
var _75=art.getValue(_73,"image");
var _76=new GLatLng(art.getValues(_73,"lat"),art.getValues(_73,"lon"));
var _77="<div class=\"sitenote2\">"+art.getValue(_73,"info")+"</div>";
var _78=createMarker2(_76,"Ancient Greek",2,_77);
map.addOverlay(_78);
batch2.push(_78);
}else{
if(art.getValue(_73,"name")=="16th-20th"){
removeOldMarkers();
for(var k=0;k<5;k++){
var _75=art.getValue(_73,"image");
var _76=getRandomPoint();
var _77="<div class=\"sitenote2\">"+art.getValue(_73,"info")+"</div>";
var _78=createMarker2(_76,"16th-20th",2,_77);
map.addOverlay(_78);
batch2.push(_78);
}
}else{
art.fetch({query:{id:id},queryOptions:{ignoreCase:true},onComplete:function(_79,_7a){
var _7b=art.getValues(_79[0],"type");
for(var i=0;i<batch2.length;i++){
batch.push(batch2[i]);
}
batch2=[];
for(var i=0;i<_79.length;i++){
var _7c=_79[i];
var _7d=new GLatLng(art.getValues(_7c,"lat"),art.getValues(_7c,"lon"));
var _7e=art.getValues(_7c,"image");
var _7f=art.getValues(_7c,"site");
var _80=art.getValues(_7c,"title");
var id=art.getValues(_7c,"id");
var _81="<div class=\"sitenote3\"><a href=\"javascript:popImg('"+_7e+"','"+id+"')\"><img border=\"0\" src=\"/cgi-bin/slideshow2.pl?ref="+_7e+"&ico=80\"></a><br><a href=\"javascript:site('"+_7f+"');\">"+_80+"</a></div>";
var _82=createMarker2(_7d,_80,2,_81);
batch2.push(_82);
}
mgr.addMarkers(batch2,1);
mgr.refresh();
}});
removeOldMarkers();
}
}
}else{
var _83="http://fondationberger.dfinet.ch"+_74;
window.open(_83);
}
}},"my_tree");
}else{
new dijit.Tree({model:_72,showRoot:true,persist:false,onClick:function(_84){
var _85=art.getValue(_84,"page");
site(_85);
}},"my_tree");
}
};
function trip(){
var _86=document.getElementById("click");
if(_86.firstChild){
_86.removeChild(_86.firstChild);
}
if(!tripnote){
tripnote=1;
var _87=document.createElement("div");
_87.id="jeb";
_86.appendChild(_87);
var _88="<hr>You need to change  the zoom level  to get more  markers to display. Find nearby Wikipedia entries by calling  <a href=\"javascript:site('http://www.geonames.org');\">Geoname Service</a> with a  radius distance of  10 km. Instructions:1)Zoom  to find the required scale 2)Double click on the map to draw a circle 3)Wait blue  markers (<a href=\"javascript:removeCircle();\">erase all  radii</a>)";
_87.innerHTML=_88;
}else{
tripnote=0;
}
};
function Hash(){
this.length=0;
this.items=new Array();
for(var i=0;i<arguments.length;i+=2){
if(typeof (arguments[i+1])!="undefined"){
this.items[arguments[i]]=arguments[i+1];
this.length++;
}
}
this.removeItem=function(_89){
var _8a;
if(typeof (this.items[_89])!="undefined"){
this.length--;
var _8a=this.items[_89];
delete this.items[_89];
}
return _8a;
};
this.getItem=function(_8b){
return this.items[_8b];
};
this.setItem=function(_8c,_8d){
var _8e;
if(typeof (_8d)!="undefined"){
if(typeof (this.items[_8c])=="undefined"){
this.length++;
}else{
_8e=this.items[_8c];
}
this.items[_8c]=_8d;
}
return _8e;
};
this.hasItem=function(_8f){
return typeof (this.items[_8f])!="undefined";
};
this.clear=function(){
for(var i in this.items){
delete this.items[i];
}
this.length=0;
};
};
if(document.images){
liteblue=new Image;
white=new Image;
blue=new Image;
grey=new Image;
liteblue.src="/images/hg01_map_litebox.gif";
white.src="/images/hg01_map_whitebox.gif";
}else{
liteblue.src="";
white.src="";
}
function timeline(k){
var _90=new Array();
var _91=document.getElementById("click");
if(_91.firstChild){
_91.removeChild(_91.firstChild);
}
if(k!=undefined){
var _92=document.createElement("div");
_92.id="jeb";
_91.appendChild(_92);
_90[0]="<hr>Timeline of Art History China: 1000 B.C. - 1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=eac');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>    <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=eac');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=eac');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=eac');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=eac');\" onMouseOver=\"document.five.src=liteblue.src\" onMouseOut=\"document.five.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"five\"></a></td></table>";
_90[1]="<hr>Timeline of Art History India: 1000 B.C. - 1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=ssa');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>    <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=ssa');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=ssn');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=ssn');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=ssa');\" onMouseOver=\"document.five.src=liteblue.src\" onMouseOut=\"document.five.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"five\"></a></td></table>";
_90[2]="<hr>Timeline of Art History Japan: 1000 B.C. - 1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=eaj');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>    <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=eaj');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=eaj');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=eaj');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=eaj');\" onMouseOver=\"document.five.src=liteblue.src\" onMouseOut=\"document.five.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"five\"></a></td></table>";
_90[3]="<hr>Timeline of Art History Western & Central Europe:1000 B.C.-1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=euw');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>\t <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=euw');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=euwc');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=euwc');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=euwc');\" onMouseOver=\"document.five.src=liteblue.src\" onMouseOut=\"document.five.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"five\"></a></td></table>";
_90[4]="<hr>Timeline of Art History Italian Peninsula:1000 B.C-1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=eust');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>\t <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=eust');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=eust');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=eust');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=eustn');\" onMouseOver=\"document.five.src=liteblue.src\" onMouseOut=\"document.five.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"five\"></a></td></table>";
_90[5]="<hr>Timeline of Art History Greece:1000 B.C. - 1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=eusb');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>    <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=eusb');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=eusb');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two2\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=eusb');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=eusb');\" onMouseOver=\"document.five.src=liteblue.src\" onMouseOut=\"document.five.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"five\"></a></td></table>";
_90[6]="<hr>Timeline of Art History Egypt:8000 B.C. - 500<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=02&region=afe');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>    <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=03&region=afe');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=afe');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=afe');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\" ><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td></table>";
_90[7]="<hr>Timeline of Art History Central Europe:500-1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=euwc');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>\t <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=euwc');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=euwc');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td></table>";
_90[8]="<hr>Timeline of Art History Balkan Peninsula:500-1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=eusb');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>\t <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=eusb');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=eusb');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td></table>";
_90[9]="<hr>Timeline of Art History Southeast Asia, 1000 B.C - 1600<p><table width=\"140\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=04&region=sse');\" onMouseOver=\"document.one.src=liteblue.src\" onMouseOut=\"document.one.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"one\"></a></td>\t <td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=05&region=sse');\" onMouseOver=\"document.two.src=liteblue.src\" onMouseOut=\"document.two.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"two\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=06&region=sse');\" onMouseOver=\"document.three.src=liteblue.src\" onMouseOut=\"document.three.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"three\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=07&region=sse');\" onMouseOver=\"document.for.src=liteblue.src\" onMouseOut=\"document.for.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"for\"></a></td><td width=\"56\" height=\"12\"><a href=\"javascript:site('http://www.metmuseum.org/toah/ht/?period=08&region=sse');\" onMouseOver=\"document.five.src=liteblue.src\" onMouseOut=\"document.five.src=white.src\"><img src=\"/images/hg01_map_whitebox.gif\" border=\"0\" width=\"54\" height=\"12\" name=\"five\"></a></td></table>";
_92.innerHTML=_90[k];
}
};
function placerandom(){
var url="/cgi-bin/rand_json.pl";
dojo.xhrGet({url:url,load:function(_93,_94){
initGallery(_93);
return _93;
},error:function(_95,_96){
dojo.byId("click").innerHTML="placerandom:An error occurred, with response: "+_95;
return _95;
},handleAs:"text"});
};
function center(url){
dojo.xhrGet({url:url,load:function(_97,_98){
var g=dijit.byId("gallery2");
if(typeof (g)!="undefined"){
g.destroyRecursive();
}
var _99=document.getElementById("center");
if(_99.firstChild){
_99.removeChild(_99.firstChild);
}
var _9a=document.createElement("DIV");
_9a.id="jeb";
_99.appendChild(_9a);
dojo.byId("jeb").innerHTML=_97;
return _97;
},error:function(_9b,_9c){
dojo.byId("click").innerHTML="center:An error occurred, with response: "+_9b;
return _9b;
},handleAs:"text"});
};
dojo.addOnLoad(function(){
placerandom();
setupMap();
});
function removeOldMarkers(all){
for(var i=0;i<batch.length;i++){
map.removeOverlay(batch[i]);
}
if(all){
for(var i=0;i<batch2.length;i++){
map.removeOverlay(batch2[i]);
}
}
};
function getText(url,id,ref,_9d,_9e){
dojo.xhrGet({url:url+"?ref="+ref+"&type="+_9d+"&mudac="+_9e,load:function(_9f,_a0){
dojo.byId(id).innerHTML=_9f;
return _9f;
},error:function(_a1,_a2){
dojo.byId(id).innerHTML="An error occurred, with response: "+_a1;
return _a1;
},handleAs:"text"});
};


