<script type="text/javascript">

jQuery(document).ready(function($){
	$('table.compare tr:odd').addClass('paros');
	
	$('.event_chooser input:radio').click(function(){
		$('input:radio').parent('td').removeClass('selected');
		$('input:radio:checked').parent('td').addClass('selected');
	});
	
	
	//click event for the link
	$('.ugraslink').click(function(){
		var event_main_id = $(this).attr('event_main_id');
		
		// leiras valtas
		$('.details_container').filter(function(){
			return $(this).attr('event_main_id') == event_main_id;
		}).fadeIn('slow');
		
		return true;
	});
	
	
	//click event for the image
	$('.show_img').click(function(){
		var event_main_id = $(this).attr('event_main_id');
		
		// regisztracio becsukas
		$('.registration_container').filter(function(){
			return $(this).attr('event_main_id') == event_main_id;
		}).fadeOut('slow');
		
		setTimeout("",2000);
		
		// leiras valtas
		$('.details_container').filter(function(){
			return $(this).attr('event_main_id') == event_main_id;
		}).slideToggle();
		
		return false;
	});
	
	
	//click event for the registrate button
	$('.registrate_button').click(function(){
		var event_main_id = $(this).attr('event_main_id');
		
		$('.registration_container').filter(function(){
			return $(this).attr('event_main_id') == event_main_id;
		}).slideToggle();
		
		return false;
	});
	
	//radio container click event
	$('td.event_radio').click(function(){
		$(this).children(':radio').attr('checked', 'checked');
		$('input:radio').parent('td').removeClass('selected');
		$('input:radio:checked').parent('td').addClass('selected');
	});
	
	//toggle table and list views
	$('div.list_table_toggle_container span').click(function(){
		if($(this).hasClass('table_view')){
			$(this).removeClass('table_view').addClass('list_view');
			$(this).parents('.registration_container').children('.event_chooser').hide();
			$(this).parents('.registration_container').children('.event_chooser_list').show();
		} else if($(this).hasClass('list_view')){
			$(this).removeClass('list_view').addClass('table_view');
			$(this).parents('.registration_container').children('.event_chooser_list').hide();
			$(this).parents('.registration_container').children('.event_chooser').show();
		}
	});
	
	//create buttons
	$('.event_button').button();
});
</script>

<style>
div.ws-cim{
	font-size: 1.5em;
	font-weight: bold;
}
a{
	color: #fff;
	text-decoration: underline;
}
</style>


<div style="text-align: center;">
	<a href="/courses">
		<img src="/public/img/newcourse/header.jpg" alt="workshop" width="940" height="225" style="margin: 0px;" />
	</a>
</div>


<div>

