<?php $lang="2"; ?><?php require_once 'includes/connect.php'; 
	 	$result = mysql_query("SELECT * FROM colorcombi",$dbh);
			$myrow=mysql_fetch_array($result); 
			$color1=$myrow['color1'];
			$color2=$myrow['color2'];
			$color3=$myrow['color3'];
			$color4=$myrow['color4'];
			$color5=$myrow['color5'];

	    $result1 = mysql_query("SELECT * FROM siteinfo",$dbh);
			$myrow=mysql_fetch_array($result1); 
			$domain=$myrow['domain'];
			$firma=$myrow['firma'];
			$company=$myrow['company'];
			$company_en=$myrow['company_en'];
			$activity=$myrow['activity'];
			$activity_en=$myrow['activity_en'];
			$activity_de=$myrow['activity_de'];
            $activity_fr=$myrow['activity_fr'];
            $activity_it=$myrow['activity_it'];
            $activity_es=$myrow['activity_es'];
            $activity_ru=$myrow['activity_ru'];
			$activity_zh=$myrow['activity_zh'];
			$location=$myrow['location'];
			$location_en=$myrow['location_en'];
			$location_de=$myrow['location_de'];
            $location_fr=$myrow['location_fr'];
            $location_it=$myrow['location_it'];
            $location_es=$myrow['location_es'];
            $location_ru=$myrow['location_ru'];
			$location_zh=$myrow['location_zh'];
			$address=$myrow['address'];
			$address_en=$myrow['address_en'];
			$region=$myrow['region'];
			$region_en=$myrow['region_en'];
			$tel=$myrow['tel'];
			$tel_en=$myrow['tel_en'];
			$fax1=$myrow['fax'];
			$sitemail=$myrow['sitemail'];
			$map=$myrow['map'];
		    $holiday_id=$myrow['holiday_id'];
			$x=$myrow['x'];
			$y=$myrow['y'];
			$resurl=$myrow['resurl'];
			$site=$myrow['site'];
			$code=$myrow['code'];
			$hotelid=$myrow['hotel_id'];
			$mobile=$myrow['mobile'];
			$sitescript=$myrow['sitescript'];
			$sitescript2=$myrow['sitescript2'];
			$sitescript3=$myrow['sitescript3'];
			
			$result2 = mysql_query("SELECT * FROM pageinfo WHERE id='1'",$dbh);
			$myrow=mysql_fetch_array($result2); 
			
			$title1=$myrow['title1'];
			$title1_en=$myrow['title1_en'];
			$title1_de=$myrow['title1_de'];
			$description1=$myrow['description1'];
			$description1_en=$myrow['description1_en'];
			$description1_de=$myrow['description1_de'];
			$keywords1=$myrow['keywords1'];
			$keywords1_en=$myrow['keywords1_en'];
			$keywords1_de=$myrow['keywords1_de'];
		
			$title2=$myrow['title2'];
			$title2_en=$myrow['title2_en'];
			$title2_de=$myrow['title2_de'];
			$description2=$myrow['description2'];
			$description2_en=$myrow['description2_en'];
			$description2_de=$myrow['description2_de'];
			$keywords2=$myrow['keywords2'];
			$keywords2_en=$myrow['keywords2_en'];
			$keywords2_de=$myrow['keywords2_de'];

			$title3=$myrow['title3'];
			$title3_en=$myrow['title3_en'];
			$title3_de=$myrow['title3_de'];
			$description3=$myrow['description3'];
			$description3_en=$myrow['description3_en'];
			$description3_de=$myrow['description3_de'];
			$keywords3=$myrow['keywords3'];
			$keywords3_en=$myrow['keywords3_en'];
			$keywords3_de=$myrow['keywords3_de'];

			$title4=$myrow['title4'];
			$title4_en=$myrow['title4_en'];
			$title4_de=$myrow['title4_de'];
			$description4=$myrow['description4'];
			$description4_en=$myrow['description4_en'];
			$description4_de=$myrow['description4_de'];
			$keywords4=$myrow['keywords4'];
			$keywords4_en=$myrow['keywords4_en'];
			$keywords4_de=$myrow['keywords4_de'];

			$title5=$myrow['title5'];
			$title5_en=$myrow['title5_en'];
			$title5_de=$myrow['title5_de'];
			$description5=$myrow['description5'];
			$description5_en=$myrow['description5_en'];
			$description5_de=$myrow['description5_de'];
			$keywords5=$myrow['keywords5'];
			$keywords5_en=$myrow['keywords5_en'];
			$keywords5_de=$myrow['keywords5_de'];

			$title6=$myrow['title6'];
			$title6_en=$myrow['title6_en'];
			$title6_de=$myrow['title6_de'];
			$description6=$myrow['description6'];
			$description6_en=$myrow['description6_en'];
			$description6_de=$myrow['description6_de'];
			$keywords6=$myrow['keywords6'];
			$keywords6_en=$myrow['keywords6_en'];
			$keywords6_de=$myrow['keywords6_de'];

			$title7=$myrow['title7'];
			$title7_en=$myrow['title7_en'];
			$title7_de=$myrow['title7_de'];
			$description7=$myrow['description7'];
			$description7_en=$myrow['description7_en'];
			$description7_de=$myrow['description7_de'];
			$keywords7=$myrow['keywords7'];
			$keywords7_en=$myrow['keywords7_en'];
			$keywords7_de=$myrow['keywords7_de'];

			$title8=$myrow['title8'];
			$title8_en=$myrow['title8_en'];
			$title8_de=$myrow['title8_de'];
			$description8=$myrow['description8'];
			$description8_en=$myrow['description8_en'];
			$description8_de=$myrow['description8_de'];
			$keywords8=$myrow['keywords8'];
			$keywords8_en=$myrow['keywords8_en'];
			$keywords8_de=$myrow['keywords8_de'];

			$title9=$myrow['title9'];
			$title9_en=$myrow['title9_en'];
			$title9_de=$myrow['title9_de'];
			$description9=$myrow['description9'];
			$description9_en=$myrow['description9_en'];
			$description9_de=$myrow['description9_de'];
			$keywords9=$myrow['keywords9'];
			$keywords9_en=$myrow['keywords9_en'];
			$keywords9_de=$myrow['keywords9_de'];

			$title10=$myrow['title10'];
			$title10_en=$myrow['title10_en'];
			$title10_de=$myrow['title10_de'];
			$description10=$myrow['description10'];
			$description10_en=$myrow['description10_en'];
			$description10_de=$myrow['description10_de'];
			$keywords10=$myrow['keywords10'];
			$keywords10_en=$myrow['keywords10_en'];
			$keywords10_de=$myrow['keywords10_de'];

			$title11=$myrow['title11'];
			$title11_en=$myrow['title11_en'];
			$title11_de=$myrow['title11_de'];
			$description11=$myrow['description11'];
			$description11_en=$myrow['description11_en'];
			$description11_de=$myrow['description11_de'];
			$keywords11=$myrow['keywords11'];
			$keywords11_en=$myrow['keywords11_en'];
			$keywords11_de=$myrow['keywords11_de'];

			$title12=$myrow['title12'];
			$title12_en=$myrow['title12_en'];
			$title12_de=$myrow['title12_de'];
			$description12=$myrow['description12'];
			$description12_en=$myrow['description12_en'];
			$description12_de=$myrow['description12_de'];
			$keywords12=$myrow['keywords12'];
			$keywords12_en=$myrow['keywords12_en'];
			$keywords12_de=$myrow['keywords12_de'];
			
			$result3 = mysql_query("SELECT * FROM menu",$dbh);
			$myrow=mysql_fetch_array($result3);
			$lang1=$myrow['lang1'];
			$lang2=$myrow['lang2'];
			$lang3=$myrow['lang3'];
			$lang4=$myrow['lang4'];
			$lang5=$myrow['lang5'];
			$lang6=$myrow['lang6'];
			$lang7=$myrow['lang7']; 
			$lang8=$myrow['lang8']; 
			$guestbook1=$myrow['guestbook'];
?>
<?php $page = basename (htmlentities($_SERVER['SCRIPT_NAME'], ENT_QUOTES)); ?>
<?php $pagevars = (htmlentities($_SERVER['QUERY_STRING'], ENT_QUOTES)); ?>
<?php if ($pagevars!='') { $vars = "?$pagevars"; }?>
<?php if ($page=='index.php') { $pageurl = ""; } else{ $pageurl = "$page$vars"; }?>
<?php include 'includes/lang.php';?>
<?php
$ismobile = 0;
$mobcontainer = htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES);
$useragents = array ( 

'iPhone' ,
'iPod' ,
'Blackberry' ,
'Android' ,
'Palm',
'Windows\s+ce' ,

); 

foreach ( $useragents as $useragents ) { 
if(strstr($mobcontainer,$useragents)) {
$ismobile = 1;
} 
}
?>
<?php if ($ismobile==1 AND $mobile==1) { ?>
<meta http-equiv="refresh" content="0;URL=http://m.<?php echo $domain ?>">
<?php } ?>