
//var left_img="<a href=http://www.hebgs.gov.cn>/<img src=image/left.gif width=110 height=306 border=0/></a>";

//var right_img="<a href=http://www.hebgs.gov.cn>/<img src=image/right.gif width=110 height=306 border=0/></a>";


//对联
var leftimgheight
window.screen.width>800 ? leftimgheight=600:leftimgheight=100
 function myloadright()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-leftimgheight;
myright.style.left=document.body.offsetWidth-100;
mymove();
}
 function mymove()
 {
 myright.style.top=document.body.scrollTop+document.body.offsetHeight-leftimgheight;
 myright.style.left=document.body.scrollLeft+document.body.offsetWidth-135;
 setTimeout("mymove();",50)
 }

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)


var imgheight
var imgleft
window.screen.width>800 ? imgheight=600:imgheight=100
window.screen.width>800 ? imgleft=3:imgleft=122
function myload()
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myleft.style.left=imgleft;
leftmove();
}
function leftmove()
 { 
 myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
 myleft.style.left=imgleft;
 setTimeout("leftmove();",80)
 }

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

//document.write("<div id=myleft style='position: absolute;width:80;top:0;left:5;visibility: visible;z-index: 1'><a href=http://www.hebgs.gov.cn><img src=image/left.gif width=110 height=306 border=0/></a></div>");
myload()

//document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><a href=http://www.hebgs.gov.cn><img src=image/right.gif width=110 height=306 border=0/></a></div>");
myloadright()




//浮动
var xPos = 20;//from webjx.com
var yPos = document.body.clientHeight;
var step = 1;
var delay = 30;                     
var height = 0;                     
var Hoffset = 0;                    
var Woffset = 0;                     
var yon = 0;                    
var xon = 0;                     
var pause = true;                    
var interval;                    
img.style.top = yPos;                    
function changePos() {                   
width = document.body.clientWidth;                    
height = document.body.clientHeight;                    
Hoffset = img.offsetHeight;                    
Woffset = img.offsetWidth;                   
img.style.left = xPos + document.body.scrollLeft;                    
img.style.top = yPos + document.body.scrollTop;                    
if (yon) {                  
yPos = yPos + step;                    
}               
else {             
yPos = yPos - step;                    
}            
if (yPos < 0) {                  
yon = 1;                    
yPos = 0;                    
}                  
if (yPos >= (height - Hoffset)) {                    
yon = 0;                    
yPos = (height - Hoffset);                     
}                  
if (xon) {                    
xPos = xPos + step;                    
}                 
else {                 
xPos = xPos - step;                   
}                  
if (xPos < 0) {                    
xon = 1;                   
xPos = 0;                   
}         
if (xPos >= (width - Woffset)) {                    
xon = 0;           
xPos = (width - Woffset);                    
}                    
}
function start() {                    
img.style.visibility = "visible";                  
interval = setInterval('changePos()', delay);                    
}              
start();


//全屏广告
////<script type="text/javascript" language="javascript">
//    var time = 500;
//    var h = 0;
//    function addCount()
//    {
//        if(time>0)
//        {
//            time--;
//            h = h+5;
//        }
//        else
//        {
//            return;
//        }
//        if(h>500)  //高度
//        {
//            return;
//        }
//        document.getElementById("ads").style.display = "";
//        document.getElementById("ads").style.height = h+"px";
//        setTimeout("addCount()",30); 
//    }
//    
//    window.onload = function showAds()
//    {
//        addCount();
//        setTimeout("noneAds()",7000); //停留时间自己适当调整
//    }
//    var T = 500;
//    var N = 500; //高度
//    function noneAds()
//    {
//        if(T>0)
//        {
//            T--;
//            N = N-5;
//        }
//        else
//        {
//            return;
//        }
//        if(N<0)
//        {
//            document.getElementById("ads").style.display = "none";
//            return;
//        }
//        
//        document.getElementById("ads").style.height = N+"px";
//        setTimeout("noneAds()",30); 
//    }
//    </script>
//</head>
//<body>
//    <div id="ads" style="margin:auto; display:none; width:900px; top:0px; height:0px; border:solid 1px #000; background-color:#fafafa; overflow:hidden; text
//-align:center;">
//        <a target="_blank" href="http://www.webjx.com">网页教学网地址：http://www.webjx.com</a>
//    </div>
//    <div style="margin:auto; width:900px; height:200px; border:solid 1px #000; background-color:#fafafa; text-align:center;">
//        网站主体内容
//    </div>





