


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=0;
  if (document.documentElement && document.documentElement.scrollTop) 
  { 
  	mpx=Math.ceil((document.documentElement.offsetWidth-screen.width*0.8)/2)+"px";
  	msgObj.style.top =(20+ document.documentElement.scrollTop) + "px";
  }
  else
  {
  	mpx=Math.ceil((document.body.offsetWidth-screen.width*0.8)/2)+"px";
  	msgObj.style.top =(20+ document.body.scrollTop) + "px";    
  }

  msgObj.style.left= mpx;
  msgObj.style.width=screen.width*0.8;
  msgObj.style.height=screen.height*0.65;

//¹Ø±Õ
  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="";
}