<?php 
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 'On');
ini_set('display_startup_errors', 'On');

if(!strstr($_SERVER['HTTP_USER_AGENT'],'MSIE 6.0')) 
{ 
	 echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \n";
}
?> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head profile="http://gmpg.org/xfn/11">
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <meta http-equiv="Content-Language" content="en-gb" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
     <?php 
	if(basename($_SERVER['PHP_SELF']) == 'index.php') 
	{
		?>
        <title>Welcome to Iona Cottage</title>
        <meta name="description" content="Main Page" />
        <meta name="page-topic" content="Homepage" />
        <?php
	} 
 	elseif(basename($_SERVER['PHP_SELF']) == 'accommodation.php') 
	{
		?>
        <title>The Accomodation - Iona Cottage</title>
        <meta name="description" content="Pictures of Accommodation, Details of Accommodation" />
        <meta name="page-topic" content="Accommodation Details" />
        
        <!-- For the Gallery-->
        <link href="trunk/galleria.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="trunk/jquery.js"></script>
        <script type="text/javascript" src="trunk/jquery.galleria.pack.js"></script>
        <script type="text/javascript">
            
            jQuery(function($){
            
                $('.gallery_demo_unstyled').addClass('gallery_demo'); // adds new class name to maintain degradability
                /*$('.nav').css('display', 'none'); // hides the nav initially*/
                
                $('ul.gallery_demo').galleria({
                    history: false, // deactivates the history object for bookmarking, back-button etc.
                    clickNext: false, // helper for making the image clickable. Let's not have that in this example.
                    insert: undefined, // the containing selector for our main image. 
                    // If not found or undefined (like here), galleria will create a container 
                    // before the ul with the class .galleria_container (see CSS)
                    onImage: function(){
                        $('.nav').css('display', 'block');
                    } // shows the nav when the image is showing
                });
            });
            
        </script>

        <?php
	}
		elseif(basename($_SERVER['PHP_SELF']) == 'interests.php') 
	{
		?>
        <title>Places of Interest - Iona Cottage</title>
        <meta name="description" content="Links to places of interest" />
        <meta name="page-topic" content="Places of Interest" />
        <?php
	} 
		elseif(basename($_SERVER['PHP_SELF']) == 'travel.php') 
	{
		?>
        <title>Travelling to and around Orkney - Iona Cottage</title>
        <meta name="description" content="Links to Travel options" />
        <meta name="page-topic" content="Travel" />
        <?php
	} 
		elseif(basename($_SERVER['PHP_SELF']) == 'booking_conditions.php') 
	{
		?>
        <title>Booking Conditions - Iona Cottage</title>
        <meta name="description" content="The conditions associated with booking accommodation" />
        <meta name="page-topic" content="Booking Conditions" />
        <?php
	}
	elseif(basename($_SERVER['PHP_SELF']) == 'contact_us.php') 
	{
		?>
        <title>Contact Us - Iona Cottage</title>
        <meta name="description" content="Contact for Bookings and Enquiries" />
        <meta name="page-topic" content="Contact Iona Cottage" />
        <?php
	} 
	elseif(basename($_SERVER['PHP_SELF']) == 'privacy_statement.php') 
	{
		?>
        <title>Privacy Statement</title>
        <meta name="description" content="Details of privacy with information submitted on the site" />
        <meta name="page-topic" content="Privacy Statement" />
        <?php
	}
	?>
        <meta name="robots" content="all" />
        <meta name="author" content="Arwen Studios" />
        <meta name="author" content="Rowan Evenstar" />
        <meta name="Copyright" content="Rowan Evenstar - Arwen Studios" />
		<meta name="Keywords" content="Orkney,self catering,accomodation,acomodation,accomadation, guest house, holiday, holidays, Isle, of, Iona, Mull, Scotland, rentals, cottages, hotels, vacations,Highlands,Islands, western isles,wildlife,relaxation,Orkney Holidays, Orkney Islands, Orkney Accommodation, Orkney Wildlife, Orkney Arts and Crafts, Orkney Tours, Orkney Events" /> 
       		
		<!--Main Style Sheet-->
		
        <link rel="stylesheet" type="text/css" href="skins/standard.css" media="all" />

        <?php
        
    //Stylesheets to change quirks in bad browsers
        
	if(!empty($_SERVER['HTTP_USER_AGENT'])) 
	{ 
		if(preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT'])) 
		{
			?>
        <link rel="stylesheet" type="text/css" href="skins/ie-hacks.css" media="all" />
        <?php
								
			if(strstr($_SERVER['HTTP_USER_AGENT'],'MSIE 6.0')) 
			{
				?>
        <link rel="stylesheet" type="text/css" href="skins/ie6-hacks.css" media="all" />
        <?php
			}
		} 
		elseif(preg_match('/Safari/i',$_SERVER['HTTP_USER_AGENT'])) 
		{
			?>
        <link rel="stylesheet" type="text/css" href="skins/rounded.css" media="all" />
        <link rel="stylesheet" type="text/css" href="skins/safari-hacks.css" media="all" />

        <?php
			
			if(preg_match('/Chrome/i',$_SERVER['HTTP_USER_AGENT'])) 
			{
				?>
		<link rel="stylesheet" type="text/css" href="skins/rounded.css" media="all" />
        <link rel="stylesheet" type="text/css" href="skins/google-hacks.css" media="all" />
        <?php
			}
		} 
		elseif(preg_match('/Opera/i',$_SERVER['HTTP_USER_AGENT'])) 
		{
			?>
        <link rel="stylesheet" type="text/css" href="skins/opera-hacks.css" media="all" />
        <link rel="stylesheet" type="text/css" href="skins/rounded.css" media="all" />

        <?php
		}
		elseif(preg_match('/Mozilla/i',$_SERVER['HTTP_USER_AGENT'])) 
		{
			?>
		<link rel="stylesheet" type="text/css" href="skins/rounded.css" media="all" />
        <?php
		}
	}
	?>
	
    </head>
    
    <!-- Start of Page -->
    <body>
        <div id="container">
            <div id="header">
            <img src="images/shapinsay_view.jpg" alt="View of Shapinsay"/>

				<h1>Island Self Catering</h1>
				<h2>Iona Cottage Self Catering - Shapinsey, Orkney</h2>
				
            </div>
