<?//<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>


<style type="text/css">
#baloldal, #kozepsooldal, #jobboldal{
	color: #454545;
}

#kozepsooldal ul{
	padding-left: 7px;
}

#kozepsooldal li{
	list-style-type: disc;
	margin-bottom: 7px;
}

#regdiv ul{
	margin: 0px;
	padding: 0px;
}

#regdiv li{
	list-style-type: none;
}

h2{
	background: none;
	border: none;
	padding-left: 0px;
}

div.keret{
	background: url(/public/img/workshop/box_side_repeat.png);
	padding: 0 10px;
}

div.keret-kozep{
	background: url(/public/img/workshop/box_center_repeat.png);
	padding: 0 15px;
	width: 427px;
}

div.keret-kozep-top{
	background: url(/public/img/workshop/box_center_top.png);
	width: 456px;
	height: 10px;
}

div.keret-kozep-bottom{
	background: url(/public/img/workshop/box_center_bottom.png);
	width: 456px;
	height: 12px;
}

div.ws-focim{
	display: none;
	font-size: 1.3em;
	font-weight: bold;
}

div.ws-cim{
	color: #8a8a8a;
	margin: 0;
	padding: 3px 10px 3px 10px;
	font-size: 1.2em;
	font-weight: bold;
	background: url(/public/img/workshop/box_side_repeat.png);
}

div.ws-cim-top{
	background: url(/public/img/workshop/box_side_top.png);
	width: 252px;
	height: 10px;
}

div.ws-cim-bottom{
	background: url(/public/img/workshop/box_side_bottom.png);
	width: 252px;
	height: 12px;
}

#kozepsooldal a img{
	margin: 0;
}

a.registrate2, a.registrate3{
	color: red;
	float: right;
	font-weight: bold;g
}

a.tema{
	/*color: #f00;*/
	color: #454545;
	font-size: 1.1em;
	font-weight: bold;
}

div.tema{
	margin: 6px 0px 0px 0px;
	padding: 5px 10px;
	background: #ebebeb;
}

span.ar, span.datum{
	margin-left: 10px;
	font-weight: bold;
}

span.halvany{
	color: #c7c7c7;
}

span.vilszur2{
	color: #8a8a8a;
}

span.vilszur{
	color: #8a8a8a;
	font-weight: bold;
}

#regdiv input[type="text"]{
	width: 320px;
}

</style>


<div id="baloldal" style="width: 252px; float: left; border: 0px solid red; 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()):?>
<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/outdoor_awnings" 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/commercial_unit_2" class="tema">Commercial Unit Design II</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="/interior/workshop/nappali" class="tema">Nappali</a></div>
<div class="tema"><a href="/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="/interior/workshop/tetoter_beepites" class="tema">Tetőtér beépítés</a></div>
<div class="tema"><a href="/interior/workshop/lepcso_es_korlat" class="tema">Lépcső és korlát</a></div>
<div class="tema"><a href="/interior/workshop/arnyekolok_es_fuggonyok" class="tema">Árnyékolók és függönyök</a></div>
<div class="tema"><a href="/interior/workshop/kereskedelmi_egyseg_1" class="tema">Kereskedelmi egység I</a></div>
<div class="tema"><a href="/interior/workshop/kereskedelmi_egyseg_2" class="tema">Kereskedelmi egység II</a></div>
<div class="tema"><a href="/interior/workshop/virtual_staging" class="tema">Virtual Staging</a></div>
<div class="tema"><a href="/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; border: 0px solid blue; 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) != "registrate" ):?>
<a href="/public/img/workshop/ENG/subjects/<?=$event->fokep?>" class="fancy" title="<?=$event->name?>" rel="group">
	<?if(file_exists("public/img/workshop/ENG/subjects/thumbs/".$event->fokep)):?>
	<img src="/public/img/workshop/ENG/subjects/thumbs/<?=$event->fokep?>" style="width: 130px; height: 65px; padding-left: 1px;" alt="<?=$event->title?>" />
	<?else:?>
	<img src="/public/img/workshop/ENG/subjects/<?=$event->fokep?>" style="padding-left: 1px;" alt="<?=$event->title?>" />
	<?endif;?>
</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;">
		Online:
		<ul class="events_list">
			<li>
				<input type="radio" name="event_id" value="online"<?if($esemid == "o"):?> checked="true"<?endif;?> />
				Request an appointment
			</li>
		</ul>
		In-Person:
		<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="true"<?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;?> />
				Request an appointment
			</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 />
<? $oldal = $this->mpages->get_row($event->shorttext); if($oldal) print $oldal->page_body; ?>
<br />

<div><a href="/workshop/download"><strong><?=lang('download')?></strong></a>
<a href="/interior/workshop/<?=$akt?>/registrate" class="registrate3"><?=lang('events_form_sub_reg')?></a></div>
</div>
<?else:?>
<div style="padding: 0 7px;">
	<h2><?=$event->page_title?></h2>
	<?=$event->page_body?>
</div>
<?endif;?>


</div>


<div id="jobboldal" style="width: 252px; float: left; border: 0px solid green; 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):?>
<span class="vilszur"><u>Online Workshop:</u></span><br />
Fee:<br />
<span class="ar">£45.00 inc VAT</span><br />
<a href="/interior/workshop/<?=$akt?>/registrate/o" class="registrate3"><?=lang('events_form_sub_reg')?></a><br />
<br />
<span class="vilszur"><u>In-Person Workshop:</u></span><br />
Fee:<br />
	<span class="ar">£45.00 inc VAT</span><br /><br />
<span class="halvany"><?=lang('event_next')?>:</span> <br />
<?if( !isset($dates[0]) ):?>
	On request<br />
	<a href="/interior/workshop/<?=$akt?>/registrate/p" class="registrate3"><?=lang('events_form_sub_reg')?></a><br />
<?else:?>
	<span class="datum"><?=date('d M Y H.i',$dates[0]->start_ts)?></span><br />
	<a href="/interior/workshop/<?=$akt?>/registrate/<?=$dates[0]->event_id?>" 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"><?=date('d M Y H.i',$dates[$i]->start_ts)?></span><br />
		<a href="/interior/workshop/<?=$akt?>/registrate/<?=$dates[$i]->event_id?>" class="registrate3"><?=lang('events_form_sub_reg')?></a><br /><br />
	<?endfor;?>
	<?endif;?>
<?endif;?>
<?endif;?>
</div>
<div class="ws-cim-bottom"></div>

<div class="ws-focim"><?=lang('event_relinf')?></div>
<div class="ws-cim-top"></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:?>
	CadLine KFT.<br />
	1037 Budapest, Montevideo u. 3/B.
	<?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"></div>

</div>
