function getHTMLVideo_Available(asset_id,start,end){			
		var url = baseURLAvailable + '/index.php?Action=available.GetVideoGallery';
		var id=document.getElementById('novideo').value;		
		var pars = 'id='+id+'&asset_id='+asset_id+'&start='+start+'&end='+end;
		var target='result';
		
		var myAjax = AjaxRequestPS(
			url, 
			{
				method: 'get', 
				parameters: pars, 
				onComplete: showResponsevideo_Available
			});
	}
		
	function showResponsevideo_Available(originalRequest)
	{			
		var response = originalRequest.responseText;		
		var totalRecord = parseInt(document.getElementById('totalRecordvideo').value);
		var currPage = parseInt(document.getElementById('currPagevideo').value);
		var totalPages = Math.ceil(totalRecord/limitvideo);
		var cycle = parseInt(document.getElementById('cyclevideo').value);

		if(cycle==0)
		{			
			document.getElementById('videogallery').innerHTML += response;
			if(currPage>=totalPages)
				document.getElementById('cyclevideo').value='1';
		}
		
	}

	function moveToPreviousvideo_Available()
	{
	  new Effect.Move('videogallery', { x: 685, y: 0, transition: Effect.Transitions.sinoidal });
	} 
	
	function moveToNextvideo_Available()
	{
	  new Effect.Move('videogallery', { x: -685, y: 0, transition: Effect.Transitions.sinoidal });
	}
	
	function movePreviousvideo_Available(asset_id)
	{		
		var totalRecord = parseInt(document.getElementById('totalRecordvideo').value);
		var currPage = parseInt(document.getElementById('currPagevideo').value);
		var totalPages = Math.ceil(totalRecord/limitvideo);
		document.getElementById('totalPagesvideo').value = totalPages;
		var totalPages1 = Math.ceil(totalRecord/limitPagevideo);
		
		if(currPage>1)
		{			
			currPage--;
			document.getElementById('currPagevideo').value=currPage;
			if(currPage<=1)				
				start = 1;
			else
				start = parseInt((currPage-1)*limitvideo);
			end = parseInt(currPage*limitvideo);
			document.getElementById('forwardarrowvideo').src = baseURL+'/images/asset_page_images/forward_arrow_over.gif';			
			moveToPreviousvideo_Available();
			//getHTML(asset_id,start,7);
		}
		
		if(currPage<=1)
		{
			document.getElementById('backarrowvideo').src = baseURL+'/images/asset_page_images/backward_arrow.gif';
		}
	}
	
	function moveNextvideo_Available(asset_id)
	{	
		var totalRecord = parseInt(document.getElementById('totalRecordvideo').value);
		var currPage = parseInt(document.getElementById('currPagevideo').value);
		var totalPages = Math.ceil(totalRecord/limitvideo);
		document.getElementById('totalPagesvideo').value = totalPages;
		var totalPages1 = Math.ceil(totalRecord/limitPagevideo);
		
		if(currPage<totalPages)
		{			
			currPage++;
			document.getElementById('currPagevideo').value=currPage;
			start = parseInt((currPage*limitvideo)-limitvideo);
			end = parseInt(currPage*limitvideo);
			if(end>totalRecord)
				end = totalRecord;
			document.getElementById('backarrowvideo').src = baseURL+'/images/asset_page_images/backward_arrow_over.gif';			
			moveToNextvideo_Available();
			//if(currPage>2)
			getHTMLVideo_Available(asset_id,startPointvideo,7);
			startPointvideo += 7;
		}
		
		if(currPage>=totalPages)
		{
			document.getElementById('forwardarrowvideo').src = baseURL+'/images/asset_page_images/forward_arrow.gif';
		}
	}