function stop(){
return false;
}
//document.oncontextmenu=stop;

//========== 图层变换

function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function showHideLayers() { //v3.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

//table样式
function TableMouseOver(Obj){
	Obj.style.backgroundColor='#f2f2f2';
}
function TableMouseOut(Obj){
	Obj.style.backgroundColor='';
}

//广告分析统计
document.write('<script src="/include/mms_function.js"></script>');


//========== 导航部分

document.write('<style>');
document.write('.tomg { color: #000000; font-size:12px; text-decoration:none}');
document.write('a.tomg:hover { color: #FF0000; text-decoration:none}');
document.write('a.tomg:visited {  color: #000000; text-decoration: none}');
document.write('a.tomg:link {color: #000000; text-decoration:none}');
document.write('</style>');

document.writeln("<table width=773 border=0  align=center cellspacing=0 cellpadding=0 >");
document.writeln("<tr><td width=230 background=http://mms.tom.com/images/logo/cbg.gif><a href=http://l.tom.com/home/tom/autohome_001/?http://tom.com target=_blank><img src=http://mms.tom.com/images/logo/tom.gif height=36 border=0 alt=TOM></a><a href=http://l.tom.com/home/tom/autohome_002/?http://mms.tom.com/ target=_blank><img src=http://mms.tom.com/images/logo/logo.gif height=36 border=0 alt=彩信></a><a href=http://www.tom.com/redir/holiday.html target=_blank><img src=http://mms.tom.com/images/logo/holiday.gif height=36 border=0></a></td>");
document.writeln("<td background=http://mms.tom.com/images/logo/cbg.gif align=right width=543><a href=http://l.tom.com/home/tom/autohome_003/?http://tom.com/ target=_blank class=00><u>首页</u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://l.tom.com/home/tom/autohome_004/?http://news.tom.com/ target=_blank class=00><u>新闻</u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://l.tom.com/home/tom/autohome_005/?http://sports.tom.com/ target=_blank class=00><u>体育</u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://l.tom.com/home/tom/autohome_006/?http://auto.tom.com/ target=_blank class=00><u>汽车</u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://l.tom.com/home/tom/autohome_007/?http://yule.tom.com/ target=_blank class=00><u>娱乐</u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://l.tom.com/home/tom/autohome_014/?http://cailing.tom.com/ class=00><font target=_blank color=red><u>彩铃</u></font></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://l.tom.com/home/tom/autohome_008/?http://sms.tom.com/ target=_blank class=00><u>短信</u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://l.tom.com/home/tom/autohome_010/?http://mail.tom.com/ target=_blank class=00><u>邮箱</u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://www.ebay.com.cn target=_blank class=00><font color=red><u>拍卖</u></font></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://mbox.tom.com target=_blank class=00><font color=#0000FF><u>手机游戏</u></font></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><a href=http://tom.soufun.com/ target=_blank class=00><u><font color=#FF0000>房产家居</font></u></a><img src=http://mms.tom.com/images/logo/l.gif align=absmiddle height=9><A href onclick=this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.tom.com');return false; style=cursor:hand class=00><u>设为首页</u></a>&nbsp;</td></tr>");
document.writeln("</table>")

 var delta=0.15
 var collection;
 function floaters() {
  this.items = [];
  this.addItem = function(id,x,y,content)
      {
     document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:202; height:630px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
     
     var newItem    = {};
     newItem.object   = document.getElementById(id);
     newItem.x    = x;
     newItem.y    = y;

     this.items[this.items.length]  = newItem;
      }
  this.play = function()
      {
     collection    = this.items
     setInterval('play()',10);
      }
  }
  function play()
  {

   for(var i=0;i<collection.length;i++)
   {
    var followObj  = collection[i].object;
    var followObj_x  = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
    var followObj_y  = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

    if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
     var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
     dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
     followObj.style.left=followObj.offsetLeft+dx;
     }

    if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
     var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
     dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
     followObj.style.top=followObj.offsetTop+dy;
     }
    followObj.style.display = '';
   }
  } 
  
// var theFloaters  = new floaters();
// theFloaters.addItem('followDiv1','document.body.clientWidth-218',1,'<iframe src="http://mms.tom.com/right.html" width="202" height="630" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
 //theFloaters.addItem('followDiv2',12,50,'<iframe src="http://c.tom.com/2004/ivr/02.htm?user_id=62588" width="100" height="450" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
 //theFloaters.play();
     