<div id="bal" style="float: left; width: 550px; margin-right:10px">
<?if($error):?>
<div class="error"><?=$error?></div>
<?endif;?>
<?if($main_events):?>
	
	<div class="main_event_with_reg_container">
		<?foreach($main_events as $main_event):?>
			<div class="main_event_container">
			<?if($main_event->szint):?>
				<h3 style="font-size: 18px; margin: 10px 0px 0px 20px; width: 500px; border: 0px none;"><?=$main_event->szint?></h3>
			<?endif;?>
			
			<a name="esem<?=$main_event->event_main_id?>" class="show_img" href="" title="<?=$main_event->name?>" event_main_id="<?=$main_event->event_main_id?>">
				<img src="/<?=$main_event->kozepkep?>" alt="<?=$main_event->name?>" style="min-height: 60px" />
			</a>
			<div class="details_container" <?if($l!=1){?> style="display: none;"<?}else{$l=0;?> style="display: block;"<?}?> event_main_id="<?=$main_event->event_main_id?>">
			
				<? $page = $this->mpages->get_row($main_event->shorttext); ?>
				<p class="description"><?=nl2br($page->page_body)?></p>
			
				<div>
				<?
				for($i=1;$i<5;$i++){
					$qaf = "elokep".$i;
					$kep = $main_event->$qaf;
					if($kep!="" && $kep!="null"){
					?>
						<a href="/public/upload/eng/image/events/banner/thumbs/<?=$kep?>" class="fancy" title="<?=$main_event->name?>" rel="group">
						<?if(file_exists("public/upload/eng/image/events/banner/thumbs/elo_".$kep)):?>
							<img src="/public/upload/eng/image/events/banner/thumbs/elo_<?=$kep?>" style="width: 130px; height: 65px; padding-left: 1px;" alt="<?=$main_event->title?>" />
						<?else:?>
							<img src="/public/upload/eng/image/events/banner/thumbs/<?=$kep?>" style="width: 130px; height: 65px; padding-left: 1px;" alt="<?=$main_event->title?>" />
						<?endif;?>
						</a>
						<?
					}
				}
				?>
				</div>
			
			<?if($main_event->event_main_id != 35):?>
			<div class="right_links" style="float: left; margin: 10px 5px 5px 0px; height: 31px;">
				<a aria-disabled="false" role="button" class="event_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" href="/workshop/download">
					<span class="ui-button-text">download</span>
				</a>
			</div>
			<?endif;?>
			
			<div class="right_links" style="text-align: right; margin: 10px 5px 5px 0px;">
                <a class="event_button registrate_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" href="" title="Registrate" event_main_id="<?=$main_event->event_main_id?>">
				<span class="ui-button-text">
					<?=lang('registrate')?>
				</span>
				</a>
			</div>
			
		</div>
	</div>
	
	<?=form_open('events', array('id' => 'registration_form'))?>
	<?=form_hidden('do', 'OK')?>
	<?=form_hidden('event_main_id', $main_event->event_main_id)?>
	<div class="registration_container" style="display: none;" event_main_id="<?=$main_event->event_main_id?>">
		<?if($main_event->events):?>
		<div class="list_table_toggle_container">
			<?if($main_event->event_view_id == 1):?>
			<span class="table_view">&nbsp;</span>
			<?elseif($main_event->event_view_id == 2):?>
			<span class="list_view">&nbsp;</span>
			<?endif;?>
		</div>
		<div class="event_chooser" style="margin: 20px 0px;<?if($main_event->event_view_id == 1):?> display: block;<?else:?> display: none;<?endif;?>">
			<table cellpadding="5" cellspacing="0" border="1" align="center" class="compare">
			<tr class="head">
				<th>&nbsp;</th>
				<?foreach($main_event->times as $time):?>
				<th class="times"><?=$time?></th>
				<?endforeach;?>
			</tr>
			<?foreach($main_event->events as $timestamp => $event_times):?>
			<tr>
				<td class="date"><a class="date_not_link" title="<?=$this->dateclass->getDateString($timestamp)?>"><?=date('Y. m. d.', $timestamp)?></a></td>
				<?foreach($main_event->times as $time):?>
				<?if(isset($event_times[$time])):?>
				<td align="center" class="<?if($event_times[$time]->able_to_reg):?>event_radio<?endif;?>">
					<?if($event_times[$time]->able_to_reg):?>
					<input type="radio" name="event_id" value="<?=$event_times[$time]->event_id?>" />
					<?else:?>
					<?=lang('full_event_td')?>
					<?endif;?>
				</td>
				<?else:?>
				<td class="disabled">&nbsp;</td>
				<?endif;?>
				<?endforeach;?>
			</tr>
			<?endforeach;?>
			</table>
		</div>
		<div class="event_chooser_list" style="margin: 20px 0px;<?if($main_event->event_view_id == 2):?> display: block;<?else:?> display: none;<?endif;?>">
			<ul class="events_list">
				<?foreach($main_event->events as $timestamp => $event_times):?>
				<?foreach($main_event->times as $time):?>
				<?if(isset($event_times[$time])):?>
				<li<?if(!$event_times[$time]->able_to_reg):?> class="full"<?endif;?>>
					<span class="text">
						<input type="radio" name="event_id" value="<?=$event_times[$time]->event_id?>"<?if(!$event_times[$time]->able_to_reg):?> disabled="disabled"<?endif;?> />
						<?if($event_times[$time]->name != $main_event->name):?>
						<?=$event_times[$time]->name, ', '?>
						<?endif;?>
						<?=$this->dateclass->getDateString($timestamp), ' - ', $time?>
					</span>
					<?if(!$event_times[$time]->able_to_reg):?>
					<span class="full_text"><?=lang('event_full_text')?></span>
					<?endif;?>
				</li>
				<?endif;?>
				<?endforeach;?>
				<?endforeach;?>
				<li>
					<span class="text">
					<input type="radio" name="event_id" value="online" />
					ONLINE: Request an appointment
					</span>
				</li>
			</ul>
		</div>
		<?else:?>
			<div class="event_chooser_list" style="margin: 20px 0px;">
			<ul class="events_list">
				<li>
					<span class="text">
					<input type="radio" name="event_id" value="online" />
					ONLINE: Request an appointment
					</span>
				</li>
				<li>
					<span class="text">
					<input type="radio" name="event_id" value="personal" />
					IN-PERSON: Request an appointment
					</span>
				</li>
			</ul>
		</div>
        <?endif;?>
        <div class="registration_form_container">
            
			<table cellpadding="5" cellspacing="0" align="center" width="550px">
				<tr>
					<td><strong><?=lang('events_form_name')?>:</strong></td>
					<td><?=form_input('nev',$this->input->post('nev'))?></td>
				</tr>
				<tr>
					<td><?=lang('events_form_city')?>:</td>
					<td><?=form_input('varos',$this->input->post('varos'))?></td>
				</tr>
				<tr>
					<td><?=lang('events_form_company')?>:</td>
        			<td><?=form_input('cegnev',$this->input->post('cegnev'))?></td>
        		</tr>
        		<tr>
        			<td><?=lang('events_form_zip')?>:</td>
        			<td><?=form_input('irsz',$this->input->post('irsz'),'size="5"')?></td>
        		</tr>
        		<tr>
                    <td><?=lang('events_form_address')?>:</td>
        			<td><?=form_input('cim',$this->input->post('cim'),'size="30"')?></td>
        		</tr>
        		<tr>
        			<td><strong><?=lang('events_form_phone')?>:</strong></td>
        			<td><?=form_input('tel',$this->input->post('tel'),'size="30"')?></td>
        		</tr>
        		<tr>
                    <td nowrap="nowrap"><strong><?=lang('events_form_email')?>:</strong></td>
        			<td><?=form_input('email',$this->input->post('email'),'size="30"')?></td>
        		</tr>
        		<tr>
        			<td><?=lang('events_form_comment')?>:</td>
        			<td><?=form_input('comment',$this->input->post('comment'))?></td>
        		</tr>
        		<tr>
        			<td align="center" colspan="4"><?=form_button(array('type' => 'submit', 'id' => 'mehet', 'name' => 'mehet', 'content' => lang('events_form_sub_reg')))?></td>
        		</tr>
        	</table>
        </div>
	</div>
	<?=form_close()?>
	<?endforeach;?>
	
	</div>
	
	
