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 gmarkers=new Array();
var poly;
var circle=[];
var store=new dojo.data.ItemFileReadStore({url:"/jeb/jebf.json"});
var art;
var batch=[];
var batch2=[];
var place;
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 placeMarker(_1,_2){
var _3="/cgi-bin/fl2.cgi?radius=10&lat="+_1+"&lng="+_2;
dojo.xhrGet({url:_3,load:function(_4,_5){
var _6=_4.geonames.length;
for(i=0;i<_6;i++){
var _7=_4.geonames[i].lat;
if(!gmarkers[_7.toString()]){
var _8=new GLatLng(_4.geonames[i].lat,_4.geonames[i].lng);
var _9=_4.geonames[i].summary;
var _a=_9.substring(0,64);
_a=_a.replace(/'/,"%27");
var _b=_4.geonames[i].wikipediaUrl;
var _c="<div class=\"sitenote2\"><b>"+_9+"</b><br><a href=\"javascript:site('http://"+_b+"');\">"+_b+"</a></div>";
var _d=createMarker2(_8,_a,2,_c);
gmarkers[_7.toString()]=1;
batch2.push(_d);
map.addOverlay(_d);
}
}
return _4;
},error:function(_e,_f){
dojo.byId("click").innerHTML="An error occurred, with response: "+_e;
return _e;
},handleAs:"json"});
};
function mapClick(){
var _10=new GLatLng(lastPoint.lat().toFixed(8),lastPoint.lng().toFixed(8));
drawCircle(_10,10,40);
placeMarker(lastPoint.lat().toFixed(8),lastPoint.lng().toFixed(8));
};
function popImg(ref,_11){
var _12=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="+_11+"');\">Legend Editor</a>";
img+=" - <a href=\"javascript:site('/cgi-protected/Slideshow_editor.pl?id="+_11+"');\">Slideshow Editor</a>";
var pop=document.createElement("DIV");
pop.id="popImg";
pop.className="popimg";
_12.appendChild(pop);
pop.innerHTML=img;
};
function delpopImg(){
var _13=document.getElementById("my_root");
var _14=document.getElementById("popImg");
var _15=_13.removeChild(_14);
};
function initGallery(_16,_17){
var _18;
timeline();
var reg=new RegExp("China");
if(reg.test(_17)){
timeline(0);
}
reg=new RegExp("Japan");
if(reg.test(_17)){
timeline(2);
}
reg=new RegExp("India");
if(reg.test(_17)){
timeline(1);
}
reg=new RegExp("France");
if(reg.test(_17)){
timeline(3);
}
reg=new RegExp("Germany");
if(reg.test(_17)){
timeline(3);
}
reg=new RegExp("Italy");
if(reg.test(_17)){
timeline(4);
}
reg=new RegExp("Egypt");
if(reg.test(_17)){
timeline(6);
}
reg=new RegExp("Germany|CSZ|Austria");
if(reg.test(_17)){
timeline(7);
}
reg=new RegExp("Turkey");
if(reg.test(_17)){
timeline(8);
}
reg=new RegExp("Indonesia");
if(reg.test(_17)){
timeline(9);
}
var g=dijit.byId("gallery2");
if(typeof (g)!="undefined"){
g.destroyRecursive();
}
if(typeof (_16)=="undefined"){
_18="6318-3031-2304.1";
}else{
_18=_16;
}
var _19="/cgi-bin/get_json2.pl?id="+_18;
var _1a=new dojo.data.ItemFileReadStore({url:_19});
var _1b={query:{},count:1000};
var _1c={imageThumbAttr:"thumb",imageLargeAttr:"large"};
var _1d=dijit.byId("center");
var _1e=new dojox.image.Gallery({id:"gallery2",imageWidth:580,imageHeight:700,autoLoad:"false",pageSize:30,linkAttr:"link",titleAttr:"title"});
_1e.setDataStore(_1a,_1b,_1c);
_1d.setContent(_1e.domNode);
};
var gotNames=function(_1f,_20){
var _21=store.getValues(_1f[0],"type");
var _22;
var _23;
if(_21=="A"){
_22=3;
}else{
if(_21=="B"){
_22=3;
}else{
_22=3;
}
}
for(var i=0;i<_1f.length;i++){
var _24=_1f[i];
var _25=new GLatLng(store.getValues(_24,"lat"),store.getValues(_24,"lon"));
var _26=store.getLabel(_24);
var _27=store.getValues(_24,"country");
if(store.getValues(_24,"children").length){
var _28=store.getValues(_24,"title");
var _29;
if(_26=="British Museum"||_26=="Thebes"||_26=="Abydos"){
_29="<div class=\"sitenote2\"><b>"+_28+"</b><br>";
}else{
_29="<div class=\"sitenote\"><b>"+_28+"</b><br>";
}
var id;
dojo.forEach(store.getValues(_24,"children"),function(_2a){
if(store.getValues(_2a,"children2").length){
_29+=store.getValue(_2a,"title")+":<br>";
dojo.forEach(store.getValues(_2a,"children2"),function(_2b){
id=store.getValue(_2b,"id");
_29+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"javascript:initGallery('"+id+"')\">"+store.getValue(_2b,"title")+"</a><br>";
});
}else{
id=store.getValue(_2a,"id");
_29+="<a href=\"javascript:initGallery('"+id+"')\">"+store.getValue(_2a,"title")+"</a><br>";
}
});
_29+="</div>";
if(_28=="China - Annex Photo"||_28=="India - Annex Photo"||_28=="Japan - Annex Photo"||_28=="Egypt - Annex Photo"){
_22=1;
}
var _2c=_27+"-"+_28;
_23=createMarker2(_25,_2c,_22,_29,id);
}else{
_22=3;
var _28=store.getValues(_24,"title");
var id=store.getValues(_24,"id");
var _2c=_27+"-"+_28;
if(store.getValues(_24,"info").length){
var _2d=store.getValues(_24,"info");
var _29="<div class=\"sitenote\"><b>"+_28+"</b><br>"+_2d+"</div>";
_23=createMarker2(_25,_2c,_22,_29,id);
}else{
_23=createMarker(_25,_2c,_22,id);
}
}
batch.push(_23);
}
if(_21=="A"){
mgr.addMarkers(batch,1);
}else{
if(_21=="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(_2e,_2f,_30,_31){
var _32=new GMarker(_2e,{title:_2f,icon:getIcon(_30)});
GEvent.addListener(_32,"click",function(){
initGallery(_31,_2f);
});
return _32;
};
function createMarker2(_33,_34,_35,_36,_37){
var _38=new GMarker(_33,{title:_34,icon:getIcon(_35)});
GEvent.addListener(_38,"click",function(){
_38.openInfoWindowHtml(_36);
if(_37){
initGallery(_37,_34);
}
});
return _38;
};
function getIcon(i){
if(!ICONS[i]){
var _39=new GIcon();
_39.image="/jeb/images/"+IMAGES[i]+".png";
_39.iconAnchor=new GPoint(16,16);
_39.infoWindowAnchor=new GPoint(16,0);
_39.iconSize=new GSize(16,16);
ICONS[i]=_39;
}
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 _3a=new GHierarchicalMapTypeControl();
map.addControl(_3a);
map.addControl(new GScaleControl());
map.addControl(new GSmallMapControl());
map.enableScrollWheelZoom();
GEvent.addListener(map,"mousemove",function(_3b){
lastPoint=_3b;
});
GEvent.addListener(map,"dblclick",mapClick);
}
setupMarkers();
};
function removeCircle(){
for(i=0;i<circle.length;i++){
map.removeOverlay(circle[i]);
}
circle=[];
};
function drawCircle(_3c,_3d,_3e){
var _3f=_3c.distanceFrom(new GLatLng(_3c.lat()+0.1,_3c.lng()))/100;
var _40=_3c.distanceFrom(new GLatLng(_3c.lat(),_3c.lng()+0.1))/100;
var _41=[];
var _42=parseInt(360/_3e)||10;
for(var i=0;i<=360;i+=_42){
var _43=new GLatLng(_3c.lat()+(_3d/_3f*Math.cos(i*Math.PI/180)),_3c.lng()+(_3d/_40*Math.sin(i*Math.PI/180)));
_41.push(_43);
}
_41.push(_41[0]);
poly=new GPolygon(_41,"#ff0000",2,0,"#000000",0.3);
circle.push(poly);
var _44=map.addOverlay(poly);
};
function tree(_45){
map.setCenter(new GLatLng(35,-10),1);
removeOldMarkers(1);
var _46=document.getElementById("center");
_46.removeChild(_46.firstChild);
var _47=dijit.byId("my_tree");
if(_47){
_47.destroyRecursive();
}
var _48=document.getElementById("center");
var _49;
var _4a;
var _4b;
if(_45=="Art et Civilisation"){
_49='<h4>Art et Civilisation</h4>A la différence de la manière habituelle, qui consiste surtout à établir des banques de données dans une perspective historique ou documentaire, notre ambition est de concevoir et de réaliser une approche originale pour chaque parcours en prenant en compte et en soulignant à chaque fois un trait particulier afin non seulement de fournir de l\'information, mais de susciter une expérience nouvelle en accord avec une nouvelle technologie.<br>C\'est ce qui fait, entre autres, que la présente version (décembre 2009) met l\'accent sur le facteur dominant de cette décennie, à savoir la mobilité. Ainsi du ruban déroulant qui sert à la fois de catalogue et de guide. Ainsi de la fenêtre de gauche qui s\'inspirant de GoogleEarth situe oeuvres et monuments au mètre près. Reste la fonction qui, agrandissant l\'image plein écran, répond au besoin de contemplation, fondement de l\'expérience esthétique.<br>Pressenti par A. Malraux :«le musée était une affirmation, le Musée Imaginaire est une interrogation». <hr  style="width:300px; margin:5px 0 5px 0;">';  
_4a="art";
_4b="/jeb/artf.json";
}else{
_49='<h4>Pour l\'Art - cycles des cours-conférences se développant selon trois axes parallèles :</h4><ol><li> l\'analyse continue des grands mouvements, tendances, écoles, qui jalonnent le cours de l\'histoire<li> la lecture de certains hauts lieux et sites majeurs qui, de par leur importance, ont présidé aux mutations de l\'esthétique<li>l\'étude approfondie des artistes, peintres, sculpteurs ou architectes, dont l\'oeuvre est à considérer comme clé</ol>Lausanne dès 1979 - Genève dès 1990. Chacun des cycles mentionnés compte quinze conférences.<hr  style="width:300px; margin:5px 0 5px 0;">';  		
_4a="lecture";
_4b="/jeb/lecturef.json";
}
_48.innerHTML=_49;
newDiv=document.createElement("div");
newDiv.id="my_tree";
_46.appendChild(newDiv);
art=new dojo.data.ItemFileReadStore({url:_4b});
var _4c=new dijit.tree.ForestStoreModel({store:art,query:{"type":_4a},rootId:"my_tree",rootLabel:_45,childrenAttrs:["children","chidren2"]});
if(_45=="Art et Civilisation"){
new dijit.Tree({model:_4c,showRoot:true,persist:false,onClick:function(_4d){
var _4e=art.getValue(_4d,"page");
if(typeof (_4e)=="undefined"){
var id=art.getValue(_4d,"id");
initGallery(id);
if(art.getValue(_4d,"name")=="Art Grec Antique"){
removeOldMarkers();
var _4f=art.getValue(_4d,"image");
var _50=new GLatLng(art.getValues(_4d,"lat"),art.getValues(_4d,"lon"));
var _51="<div class=\"sitenote2\">"+art.getValue(_4d,"info")+"</div>";
var _52=createMarker2(_50,"Art Grec Antique",2,_51);
map.addOverlay(_52);
batch2.push(_52);
}else{
if(art.getValue(_4d,"name")=="16ième-20ième"){
removeOldMarkers();
for(var k=0;k<5;k++){
var _4f=art.getValue(_4d,"image");
var _50=getRandomPoint();
var _51="<div class=\"sitenote2\">"+art.getValue(_4d,"info")+"</div>";
var _52=createMarker2(_50,"16ième-20ième",2,_51);
map.addOverlay(_52);
batch2.push(_52);
}
}else{
art.fetch({query:{id:id},queryOptions:{ignoreCase:true},onComplete:function(_53,_54){
var _55=art.getValues(_53[0],"type");
for(var i=0;i<batch2.length;i++){
batch.push(batch2[i]);
}
batch2=[];
for(var i=0;i<_53.length;i++){
var _56=_53[i];
var _57=new GLatLng(art.getValues(_56,"lat"),art.getValues(_56,"lon"));
var _58=art.getValues(_56,"image");
var _59=art.getValues(_56,"site");
var _5a=art.getValues(_56,"title");
var id=art.getValues(_56,"id");
var _5b="<div class=\"sitenote3\"><a href=\"javascript:popImg('"+_58+"','"+id+"')\"><img border=\"0\" src=\"/cgi-bin/slideshow2.pl?ref="+_58+"&ico=80\"></a><br><a href=\"javascript:site('"+_59+"');\">"+_5a+"</a></div>";
var _5c=createMarker2(_57,_5a,2,_5b);
batch2.push(_5c);
}
mgr.addMarkers(batch2,1);
mgr.refresh();
}});
removeOldMarkers();
}
}
}else{
var _5d="http://www.bergerfoundation.ch/"+_4e;
window.open(_5d);
}
}},"my_tree");
}else{
new dijit.Tree({model:_4c,showRoot:true,persist:false,onClick:function(_5e){
var _5f=art.getValue(_5e,"page");
site(_5f);
}},"my_tree");
}
};
function trip(){
var _60=document.getElementById("click");
if(_60.firstChild){
_60.removeChild(_60.firstChild);
}
if(!tripnote){
tripnote=1;
var _61=document.createElement("div");
_61.id="jeb";
_60.appendChild(_61);
var _62="<hr>Zoomer pour obtenir plus de repères. Trouver les entrées Wikipedia dans un rayon de 10 km grâce au service <a href=\"javascript:site('http://www.geonames.org');\">Geoname Service</a>, la marche à suivre:1)Se placer à la bonne échelle 2)Double click sur la carte 3)Attendre les réponses qui s'affichent dans un cercle (<a href=\"javascript:removeCircle();\">les effacer)</a>";
_61.innerHTML=_62;
}else{
tripnote=0;
}
};
function timeline(k){
var _63=new Array();
var _64=document.getElementById("click");
if(_64.firstChild){
_64.removeChild(_64.firstChild);
}
if(k!=undefined){
var _65=document.createElement("div");
_65.id="jeb";
_64.appendChild(_65);
_63[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>";
_63[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>";
_63[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>";
_63[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>";
_63[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>";
_63[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>";
_63[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>";
_63[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>";
_63[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>";
_63[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>";
_65.innerHTML=_63[k];
}
};
function placerandom(){
var url="/cgi-bin/rand_json.pl";
dojo.xhrGet({url:url,load:function(_66,_67){
initGallery(_66);
return _66;
},error:function(_68,_69){
dojo.byId("click").innerHTML="An error occurred, with response: "+_68;
return _68;
},handleAs:"text"});
};
function center(url){
dojo.xhrGet({url:url,load:function(_6a,_6b){
var g=dijit.byId("gallery2");
if(typeof (g)!="undefined"){
g.destroyRecursive();
}
var _6c=document.getElementById("center");
if(_6c.firstChild){
_6c.removeChild(_6c.firstChild);
}
var _6d=document.createElement("DIV");
_6d.id="jeb";
_6c.appendChild(_6d);
dojo.byId("jeb").innerHTML=_6a;
return _6a;
},error:function(_6e,_6f){
dojo.byId("click").innerHTML="An error occurred, with response: "+_6e;
return _6e;
},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,_70,_71){
dojo.xhrGet({url:url+"?ref="+ref+"&type="+_70+"&mudac="+_71,load:function(_72,_73){
dojo.byId(id).innerHTML=_72;
return _72;
},error:function(_74,_75){
dojo.byId(id).innerHTML="An error occurred, with response: "+_74;
return _74;
},handleAs:"text"});
};

