/*****************************************
 *Filename:      ue.pri.video.js
 *Version:       1.0.0(2009.9.30)
 *Website:       http://aion.mmosite.com
 *Author:        S.S.L
******************************************/

function UE_AionVideo( pArr ){

	function doDiv(){
		var str = '';
		
		str += '<div class="main_update">';
		
		for( var i = 0; i < pArr.length; i++ ){
			str += '<div class="update_news">';
			str += '	<a href="http://video.mmosite.com/display.php?vid=' + vd_aion[i]['vid'] + '&gid=422" target="_blank">';
			str += '	<img height="90" width="120" border="0" title="' + vd_aion[i]['title'] + '" alt="' + vd_aion[i]['title'] + '" src="' + vd_aion[i]['picture'] + '"/>';
			str += '	</a>';
			str += '	<h2>[Video]&nbsp;<a  href="http://video.mmosite.com/display.php?vid=' + vd_aion[i]['vid'] + '&gid=422" title="' + vd_aion[i]['title'] + '" target="_blank">' + vd_aion[i]['title'] + '</a></h2>';
			str += '	<div class="update_author">views:' + vd_aion[i]['view'] + ', ' + vd_aion[i]['time'] + '</div>';
			str += '	<p>' + vd_aion[i]['desc'] + '</p>';
			str += '	<span class="update_rmore" style="position:inherit">&gt;&gt;<a href="http://video.mmosite.com/display.php?vid=' + vd_aion[i]['vid'] + '&gid=422" title="" target="_blank">Go to play</a></span>';
			str += '	<div class="clear"></div>';
			str += '</div>';
			
		}
		
		str += '</div>';
		
		document.write( str );
		
	}
	
	function init(){
		if( pArr == null ) return;
		doDiv();
	}
	
	init();
}