function click() {if (event.button==2) {alert('翔赢传媒科技 联系电话：0371-67506877！');}}
//document.onmousedown=click

	//***********默认设置定义.*********************

   function top_logo(){	  
		document.write(innerFlash("skin/top_logo.swf","1004","152","top_logo"));	
   	}
	function animal_1(){	  
		document.write(innerFlash("skin/animal_1.swf","920","235","animal_1"));	
   	}
	function animal_2(){	  
		document.write(innerFlash("skin/animal_2.swf","920","180","animal_2"));	
   	}
	function animal_3(){	  
		document.write(innerFlash("skin/animal_3.swf","920","180","animal_3"));	
   	}
	
    function adv_showpage(){
         document.write(innerFlash("../../skin/show_adv.swf","950","100","show_adv"));
	}
	
	
   function innerFlash(url,width_,height_,id_){
	  
	    var str="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width_+"' height='"+height_+"' id='"+id_+"' align='middle'>"
	+"<param name='allowScriptAccess' value='sameDomain' />"
	+"<param name='allowFullScreen' value='false' />"
	+"<param name='movie' value='"+url+"' /><param name='menu' value='false' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><param name='bgcolor' value='#ffffff' />	<embed src='"+url+"' menu='false' quality='high' wmode='transparent' bgcolor='#ffffff' width='"+width_+"' height='"+height_+"' name='"+id_+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"
  +"</object>"
   return str;
   }
   
   
   function  text_scroll(width,height,divid)
   {
	  marque(width,height,divid)	   
      var scrollElem; //div 的id 号
      var stopscroll; //是否滚动
      var stoptime; //停留时间
      var preTop; 
      var leftElem; 
      var currentTop; //目前的位置
      var marqueesHeight; //滚动的距离
   }
   function marque(width,height,idnum){
	try{
	  marqueesHeight = height;
	  stopscroll     = false;
	  scrollElem = document.getElementById(idnum);
	  
	  with(scrollElem){
	    style.width     = width;
		style.height    = marqueesHeight;
		style.overflow  = 'hidden';
		noWrap          = true;
	  }
	  
	  scrollElem.onmouseover = new Function('stopscroll = true');
	  scrollElem.onmouseout  = new Function('stopscroll = false');
	  preTop     = 0; 
	  currentTop =marqueesHeight; 
	  stoptime  = 0;
	  leftElem = document.getElementById(idnum);
	  scrollElem.appendChild(leftElem.cloneNode(true));		  
	  init_srolltext();
	}catch(e) {}
}

function init_srolltext(){
  scrollElem.scrollTop = 0;
  setInterval('scrollUp()', 1);
}

function scrollUp(){
  if(stopscroll) return;
  currentTop += 1;
  if(currentTop == marqueesHeight+1) {
    stoptime += 1;
    currentTop -= 1;
    if(stoptime == 200) {//停顿时间
      currentTop = 0;
      stoptime = 0;
    }
  }else{
    preTop= scrollElem.scrollTop;
    scrollElem.scrollTop += 1;
    if(preTop == scrollElem.scrollTop){
      scrollElem.scrollTop=0;
	  currentTop =marqueesHeight; 
    }

  }
}

   
   /*
 function memu_show(varme){		 
	var mydiv=document.getElementById("dropmue"+varme);
	if( String(mydiv.style.getAttribute("display"))!="block")
	{
		mydiv.style.setAttribute("display","block" );  
	}*/
	 //mydiv.style.width=500;
	// alert( mydiv.style.getAttribute("width"));
	// mydiv.style.setAttribute("color","#0000FF" );  
	/*a.id="div1"给新加的DIV命名
	setAttribute方法:*/
		
// }

