<?//<script type="text/javascript" src="/public/js/plugin/jquery.gradientz.js"></script>?>
<script type="text/javascript">
jQuery(document).ready(function($){
	
	$('.registrate2').click(function(){
		$('#regdiv').css({'display': 'block'});
		return false;
	});
	
	$('#mehet').click(function(){
	//	alert("még nem mehet ..");
		
		var error = "";
		
		if( $('#nev').val() == "" ){
			error += "Nincs név";
			$('#nev').css({ 'background-color': '#FFAA44' });
		}else
			$('#nev').css({ 'background-color': '' });
		
		if( $('#tel').val() == "" ){
			error += "Nincs telefon";
			$('#tel').css({ 'background-color': '#FFAA44' });
		}else
			$('#tel').css({ 'background-color': '' });
		
		if( $('#email').val() == "" ){
			error += "Nincs email";
			$('#email').css({ 'background-color': '#FFAA44' });
		}else
			$('#email').css({ 'background-color': '' });
		
		if(error == "")
			$('#registration_form').submit();
		
	//	alert(error);
		
		return false;
	});
	
	aktmenu();
	
	function aktmenu(){
		$('a.tema').each(function(){
			
			var reg = /<?=$akt?>$/;
			if( reg.test($(this).attr('href')) ){
			//	alert($(this).attr('href'));
				if( "<?=trim($akt)?>" != "" )
					$(this).parent().css({'background': '#b9b9b9'});
				/*$(this).parent().gradientz({
					start: '#e9e9e9',
					end: '#999',
					distance: 440,
					angle: 72,
					css: 'margin-left: -10px; margin-top: -10px;'
				})
				$(this).css({ 'padding-left': '10px' });
				$(this).parents('.tema').next('.tema').css({ 'margin-top': '13px' });*/
			}
			
		});
	}
	
//	alert("betoltve");
});

function mutat(mit){
	kivdiv = document.getElementById(mit);
	if(kivdiv.style.display == "" )
		kivdiv.style.display = "none";
	else
		kivdiv.style.display = "";
}
</script>



<div id="baloldal" style="width: 252px; float: left; margin: 0 5px 0 -20px;">
<div class="ws-cim-top"></div>
<div class="keret">
<h1 style="margin: 0px; border: none; color: #8a8a8a; font-size: 1.2em; font-weight: bold;"><?=lang('event_ws_cim')?></h1><br />
<?if(!hun()):?>
<?/*<div class="tema" style="margin-bottom: 5px;"><a href="/workshop/decorex" class="tema">Workshop on Decorex 2011</a></div>*/?>
<span class="vilszur2">Preliminary level</span>
<div class="tema"><a href="/interior/workshop/reception_room" class="tema">Reception Room</a></div>
<div class="tema"><a href="/interior/workshop/kitchen_design" class="tema">Kitchen Design</a></div>
<div class="tema" style="margin-bottom: 5px;"><a href="/interior/workshop/bathroom_design" class="tema">Bathroom Design</a></div>
<span class="vilszur2">Intermediate level</span>
<div class="tema"><a href="/interior/workshop/loft_conversion" class="tema">Loft Conversion and Design</a></div>
<div class="tema"><a href="/interior/workshop/staircase_and_banister" class="tema">Staircase and Banister</a></div>
<div class="tema"><a href="/interior/workshop/soft_furnishing" class="tema">Soft Furnishing</a></div>
<div class="tema"><a href="/interior/workshop/commercial_unit_1" class="tema">Commercial Unit Design I</a></div>
<div class="tema"><a href="/interior/workshop/rendering" class="tema">Rendering</a></div>
<div class="tema" style="margin-bottom: 0px;"><a href="/interior/workshop/virtual_staging" class="tema">Virtual Staging</a></div>
<?else:?>
<span class="vilszur2">Kezdő szint</span>
<div class="tema"><a href="/hu/interior/workshop/nappali" class="tema">Nappali</a></div>
<div class="tema"><a href="/hu/interior/workshop/konyhatervezes" class="tema">Konyhatervezés</a></div>
<div class="tema" style="margin-bottom: 5px;"><a href="/interior/workshop/furdoszoba_tervezes" class="tema">Fürdőszoba tervezés</a></div>
<span class="vilszur2">Haladó szint</span>
<div class="tema"><a href="/hu/interior/workshop/tetoter_beepites" class="tema">Tetőtér beépítés</a></div>
<div class="tema"><a href="/hu/interior/workshop/lepcso_es_korlat" class="tema">Lépcső és korlát</a></div>
<div class="tema"><a href="/hu/interior/workshop/arnyekolok_es_fuggonyok" class="tema">Árnyékolók és függönyök</a></div>
<div class="tema"><a href="/hu/interior/workshop/kereskedelmi_egyseg_1" class="tema">Kereskedelmi egység I</a></div>
<div class="tema"><a href="/hu/interior/workshop/kereskedelmi_egyseg_2" class="tema">Kereskedelmi egység II</a></div>
<div class="tema"><a href="/hu/interior/workshop/virtual_staging" class="tema">Virtual Staging</a></div>
<div class="tema"><a href="/hu/interior/workshop/thea" class="tema">Thea Rendering</a></div>
<?endif;?>
</div>
<div class="ws-cim-bottom"></div>


