var Video = {
	Send: {
		Vote: function(Video_ID, Vote){
		$.ajax({
			type: 'GET',
			url: BASE_PATH+'Ajax/Video/Vote',
			data: {'Video_ID':Video_ID,'Vote':Vote},
			success: function(Data){
				if(typeof Success == 'function'){
					Success(Data);
				}
			},
			error: function(XMLHttpRequest, textStatus, errorThrown){
				if(typeof Error == 'function'){
					Error(XMLHttpRequest, textStatus, errorThrown);
				}else{
					Dialog.Error('Cannot voting to video', 'Oylama gönderilemedi kusura bakma :D');
				}
			}
		});
		},
		Comment: function(Video_ID, Comment, Success, Error){
			$.ajax({
				type: 'POST',
				url: BASE_PATH+'Ajax/Video/Comment/Send',
				data: {'Video_ID':Video_ID,'Comment':Comment},
				success: function(Data){
					if(typeof Success == 'function'){
						Success(Data);
					}
				},
				error: function(XMLHttpRequest, textStatus, errorThrown){
					if(typeof Error == 'function'){
						Error(XMLHttpRequest, textStatus, errorThrown);
					}else{
						Dialog.Error('Cannot send comment to video', 'Yorumunuz gönderilirken hata oluştur. Lütfen daha sonra tekrar deneyiniz...');
					}
				}
			});
		}
	},
	Comment: {
		Vote: function(ID, Point, Success, Error){
			$.ajax({
				type: 'POST',
				url: BASE_PATH+'Ajax/Video/Comment/Vote',
				data: {ID:ID,Point:Point},
				success: function(Data){
					if(typeof Success == 'function'){
						Success(Data);
					}
				},
				error: function(XMLHttpRequest, textStatus, errorThrown){
					if(typeof Error == 'function'){
						Error(XMLHttpRequest, textStatus, errorThrown);
					}else{
						Dialog.Error('Cannot send comment to video', 'Yorumunuz gönderilirken hata oluştur. Lütfen daha sonra tekrar deneyiniz...');
					}
				}
			});
		}
	}
}