<? $page_data_l=mysql_fetch_assoc(mysql_query("Select * from l_pages where link='".addslashes($_GET['link'])."'"))?>
<?
	$_SESSION['language']=$page_data_l['language'];
	$language=$page_data_l['language'];
?>
<? $page_data=mysql_fetch_assoc(mysql_query("Select * from pages where id='".addslashes($page_data_l['page'])."'"))?>
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7 "> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->

<head>

    <!-- Basic Page Needs -->
    <meta charset="utf-8">
    <? $settings=mysql_fetch_assoc(mysql_query("Select * from settings where id=1"))?>
	<base href="<?=stripslashes($settings['base'])?>" /> 
	<title><?=stripslashes($page_data_l['meta_title'])?></title>
	<meta name="keywords" content="<?=stripslashes($page_data_l['meta_keywords'])?>"/>
	<meta name="description" content="<?=stripslashes($page_data_l['meta_description'])?>"/>
    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <!-- Favicons -->
    <link rel="shortcut icon" href="images/favicon.ico">

    <!-- FONTS -->
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:100,300,400,400italic,700'>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Patua+One:100,300,400,400italic,700'>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Playfair+Display:300,300italic,400,400italic,700,700italic'>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:100,300,400'>

    <!-- CSS -->
    <link rel='stylesheet' href='css/global.css'>
    <link rel='stylesheet' href='css/structure.css'>
    <link rel='stylesheet' href='css/minimal.css'>
    <link rel='stylesheet' href='css/custom.css'>

</head>