<div class="ws-focim"><?=lang('event_ws_cim')?></div>

<div class="ws-cim-top"></div>
<div class="ws-cim" onclick="location.href='/interior/workshop/why_to_choose'" style="cursor: pointer;"><?=lang('event_whychoose')?></div>
<div id="choose" class="keret" style="display: none;">
	<?/*	if(!hun()) $info = $this->mpages->get_row(604);
		else $info = $this->mpages->get_row(604);
		if($info) print $info->page_body;*/
	?>
</div>
<div class="ws-cim-bottom" style="height: 2px; background-position: 0 7px"></div>

<div class="ws-cim-top" style="height: 2px; background-position: 0 6px; margin-top: -2px;"></div>
<div class="ws-cim" onclick="location.href='/interior/workshop/workshop_information'" style="cursor: pointer;"><?=lang('event_geninf')?></div>
<div id="generalinf" class="keret" style="display: none;">
	<?/*	if(!hun()) $info = $this->mpages->get_row(603);
		else $info = $this->mpages->get_row(603);
		if($info) print $info->page_body;*/
	?>
</div>
<div class="ws-cim-bottom" style="height: 2px; background-position: 0 7px"></div>

<div class="ws-cim-top" style="height: 2px; background-position: 0 6px; margin-top: -2px;"></div>
<div class="ws-cim" onclick="location.href='/interior/workshop/our_customers_say'" style="cursor: pointer;"><?=lang('event_custsay')?></div>
<div class="ws-cim-bottom"></div>


</div>


<div id="kozepsooldal" style="width: 460px; float: left; margin-right: 0px; padding: 0 0px;">
<div class="keret-kozep-top"></div>
<div class="keret-kozep">
<?	if(!hun()) $info = $this->mpages->get_row(608);
	else $info = $this->mpages->get_row(609);
	if($info) print $info->page_body;
?>
</div>
<div class="keret-kozep-bottom"></div>

<?if(!$altalanos):?>
<div style="padding: 0 7px;">
<h2><?=$event->name?></h2>
</div>
<?if( $event->fokep != "" && file_exists("public/img/workshop/ENG/subjects/".$event->fokep) && $this->uri->segment(4) != "register" ):?>
<a href="/public/img/workshop/ENG/subjects/<?if(file_exists("public/img/workshop/ENG/subjects/big_".$event->fokep)):?>big_<?endif;?><?=$event->fokep?>" class="fancy" title="<?=$event->name?>" rel="group">
	<img src="/public/img/workshop/ENG/subjects/<?=$event->fokep?>" style="padding-left: 1px;" alt="<?=$event->title?>" />
