// JavaScript Document
var f=0;
var y=0;
var div_obj
function over(obj){
 div_obj=obj
 _f=0;
 y=0;
 document.getElementById(obj).innerHTML="";
 document.getElementById(obj).style.width="0px";
 document.getElementById(obj).style.height="1px";
 document.getElementById(obj).style.display="";
 timerDIV();
 }
function out(obj){
 obj.style.display="none";
}
function Tout(){
document.getElementById(div_obj).style.display="none";
}
function Tover(){
 document.getElementById(div_obj).style.display="";
}
function timerDIV(){
 if( _f >= 70){/*宽度*/
  objy();
  return ;
 }
 else{
  _f=_f+10;
  document.getElementById(div_obj).style.width=_f+"px";
  window.setTimeout(timerDIV,1);
 }
}
function objy(){
 if(y >= 90){/*高度*/
   if ( div_obj=="one"){
	/*alert (div_obj)*/
  var str="<div style=\"width:100px;height:auto;float:left;font-size:12px;margin:6px;line-height:20px\"><a href=\"products.asp?cid=4&dis=dining\">Dining Room</a><br/><a href=\"products.asp?cid=8&dis=living\" >Living Room</a><br/><a href=\"products.asp?cid=13&dis=bed\">Bed Room</a>";
   }
   else if (div_obj=="two"){
  var str="<div style=\"width:60px;height:auto;float:left;font-size:12px;margin:6px;line-height:20px\"><a href=\"materials.asp?cid=18&dis=fabrics\">织  物</a><br/><a href=\"materials.asp?cid=16\" >木  质</a><br/><a href=\"materials.asp?cid=17\">皮  革</a>";
	   }
  document.getElementById(div_obj).innerHTML=str
  return ;
 }
 else{
  y+=6;
  document.getElementById(div_obj).style.height=y+"px"; 
  window.setTimeout(objy,1);
 }
}
