
var position=-50, ban, delai, Msg;

Msg = 'Le service des urgences du Centre  hospitalier de Saumur est ouvert 24h/24';

function banniere(delai1) {
  delai = delai1;
  if (position >= Msg.length)
    position = 0;
  else if (position == 0) {
    Msg = ' ' + Msg;
    while (Msg.length < 128)
      Msg += ' ' + Msg;
  }
  window.status = Msg.substring(position,position+Msg.length);
  position++;
  ban = setTimeout("banniere(delai)",delai1);
}

function MM_preloadImages() { //v1.2
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    var preloadArray = new Array();
    for (var i=0; i<imgFiles.length; i++) {
      preloadArray[i] = new Image;
      preloadArray[i].src = imgFiles[i];
    }
  }
}

function MM_swapImage() { //v1.2
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);

    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}

function MM_swapImgRestore() { //v1.2
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function lance_annonce(){
  // inscription pour l'école d'aides soignants
   window.open('annonce_ifsi_2010_3.htm','News','top=20, left=80, width=650, height=750, status=no, directories=no, toolbar=no, location=no, menubar=no,scrollbars=yes, resizable=no');
}

function lance_annonce_si(){
  window.open('annonce_si_2008.htm','News','top=20, left=80, width=430, height=550, status=no, directories=no, toolbar=no, location=no, menubar=no,scrollbars=yes, resizable=yes');
}

function lance_annonce_dssi(){
  window.open('annonce_dssi_2010.htm','News','top=20, left=80, width=430, height=620, status=no, directories=no, toolbar=no, location=no, menubar=no,scrollbars=yes, resizable=yes');
}

function lance_annonce_fin(){
  window.open('annonce_fin_2008.htm','News','top=20, left=80, width=350, height=500, status=no, directories=no, toolbar=no, location=no, menubar=no,scrollbars=yes, resizable=yes');
}

function PopupImage(titre,img) {
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
function PopupImage2(titre,img) {
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=yes,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

function lance_photos_travaux1(){
	PopupImage("Août 2008","images/0808_AileF1.jpg");
}
function lance_photos_travaux2(){
	PopupImage("Août 2008","images/0808_AileF2.jpg");
}
function lance_photos_travaux3(){
	PopupImage("Août 2008","images/0808_AileF3.jpg");
}
function lance_photos_travaux4(){
	PopupImage("Août 2008","images/0808_AileF4.jpg");
}
function lance_photos_travaux5(){
	PopupImage("Août 2008","images/0808_AileF5.jpg");
}
function lance_photos_travaux6(){
	PopupImage("Août 2008","images/0808_Patients_couches1.jpg");
}
function lance_photos_travaux7(){
	PopupImage("Août 2008","images/0808_bloc_op1.jpg");
}
	
function lance_mp(){
  // Liste des marchés publics passés en ...
  window.open('marches_publics_2006.htm','News','top=20, left=50, width=800, height=650, status=yes, directories=no, toolbar=no, location=no, menubar=no,scrollbars=yes, resizable=yes');
}