function page_init_var(){
  clay_w = 240;
  clay_h = 240;
  // clayと幅を合わせた値
  delta_w = Math.floor(clay_w+5);
  delta_h = Math.floor(clay_h+5);

  mini_size = -1;

  clayclass = "clay";
  json_url = '/index.php';
}
//array($id,$xpos,$ypos,$title,$body,$x,$y,$c,$img,$bgimg,$mov,$mark,$cssbg,$csscolor,$csslink,$org_img);
function create_one(c){
  o = document.createElement('div');
  o.setAttribute("id","c"+c[0]);
  o.className = clayclass;
  o.style.left = c[1];
  o.style.top = c[2];

  o.innerHTML = '<span class="claytitle">'+c[11]+c[3]+"</span><br>";
  if(c[10] != ""){
    var so = new SWFObject(c[10], "swf"+c[0],"240", "180", "8", "#FFFFFF");
    so.addParam("loop", "false");
    so.addParam("WMODE", "Transparent");
    o.innerHTML += so.getSWFHTML();
  }else if(c[8] != ""){
    o.innerHTML += '<a href="'+c[15]+'" id="href'+c[5]+"x"+c[6]+'" rel="lightboxclay" title="'+c[5]+"x"+c[6]+'"><img src="'+c[8]+'" border="0" alt="'+c[5]+"x"+c[6]+'"></a>';
  }
  o.innerHTML += c[4];
  if(c[12] != ""){ // bg color
      o.style.background = c[12];
  }
  if(c[13] != ""){ // text color
      o.style.textColor = c[13];
  }
  if(c[14] != ""){ // link color
      o.style.linkcolor = c[14];
      o.style.alinkcolor = c[14];
      o.style.vlinkcolor = c[14];
  }
  if(c[9] != ""){ // background image
      o.style.backgroundImage = "url("+c[9]+")";
  }
  $("contents").appendChild(o);
}