</a>
<?endif;?>
<?
$xx = $this->phpsession->get('wshiba');
unset($_SESSION['default']['wshiba']);
$esemid = $this->uri->segment(5);
?>
<div style="padding: 0 7px;">
<div id="regdiv"<?if($xx==""):?> style="display: none;"<?endif;?>>
	<?if($xx!==""):?><div style="color: #f00; text-align: center;"><?=$xx?></div><?endif;?>
	<?=form_open('events/regisztracio', array('id' => 'registration_form'))?>
	<?=form_hidden('do', 'OK')?>
	<?=form_hidden('event_main_id', $event->event_main_id)?>
	<div class="event_chooser_list" style="margin: 20px 0px;">
		<?if(!hun()):?>
		<?=lang('event_online')?>:
		<ul class="events_list">
			<li>
				<input type="radio" name="event_id" value="online"<?if($esemid == "o"):?> checked="checked"<?endif;?> />
				<?=lang('event_ipkeres')?>
			</li>
		</ul>
		<?=lang('event_inperson')?>:
		<?endif;?>
		<ul>
			<?if( count($dates) > 0 ):?>
			<?foreach($dates as $date):?>
			<li>
				<input type="radio" name="event_id" value="<?=$date->event_id?>" <?if(!$date->times->able_to_reg):?> disabled="disabled"<?endif;?><?if($esemid == $date->event_id):?> checked="checked"<?endif;?> />
				<?=$this->dateclass->getDateString($date->start_ts)?> <?=date('H:i',$date->start_ts)?> - <?=date('H:i',$date->end_ts)?>
			</li>
			<?endforeach;?>
			
			<?else:?>
			<li>
				<input type="radio" name="event_id" value="personal"<?if($esemid == "p"):?> checked="true"<?endif;?> />
				<?=lang('event_ipkeres')?>
			</li>
			<?endif;?>
		</ul>
	</div>
	
	<table cellpadding="5" cellspacing="0" align="center" width="450px">
		<tr>
			<td><strong><?=lang('events_form_name')?>:</strong></td>
			<td><input type="text" name="nev" id="nev" value="<?=$this->input->post('nev')?>" /></td>
		</tr>
		<tr>
			<td><?=lang('events_form_city')?>:</td>
			<td><input type="text" name="varos" value="<?=$this->input->post('varos')?>" /></td>
		</tr>
		<tr>
			<td><?=lang('events_form_company')?>:</td>
			<td><input type="text" name="cegnev" value="<?=$this->input->post('cegnev')?>" /></td>
		</tr>
		<tr>
			<td><?=lang('events_form_zip')?>:</td>
			<td><input type="text" name="irsz" value="<?=$this->input->post('irsz')?>" /></td>
		</tr>
		<tr>
			<td><?=lang('events_form_address')?>:</td>
			<td><input type="text" name="cim" value="<?=$this->input->post('cim')?>" /></td>
		</tr>
		<tr>
			<td><strong><?=lang('events_form_phone')?>:</strong></td>
			<td><input type="text" name="tel" id="tel" value="<?=$this->input->post('tel')?>" /></td>
		</tr>
		<tr>
			<td nowrap="nowrap"><strong><?=lang('events_form_email')?>:</strong></td>
			<td><input type="text" name="email" id="email" value="<?=$this->input->post('email')?>" /></td>
		</tr>
		<tr>
			<td><?=lang('events_form_comment')?>:</td>
			<td><input type="text" name="comment" value="<?=$this->input->post('comment')?>" /></td>
		</tr>
		<tr>
			<td align="center" colspan="4"><button name="mehet" type="submit" id="mehet" ><?=lang('events_form_sub_reg')?></button>
</td>
		</tr>
	</table>
	<?=form_close()?>
</div> <?/* END regdiv */?>
<br />
<div class="ws-text">
<? $oldal = $this->mpages->get_row($event->shorttext); if($oldal) print $oldal->page_body; ?>
</div>
<br />

	<a href="/workshop/download"><strong><?=lang('download_ws')?></strong></a><br /><br /><br />
</div>
<?else:?>
<div class="ws-text" style="padding: 0 7px;">
	<h2><?=$event->page_title?></h2>
	<?=$event->page_body?>
</div>
<?endif;?>


</div>


<div id="jobboldal" style="width: 252px; float: left; margin-right: -20px;">

<div class="ws-cim-top"></div>
<div class="ws-cim" style="padding-top: 0px;"><?=lang('event_dap')?></div>
<div class="keret">
<?if(!$altalanos):?>
<?if(!hun()):?>
<span class="vilszur"><u><?=lang('event_online')?> Workshop:</u></span><br />
<?=lang('event_fee')?>:
<span class="ar"><?=lang($arkat)?></span><br />
<a href="/interior/workshop/<?=$akt?>/register/o" class="registrate3"><?=lang('events_form_sub_reg')?></a><br />
<br />
<span class="vilszur"><u><?=lang('event_inperson')?> Workshop:</u></span><br />
<?endif;?>
<?=lang('event_fee')?>:&nbsp;
	<span class="ar"><?=lang($arkat)?></span><br /><br />
<span class="halvany"><?=lang('event_next')?>:</span> <br />
<?if( !isset($dates[0]) ):?>
	<?=lang('event_onreq')?><br />
	<a href="/interior/workshop/<?=$akt?>/register/p" class="registrate3"><?=lang('events_form_sub_reg')?></a><br />
