


function showDetail(URL) {

  LoadingShow();

//背景
  var bgObj=document.getElementById("bgDiv");
  bgObj.style.width = (screen.width-20) + "px";

  bgObj.style.height =document.body.scrollHeight;
//定义窗口
  var msgObj=document.getElementById("msgDiv");
 
  var mpx=Math.ceil((document.body.offsetWidth-670)/2)+"px";

  msgObj.style.top =(50+ document.body.scrollTop) + "px";
  msgObj.style.left= mpx;

//关闭
  document.getElementById("msgShut").onclick = function(){
    DivHide();
	LoadingShow();
  }
  document.getElementById("msgShut2").onclick = function(){
    DivHide();
	LoadingShow();
  }
  document.getElementById('msgDetail').src=URL;

  DivShow();
  //msgObj.style.display = bgObj.style.display = "block";
  setTimeout('LoadingHide()',1000);
}

function DivShow(){
  document.getElementById("msgDiv").style.display = "block";
  document.getElementById("bgDiv").style.display = "block";
  document.getElementById("bgDiv").onmousedown=function(){
	  DivHide();
  }
  document.getElementById("bgDiv").style.cursor='pointer';
}

function DivHide(){
   document.getElementById("msgDiv").style.display = document.getElementById("bgDiv").style.display = "none";
}
function LoadingHide(){
  document.getElementById('msgDetail').style.display="";
  document.getElementById('ifrLoading').style.display="none";
}

function LoadingShow(){
  document.getElementById('msgDetail').style.display="none";
  document.getElementById('ifrLoading').style.display="";
}

document.write('<DIV id=bgDiv></DIV><DIV id=msgDiv><DIV id=msgShut><div style="float:right;">X&nbsp;</div>&nbsp;</DIV><IFRAME id=msgDetail style="WIDTH: 100%; HEIGHT: 100%;border:0px;overflow-x:hidden;display:none;" frameborder="0" src="/loading.html"> </IFRAME><IFRAME id=ifrLoading style="WIDTH: 100%; HEIGHT: 100%;border:0px;overflow-x:hidden;" frameborder="0" src="/loading.html"></IFRAME><DIV id=msgShut2><div style="float:right;">关闭&nbsp;</div></DIV></DIV>');
//<!---->