

//popup to show maps

function sMap(name,xs,ys){

  dir='http://pages.unibas.ch/geo/mcr/3d/meteo/nmm4/'

   twindow = window.open ('newwindow.php?pic='+dir+name,"meteoblue","location=no,scrollbars=1,toolbar=no, menubar=no,width=100,height=100,resizable=yes, directories=no, status=no");
        
        twindow.moveTo(0,0);
        twindow.resizeTo(xs+50,ys+50);
        twindow.focus();
}



//popup to show meteogram
function sMtg(name,xs,ys){

  dir='uploads/meteobluedata/pub/nmm4/meteograms/'

   twindow = window.open ('newwindow.php?pic='+dir+name,"meteoblue", "location=no,scrollbars=1,toolbar=no, menubar=no,width=100,height=100,resizable=yes, directories=no, status=no");
        
        twindow.moveTo(0,0);
        twindow.resizeTo(xs+50,ys+50);
        twindow.focus();
}




// popup for animations of maps
function sAni(name,xs,ys){

  dir='-#mapsdir#-'
  twindow = window.open (dir+name,"meteoblue","location=no,scrollbars=1,toolbar=no,menubar=no,width=100,height=100,resizable=yes, directories=no, status=no");

        twindow.moveTo(0,0);
        twindow.resizeTo(xs+50,ys+50);
        twindow.focus();

}




// for testing and development only

function sMap2(name,xs,ys){

 
 dir='http://pages.unibas.ch/geo/mcr/3d/meteo/nmm4/'

 twindow = window.open (dir+name,"meteoblue", "location=no,scrollbars=1,toolbar=no, menubar=no,width=100,height=100,resizable=yes, directories=no, status=no");

 twindow.moveTo(0,0);
 twindow.resizeTo(xs+50,ys+50);
 twindow.focus();
}

