<!-- Browser detection ------------------------------------------------- -->

intIEversion = -1; 
if (navigator.appName == 'Microsoft Internet Explorer')
{
   var ua = navigator.userAgent;
   var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
   if (re.exec(ua) != null)
      intIEversion = parseFloat( RegExp.$1 );
}
IE = (intIEversion > -1);

<!-- Adjusting to various screen sizes, iPad and iPhone ---------------- --> 

if ((IE) && (intIEversion < 9) && (screen.width < 1000))
{
   document.write('<link rel="stylesheet" type="text/css" ');
   document.write('href="Stylefiles/stylefile_centre_off.css">') 
}    
if (screen.width < 481)
{
   document.write('<meta name="viewport" ');
   document.write('content="width=device-width, initial-scale=0.68">');
}
if ((screen.width > 480) && (screen.width < 769))
{
}

<!-- Script to show maps in a separate browser window ------------------ -->

function MapWindow(strTitle, strUrl)
{
   strWinName = 'OrlandoMap';
   if ((window.screenX) === undefined)
   {
      intWinLeft = window.screenLeft + 25;
	  intWinTop = window.screenTop + 25
   }
   else
   {
      intWinLeft = window.screenX + 25;
	  intWinTop = window.screenY + 25
   }	
   
   strWinFeatures = ''
   strWinFeatures += 'top=' + intWinTop + ',';
   strWinFeatures += 'left=' + intWinLeft + ',';
   strWinFeatures += 'location=0,';
   strWinFeatures += 'menubar=0,';
   strWinFeatures += 'toolbar=0,';
   strWinFeatures += 'status=0,';
   strWinFeatures += 'scrollbars=0,';
   strWinFeatures += 'resizable=0,';
   strWinFeatures += 'width=640,';
   strWinFeatures += 'height=480';
   
   window.open('map.php?' + strTitle + '?' + strUrl, strWinName, strWinFeatures);
}

<!-- Scripts to show images on mouse-over ------------------------------ -->

function PhotoOnMouseOver(strId, strTitle, strCopyright) 
{    
   if (document.getElementById) 
   {
      document.getElementById('photo').src = strId;
	  document.getElementById('photo').alt = '\u00A9 ' + strCopyright;
	  document.getElementById('photo').title = '\u00A9 ' + strCopyright;
      document.getElementById('phototitle').childNodes[0].nodeValue = strTitle;
   } 
}

function ImageOnMouseOver(strImage, strHref, strTitle)
{  
   if (document.getElementById('pic'))
   {
      if (strImage == '')
	  {
	     document.getElementById('pic').src = 'Images/no_image.gif';	 
		 document.getElementById('pic').style.borderWidth = '0px'
	  }
	  else
	  {	 
	     var pic = document.getElementById('pic');
         pic.src = strImage;	
	     pic.style.borderWidth = '1px'; 
         
	     if (document.getElementById('piclink'))
	     {
		    var piclink = document.getElementById('piclink');
		    piclink.href = strHref;
		    pic.title = 'Click for concert details'; 
	     }	 	  
	     else
		    if (strTitle != '')
			   pic.title = strTitle;
			else   
		       pic.title = strImage.substr(strImage.lastIndexOf('/') + 1).
				   	  					   replace(/_/g,' ').split('.')[0];	   		  	  
      }
   }	  		   
} 

<!-- Mail Orlando script ----------------------------------------------- -->

function MailOrlando()
{
   self.location='mailto:information@orlandochoir.org.uk'; 
} 

