// JavaScript Document
function DivAlert(messageDiv)
{
  this.messageDIV=messageDiv;
  this.bottomDIV = document.createElement("div");
  var x=document.body.scrollWidth/2,y=document.body.scrollHeight/2;
  this.bottomDIV.style.opacity="0.50";
  this.bottomDIV.style.filter="Alpha(opacity=50);";
  this.bottomDIV.style.backgroundColor="#CCCCCC";
  this.bottomDIV.style.height=document.body.scrollHeight+"px";
  this.bottomDIV.style.width="100%";
  this.bottomDIV.style.marginTop="0px";
  this.bottomDIV.style.marginLeft="0px";
  this.bottomDIV.style.position="absolute";
  this.bottomDIV.style.top="0px";
  this.bottomDIV.style.left="0px";
  this.bottomDIV.style.zIndex=100;
this.show = function()
{
  document.body.appendChild(this.bottomDIV);
  document.body.appendChild(this.messageDIV);
  this.messageDIV.style.position="absolute";
  x=x-this.messageDIV.scrollWidth/2;
  y=this.messageDIV.scrollHeight+100;
  this.messageDIV.style.top=y+"px";
  this.messageDIV.style.left=x+"px";
  this.messageDIV.style.zIndex=101;
}
this.remove = function()
{
  document.body.removeChild(this.bottomDIV);
  document.body.removeChild(this.messageDIV);
}
}
var dc;
function test(str,sun)
{
  document.getElementById("gamejucol").style.display="none";
  var d = document.createElement("div");
  d.style.width="300px";
  d.style.height="110px";
  d.style.backgroundColor="#f7f7f7";
  d.style.padding="0px";
  d.innerHTML="<div><div class='jubaotitle'>&nbsp;"+str+"&nbsp;内容举报</div><div class='jubaobody' id='jubaobody'><input name='jbradio' id='jbradio' type='radio' value='1' checked>无效　　<input name='jbradio' id='jbradio' type='radio' value='2' >涉黄　　<input name='jbradio' id='jbradio' type='radio' value='3' >反动　　<input name='jbradio' id='jbradio' type='radio' value='4' >其它<br /><input name='SubYes' type='button' value='确认举报' onClick=\"subok("+sun+")\">　　　　<input name='SubNes' type='button' value='关闭举报' onClick='test2();'></div></div>";
  dc = new DivAlert(d);
  dc.show();
}
function subok(jsun)
{
  var taget_objs = document.getElementById("jubaobody");
  var myajaxs = new DedeAjax(taget_objs,false,false,"","","");
  var strarray=document.getElementsByName("jbradio");
  var arraysun;
  for(var i=0;i<strarray.length;i++ )
  {
    if (strarray[i].checked)
    {
      arraysun=i+1;
    }
  }
  myajaxs.SendGet2("/jubao.php?action="+arraysun+"&aid="+jsun);
  DedeXHTTP = null;
}
function test2()
{
  document.getElementById("gamejucol").style.display="";
  document.getElementById("gamead").style.display="none";
  dc.remove();
}
function flashFull()
{
  var x=document.body.clientWidth,y=window.screen.availHeight,h=window.screenTop;
  var gamestr_obj = document.getElementById('gameclose');
  gamestr_obj.style.width=x;
  gamestr_obj.style.height=25;
  gamestr_obj.style.display="";
  gamestr_obj.style.background="#999999";
  var gametaget_obj = document.getElementById('gamejucol');
  gametaget_obj.style.height=y-50-h;
  gametaget_obj.style.width=x;
  gametaget_obj.style.position="absolute";
  gametaget_obj.style.zIndex=100;
  gametaget_obj.style.marginTop="0px";
  gametaget_obj.style.marginLeft="0px";
  gametaget_obj.style.top="0px";
  gametaget_obj.style.left="0px";
}
function CloseFull()
{
  var gamestr_obj = document.getElementById('gameclose');
  gamestr_obj.style.display="none";
  var gametaget_obj = document.getElementById('gamejucol');
  gametaget_obj.style.position="";
  gametaget_obj.style.height=485;
  gametaget_obj.style.width=656;
}
function gameplay()
{
  flashgame.movie=flashPath;
  flashgame.Play();
}
function gameADplay()
{
  document.getElementById('gamead').style.display="none";
  document.getElementById('gamejucol').style.display="";
}