<?else:?>
	<span class="datum"><?if(!hun()):?><?=date('d M Y H.i',$dates[0]->start_ts)?><?else:?><?=date('Y. m. d. \&\n\b\s\p\;\&\n\b\s\p\;H:i',$dates[0]->start_ts)?><?endif;?></span><br />
	<a href="/interior/workshop/<?=$akt?>/register/<?if($dates[0]->times->able_to_reg):?><?=$dates[0]->event_id?><?endif;?>" class="registrate3"><?=lang('events_form_sub_reg')?></a><br /><br />
	<?if(count($dates) > 1):?>
	<span class="halvany"><?=lang('event_future')?>:</span><br />
	<?for($i=1;$i<=2;$i++):?>
		<?if( !isset($dates[$i]) ) break;?>
		<span class="datum"><?if(!hun()):?><?=date('d M Y H.i',$dates[$i]->start_ts)?><?else:?><?=date('Y. m. d. \&\n\b\s\p\;\&\n\b\s\p\;H:i',$dates[$i]->start_ts)?><?endif;?></span><br />
		<a href="/interior/workshop/<?=$akt?>/register/<?if($dates[$i]->times->able_to_reg):?><?=$dates[$i]->event_id?><?endif;?>" class="registrate3"><?=lang('events_form_sub_reg')?></a><br /><br />
	<?endfor;?>
	<?endif;?>
<?endif;?>
<?endif;?>
</div>
<div class="ws-cim-bottom"></div>


<?if( !hun() ):?>
<div class="ws-cim-top"></div>
<div class="ws-cim" onclick="mutat('buyonline')" style="cursor: pointer;"><?=lang("event_buyonline")?></div>
<div id="buyonline" style="display:none;">
	<div class="ws-cim" style="text-align: center;"><?=lang('event_buyonws')?></div>
	<div class="keret">
		<form action="/workshop/buy" method="post" name="workshop">
		<table align="center" cellspacing="3" style="margin-top: 5px;">
		<tbody>
			<tr>
				<td><span style="color: black; font-weight: normal;"><?=lang('event_buyondb')?></span></td>
				<td>&nbsp;</td>
				<td><span style="color: black; font-weight: normal;"><?=lang('event_buyonmind')?></span></td>
			</tr>
			<tr>
				<td><select name="darab"><?for($i=1;$i<=5;$i++):?><option value="<?=$i?>"><?=$i?></option><?endfor;?></select></td>
				<td><span style="color: black; font-weight: normal;"> workshop</span></td>
				<td><span style="color: black; font-weight: normal;"><?=lang("event_arhalado")?></span></td>
			</tr>
			<tr>
				<td colspan="3" align="right"><input value="Buy Now!" name="G1" type="submit" /></td>
			</tr>
		</tbody>
		</table>
	</form>
	</div>
</div>
<?endif;?>


<div class="ws-focim"><?=lang('event_relinf')?></div>
<div class="ws-cim-top"<?if( !hun() ):?> style="height: 2px; background-position: 0 6px; margin-top: -2px;"<?endif;?>></div>
<div class="ws-cim" onclick="mutat('location')" style="cursor: pointer;"><?=lang('event_location')?></div>
<div id="location" class="keret" style="display: none;">
	<?if(!hun()):?>
	Erico House, Business Centre<br/>
	93 	&#8722; 99 Upper Richmond Rd.,<br/>
	London, Putney SW15 2TG<br/>
	Tel: 020-87855725; 020-87855772
	<?else:?>
	<br /><strong>CadLine Kft.</strong><br />
	1037 Budapest, Montevideo u. 3/B.<br /><br />
	<?endif;?>
</div>
<div class="ws-cim-bottom" style="height: 2px; background-position: 0 7px"></div>

<div class="ws-cim-top" style="height: 2px; background-position: 0 6px; margin-top: -2px;"></div>
<div class="ws-cim" onclick="mutat('bring')" style="cursor: pointer;"><?=lang('event_bringwithme')?></div>
<div id="bring" class="keret" style="display: none;">
	<?	if(!hun()) $info = $this->mpages->get_row(606);
		else $info = $this->mpages->get_row(607);
		if($info) print $info->page_body;
	?>
</div>
<div class="ws-cim-bottom" style="height: 2px; background-position: 0 7px"></div>

<div class="ws-cim-top" style="height: 2px; background-position: 0 6px; margin-top: -2px;"></div>
<div class="ws-cim" onclick="location.href='/interior'" style="cursor: pointer;">ARCHLine.XP INTERIOR</div>
<div class="ws-cim-bottom" style="height: 2px; background-position: 0 7px"></div>

<div class="ws-cim-top" style="height: 2px; background-position: 0 6px; margin-top: -2px;"></div>
<div class="ws-cim" onclick="location.href='/interior/download'" style="cursor: pointer;">Trial <?=lang('download')?></div>
<div class="ws-cim-bottom"></div>

</div>
