

//
// HYPERLINK FUNCTION FOR RESULT WINDOW
//

function openHyperlink(layer, fldName, fldValue) {
    switch(layer) {
        case 'Travaux':

            w=open("http://www.ville-floirac33.fr/travaux_detail.asp?num="+fldValue,'détail_travaux','toolbar=0,menubar=0,location=0,scrollbars=1,width=450,height=450');
            break;

        case 'Horaire':

            w=open("http://www.ville-floirac33.fr/horaire.asp",'Horaire','toolbar=0,menubar=0,location=0,scrollbars=1,width=800,height=600');
            break;

        default : 
            ImageBulle(300,400,fldValue);
            //w=open("./data/photos/"+fldValue,'photo','width=400,height=350,toolbar=no,scrollbars=yes,resizable=yes');
    }
}



function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  window.alert( 'Width = ' + myWidth );
  window.alert( 'Height = ' + myHeight );
}



