// JavaScript Document


function SetWinHeight(obj)

{

 var win=obj;

 if (document.getElementById)

 {

  if (win && !window.opera)

  {

   if (win.contentDocument && win.contentDocument.body.offsetHeight)

    win.height = win.contentDocument.body.offsetHeight;

   else if(win.Document && win.Document.body.scrollHeight)

    win.height = win.Document.body.scrollHeight;

  }

 }

}


olddiv="1"
function menuclick(str){
document.getElementById("td"+olddiv).className="shuzi01";
document.getElementById("td"+str).className="shuzi0101";
olddiv=str;
}
function menuover(str){
//if(str!=olddiv)
//{
//document.getElementById("td"+str).className="top-font";
//}
}
function menuout(str){
//if(str!=olddiv)
//{document.getElementById("td"+str).className="top-font";}
}
function openModel(URL)
{
	parent.location.href = URL;
}
function domenu(){
pars=top.location.search;
id=pars.substr(3,1);

if(id==""){
document.getElementById("td1").className="shuzi0101";
}
else{
document.getElementById("td"+id).className="shuzi0101";
}
}


//滚动效果
	var old_scroll_y = 0;
	var temp_scroll_y = 0;
	function scrollDiv() {
	try{
		var new_scroll_y = document.body.scrollTop;

		if (old_scroll_y != new_scroll_y) {
			var percent = .1 * (new_scroll_y - old_scroll_y);

			if (percent > 0) {
				percent = Math.ceil(percent);
			} else {
				percent = Math.floor(percent);
			}
			quick_top.style.pixelTop += percent;		

			old_scroll_y = old_scroll_y + percent;
		}
		}
		catch(err){}
	}
	action = window.setInterval("scrollDiv()",10);


//其它客户页面的背景变化特效。
olddiv="1"
function menuclicka(str){
document.getElementById("td"+olddiv).className="shuzi00";
document.getElementById("td"+str).className="shuzi010";
olddiv=str;
}
function menuovera(str){
//if(str!=olddiv)
//{
//document.getElementById("td"+str).className="top-font";
//}
}
function menuouta(str){
//if(str!=olddiv)
//{document.getElementById("td"+str).className="top-font";}
}
function openModela(URL)
{
	parent.location.href = URL;
}
function domenua(){
pars=top.location.search;
id=pars.substr(3,1);

if(id==""){
document.getElementById("td1").className="shuzi010";
}
else{
document.getElementById("td"+id).className="shuzi010";
}
}
