	<script type="text/javascript" src="js/mediaplayer-5.6/jwplayer.js"></script>
	
	<?php if($name_show == true) echo $name ?>
	
	
	<?php /*?><div id="mediaplayer">Proszę czekać...</div>* /?><?=$rozmiar->y?><?=$rozmiar->x*/?>
	<center>
    <div class="video_frame">
	<?php
		$count = 0; 
		foreach ($content->result() as $video) { $count++;?>
		<?php if($video->videos_type == "outsidelink") echo $video->videos_name; 
		else if($video->videos_type == "file") { ?>
			<video src="/video/<?=$video->videos_name?>" height="100" id="container<?=$count?>" width="200"> </video><br/>
			<p><?php echo $video->videos_header; ?></p>
			<p><?php echo $video->videos_description; ?></p>
			
			<script type="text/javascript">
				jwplayer("container<?=$count?>").setup({
					flashplayer: "js/mediaplayer-5.6/player.swf",controlbar: "none" 
					//,
					//file: "../video/1308658058.mp4"
					,
					image: "js/mediaplayer-5.6/preview.jpg"
				});
				
			</script>
		<?php } ?>
	<?php } ?>
	</div>
	</center>
			
				

				<ul id="Photos">
					<?php /* foreach ($content->result() as $video) { ?>
						<li class="ui-state-default" id="video_<?php echo $video->ID_videos; ?>">
							<?php if($video->videos_type == "outsidelink") echo $video->videos_name; 
									else if($video->videos_type == "file") { ?>
										<object id="MediaPlayer1"
											width="<?php echo $rozmiar->x; ?>" height="<?php echo $rozmiar->y; ?>"
											classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
											codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902"
											standby="Loading Microsoft� Windows� Media Player components..."
											type="application/x-oleobject">		
											<param name="FileName" value="<?php echo $main_url.'video/'.$video->videos_name; ?>" />
											<param name="animationatStart" value="true" />
											<param name="transparentatStart" value="true" />
											<param name="autoStart" value="false" />
											<param name="showControls" value="true" />
											<param name="Volume" value="0" />
											<embed type="application/x-mplayer2"
												pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
												src="<?php echo $main_url.'video/'.$video->videos_name; ?>"
												name="MediaPlayer1"
												width="<?php echo $rozmiar->x; ?>" height="<?php echo $rozmiar->y; ?>"
												autostart="false">
												
											</embed>
										</object>
									<?php } ?>
							
							<p class="photoHeader"><?php echo $video->videos_header; ?></p>
							<p class="photoHeader"><?php echo $video->videos_description; ?></p>
							
						</li>
					<?php } */?>
				</ul>
				
				<div class="clear"></div>
				<br/>