function send_msg_done_contactt()
{
	var full_name = $("#____full_name____").val();	
	var email     = $("#____email____").val();	
	var phone     = $("#____phone____").val();	
	var note     = $("#____note____").val();	


	hide_error_msg('error____full_name____');
	hide_error_msg('error____email____');
	hide_error_msg('error____phone____');
	if(!full_name)
	{
		show_error_msg('error____full_name____','الرجاء كتابة اسمك كاملا');	
		$("#____full_name____").focus();
		return false;
	}
	// ---------------------
	if(!email)
	{
		show_error_msg('error____email____','الرجاء كتابة البريد الالكتروني');	
		$("#____email____").focus();
		return false;
	}
	// ------------------
	if(!phone)
	{
		show_error_msg('error____phone____','الرجاء كتابة رقم الهاتف ');	
		$("#____phone____").focus();
		return false;
	}
	$("#login-loading_2").fadeIn();
	$.post("ajax.php?do=sendcontactttt",{'do':'sendcontactttt','full_name':full_name,'email':email,'phone':phone,'note':note},function(data){
		if(data.indexOf('send-data-success') == 0)
		{
			$("#login-loading_2").html('<img src="images/1309381259_tick.png" style="vertical-align:middle;margin-right:10px;" border="0" width="16" height="16" alt="" /> \
						<span class="font12t" style="color:#666;">تم ارسال الرسالة ,, شكرا لك ,, سنتواصل معك باقرب وقت ..</span>');
			setTimeout(function(){
				$("#____full_name____").val('');	
				$("#____email____").val('');	
				$("#____phone____").val('');	
				$("#____note____").val('');	
				$("#login-loading_2").fadeOut();
			},5000);
		}
	});
	
}

function show_error_msg(id,val)
{
	$("#R_" + id).remove();
	$("#C_" + id).remove();
	var bB = '<span id="R_' + id + '" class="error_arows"></span> \
						<span id="C_' + id + '" class="font12t error-email webkit10 error_wordss">' + val + '</span>';
	$("#" + id).append(bB);	
}
function hide_error_msg(id)
{
	$("#R_" + id).remove();
	$("#C_" + id).remove();
}

function creat_loading()
{
	$(document).scrollTop(0);
	$("#body").append('<div id="loading_____" style="position:absolute;top:366px;right:300px;"><img src="images/ajax-loader.gif" border="0" /></div>');
}

function distroy_loading()
{
	$("#loading_____").remove();
}

///////////////////////////////////////////////////

function creat_blacks()
{
	var he = $("body").css('height');
	$("body").append('<div id="blacks" onclick="close____()"></div>');
	$("#blacks").css({'height':he});
	setTimeout(function(){
		$("#blacks").fadeIn(1);
	},100);
}
function close____()
{
	$("#blacks,#boxxx").remove();
}
function opens_ajax(src,title,o)
{
	var blackwidth = $("#blacks").width();
	var di = '<div id="boxxx" style="position: absolute;z-index: 1111111111111;top:0;left:0;width: 524px;"> \
	<table cellspacing="0" style="direction:ltr;   border-collapse: collapse; width: 524px; visibility: visible;  ">\
		<tr>\
			<td style="background-image: url(highslide/graphics/outlines/rounded-white.png); height: 20px; width: 20px; background-position: 0px 0px;"></td>\
			<td style="background-image: url(highslide/graphics/outlines/rounded-white.png); height: 20px; width: 20px; background-position: 0px -40px;"></td>\
			<td style="background-image: url(highslide/graphics/outlines/rounded-white.png); height: 20px; width: 20px; background-position: -20px 0px;"></td>\
		</tr>\
		<tr>\
			<td style="background-image: url(highslide/graphics/outlines/rounded-white.png); height: 20px; width: 20px; background-position: 0px -80px;"></td>\
			<td style="position: relative; width: 484px; height: 439px;background:#fff;">\
			<div id="player__" style="margin:-10px;"></div> \
			</td>\
			<td style="background-image: url(highslide/graphics/outlines/rounded-white.png); height: 20px; width: 20px; background-position: -20px -80px;"></td>\
		</tr>\
		<tr>\
			<td style="background-image: url(highslide/graphics/outlines/rounded-white.png); height: 20px; width: 20px; background-position: 0px -20px;"></td>\
			<td style="background: url(highslide/graphics/outlines/sdsdsd.png) repeat-x; height: 20px; width: 20px; background-position: 0px -60px;"></td>\
			<td style="background-image: url(highslide/graphics/outlines/rounded-white.png); height: 20px; width: 20px; background-position: -20px -20px;"></td>\
		</tr>\
	</table></div>';
	
	$("#body").append(di);
	var tttt = $(document).scrollTop() * 1 + 90;	
	$("#boxxx").css('top',tttt+'px');
	$("#boxxx").css({'left':'237px'});
	creat_blacks();
	$.get("ajax.php?do=openvideos",{src:src,title:title,o:o},function(dd){
		$("#player__").html(dd);	
	})
	return false;
}



function pls(id)
{
	$(".fgred_").html('').hide();
	$("#fgred_" + id).load("sps_.php?id=" + id).show();
}


