<?@header("Content-Type: text/html; charset=UTF-8");?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?if(!hun()):?>en<?else:?>hu<?endif;?>">
	<head>
	    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
		<meta name="verify-v1" content="4z0rvy3iuqMfIJV0cWLId5RM0RN133wCV7YDelAxPBI=" />
		<meta name="verify-v1" content="tRKv1RApyIAKpKlco16MPSo0TO+YfdTYSNXCnIqamgQ=" />
		<meta name="y_key" content="84e86e265a67bb2d" />
		<meta name="y_key" content="8a3f204cfc230992" />
		<meta http-equiv="Content-Language" content="<?if(!hun()):?>en<?else:?>hu<?endif;?>" />
		<meta name="description" content="<?if(isset($meta['desc'])):?><?=$meta['desc']?><?else:?><?=$this->mmeta->getMetaData($this->uri->segment_array())->desc?><?endif;?>" />
		<meta name="keywords" content="<?=$this->mmeta->getMetaData($this->uri->segment_array())->keyw?>" />
		<?if( isset($admin) && $admin):?><meta name="robots" content="noindex,follow,noarchive" /><?endif;?>
		<?if(isset($noindex) && $noindex):?><meta name="robots" content="noindex, noarchive" />
		<?endif;?>
		<?if(isset($mobilink) && $mobilink):?><link rel="alternate" media="handheld" href="<?=$mobilink?>" /><?endif;?>
		
		<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://<?=$_SERVER['SERVER_NAME']?>/rss/" />
		
		<?if(($_SERVER['SERVER_NAME'] == "www.archxp.com" || $_SERVER['SERVER_NAME'] == "www.archlinexp.co.uk") && eng()):?>
		<link rel="canonical" href="http://www.archlinexp.com<?=$_SERVER['REQUEST_URI']?>" />
		<?elseif(isset($canonical) && $canonical):?>
		<link rel="canonical" href="http://<?=$_SERVER['SERVER_NAME']?>/<?=$canonical?>" />
		<?endif;?>
		
	    <link href="/public/img/icon.ico" rel="SHORTCUT ICON" />
	    
	    <link href="/public/css/menu/menu_min.css" rel="stylesheet" type="text/css" />
	    <link href="/public/js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2_min.css" rel="stylesheet" type="text/css" />
	
	    <?if(isset($style)):?>
		<?foreach($style as $s):?>
		<link href="/public/css/<?=$s?>.css" rel="stylesheet" type="text/css" />
		<?endforeach;?>
		<?endif;?>

		<?if(interior() || (isset($home) && eng())):?>
		<link href="/public/css/style_interior_min.css" rel="stylesheet" type="text/css" />
		<?else:?>
		<link href="/public/css/style_new.min.css" rel="stylesheet" type="text/css" />
		<?endif;?>
		
		<link href="/public/css/style_all_min.css" rel="stylesheet" type="text/css" />
	
		<?if(isset($home)):?>
	    <?if(hun()):?>
	    <link href="/public/css/style_wel_hun.css" rel="stylesheet" type="text/css" />
	    <?else:?>
	    <link href="/public/css/style_wel_eng.css" rel="stylesheet" type="text/css" />
		<?endif;?>
		<?endif;?>

		<script type="text/javascript" src="/public/js/jquery.js"></script>
		<script type="text/javascript" src="/public/js/script.js"></script>
		<script type="text/javascript" src="/public/js/menu.js"></script>
		
		
	    <script type="text/javascript" src="/public/js/jquery.mousewheel.min.js"></script>
		<script type="text/javascript" src="/public/js/jscrollpane/jquery.jscrollpane.min.js"></script>
		<script type="text/javascript" src="/public/js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js"></script>

		<?if(admin() && $this->uri->segment(1)=='admin'):?>
		<script type="text/javascript" src="/public/js/admin.js"></script>
		<?endif;?>

		<?if(isset($javascript)):?>
		<?foreach($javascript as $j):?>
		<script type="text/javascript" src="/public/js/<?=$j?>.js"></script>
		<?endforeach;?>
		<?endif;?>

		<title><?if(isset($title)):?><?=$title?><?else:?>ARCHLine.XP CAD Software<?endif;?></title>
		
	</head>
	<body>
		<div id="wrapper">
			<div id="header">

				<a href="/"><img src="/public/img/banner.jpg" alt="logo" /></a>
			</div>
			<div id="content-main">
				<div id="content-left" style="width: 972px;">
					<?if(!isset($home)):?>
						<div id="content-top">
							<?if(isset($csik)):?><?=$this->muser->generate_csik($csik)?><?endif;?>
						</div>
					
						<?if(isset($admin)):?>
							<div id="admin">
								<?=$this->load->view('admin/menu')?>
								<?=$this->load->view($tartalom)?>
							</div>
						<?else:?>
							<div id="content">
								<?=$this->load->view($tartalom)?>
							</div>
						<?endif;?>
						
						
					<?elseif(isset($home)):?>
						<?=$this->load->view('welcome_new')?>
					<?else:?>
					    <?if($this->uri->segment(3)=='learn'):?>
					    <div id="content-top">
					        <?if(isset($csik)):?>
             				<?=$this->muser->generate_csik($csik)?>
             				<?endif;?>
						</div>
					    <?endif;?>
						<div id="content">
							<?=$this->load->view($tartalom)?>
						</div>
					<?endif;?>
				</div>
				
				
				
				
			<div class="clear"></div>
			</div>
			<div id="footer">
				<div id="to_back">&nbsp;</div>
				<table width="920px">
				<tr>
					<td class="footerleft">&nbsp;</td>
					<td align="right" valign="middle">&nbsp;</td>
				</tr>
				</table>
		  </div>
		</div>
	
	<?if($_SERVER['REMOTE_ADDR']!='188.36.216.113' ):?>
	<?if( $_SERVER['HTTP_HOST'] == "www.cadline.hu" ):?>
		<script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-26380364-1']);
		  _gaq.push(['_trackPageview']);

		  (function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
	<?elseif(hun()):?>
		<script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-5480261-1']);
		  _gaq.push(['_trackPageview']);
		  (function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
    <?else:?>
	    <script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-7485741-1']);
		  _gaq.push(['_trackPageview']);
		  (function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
	<?endif;?>
	<?endif;?>
	
	</body>
</html>
