		//globals
		var nn = (document.layers) ? 1:0
		var ie = (document.all) ? 1:0
		
		//START: scroll functions
		var timerID = null
		var timerRunning = false
		var strDir = null
		function scroll(strDir){
			timerRunning = true
		    if(strDir == "up") timerID = setInterval("goUp()",20);
		    if(strDir == "dn") timerID = setInterval("goDn()",20);
		    return;
		}
		function goUp(){
	        if(nn) if(document.mask.document.content.top < 0) document.mask.document.content.top = document.mask.document.content.top + 2;
			if(ie) if(content.style.pixelTop < 0) content.style.pixelTop = content.style.pixelTop + 2;
			return;
		}
		function goDn(){
	        if(nn) if(document.mask.document.content.top > -document.mask.document.content.document.height+150) document.mask.document.content.top = document.mask.document.content.top - 2;
	        if(ie) if(content.style.pixelTop > - content.scrollHeight+100) content.style.pixelTop = content.style.pixelTop - 2;
			return;
		}
		function endScroll(){
		        clearInterval(timerID);
		        timerRunning=false;
		        return;
		}
		//END: scroll functions
		
		//START: roll over
		arrowUp_on = new Image(13,13);
		arrowUp_on.src = "public/img/page1/up_on.gif";
		arrowUp_off = new Image(13,13);
		arrowUp_off.src = "public/img/page1/up_off.gif";
		arrowDn_on = new Image(13,13);
		arrowDn_on.src = "public/img/page1/dn_on.gif";
		arrowDn_off = new Image(13,13);
		arrowDn_off.src = "public/img/page1/dn_off.gif";
		function over(imgDocID,imgObjName){
			document.images[imgDocID].src = eval(imgObjName + ".src");
			return;
		}
	
		//END: roll over
		
drag = 0
move = 0

function init() {
	window.document.onmousemove = mouseMove
	window.document.onmousedown = mouseDown
	window.document.onmouseup = mouseUp
	window.document.ondragstart = mouseStop
}

function mouseDown() {
	if (drag) {
		clickleft = window.event.x - parseInt(dragObj.style.left)
		clicktop = window.event.y - parseInt(dragObj.style.top)
		dragObj.style.zIndex += 1
		move = 1
	}
}

function mouseStop() {
	window.event.returnValue = false
}

function mouseMove() {
	if (move) {
		dragObj.style.left = window.event.x - clickleft
		dragObj.style.top = window.event.y - clicktop
	}
}

function mouseUp() {
	move = 0
}

var nos=null;
//Í¼Æ¬µÄ×Ü¿í¶È
var mw=1513;
var mstep=0;
var msop=20;
var qk=false;
var lastdo="left";

function doMar(dir, src, amount,qk) {
        if (amount==null) amount=10;
        if (qk) amount=10; 
        switch (dir) {
        case "left":
                document.all[src].style.pixelLeft-=amount;
                  mstep-=amount;

                    if (-mstep==mw) {
                       mstep=0;
                       document.all.sl.style.pixelLeft=0;
                     }
                if (-document.all[src].style.pixelLeft>=mw)
                        document.all[src].style.pixelLeft=0;
                break;
        case "right":
                document.all[src].style.pixelLeft+=amount;
                   mstep+=amount;
                   if (mstep==mw) {
                       mstep=-mw;
                       document.all.sl.style.pixelLeft=-mw;
                     }
                if (document.all[src].style.pixelLeft>=0)
                        document.all[src].style.pixelLeft = -mw;//alert(" Is mw");
                break;
        }
        return false;

}

function RunMar(sDir,sWhich,down) {
  if (sDir=="last" ||sDir=="") {sDir=lastdo;}
  else {lastdo=sDir;}
  qk=(down==true)?true:false;
  clearInterval(nos);
  iAmount=1;
  nos = setInterval("doMar('"+sDir+"','"+sWhich+"',"+iAmount+","+qk+")",msop);
}

function doLoad() {
  window.document.all.sl.ondragstart = new Function("return false");
  RunMar(lastdo,"sl");
}


function movstar(a,time)
{
	movx=setInterval("mov("+a+")",time)
}

function movover()
{
	clearInterval(movx)
}

function mov(a)
{
	scrollx=new_date.document.body.scrollLeft
	scrolly=new_date.document.body.scrollTop
	scrolly=scrolly+a
	new_date.window.scroll(scrollx,scrolly)
}

function o_down(theobject)
{
	object=theobject
	while(object.filters.alpha.opacity>60){
	object.filters.alpha.opacity+=-10}
}

function o_up(theobject)
{
	object=theobject
	while(object.filters.alpha.opacity<100){
	object.filters.alpha.opacity+=10}
}

function wback()
{
	if(new_date.history.length==0){window.history.back()}
	else{new_date.history.back()}
}


function outputpic()
{

document.write("<td><a href=http://www.mts.com.cn/ target=_blank><img src=public/img/page1/mts.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><a href=http://www.infineon.com target=_blank><img src=public/img/page1/infineon.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><a href=http://www.alps.com target=_blank><img src=public/img/page1/alps.gif  width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><a href=http://www.fusi.co.jp target=_blank><img src=public/img/page1/fuji&ge.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><a href=http://www.kec.com.cn target=_blank><img src=public/img/page1/kec.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><a href=http://www.wxxijing.com.cn target=_blank><img src=public/img/page1/xj.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><a href=http://www.seagate.com/ target=_blank><img src=public/img/page1/seagate.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><a href=http://www.maxell.net.cn target=_blank><img src=public/img/page1/maxell.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><a href=http://www.legris.com target=_blank><img src=public/img/page1/legris.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><a href=http://www.allgon.com/ target=_blank><img src=public/img/page1/allgon.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><a href=http://www.epcos.com/ target=_blank><img src=public/img/page1/epcos.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><a href=http://www.muratec.co.jp/ target=_blank><img src=public/img/page1/murata.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><a href=http://www.matsushita.co.jp/ target=_blank><img src=public/img/page1/national.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><a href=http://www.pentex-schweizer.com.sg/ target=_blank><img src=public/img/page1/pentex.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><a href=http://www.sumitomo.com/ target=_blank><img src=public/img/page1/sumitomo.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></a></td>");

document.write("<td><img src=public/img/page1/xiptech.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

document.write("<td><img src=public/img/page1/fairchild.gif width=89 height=34 onMouseOver=javascript:clearInterval(nos); onMouseOut=javascript:RunMar('last','sl'); border=0></td>");

}
function ShowToolbar()
{
  var ss,rr,aa,bb,cc;
  ss = ShowToolbar.arguments;
  rr = eval(ss[0]); 
  //alert(rule.style.pixelWidth);
  cc = (rule.style.pixelWidth-770)/2;  
  //cc = (screen.width-768)/2;
  if (cc<0) cc =0;
  aa = cc+eval(ss[2]);
  bb = aa+"px";
  rr.style.left=bb;  
  	if (ss[1] == 'show') rr.style.visibility = 'visible';
  	if (ss[1] == 'hide') rr.style.visibility = 'hidden';
}
