// JavaScript Document
function createDiv(){
     var div= document.createElement("div"); 
     div.id="threeroom"; 
	 div.innerText="test";
     document.body.appendChild(div);
   }





function change(top,left,w,h,picadr){
	//alert("sss");




//document.getElementById("threeroom").style.background="url("+picadr+")";
//document.getElementById("threeroom").style.width=w;	//document.getElementById("threeroom").style.height=h;

document.getElementById("flash3d").GotoFrame(picadr);
document.getElementById("threeroom").style.top=top;
document.getElementById("threeroom").style.left=left;
document.getElementById("flash3d").TGotoFrame("image",0);
document.getElementById("flash3d").TPlay("image");

//document.getElementById("flash").setAttribute("value",picadr);

//document.getElementById("flash3d").setAttribute("src",picadr);



//MM_effectAppearFade("threeroom", 1000, 0, 100, false);
	}



function a(tops,lefts,ws,hs,picadrs) 
    { 
//alert("dddd");	
//var div= document.createElement("div");
//div.id = "treeroom";
//div.style.width=w;
//div.style.height=h;
//div.style.top=top;
//div.style.left=left;
//return div;
	
	//change(tops,lefts,ws,hs,picadrs);
	//back
	
	//picadr="images/dx_r2_c22.png";
	
	topss=tops;
	leftss=lefts;
	wss=ws;
	hss=hs;
	picadrss=picadrs;
   document.getElementById("flash3d").TPlay("image");
   
  //MM_effectAppearFade("threeroom", 1000, 100, 0, false);
	setTimeout("change(topss,leftss,wss,hss,picadrss)", 3000);

	
	
	
	
//document.getElementById("threeroom").style.position='absolute'; 
    //document.getElementById("threeroom").style.display="block"; 
    //document.getElementById("threeroom").innerHTML=message; 
    } 

/*<body> 
<div id="apDiv1" onclick="a(200,200,'我在这里了')" style="cursor:pointer; color:#0000FF">测试</div> 
</body>*/