<?else:?>
	<div class="error"><?=lang('no_main_event')?>&nbsp;-&nbsp;<?if(hun()):?><?=anchor('/page/show/27', lang('events_form_contact_us'))?><?else:?><?=anchor('/page/show/102', lang('events_form_contact_us'))?><?endif;?></div>
<?endif;?>
</div>


<div id="jobb" style="float: right; width: 372px;">
	<img src="/public/img/newcourse/box_2_top.png" width="392" height="15" style="margin: 0px;" />
	<div style="padding: 0px 15px; width: 362px; background: url(/public/img/newcourse/box_2_repeat.png) repeat-y; color: #fff;">
		<h1 style="margin: 0px; text-decoration: none; width: 365px; text-align: center; border: 0px none;">Interior Design Workshops<br />
		In-person and Online</h1>
		
		<div class="ws-cim">Dates</div>
		<p>
			<strong>IN-PERSON</strong><br />
			<iframe src="http://archlinexp.com/temp_course/naptargen" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:280px; height:150px; background: #FFFFFF; margin-left: 25px;" ></iframe>
		</p>
		<p style="margin-top: 5px;">
			For registration please click on the Registrate button of the desired Workshop on the left side.
			<br /><br />
			<strong>ONLINE</strong><br />
			For an appointment, please contact us:<br />
			<br />
			Tel: 020-87855725; 020-87855772<br />
			Skype: cadline_support<br />
			E-mail: info@archlinexp.com<br /><br />
		</p>
		
		<div class="ws-cim">Where?</div>
		<p>
			In-person workshop has a maximum of 5 attendees and will take place at the following address in Putney.
		</p>
		<p><br/>
			Erico House, Business Centre<br/>
			93 	&#8722; 99 Upper Richmond Rd.,<br/>
			London, Putney SW15 2TG<br/>
			Tel: 020-87855725; 020-87855772
		<br /><br /></p>
		
		<div class="ws-cim">What do I need to bring with me?</div>
		<p>
			<strong>IN-PERSON:</strong>
			<br/>
			All attendees need to bring a laptop with a Windows operation system on it, and a mouse. If you have a Mac (Apple) you will need <a href="http://www.parallels.com/hu/products/desktop/">Parallels Desktop</a> 4 or higher, with Microsoft Windows XP with SP2. All attendees will be provided with a full working version of the software.<br />
			<a href="/interior/system">See the System requirements</a>
			<br/><br/>
			<strong>ONLINE:</strong><br />
			All attendees need a PC with Windows operation system on it and mouse.<br />
			<ul style="margin: 0px; padding-left: 15px;">
				<li style="margin-left: 0px;">install the SKYPE</li>
				<li style="margin-left: 0px;">check system requirements.</li>
				<li style="margin-left: 0px;">download the <a href="/interior/download">Trial version of ARCHLine.XP Interior</a> 2011 and install it.</li>
				<li style="margin: 0px;">download the <a href="/public/downloads/eng/support/TeamViewer_EN.exe">TeamViewer</a> - Desktop sharing application client - and install it.</li>
			</ul>
		</p>
		
		<div class="ws-cim">How much time will the Workshop take?</div>
		<p>
			IN-PERSON:<br />
			Each workshop will take approximately 4 hours.<br/><br/>
			ONLINE:<br />
			Each workshop will take approximately 2 hours.<br/><br/>
		</p>
		
		
		<div class="ws-cim">What makes our workshops different from other courses is ...</div>
		<p>
			<ul style="margin: 0px; padding-left: 15px;">
				<li>Very practical approach.</li>
				<li>Working on real life interior design projects.</li>
				<li>Getting to know a tool that can convert the creative ideas in your mind into visual realities.</li>
				<li>The software is very practical and logical and you do not have to be a computer genius to use it.</li>
				<li>It allows you to create high quality, realistic visual representations of your ideas which you can then present to clients.</li>
				<li>Continuous support for 2 weeks after the workshop is provided.</li>
			</ul>
		</p>
		
		<div class="ws-cim">More</div>
		<p id="bekezd">
			<i>CadLine Network</i> is offering user-friendly, practical CAD workshops using ARCHline.XP Interior software.<br />
			The series of workshop take a very practical approach to CAD learning on both Preliminary and Intermediate levels. The content of the workshops include step-by-step exercises of typical interior design projects, taking them from 2D survey to 3D modeling.<br />
			The aim of the workshops is to provide sufficient knowledge and understanding of the CAD software in order for the user to work faster and more efficiently. This will include quick and easy ways of making adjustments to plans and elevations.<br />
			ARCHline.XP Interior software is compatible with other software packages such as AutoCAD, so drawings produced in these programs can be imported and used.
		</p>
	</div>
	<img src="/public/img/newcourse/box_2_bottom.png" width="392" height="15" style="margin: 0px;" />
</div>

</div>