<body class="color-custom style-simple layout-full-width nice-scroll-on mobile-tb-left button-flat if-zoom if-border-hide no-content-padding header-transparent header-fw minimalist-header-no sticky-header sticky-tb-color ab-hide subheader-both-center menuo-no-borders menuo-right footer-copy-center">
    <div id="Wrapper">
        <div id="Header_wrapper" class="bg-parallax" data-enllax-ratio="0.3">
            <header id="Header">
                <? include 'inc_header.php'?>
            </header>
        </div>
        <div id="Content">
            <div class="content_wrapper clearfix">
                <div class="sections_group">
                    <div class="entry-content">
                        <div class="section mcb-section" style="padding-top:150px; padding-bottom:10px; background-color:#2a2826" data-parallax="3d"><img class="mfn-parallax" src="<?=stripslashes($page_data['cover_image'])?>"/>
                            <div class="section_wrapper mcb-section-inner">
                                <div class="wrap mcb-wrap one-sixth  column-margin-0px valign-top clearfix">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one column_placeholder">
                                            <div class="placeholder">
                                                &nbsp;
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="wrap mcb-wrap two-third  column-margin-20px valign-top clearfix">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one column_column ">
											
                                            <div class="column_attr clearfix">
                                                <h1 style="color: #fff;" align="center"><?=stripslashes($page_data_l['title'])?></h1><br><br>
                                                <h3 style="color: #fff;" align="center"><?=stripslashes($page_data_l['short_content'])?></h3>
												
                                            </div>
                                        </div>
                                        
                                    </div>
                                </div>
                            </div>
                        </div>
                        
						<? $i=0;?>
						<? $q=mysql_query("Select * from page_tabs where page='".$page_data['id']."'");?>
						<? while ($d=mysql_fetch_assoc($q)){?>
						<? $l=mysql_fetch_assoc(mysql_query("Select * from l_page_tabs where page_tab='".addslashes($d['id'])."'"))?>
						<? if ($i % 2==0){?>
                        <div class="section mcb-section" style="padding-top:25px; padding-bottom:25px; ">
                            <div class="section_wrapper mcb-section-inner">
                                
                                <div class="wrap mcb-wrap one valign-top clearfix">
                                    <div class="mcb-wrap-inner">
                                        <div class="wrap mcb-wrap one  column-margin-10px valign-top clearfix" style="padding:0 0 0 0; background-image:url(images/home_minimal_heading2.png); background-repeat:no-repeat; background-position:center bottom;">
											<div class="mcb-wrap-inner">
												<div class="column mcb-column one column_column ">
													<div class="column_attr clearfix align_center">
														
														<hr class="no_line" style="margin: 0 auto 20px;" />
														<h3><?=stripslashes($l['title'])?></h3>
													</div>
												</div>
											</div>
										</div>
                                        <div class="column mcb-column one column_divider ">
                                            <hr class="no_line" style="margin: 0 auto 10px;" />
                                        </div>
                                        <div class="column mcb-column two-third column_column ">
                                            <div class="column_attr clearfix" style=" padding:0 10% 0 0;">
                                                <?=stripslashes($l['content'])?>
                                            </div>
                                        </div>
                                        <div class="column mcb-column one-third column_column ">
                                            <div class="column_attr clearfix" style=" padding:0 10% 0 0;">
                                                <img src="<?=stripslashes($d['image'])?>" />
                                            </div>
                                        </div>
                                        
                                        
                                    </div>
                                </div>
                                
                            </div>
                        </div>
					
						<? }else{?>
						<div class="section mcb-section" style="padding-top:25px; padding-bottom:25px; ">
                            <div class="section_wrapper mcb-section-inner">
                                
                                <div class="wrap mcb-wrap one valign-top clearfix">
                                    <div class="mcb-wrap-inner">
                                       	<div class="wrap mcb-wrap one  column-margin-10px valign-top clearfix" style="0 0 0 0; background-image:url(images/home_minimal_heading2.png); background-repeat:no-repeat; background-position:center bottom;">
											<div class="mcb-wrap-inner">
												<div class="column mcb-column one column_column ">
													<div class="column_attr clearfix align_center">
														
														<hr class="no_line" style="margin: 0 auto 20px;" />
														<h3><?=stripslashes($l['title'])?></h3>
													</div>
												</div>
											</div>
										</div>
										
                                        <div class="column mcb-column one column_divider ">
                                            <hr class="no_line" style="margin: 0 auto 30px;" />
                                        </div>
										<div class="column mcb-column one-third column_column ">
                                            <div class="column_attr clearfix" style=" padding:0 10% 0 0;">
                                                <img src="<?=stripslashes($d['image'])?>" />
                                            </div>
                                        </div>
                                        <div class="column mcb-column two-third column_column ">
                                            <div class="column_attr clearfix" style=" padding:0 10% 0 0;">
                                                <?=stripslashes($l['content'])?>
                                            </div>
                                        </div>
                                        
                                        
                                        
                                    </div>
                                </div>
                                
                            </div>
                        </div>
						<? }?>
						<? $i++;?>
						<? }?>
					
					
						<? $q=mysql_query("Select * from page_gallery where page='".$page_data['id']."'");?>
						<? if (mysql_num_rows($q)>0){?>
                        <div class="section mcb-section equal-height-wrap full-width no-margin-h no-margin-v " style="padding-top:0px; padding-bottom:0px; background-color:#222224">
                            <div class="section_wrapper mcb-section-inner">
								<? while ($d=mysql_fetch_assoc($q)){?>
                                <div class="wrap mcb-wrap one-third  valign-top clearfix">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one column_image ">
                                            <div class="image_frame image_item no_link scale-with-grid aligncenter no_border">
                                                <div class="image_wrapper">
													<img class="scale-with-grid" src="photo/800/800/100/<?=stripslashes($d['file'])?>" width="780" height="800" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <? }?>
                            </div>
                        </div>
						<? }?>
					
                    </div>
                </div>
            </div>
        </div>
        <? include 'inc_footer.php'?>
    </div>

    <!-- JS -->
    <script src="js/jquery-2.1.4.min.js"></script>

    <script src="js/mfn.menu.js"></script>
    <script src="js/jquery.plugins.js"></script>
    <script src="js/jquery.jplayer.min.js"></script>
    <script src="js/animations/animations.js"></script>
    <script src="js/translate3d.js"></script>
    <script src="js/scripts.js"></script>

    <script id="mfn-dnmc-retina-js">
        jQuery(window).load(function() {
            var retina = window.devicePixelRatio > 1 ? true : false;
            if (retina) {
                var retinaEl = jQuery("#logo img.logo-main");
                var retinaLogoW = retinaEl.width();
                var retinaLogoH = retinaEl.height();
                retinaEl.attr("src", "images/logo.png").width(retinaLogoW).height(retinaLogoH);
                var stickyEl = jQuery("#logo img.logo-sticky");
                var stickyLogoW = stickyEl.width();
                var stickyLogoH = stickyEl.height();
                stickyEl.attr("src", "images/logo.png").width(stickyLogoW).height(stickyLogoH);
                var mobileEl = jQuery("#logo img.logo-mobile");
                var mobileLogoW = mobileEl.width();
                var mobileLogoH = mobileEl.height();
                mobileEl.attr("src", "images/logo.png").width(mobileLogoW).height(mobileLogoH);
            }
        });
    </script>
</body>

</html>