<!--



if (isAUse)
{
focusid=setTimeout("focus();window.showModelessDialog('"+OURL+"','','dialogLeft:10px;dialogTop:10px;scroll:1;status:0;help:1;toolbar=1;resizable:0;location:0;dialogWidth:240px;dialogHeight:240px')",3000)
}
if(isBUse)
{
if(parseInt(navigator.appVersion.charAt(0))<4){
	location.href="http://www.vetaninfo.com"
}

var mvtWidth=90
var mvtHeight=90
var mvtAlt=""

brOK=navigator.javaEnabled()?true:false
ns4=(document.layers)?true:false
ie4=(document.all)?true:false

//----------------------

if(ns4){
document.write('<layer id="mvt" width=40 height=60;"><a href="'+mvtLink+'" target=_blank><img src="'+mvtLight+'" border=0 width="'+mvtWidth+'" height="'+mvtHeight+'" alt="'+mvtAlt+'"><\/a><\/layer>');
}
else{
document.write('<div id="mvt" style="position:absolute; width:40; height:60;"><a href="'+mvtLink+'" target=_blank><img src="'+mvtLight+'" border=0 width="'+mvtWidth+'" height="'+mvtHeight+'" alt="'+mvtAlt+'"><\/a><\/div>');
}
//---------------------------

var vmin=2;
var vmax=5;
var vr=2;
var timer1;

function Chip(chipname,width,height)
{this.named=chipname;
 this.vx=vmin+vmax*Math.random();
 this.vy=vmin+vmax*Math.random();
 this.w=width;
 this.h=height;
 this.xx=0;
 this.yy=0;
 this.timer1=null;
}

function movechip(chipname)
{
 if(brOK)
	{eval("chip="+chipname);
	if(ns4)
	{pageX=window.pageXOffset;
		pageW=window.innerWidth;
		pageY=window.pageYOffset;
		pageH=window.innerHeight;
	}
	else
	{pageX=window.document.body.scrollLeft;
		pageW=window.document.body.offsetWidth-8;
		pageY=window.document.body.scrollTop;
		pageH=window.document.body.offsetHeight;
	}

	chip.xx=chip.xx+chip.vx;
	chip.yy=chip.yy+chip.vy;

	chip.vx+=vr*(Math.random()-0.5);
	chip.vy+=vr*(Math.random()-0.5);
	if(chip.vx>(vmax+vmin))	chip.vx=(vmax+vmin)*2-chip.vx;
	if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
	if(chip.vy>(vmax+vmin))	chip.vy=(vmax+vmin)*2-chip.vy;
	if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;


	if(chip.xx<=pageX)
		{	chip.xx=pageX;
		chip.vx=vmin+vmax*Math.random();
		}
	if(chip.xx>=pageX+pageW-chip.w)
		{	chip.xx=pageX+pageW-chip.w;
		chip.vx=-vmin-vmax*Math.random();
		}
	if(chip.yy<=pageY)
		{	chip.yy=pageY;
		chip.vy=vmin+vmax*Math.random();
		}
	if(chip.yy>=pageY+pageH-chip.h)
		{	chip.yy=pageY+pageH-chip.h;
		chip.vy=-vmin-vmax*Math.random();
		}

	if(ns4){
		eval('document.'+chip.named+'.top ='+chip.yy);
		eval('document.'+chip.named+'.left='+chip.xx);
	}
	else{
		eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
		eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);
	}
	chip.timer1=setTimeout("movechip('"+chip.named+"')",100);		//设置速度，数值越大速度越慢
	}
}

function stopme(chipname)
{if(brOK)
	{//alert(chipname)
	eval("chip="+chipname);
	if(chip.timer1!=null)
	{clearTimeout(chip.timer1)}
	}
}

var mvt;
function mvt()
{
	mvt=new Chip("mvt",60,80);
	if(brOK){
		movechip("mvt");
	}
}

window.onload=mvt
}

if (screen.width==1024&&isCUse!=0) 
{
  function setVariables() 
  {
    if (navigator.appName == "Netscape") 
	{
      vert=".top";
      docStyle="document.";
      styleDoc="";
      innerH="window.innerHeight";
      offsetY="window.pageYOffset";
    }
    else 
	{
      vert=".pixelTop";
      docStyle="";
      styleDoc=".style";
      offsetY="document.body.scrollTop";
    }
  } 
   
  setVariables();
 
	function close(id) 
	{
	var Obj= document.getElementById(id);
	Obj.style.visibility='hidden'; 
	}
 
        function evalMove() 
	{
           eval(docStyle + objectXY + styleDoc + vert + "=" + y);
        }
         
if(isCUse==1||isCUse==3){
	document.write("<div id='Layer2' style='position:absolute; width:100px; height:230px; z-index:1; left: 10; top: 200;'>");
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='100'  height='230' border='0'>");
	document.write('<param name=movie value='+swf0+'>');
	document.write("<param name=quality value=high>");
	document.write('<embed src='+swf0+'');
	document.write(" quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='100' height='230' border='0'></embed></object>"); 
	document.write("<img src='ads/close.gif' width='100' height='19' border='0' usemap='#Map2'>");
        document.write("</div>");
        document.write("<map name='Map2'><area shape='rect' coords='81,1,98,18' href=javascript:close('Layer2');></map>");
        
       checkLocation2();
}
if(isCUse==2||isCUse==3){
	document.write("<div id='Layer1' style='position:absolute; width:100px; height:230px; z-index:1; left: 895; top: 200;'>");	
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='100'  height='230' border='0'>");
	document.write('<param name=movie value='+swf1+'>');
	document.write("<param name=quality value=high>");
	document.write('<embed src='+swf1+'');
	document.write(" quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='100' height='230' border='0'></embed></object>"); 
	document.write("<img src='ads/close.gif' width='100' height='19' border='0' usemap='#Map3'>");
        document.write("</div>");
        document.write("<map name='Map3'><area shape='rect' coords='81,1,98,18' href=javascript:close('Layer1');></map>");
        checkLocation3();
}
         function checkLocation3() 
	     {
           objectXY="Layer1";
           var currentY=eval(offsetY);
           y=180+currentY;
           evalMove();
           setTimeout("checkLocation3()",10);
         }
         function checkLocation2() 
	     {
           objectXY="Layer2";
           var currentY=eval(offsetY);
           y=180+currentY;
           evalMove();
           setTimeout("checkLocation2()",10);
         }
         
	 
}
//-->