<?//<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(){
		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')) ){
				if( "<?=trim($akt)?>" != "" )
					$(this).parent().css({'background': '#b9b9b9'});
			}
			
		});
	}
	
});

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_pw_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="/presentation/webinar/reception-room" class="tema">Reception Room</a></div>
<div class="tema"><a href="/presentation/webinar/kitchen-design" class="tema">Kitchen Design</a></div>
<div class="tema" style="margin-bottom: 5px;"><a href="/presentation/webinar/bathroom-design" class="tema">Bathroom Design</a></div>
<span class="vilszur2">Intermediate level</span>
<div class="tema"><a href="/presentation/webinar/loft-conversion" class="tema">Loft Conversion and Design</a></div>
<div class="tema"><a href="/presentation/webinar/staircase-and-banister" class="tema">Staircase and Banister</a></div>
<div class="tema"><a href="/presentation/webinar/soft-furnishing" class="tema">Soft Furnishing</a></div>
<div class="tema"><a href="/presentation/webinar/commercial-unit" class="tema">Commercial Unit Design</a></div>
<div class="tema"><a href="/presentation/webinar/render" class="tema">Rendering</a></div>
<div class="tema" style="margin-bottom: 0px;"><a href="/presentation/webinar/virtual-staging" class="tema">Virtual Staging</a></div>
<?else:?>
<span class="vilszur2">Kezdő szint</span>
<div class="tema"><a href="/presentation/webinar/nappali" class="tema">Nappali</a></div>
<div class="tema"><a href="/presentation/webinar/konyhatervezes" class="tema">Konyhatervezés</a></div>
<div class="tema"><a href="/presentation/webinar/furdoszoba_tervezes" class="tema">Fürdőszoba tervezés</a></div>
<div class="tema"  style="margin-bottom: 5px;"><a href="/presentation/webinar/virtual_staging" class="tema">Virtual Staging</a></div>
<span class="vilszur2">Haladó szint</span>
<div class="tema"><a href="/presentation/webinar/tetoter_beepites" class="tema">Tetőtér beépítés</a></div>
<div class="tema"><a href="/presentation/webinar/lepcso_es_korlat" class="tema">Lépcső és korlát</a></div>
<div class="tema"><a href="/presentation/webinar/arnyekolok_es_fuggonyok" class="tema">Árnyékolók és függönyök</a></div>
<div class="tema"><a href="/presentation/webinar/kereskedelmi_egyseg_1" class="tema">Kereskedelmi egység I</a></div>
<div class="tema"><a href="/presentation/webinar/kereskedelmi_egyseg_2" class="tema">Fények és rendering</a></div>
<div class="tema"><a href="/presentation/webinar/thea" class="tema">Thea Rendering</a></div>
<?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('bring')" style="cursor: pointer;"><?=lang('event_pw_sysreq')?></div>
<div id="bring" class="keret" style="display: none;">
	<?	if(!hun()) $info = $this->mpages->get_row(660);
		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>


<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(659);
	else $info = $this->mpages->get_row(659);
	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>
<?
$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('presentation/submitwebinar', 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;">
		<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;?> />
				<?=date('F d, Y \&\n\b\s\p\;\&\n\b\s\p\;H:i a',$dates[0]->start_ts)?> - <?=date('H:i a',$dates[0]->end_ts)?> GMT
			</li>
			<?endforeach;?>
			
			<?else:?>
			<li>
				<input type="radio" name="event_id" value="online"<?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 colspan="2">
				<table><tr>
				<td>
					<p class="kiscim">Software used:</p>
					<div><input type="checkbox" name="softwares[]" value="no" /> No</div>
					<div><input type="checkbox" name="softwares[]" value="archline" /> ARCHLine.XP</div>
					<div><input type="checkbox" name="softwares[]" value="autocad" /> AutoCAD</div>
					<div><input type="checkbox" name="softwares[]" value="revit" /> Revit</div>
					<div><input type="checkbox" name="softwares[]" value="vectorworks" /> Vectorworks</div>
					<div><input type="checkbox" name="softwares[]" value="archicad" /> ArchiCAD</div>
				</td>
				<td valign="top" style="padding-left: 30px">
					<p class="kiscim">I intend to purchase a CAD:</p>
					<select name="purchase">
						<option value=""></option>
						<option value="no">I don’t intend to buy a CAD software</option>
						<option value="later">Maybe later</option>
						<option value="1 month">In 1 month</option>
						<option value="1-3 month">In 1-3 month</option>
						<option value="4-6 month">In 4-6 month</option>
						<option value="1 year">In 1 year</option>
					</select>
				</td>
				</tr></table>
			</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 />
</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;"><span style="margin-left: 10px;"><?=lang('event_pw_da')?></span></div>
<div class="keret" style="min-height: 94px">
<br />
<?if( !isset($dates[0]) ):?>
	<?=lang('event_onreq')?><br />
	<div class="pw-register" onclick="window.location.href='/presentation/webinar/<?=$akt?>/register/p'"><?=lang('events_form_sub_reg')?></div>
<?else:?>
	<span class="datum"><?if(!hun()):?><?=date('F d, Y',$dates[0]->start_ts)?></span><br />
	<span class="datum"><?=date('H:i a',$dates[0]->start_ts)?> - <?=date('H:i a',$dates[0]->end_ts)?> GMT
	<?else:?><?=date('Y. m. d. \&\n\b\s\p\;\&\n\b\s\p\;H:i',$dates[0]->start_ts)?><?endif;?></span><br />
	<br />
	<div class="pw-register" onclick="window.location.href='/presentation/webinar/<?=$akt?>/register/<?if($dates[0]->times->able_to_reg):?><?=$dates[0]->event_id?><?endif;?>'"><?=lang('events_form_sub_reg')?></div>
	
	<?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('F d, Y',$dates[$i]->start_ts)?></span><br />
		<span class="datum"><?=date('H:i a',$dates[$i]->start_ts)?> - <?=date('H:i a',$dates[$i]->end_ts)?> GTM</span>
		<?else:?><?=date('Y. m. d. \&\n\b\s\p\;\&\n\b\s\p\;H:i',$dates[$i]->start_ts)?><?endif;?></span><br />
		<div class="pw-register" onclick="window.location.href='/presentation/webinar/<?=$akt?>/register/<?if($dates[$i]->times->able_to_reg):?><?=$dates[$i]->event_id?><?endif;?>'"><?=lang('events_form_sub_reg')?></div>
		<br />
	<?endfor;?>
	<?endif;?>
<?endif;?>
</div>
<div class="ws-cim-bottom"></div>


<?if( $event->fokep != "" && file_exists("public/img/workshop/ENG/subjects/".$event->fokep) ):?>
<div class="ws-cim-top"></div>
<div class="keret">
<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; max-width: 230px; margin: 0 0 -3px 0;" alt="<?=$event->name?>" />
</a>
</div>
<div class="ws-cim-bottom"></div>
<?endif;?>

</div>
