<?
$user = $this->phpsession->get('user');
$mobil = $user['mobil'];
?>


<div id="welcome" style="">
	
	
	<?if(!hun()):?>
	
	<div style="position: absolute; z-index: 10;"><img src="/public/img/welcome/2012/submenu_shadow.png" alt="shadow box" /></div>
	
	<div id="elsodiv">
	<div id="balelso">
		<h1 style="margin-bottom: 5px;">ARCHLine.XP Interior</h1>
		<p style="padding-top: 3px; color: #f96400; font-size: 16px;"><strong><?=$fo_info->cim?></strong></p>
		<p><?=$fo_info->info?></p>
		<div style="float: right;">
			<a href="<?=$fo_info->link?>" class="wellinka"><?=$fo_info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
		</div>
	</div>
	
	<div id="flash">
	<?if(!$mobil):?>
		<?$fokep=$this->muser->get_welcome_fokep();?>
		<?if( $fokep->tipus == 1 ):?>
			<?if( $fokep->url != "" ):?><a href="<?=$fokep->url?>"><?endif;?>
			<img src="<?=$fokep->img_url?>" style="" alt="Living room"></img>
			<?if( $fokep->url != "" ):?></a><?endif;?>
		<?elseif( $fokep->tipus == 2 ):?>
			<object type="application/x-shockwave-flash" data="/public/img/banner/reel_banners/engine/reel_big_v2_eng.swf" width="720" height="250">
				<param name="movie" value="/public/img/banner/reel_banners/engine/reel_big_v2_eng.swf" />
				<param name="FlashVars" value="playerMode=embedded" />
				<param name="wmode" value="opaque" />
				<img src="/public/img/banner/reel_banners/banner_2012_features.jpg">
			</object>
		<?endif;?>
	<?else:?>
		<img src="/public/img/banner/reel_banners/banner_2012_features.jpg" alt="ARCHLine Interior" />
	<?endif;?>
	</div>
	</div>
	
	
	<div style="clear: both;"></div>
	
		<div id="masodik">
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[0]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[0]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[1]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango" name="nemrandom">
			<?foreach($dobozok[1]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		<div class="welboxsmall">
		<div class="welboxtit"><?=$dobozok[2]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[2]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="http://www.archline.hu/multimedia/imagegallery/<?=base64_encode($info->link)?>" class="wellinka galeriaframe"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="http://www.archline.hu/multimedia/imagegallery/<?=base64_encode($info->link)?>" class="galeriaframe">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" />
				</a>
				<?endif;?>
				<?if($info->cim):?>
				<h2 class="welboxitit2"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<?endif;?>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		
		
		
		<div class="clear"></div>
		
		
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[3]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[3]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[4]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[4]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		<div class="welboxsmall">
		<div class="welboxtit"><?=$dobozok[5]->cim?></div>
			<div class="wellinkdiv">
				<a class="wellinka" href="/news">Archive <img alt="archive" src="/public/img/welcome/2012/arrow_link.png" /></a>
			</div>
			<? $hirek_lista = $this->db->query("SELECT *, DATE(CONCAT(news_y,'/',news_m,'/',news_d)) as ujdatum  FROM `news` WHERE news_lang='eng' order by ujdatum DESC LIMIT 0,5")->result(); ?>
			<?$ideiglenes=array();?>
			<?if($hirek_lista):?>
				<?foreach($hirek_lista as $hir):?>
					<?$datum=$hir->news_y. '-' . $hir->news_m . '-' . $hir->news_d;?>
					<?$hir->datum= date('D, d M Y H:i:s +0200', strtotime($datum));?>
					<?array_push($ideiglenes,$hir);?>
				<?endforeach;?>
				<?usort($ideiglenes,"hasonlito")?>
			
				<ul id="newslist">
				<?foreach($ideiglenes as $hir):?>
					<li>
					<?if($hir->url):?><?=anchor('news/show/'.$hir->url,$hir->news_title,"class='welcomenews'")?>
					<?else:?><?=anchor('news/show/'.$hir->news_id,$hir->news_title,"class='welcomenews'")?>
					<?endif;?>
					</li>
				<?endforeach;?>
				</ul>
			<?endif;?>
		</div>
		
		</div> <?// END masodik ?>
		<div style="clear: both; height: 0px; width: 962px;"></div>
		
		
		<div id="negyedik" class="holder" style="background: url('/public/img/welcome/2012/box_video.png') no-repeat;">
			<?php $vidik = $this->muser->get_welcome_video();?>
			<div id="video-holder" rel="2" title="The Second Video" style="height: 350px; width: 425px; float: left; padding: 13px 20px 10px 12px; margin-top: 0px;">
				
				<?if(!$mobil):?>
				<object width="425" height="349">
				<param name="movie" value="http://www.youtube.com/v/<?=$vidik[0]->youtubeid?>?fs=1&amp;hl=hu_HU"></param>
				<param name="allowFullScreen" value="true"></param>
				<param name="allowscriptaccess" value="always"></param>
				<param name="wmode" value="opaque"></param>
				<embed src="http://www.youtube.com/v/<?=$vidik[0]->youtubeid?>?fs=1&amp;hl=hu_HU" type="application/x-shockwave-flash" width="425" height="349" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"></embed>
				</object>
				<?endif;?>
			</div>
			<div id="videojobb" style="height: 378px; width: 515px; margin-left: 450px;">
				<div class="welboxtit" style="padding-top: 10px;">Video library</div>
				<div style="margin: 0px 5px 0px 5px;">See how ARCHLine.XP covers various aspects of your design process, and helps you to win more business.</div>
				
				
				<div id="videoklistakeret" class="scroll-pane" style="width: 500px; height: 300px;">
				
				<?foreach($vidik as $video):?>
					<div style="height: 58px; overflow: hidden; cursor: pointer; padding: 5px;" title="<?=$video->cim?>" class="video" rel="<?=$video->youtubeid?>">
						<img src="/<?=$video->kep?>" style="float: left; width: 60px; height: 48px; margin-right: 5px;" alt="<?=$video->cim?>" />
						<h3 style="margin: 0px 0px 4px 65px; font-weight: bold;"><?=$video->cim?></h3>
						<?=$video->leiras?>
					</div>
					<div class="clear"></div>
				<?endforeach;?>
				
				
				</div>
				
			</div>
		</div>
		
		<div style="clear: both; height: 0px; width: 962px;"></div>
	
	
	
	
	
	
	
	
   	<?elseif(hun()):?>
	
	<div style="position: absolute; z-index: 10;"><img src="/public/img/welcome/2012/submenu_shadow.png" alt="shadow box" /></div>
	
	<div id="elsodiv">
	<div id="balelso">
		<h1 class="welh11">ARCHLine.XP</h1>
		<p class="welalcim"><strong><?=$fo_info->cim?></strong></p>
		<p><?=$fo_info->info?></p>
		<div class="jobbfloat">
			<a href="<?=$fo_info->link?>" class="wellinka"><?=$fo_info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
		</div>
	</div>
	
	<div id="flash"  style="width: 720px; float: right; margin-top: 0px; padding-top: 0; margin-right: 0;">
	<?if(!$mobil):?>
		<?$fokep=$this->muser->get_welcome_fokep();?>
		<?if( $fokep->tipus == 1 ):?>
			<?if( $fokep->url != "" ):?><a href="<?=$fokep->url?>"><?endif;?>
			<img src="<?=$fokep->img_url?>" style="" alt="Living room"></img>
			<?if( $fokep->url != "" ):?></a><?endif;?>
		<?elseif( $fokep->tipus == 2 ):?>
			<object type="application/x-shockwave-flash" data="/public/img/banner/reel_banners/engine/reel_big_v3_hun.swf" width="720" height="250">
				<param name="movie" value="/public/img/banner/reel_banners/engine/reel_big_v3_hun.swf" />
				<param name="FlashVars" value="playerMode=embedded" />
				<param name="wmode" value="opaque" />
				<img src="/public/img/banner/reel_banners/banner_2012_features_HUN.jpg">
			</object>
		<?endif;?>
	<?else:?>
		<img src="/public/img/banner/reel_banners/banner_2012_features_HUN.jpg" alt="ARCHLine.XP Interior 3D interior design software" />
	<?endif;?>
	</div>
	</div>
	
	
	<div style="clear: both;"></div>
	
		<div id="masodik">
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[0]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[0]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[1]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango" name="nemrandom">
			<?foreach($dobozok[1]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		
		<div class="welboxsmall">
		<div class="welboxtit"><?=$dobozok[2]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[2]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="http://www.archline.hu/multimedia/imagegallery/<?=base64_encode($info->link)?>" class="wellinka galeriaframe"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="http://www.archline.hu/multimedia/imagegallery/<?=base64_encode($info->link)?>" class="galeriaframe">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" />
				</a>
				<?endif;?>
				<?if($info->cim):?>
				<h2 class="welboxitit2"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<?endif;?>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		
		
		
		<div class="clear"></div>
		
		
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[3]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[3]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		
		<div class="welboxbig">
		<div class="welboxtit"><?=$dobozok[4]->cim?></div>
		<ul class="mycarousel jcarousel-skin-tango">
			<?foreach($dobozok[4]->infok as $info):?>
			<li>
				<?if( $info->link ):?>
				<div class="wellinkdiv">
					<a href="<?=$info->link?>" class="wellinka"><?=$info->link_cim?> <img src="/public/img/welcome/2012/arrow_link.png" alt="more" /></a>
				</div>
				<?endif;?>
				<?if( $info->kep && file_exists($info->kep) ):?>
				<a href="<?=$info->link?>">
					<img src="/<?=$info->kep?>" width="110px" height="60px" alt="" style="float: left" />
				</a>
				<?endif;?>
				<h2 class="welboxitit"><a href="<?=$info->link?>"><?=$info->cim?></a></h2>
				<div class="clear"></div>
				<span><?=$info->info?></span>
				
			</li>
			<?endforeach;?>
		</ul>
		</div>
		
		
		<div class="welboxsmall">
		<div class="welboxtit"><?=$dobozok[5]->cim?></div>
			<div class="wellinkdiv">
				<a class="wellinka" href="/news">Archív <img alt="archive" src="/public/img/welcome/2012/arrow_link.png" /></a>
			</div>
			<? $hirek_lista = $this->db->query("SELECT *, DATE(CONCAT(news_y,'/',news_m,'/',news_d)) as ujdatum  FROM `news` WHERE news_lang='hun' order by ujdatum DESC LIMIT 0,5")->result(); ?>
			<?$ideiglenes=array();?>
			<?if($hirek_lista):?>
				<?foreach($hirek_lista as $hir):?>
					<?$datum=$hir->news_y. '-' . $hir->news_m . '-' . $hir->news_d;?>
					<?$hir->datum= date('D, d M Y H:i:s +0200', strtotime($datum));?>
					<?array_push($ideiglenes,$hir);?>
				<?endforeach;?>
				<?usort($ideiglenes,"hasonlito")?>
			
				<ul id="newslist">
				<?foreach($ideiglenes as $hir):?>
					<li>
					<?if($hir->url):?><?=anchor('news/show/'.$hir->url,$hir->news_title,"class='welcomenews'")?>
					<?else:?><?=anchor('news/show/'.$hir->news_id,$hir->news_title,"class='welcomenews'")?>
					<?endif;?>
					</li>
				<?endforeach;?>
				</ul>
			<?endif;?>
		</div>
		
		
		</div> <?// END masodik ?>
		<div style="clear: both; height: 0px; width: 962px;"></div>
		
		
		<div id="negyedik" class="holder" style="background: url('/public/img/welcome/2012/box_video.png') no-repeat;">
			<?php $vidik = $this->muser->get_welcome_video();?>
			<div id="video-holder" rel="2" title="The Second Video" style="height: 350px; width: 425px; float: left; padding: 13px 20px 10px 12px; margin-top: 0px;">
				
				<?if(!$mobil):?>
				<object width="425" height="349">
				<param name="movie" value="http://www.youtube.com/v/<?=$vidik[0]->youtubeid?>?fs=1&amp;hl=hu_HU"></param>
				<param name="allowFullScreen" value="true"></param>
				<param name="allowscriptaccess" value="always"></param>
				<param name="wmode" value="opaque"></param>
				<embed src="http://www.youtube.com/v/<?=$vidik[0]->youtubeid?>?fs=1&amp;hl=hu_HU" type="application/x-shockwave-flash" width="425" height="349" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"></embed>
				</object>
				<?endif;?>
			</div>
			<div id="videojobb">
				<div class="welboxtit" style="padding-top: 10px;">Videók</div>
				<div id="videoklistakeret" class="scroll-pane" style="width: 500px; height: 330px;">
				<?foreach($vidik as $video):?>
					<div title="<?=$video->cim?>" class="video videoitem" rel="<?=$video->youtubeid?>">
						<img src="/<?=$video->kep?>" class="kisvideokep" alt="<?=$video->cim?>" />
						<h3 style="margin: 0px 0px 4px 65px; font-weight: bold;"><?=$video->cim?></h3>
						<?=$video->leiras?>
					</div>
					<div class="clear"></div>
				<?endforeach;?>
				</div>
			</div>
		</div>
		
		<div style="clear: both; height: 0px; width: 962px;"></div>
		
		
		
        
    <?endif;?>
	  
</div>	
