<?php
	if(isset($_SERVER['HTTPS']) && (@$_SERVER['HTTPS'] != 'off' || @$_SERVER['HTTPS'] == "on")){
		$protocol="https://";
	}
	else{
		$protocol="http://";
	}
	$_SU=$protocol.$_SERVER["HTTP_HOST"]."/";

	$this_link = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
	$img=explode('/', $this_link);
	$img_end=end($img);
	if(strpos($img_end, '.php') || strpos($img_end, '.html')){
		$key=array_search($img_end, $img);
		unset($img[$key]);
		$img=implode('/', $img)."/";
	}
	else{
		$img=implode('/', $img);
	}

	$title="L'aptitude au volant mise à l'épreuve";
	$description="L’unité de médecine et de psychologie du trafic dispose d’un simulateur pour tester les effets de l’alcool, de psychotropes ou encore de médicaments sur la conduite. Le champ de recherche pourrait s’étendre à d’autres domaines comme les répercussions d’une dialyse ou d’une longue journée de travail.";
	$img=$img."thumbnail.jpg";
?>
<!DOCTYPE html>
<html>
<head>
	<title>HUG - Pulsation Simulateur tour created by GlobalVision Communication Sàrl</title>
	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<meta http-equiv="x-ua-compatible" content="IE=edge" />

	<meta name="url" property="og:url" content="<?=$this_link?>" />
    <meta property="og:image" content="<?=$img?>"/>
	<meta property="og:type" content="website" />
    <meta name="title" property="og:title" content="<?=$title?>" />
    <meta name="description" property="og:description" content="<?=$description?>"/>
    
	<meta name="twitter:card" content="summary_large_image">
	<meta name="twitter:title" content="<?=$title?>">
	<meta name="twitter:description" content="<?=$description?>">
	<meta name="twitter:image" content="<?=$img?>">
	<meta name="twitter:url" content="<?=$this_link?>">

	<style>
		@-ms-viewport { width:device-width; }
		@media only screen and (min-device-width:800px) { html { overflow:hidden; } }
		html { height:100%; }
		body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
	</style>
</head>
<body>

<script src="tour.js"></script>

<div id="pano" style="width:100%;height:100%;">
	<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
	<script>
		embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"prefer", passQueryParameters:true});
	</script>
</div>
<script type="text/javascript">

<!--//--><![CDATA[//><!--

(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","http://www.hug-ge.ch/sites/interhug/files/googleanalytics/analytics.js?oi8c53","ga");ga("create", "UA-35217573-1", {"cookieDomain":"auto","allowLinker":true});ga("require", "linker");ga("linker:autoLink", ["www.hug-ge.ch","hug-ge.ch","www.vaccin-ebola.ch","www.ebola-vaccines.ch","www.vsv-ebola.ch","cours-hug.ch","www.monenfantestmalade.ch","www.hugblog.ch","www.atelierantalgie.com","www.neonathug.ch"]);var hug_params = location.pathname.substr(1).split('/'),hug_query, hug_cat;

if (hug_params[0] == 'search' && hug_params.length == 3) {

   hug_cat = hug_params[1];

   hug_query = hug_params[2];

   ga('set', 'page', '/?search='+hug_cat+'_'+hug_query);

}ga("send", "pageview");

//--><!]]>
</script>
<script type="text/javascript">
		var krpano = document.getElementById('krpanoSWFObject');

		function shareFacebook(){
			var urlfb = 'https://api.addthis.com/oexchange/0.8/forward/facebook/offer?url='+window.location.href;
			window.open(urlfb);
		}

		function shareTwitter(){
			var urltt = 'https://api.addthis.com/oexchange/0.8/forward/twitter/offer?url='+window.location.href;
			window.open(urltt);
		}	

		function shareLinkedin(){
			var urlli = 'https://api.addthis.com/oexchange/0.8/forward/linkedin/offer?url='+window.location.href;
			window.open(urlli);
		}

		function shareGooglePlus(){
			var urlgp = 'https://api.addthis.com/oexchange/0.8/forward/google_plusone_share/offer?url='+window.location.href;
			window.open(urlgp);
		}

</script>
</body>
</html>
