function Render() {
	var self = this;
	var vdopath = "http://inventory.truelife.com/upload_video/";
	this.parser = new Parser();
	var folder_list = 'dv_listfolder';
	var friend_list = 'friend_list';
	// variables message list
	var msg_list = 'msg_list';
	var dvfoldername = 'dvfoldername';
	var truelifethumb ='http://www.truelife.com/images/mini/truelife_thumb.gif';
	var index_tags = new Array();
	var dvpage = 'dvpage';
	var singleQuote = new RegExp("\'", "g");
	var doubleQuote = new RegExp("\"","g");

	var singleQuote1 = new RegExp("%27", "g");
	var doubleQuote1 = new RegExp("%22","g");

	var __XML = '';
	var owner = false;
	var __user = '';
	
	/*--------------------------------------------------------
	 RENDER				Replace single and double quote
	 PARAMETER			txt
	---------------------------------------------------------*/
	this.fix = function(txt) {
		txt = txt.replace(singleQuote, "\\'");
		txt = txt.replace(doubleQuote, '&quot;');
		return txt;
	}
	this.convertdate = function(txtdate,styleyear,showtime,showmonthname) {
		txtmonth = new Array('','ม.ค','ก.พ','มี.ค','เม.ย','พ.ค','มิ.ย','ก.ค','ส.ค','ก.ย','ต.ค','พ.ย','ธ.ค');
		
		if (isNaN(Date.parse(txtdate)) ){
		
			dt = txtdate.split('T');
			
			_date = dt[0].split('-');
			_time = dt[1].split(':');
	
			yy = parseInt(_date[0])+543;
			if(!styleyear){
				dis_y = String(yy).substring(2);
			}else{
				dis_y = yy;
			}
			
			if(!showmonthname)
				txt_d = parseFloat(_date[2]) +' '+ txtmonth[parseFloat(_date[1])] +' '+ dis_y;
			else
				txt_d = parseFloat(_date[2]) +'/'+ parseFloat(_date[1])+'/'+ dis_y;
					
			txt_t = _time[0] +':' + _time[1];
			
				return txt_d +'&nbsp;&nbsp;'+ txt_t;
		}else{
			return '-';
		}
		//return txtdate;
		//2006-08-21T10:06:20
	}
	
	this.convertdatenotime = function(txtdate,styleyear,showtime,showmonthname) {
		txtmonth = new Array('','ม.ค','ก.พ','มี.ค','เม.ย','พ.ค','มิ.ย','ก.ค','ส.ค','ก.ย','ต.ค','พ.ย','ธ.ค');
		
		if (isNaN(Date.parse(txtdate)) ){
		
			dt = txtdate.split('T');
			//2007-06-06T15:39:00
			_date = dt[0].split('-');
			//_time = dt[1].split(':');
	
			yy = parseInt(_date[0])+543;
			if(!styleyear){
				dis_y = String(yy).substring(2);
			}else{
				dis_y = yy;
			}
			
			if(!showmonthname)
				txt_d = parseFloat(_date[2]) +' '+ txtmonth[parseFloat(_date[1])] +' '+ dis_y;
			else
				txt_d = parseFloat(_date[2]) +'/'+ parseFloat(_date[1])+'/'+ dis_y;
					
			
				return txt_d;
		}else{
			return '-';
		}
		//return txtdate;
		//2006-08-21T10:06:20
	}

	/*--------------------------------------------------------
	 GET HTML
	 PARAMETER		URL
	---------------------------------------------------------*/
	this.getHTML = function (get_url,disp,get_pars)
	{
			var url =get_url;
			var pars = get_pars;
			
			var myAjax = new Ajax.Updater(
				{success: disp}, 
				url, 
				{
					method: 'get', 
					parameters: pars
					//onLoading: function(){$(disp).innerText = 'loading ...';}
				});
	}
	/*--------------------------------------------------------
	 RENDER				show VDO List For fat by prang
	 PARAMETER		XML data
	---------------------------------------------------------*/
	this.showVDOListFat = function(request) {
		var loading = document.getElementById('loading');

		xml = request.responseXML;
		var result = self.parser.getResult(xml);
		var stage = document.getElementById('dvcontainer');
		var div = document.getElementById('vdo_box');
		div.style.display="none";
		// service success	
		if(result!=null && result.code == '200') {  
		
			var objlist = self.parser.getVDOList(xml);
			var str_html = '';
			n= 0;
			loading.style.display="none";
			if(objlist!=null &&objlist.vdos.length>0){
		
				for(var i=0;i< objlist.vdos.length;i++){
					var vdo = objlist.vdos[i];
					var template_str = div.innerHTML;
						//Display photo info
					template_str = template_str.replace("{vdo_id}",vdo.vdoid);
					if(vdo.vdoname.length>15){
							vdo.vdoname = vdo.vdoname.substring(0,15)+"...";
					}					
					var temptext= vdo.vdoname+"&nbsp;";
					template_str = template_str.replace("{vdo_name}", temptext);


					var image_online=(vdo.vdouser.online !="false")?"<img src=\"http://www.truelife.com/images/mini/icon/ico_on_user.gif\">":"<img src=\"http://www.truelife.com/images/mini/icon/ico_off_user.gif\">";
					var image_ec=(vdo.vdoisEC !="false")?'<img src="http://www.truelife.com/images/mini/p3/ico_ec.gif" width="20" height="19">':'';
					
					template_str = template_str.replace("{voting_id}",'voting_'+vdo.vdoid);		
					var thumbnail = document.createElement("span");

					thumbnail.className = 'vdo_box';
					thumbnail.innerHTML = template_str;
					stage.appendChild(thumbnail);
					//รูป
					var frame = document.getElementById("vdo_"+vdo.vdoid);
					var pic = document.getElementById("picture"+vdo.vdoid);
					if(frame!=null && pic == null) {
						image = document.createElement("img");
						image.className = "picture_set";
						image.src = vdo.vdothumbnail_url;
						image.id = "picture"+vdo.vdoid;
						image.style.cursor='hand';
						image.setAttribute("onError","this.src='"+truelifethumb+"'");
						frame.appendChild(image);
						self.createContextMenu(vdo.vdooriginal_url,vdo.vdoid,vdo.vdouser.username,'vdo');
					}
					
					//เรตติ้ง
					var frame = document.getElementById("voting_"+vdo.vdoid);
					if(frame!=null) {
						var text = '<div align="center" id="vote'+vdo.vdoid+'">score :'+vdo.vdoplay+'</div><div align="center"><img src="images/line_photo.gif" width="122" height="2"></div>';//<div id="vote2'+vdo.vdoid+'"align="center" style="width:100%;background-color:#000000"><a href="javascript:weVote('+vdo.vdoid+')"><img src="http://minihome.truelife.com/media/images/bu_vote.gif" border="0"></a></div>
						frame.innerHTML = text;
					}
					//Create breaker on 5 vdos
					if(i %4==3){
						var breaker = document.createElement("div");
						breaker.className = "breaker";
						stage.appendChild(breaker);
					}
					if(i==16){
						i=objlist.vdos.length;
					}
				}
				if(i % 4!=0){
					for(i;i%4!=0;i++){
						var thumbnail = document.createElement("span");

						thumbnail.className = 'empty_box';
						thumbnail.innerHTML = "";
						stage.appendChild(thumbnail);
					
					}
				}
				if (objlist.current_page>1){
					prevText = '<a href="javascript:changePage(\'{prev_page}\')"><img src="http://www.truelife.com/images/mini/1_5/action_back.gif" border="0"></a>';
					prevText = prevText.replace('{prev_page}',parseInt(objlist.current_page)-1);
				}else {
					prevText =  '<img src="http://www.truelife.com/images/mini/1_5/action_back.gif" border="0">';
				}
				if (objlist.current_page<objlist.page_count){
					nextText = '<a href="javascript:changePage(\'{next_page}\')"><img src="http://www.truelife.com/images/mini/1_5/action_forward.gif" border="0"></a>';
					nextText = nextText.replace('{next_page}',parseInt(objlist.current_page)+1);
				}else {
					nextText =  '<img src="http://www.truelife.com/images/mini/1_5/action_forward.gif" border="0">';
				}
				text = '<span class="nortxt">';
				text = text +'<span class="grlink" align="left" >'+ prevText +'</span>'+ '<font color="#999999">&nbsp;&nbsp;หน้า {current_page} / {page_count} </font>';
				text = text  +'<span class="grlink" align="left">'+ nextText +'</span>'+ '&nbsp;&nbsp;&nbsp;';
				text = text +'<font color="#999999">ไปที่หน้า </font>&nbsp;';
				text = text +'<input name="pageBox" id="pageBox" type="text" class="nortxt" size="3" 	onkeypress="goSubmit(pageBox.value,'+objlist.page_count+',\'tea\');">&nbsp;&nbsp;<a href="javascript:changePage(pageBox.value,'+objlist.page_count+',\'tea\')"><img src="http://www.truelife.com/images/go.gif" border="0"></a>';
				text = text +'</span> ';
				text = text.replace('{current_page}',objlist.current_page);
				text = text.replace('{page_count}',objlist.page_count);
				$('page_detail').innerHTML = text ;

				//tag
				text="";

				for(i=0;i<objlist.index_tags.length;i++){
					text =  text + '<a href="javascript:changeTag(\'' + objlist.index_tags[i] + '\')">' + objlist.index_tags[i] + '</a>';
					if(i<objlist.index_tags.length-1){
						text = text + ", ";
					}
				}

			}else{
				//$('dvcontainer').innerHTML = "No data";
				$('page_detail').innerHTML = '' ;
				loading.style.display="block";
				loading.innerHTML = "No data";
			}
			
		}else{
			loading.style.display="none";
			$('dvcontainer').innerHTML = "ไม่สามารถเปิดวีดีโอได้ในขณะนี้";
			$('page_detail').innerHTML = '' ;
		}


	}

	/*--------------------------------------------------------
	 RENDER				show VDO List For fat by prang
	 PARAMETER		XML data
	---------------------------------------------------------*/
	this.showVDOListFat2 = function(request) {
		var loading = document.getElementById('loading');

		xml = request.responseXML;
		var result = self.parser.getResult(xml);
		var stage = document.getElementById('dvcontainer');
		var div = document.getElementById('vdo_box');
		div.style.display="none";
		// service success	
		if(result!=null && result.code == '200') {  
		
			var objlist = self.parser.getVDOList(xml);
			var str_html = '';
			n= 0;
			loading.style.display="none";
			if(objlist!=null &&objlist.vdos.length>0){
		
				for(var i=0;i< objlist.vdos.length;i++){
					var vdo = objlist.vdos[i];
					var template_str = div.innerHTML;
						//Display photo info
					template_str = template_str.replace("{vdo_id}",vdo.vdoid);
					if(vdo.vdoname.length>15){
							vdo.vdoname = vdo.vdoname.substring(0,15)+"...";
					}					
					var temptext= vdo.vdoname+"&nbsp;";
					template_str = template_str.replace("{vdo_name}", temptext);


					var image_online=(vdo.vdouser.online !="false")?"<img src=\"http://www.truelife.com/images/mini/icon/ico_on_user.gif\">":"<img src=\"http://www.truelife.com/images/mini/icon/ico_off_user.gif\">";
					var image_ec=(vdo.vdoisEC !="false")?'<img src="http://www.truelife.com/images/mini/p3/ico_ec.gif" width="20" height="19">':'';
					
					template_str = template_str.replace("{voting_id}",'voting_'+vdo.vdoid);		
					var thumbnail = document.createElement("span");

					thumbnail.className = 'vdo_box';
					thumbnail.innerHTML = template_str;
					stage.appendChild(thumbnail);
					//รูป
					var frame = document.getElementById("vdo_"+vdo.vdoid);
					var pic = document.getElementById("picture"+vdo.vdoid);
					if(frame!=null && pic == null) {
						image = document.createElement("img");
						image.className = "picture_set";
						image.src = vdopath+vdo.vdothumbnail_url;
						image.id = "picture"+vdo.vdoid;
						image.style.cursor='hand';
						image.setAttribute("onError","this.src='"+truelifethumb+"'");
						frame.appendChild(image);
						self.createContextMenu("http://minihome.truelife.com/"+vdo.vdouser.username+"/vdo/"+vdo.folderid+"-"+vdo.vdoid,vdo.vdoid,vdo.vdouser.username,'vdo');
					}
					
					//Create breaker on 5 vdos
					if(i %4==3){
						var breaker = document.createElement("div");
						breaker.className = "breaker";
						stage.appendChild(breaker);
					}
					if(i==16){
						i=objlist.vdos.length;
					}
				}
				if(i % 4!=0){
					for(i;i%4!=0;i++){
						var thumbnail = document.createElement("span");

						thumbnail.className = 'empty_box';
						thumbnail.innerHTML = "";
						stage.appendChild(thumbnail);
					
					}
				}
				if (objlist.current_page>1){
					prevText = '<a href="javascript:changePage(\'{prev_page}\')"><img src="http://www.truelife.com/images/mini/1_5/action_back.gif" border="0"></a>';
					prevText = prevText.replace('{prev_page}',parseInt(objlist.current_page)-1);
				}else {
					prevText =  '<img src="http://www.truelife.com/images/mini/1_5/action_back.gif" border="0">';
				}
				if (objlist.current_page<objlist.page_count){
					nextText = '<a href="javascript:changePage(\'{next_page}\')"><img src="http://www.truelife.com/images/mini/1_5/action_forward.gif" border="0"></a>';
					nextText = nextText.replace('{next_page}',parseInt(objlist.current_page)+1);
				}else {
					nextText =  '<img src="http://www.truelife.com/images/mini/1_5/action_forward.gif" border="0">';
				}
				text = '<span class="nortxt">';
				text = text +'<span class="grlink" align="left" >'+ prevText +'</span>'+ '<font color="#999999">&nbsp;&nbsp;หน้า {current_page} / {page_count} </font>';
				text = text  +'<span class="grlink" align="left">'+ nextText +'</span>'+ '&nbsp;&nbsp;&nbsp;';
				text = text +'<font color="#999999">ไปที่หน้า </font>&nbsp;';
				text = text +'<input name="pageBox" id="pageBox" type="text" class="nortxt" size="3" onkeypress="goSubmit(pageBox.value,'+objlist.page_count+',\'tea\');">&nbsp;&nbsp;<a href="javascript:changePage(pageBox.value,'+objlist.page_count+',\'tea\')"><img src="http://www.truelife.com/images/go.gif" border="0"></a>';
				text = text +'</span> ';
				text = text.replace('{current_page}',objlist.current_page);
				text = text.replace('{page_count}',objlist.page_count);
				$('page_detail').innerHTML = text ;

				//tag
				text="";

				for(i=0;i<objlist.index_tags.length;i++){
					text =  text + '<a href="javascript:changeTag(\'' + objlist.index_tags[i] + '\')">' + objlist.index_tags[i] + '</a>';
					if(i<objlist.index_tags.length-1){
						text = text + ", ";
					}
				}

			}else{
				//$('dvcontainer').innerHTML = "No data";
				$('page_detail').innerHTML = '' ;
				loading.style.display="block";
				loading.innerHTML = "No data";
			}
			
		}else{
			loading.style.display="none";
			$('dvcontainer').innerHTML = "ไม่สามารถเปิดวีดีโอได้ในขณะนี้";
			$('page_detail').innerHTML = '' ;
		}
	}
	
	this.showVDOListFatAward01 = function() {
		var display = '\
		<table width="100%" border="0" cellspacing="5" cellpadding="0">\
		  <!--------------1-------------->\
		  <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1471192" target="_blank">\
					   <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_070930210343.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : ภาพยนตร์ยอดเยี่ยม</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>กำแพง</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>ลิขิต สิทธิพันธุ์</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1471192" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1471192" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
			<!--------------2-------------->\
		   <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1468632" target="_blank">\
					   <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_070929152157.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : ภาพยนตร์ยอดเยี่ยมรองอันดับ 1</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>จินตนาการ</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>นที สโมสร</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1468632" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1468632" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
		  <!--------------3-------------->\
		  <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1463120" target="_blank">\
					  <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_070926234716.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : ภาพยนตร์ยอดเยี่ยมรองอันดับ 2</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>แผ่นดิน</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>คมจักร ทองจิบ</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1463120" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1463120" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
		  <!--------------4-------------->\
		  <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1465241" target="_blank">\
					  <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_070928010432.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : Popular Vote</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>ยิ้มเข้าไว้</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>สุชาติ มรรควิมาน</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1465241" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1465241" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
			<!--------------5-------------->\
		  <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1477867-1" target="_blank">\
					  <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_071003161503.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : รางวัลพิเศษ</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>เพื่อเธอ</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>ศรันย์ เสมาทอง</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1477867-1" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1477867-1" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
		</table>';
		
		$('loading').style.display = "none";
		$('vdo_box').style.display = "none";
		$('page_detail').innerHTML = "";
		$('dvcontainer').innerHTML = display;
	}
	
	this.showVDOListFatAward02 = function() {
		var display = '\
		<table width="100%" border="0" cellspacing="5" cellpadding="0">\
		  <!--------------1-------------->\
		  <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					  <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1471572" target="_blank">\
					  <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_071001012741.flv.jpg" width="120" height="90" border="0">\
					</a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : แต่งหน้าโดดเด้ง</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>จอมยุทธ์</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>ปฐมพงษ์ ลมชาย</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1471572" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1471572" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
			<!--------------2-------------->\
		   <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1464276" target="_blank">\
					   <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_070927151832.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : จบแบบหักมุมโดดเด้ง</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>มุม</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>ธนชาติ ศิริภัทราชัย</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1464276" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1464276" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
		  <!--------------3-------------->\
		  <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1469670" target="_blank">\
					  <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_070930024109.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : เสื่อม...สมรรถภาพโดดเด้ง</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>Let&acute;s Go Ridder Kick</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>กฤติน ตั้งอนุกูลกิจ</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1469670" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1469670" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
		  <!--------------4-------------->\
		  <tr><td>\
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">\
				<tr> \
				  <td width="150" height="120" bgcolor="#000000"> \
					<div align="center">\
					 <a href="http://minihome.truelife.com/fat_film5/vdo/393071-1468632" target="_blank">\
					  <img src="http://inventory.truelife.com/upload_video/f/a/t/_/f/i/l/m/5/349715_070929152157.flv.jpg" width="120" height="90" border="0">\
					 </a></div></td>\
				  <td>\
					<table width="98%" border="0" align="right" cellpadding="3" cellspacing="2">\
					  <tr> \
						<td height="30" bgcolor="5CB900" class="nortxt"><strong>\
						 <font color="#FFFFFF">รางวัล : เธอ...โดดเด้ง</font></strong></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F2F9E8" class="nortxt"><strong><font color="5CB900">เรื่อง : </font></strong> \
						  <font color="#000000"><strong>จินตนาการ</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt"><strong><font color="5CB900">ผู้กำกับ : </font></strong> \
						  <font color="#000000"><strong>นที สโมสร</strong></font></td>\
					  </tr>\
					  <tr> \
						<td height="25" bgcolor="#F9F9F9" class="nortxt">\
						 <table width="120" border="0" cellspacing="0" cellpadding="0">\
							<tr> \
							  <td width="20"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1468632" target="_blank"><strong><font color="#666666"><img src="images/page_video.gif" width="16" height="16" border="0"></font></strong></a></td>\
							  <td class="bklink"><a href="http://minihome.truelife.com/fat_film5/vdo/393071-1468632" target="_blank"><strong>ชมคลิปวิดีโอ</strong></a></td>\
							</tr>\
						  </table>\
						</td>\
					  </tr>\
					</table></td>\
				</tr>\
			  </table></td>\
		    </tr>\
		</table>';
		
		$('loading').style.display = "none";
		$('vdo_box').style.display = "none";
		$('page_detail').innerHTML = "";
		$('dvcontainer').innerHTML = display;
	}

	/**
	*/
	this.createContextMenu = function(link,id,user,type){
			var ccMenu = new CustomContextMenu();
				ccMenu.setStyle("context_popup");
				ccMenu.append(new MenuItem('<img src="http://www.truelife.com/images/mini/icon/photo_ret.gif" align="absmiddle" border="0"/> Play',link+"-1","context_menu","VDO"));
				ccMenu.append(SEPARATOR);

				ccMenu.append(new MenuItem('<img src="http://www.truelife.com/images/mini/icon/photo_ret.gif" align="absmiddle" border="0"/> View',link,"context_menu","VDO"));
				ccMenu.attachTo("picture"+id);
	}
		this.countRating = function(rate,count){
		var star = 0;
		if(count!=0){
			//alert(rate+"/"+count+(rate/count));
			star = (rate/count);
		}
		return star;
	}

}

