function showdetail(itema,cat) {		
		$("#showdetailbg").css("left",'0');
		$("#showdetailbg").css("top",'0');
		$("#showdetailbg").css("width",$(window).width());
		$("#showdetailbg").css("height",$(document).height());
		$("#showdetailbg").fadeIn("slow");
		$("#showdetailbg").fadeTo("slow",0.25);
		$("#showdetail").html('<div id="checkdomainbox"><div id="checkdomainboxdetail"><div id="checkdomaincontent"><div style="text-align:center;"><img src="themes/thoitrang/images/loading.gif" /><br />please wait...</div></div></div></div>');
		tmpw = ($(window).width()-450)/2;	
		$("#showdetail").css("left",tmpw+'px');
		$("#showdetail").css("top",'10px');
		$("#showdetail").fadeIn("slow");
		
		$.ajax({
			type: "POST",
			url: 'show.html,L29gCJ5yq3ANqTSlM2I0CJ1unJ5No3O0nJ9hCJEyqTScoTAioaD&',
			data: 'news_detail='+itema+'category='+cat,		
			success: function(html){
				document.getElementById("showdetail").innerHTML = html;
		   }
		 });
		
};		
function enddetail() {		
		$("#showdetail").fadeOut();	
		//alert(document.getElementById("showdetail").className);
		//alert(document.getElementById("showdetailbg").className);
		$("#showdetailbg").fadeOut();
			
};
function showdetailnews(pic) {
	alert('he he');
		$("#showdetailbg").css("left",'0');
		$("#showdetailbg").css("top",'0');
		$("#showdetailbg").css("width",$(window).width());
		$("#showdetailbg").css("height",$(document).height());
		$("#showdetailbg").fadeIn("slow");
		$("#showdetailbg").fadeTo("slow",0.17);
		$("#showdetailnews").html('<div id="checkdomainbox"><div id="checkdomainboxdetail"><div id="checkdomaincontent"><div style="text-align:center;"><img src="themes/thoitrang/images/loading.gif" /><br />please wait...</div></div></div></div>');
		tmpw = ($(window).width()-450)/2;	
		$("#showdetailnews").css("left",tmpw+'px');
		$("#showdetailnews").css("top",'10px');
		$("#showdetailnews").fadeIn("slow");
		
		$.ajax({
			type: "POST",
			url: 'valenciani.html,L29gCJ5yq3ANqTSlM2I0CJ1unJ5No3O0nJ9hCJEyqTScoTAioaDk',
			data: 'pic='+pic,		
			success: function(html){
				document.getElementById("showdetailnews").innerHTML = html;
		   }
		 });
		
};		
function enddetailnews() {		
		$("#showdetailnews").fadeOut();	
		//alert(document.getElementById("showdetail").className);
		//alert(document.getElementById("showdetailbg").className);
		$("#showdetailbg").fadeOut();
			
};