//新闻
//<SCRIPT>
//var widths=100;              
//var heights=164;              
//var counts=6;   
//img1=new Image 
//();img1.src='http://www.yesky.com/imagelist/2007/018/43rx42m
//ql3ng.jpg'; 
//img2=new Image 
//();img2.src='http://notebook.yesky.com/imagelist/2007/017/hu
//b8x795v23m.jpg'; 
//img3=new Image 
//();img3.src='http://www.yesky.com/imagelist/2007/017/dt741w2
//a2n42.jpg'; 
//img4=new Image 
//();img4.src='http://www.yesky.com/imagelist/2007/016/hda926w
//5t574.jpg';  
//img5=new Image 
//();img5.src='http://diy.yesky.com/imagelist/2007/010/190g0pq
//jdbw7.jpg'; 
//img6=new Image 
//();img6.src='http://www.yesky.com/imagelist/2007/015/67vtz4e
//w2m5s.jpg'; 
//url1=new Image ();url1.src='http://www.webjx.com';
//url2=new Image ();url2.src='http://www.webjx.com';
//url3=new Image ();url3.src='http://www.webjx.com';
//url4=new Image ();url4.src='http://www.webjx.com';
//url5=new Image ();url5.src='http://www.webjx.com';
//url6=new Image ();url6.src='http://www.webjx.com';
////天极伊永恒原创
//var nn=1;
//var key=0;
//function change_img()
//{if(key==0){key=1;}
//else if(document.all)
//{document.getElementById("pic").filters[0].Apply
//();document.getElementById("pic").filters[0].Play
//(duration=2);}
//eval('document.getElementById("pic").src=img'+nn+'.src');
//eval('document.getElementById("url").href=url'+nn+'.src');
//for (var i=1;i<=counts;i++){document.getElementById
//("xxjdjj"+i).className='axx';}
//document.getElementById("xxjdjj"+nn).className='bxx';
//nn++;if(nn>counts){nn=1;}
//tt=setTimeout('change_img()',4000);}
//function changeimg(n){nn=n;window.clearInterval
//(tt);change_img();}
//document.write('<style>');
//document.write('.axx{padding:1px 7px;border-left:#cccccc 1px 
//solid;}');
//document.write('a.axx:link,a.axx:visited{text-
//decoration:none;color:#fff;line-height:12px;font:9px sans-
//serif;background-color:#666;}');
//document.write('a.axx:active,a.axx:hover{text-
//decoration:none;color:#fff;line-height:12px;font:9px sans-
//serif;background-color:#999;}');
//document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px 
//solid;}');
//document.write('a.bxx:link,a.bxx:visited{text-
//decoration:none;color:#fff;line-height:12px;font:9px sans-
//serif;background-color:#D34600;}');
//document.write('a.bxx:active,a.bxx:hover{text-
//decoration:none;color:#fff;line-height:12px;font:9px sans-
//serif;background-color:#D34600;}');
//document.write('</style>');
//document.write('<div 
//style="width:'+widths+'px;height:'+heights+'px;overflow:hidd
//en;text-overflow:clip;">');
//document.write('<div><a id="url"><img id="pic" 
//style="border:0px;filter:progid:dximagetransform.microsoft.w
//ipe(gradientsize=1.0,wipestyle=4, motion=forward)" 
//width='+widths+' height='+heights+' /></a></div>');
//document.write('<div style="filter:alpha
//(style=1,opacity=10,finishOpacity=80);background: 
//#888888;width:100%-2px;text-align:right;top:-
//12px;position:relative;margin:1px;height:12px;padding:0px;ma
//rgin:0px;border:0px;">');
//for(var i=1;i<counts+1;i++){document.write('<a 
//href="javascript:changeimg('+i+');" id="xxjdjj'+i+'" 
//class="axx" target="_self">'+i+'</a>');}
//document.write('</div></div>');
//change_img();
//</SCRIPT>