<!-- <div class="rghead">
		<div class="rgfn">
				<a href="" class="rgui bt-back rgbt" title="Back" id='bakbtngallery'><span id='album_name_span'>Back to photos</span></a>
				</div>
               <div class="rgtitle">Gallery</div>
		</div>
	</div> -->
	<div class="rslide" style="position:relative; width:100%;">
		<div class="rslideinside"><div id="loading" style="display:none;"></div>
			<div class="comp" id='main_pic' data-content='<%= @image.album_id %>'><a href="" id="nextpic" class="navN" title="下一張" onclick="return false;" ><img src="<%= @image.file.url %>" alt="" /></a></div>
			<div class="rslidenav">
				<a href="" class="navP" title="上一張" onclick="return false;">Prev</a>
				<a href="" class="navN" title="下一張" onclick="return false;">Next</a>
			</div>
		</div>
		<div class="slidelist">
			<ul id='galleryimagelist' style="display:none;">
				<% i=0 %>
				<% @images.each do |image| %>
					<li for="<%= i %>"><a href="orbit_gallery?theater=<%= image.id %>" class="list_element" data-content="<%= image.file.url %>" onclick="return false;"><img src="<%= image.file.thumb.url %>" alt="" /></a></li>
					<% i=i+1 %>
				<% end  %>
			</ul>
		</div>
		<div class="slidectrl">
			<a href="" class="togglescreen" title="切換全螢幕" onclick="return false;">Screen</a>
			<a href="" class="togglelist" title="顯示照片清單" onclick="return false;">List</a>
			<a href="" class="browserfullscreen" title="顯示照片清單" onclick="return false;">F</a>
			<div class="slideinfo">
			<!-- 	<b class="info"><%= @image.title %></b> -->
				<span class="info"><%= @image.description %></span>
			</div>
		</div>
	</div>