// JavaScript Document

<!--
var WEB_URL = 'http://www.dreamsoft.net.cn';
document.write("<script language='javascript' src='"+WEB_URL+"/comm/javascript/validator.js'><"+"/script>");
document.write("<script language='javascript' src='"+WEB_URL+"/comm/javascript/prototype.js'><"+"/script>");
function $(id)
{
  return document.getElementById(id);
}

//
function menu(obj)
 {
	 //header.html
	 //$('downNav_'+obj).style.display ='';
	 $('smallMenu').innerHTML = $('smallMenu_'+obj).innerHTML;
 }

//首页产品滚动
function scroll(n,obj,total)
{
	oDiv = $('marqueeContent');//$(obj);
	len  = parseInt(oDiv.style.left.substr(0,oDiv.style.left.length-2));
	if( n == 0 || total <= 3 )return;
	if(oDiv.style.left == '0px' && n == 128)return;
	if(oDiv.style.left == -(total-3)*128+'px' && n == -128)return;
	oDiv.style.left = len+n+'px';
}

function getHits(table,id)
{//alert(table+id);
    var url = WEB_URL+'/ajax.php?act=getHits';//服务端程序地址
    var pars = 'table='+table+'&id='+id+'&random='+Math.random();//用GET方式传递的参数
    var myAjax = new Ajax.Updater(
        {success: 'hits'},//结果要显示的区域
         url,
        {method: 'get', parameters: pars,evalScripts: true});
}

//自动载入,备用
function autoLoad()
{
	return;
}

-->
