// JavaScript Document
function doZoom(size)
{
var zoom=document.all?document.all['Zoom']:document.getElementById('Zoom');
zoom.style.fontSize=size+'px';
}
function addfavorite()
{
   if (document.all)
   {
      window.external.addFavorite("http://www.***.com","卓达集团");
   }
   else if (window.sidebar)
   {
      window.sidebar.addPanel("卓达集团", "http://www.***.com", "");
   }
}
sever=function (id,_top,_left){
var me=id.charAt?document.getElementById(id):id, d1=document.body, d2=document.documentElement;
d1.style.height=d2.style.height='100%';me.style.top=_top?_top+'px':0;me.style[(_left>0?'left':'right')]=_left?Math.abs(_left)+'px':0;
me.style.position='absolute';
setInterval(function (){me.style.top=parseInt(me.style.top)+(Math.max(d1.scrollTop,d2.scrollTop)+_top-parseInt(me.style.top))*0.1+'px';},10+parseInt(Math.random()*20));
return arguments.callee;
};
window.onload=function (){
sever
('demo6',480,780)

}
function changeSrc(img){

	var src = img.src;
	var arr = src.split("/");
	var filename = arr[arr.length-1];
	var basename = src.replace(filename,"");

	var arr = filename.split(".");
	var bigsrc = arr[0] + "_big.jpg";

	document.getElementById("myImage").src=basename + bigsrc;
}
function toggle_nav(type){

	if(type == 1){

		Show(1);
		//document.getElementById('c_1').style.display='block';
		document.getElementById('c_2').style.display='none';
	}
	if(type == 2){
		Show(2);

		document.getElementById('c_1').style.display='none';
		//document.getElementById('c_2').style.display='block';
	}
	return false;
}

