function inadvert_top(id)
  {
   if (inadvert_top.arguments.length==0)
   {         	 
    var dt = new Date();
    var hr = dt.getSeconds();
    var ad,lk;
    var i=hr%1;
    switch(i)
     {          
     
     
      case 1:         
	 ad="/p5w/home/adimages/20040830in.swf" ;
         lk="";
         break ; 
         
      case 0:    // 时报电子版      
//	 ad="/p5w/home/adimages/20040908in.gif" ;
//         lk="http://www.cninfo.com.cn/Dkh/dl1.htm";
         ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 

      
      }
    } 
    else
    {        //  子栏目通栏广告    	
     switch(id)
      {          
       case 1:   //国内       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
        case 2:   //国际       
	 ad="/p5w/home/adimages/20051011in.swf";
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 3:   //上市公司       
	 ad="/p5w/home/adimages/20051011in.swf";
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ;
         
         case 4:   //股评       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 5:   //港股       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 6:   //债券       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 7:   //研究报告       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 8:   //全景独家       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 9:   //期货       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 10:   //外汇       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 11:   //银行      
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 12:   //保险       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 13:   //信托       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 14:   //产经栏目       
	 ad="/p5w/home/adimages/20051011in.swf"; 
         lk="http://www.fwexpo.com/preregistration_tchi.php";
         break ; 
         
         case 15:   //交易日精粹       
	 ad="/p5w/home/adimages/20060310in.swf"; 
         lk="http://mp5w.p5w.net";
         break ;
         
       default:
         ad="/p5w/home/adimages/20040323inner.swf" ;
         lk="";
       break ;
       

       }
     } 	
    
   ad=ad.toLowerCase() ;   

   //用FLASH动画
   if (ad.indexOf(".swf",0)>0)
    {
      msg='<table width="100" border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF" align="right">';
      msg=msg+'<tr><td>';
      msg=msg+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="250" height="250">';
      msg=msg+'<param name=movie value="'+ad+'">';
      msg=msg+'<param name=quality value=high>';
      msg=msg+'<embed src="'+ad+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="250" height="250">';
      msg=msg+' </embed> </object> ';
      msg=msg+'</td></tr></table>'; 
    }
   else
    {    
     if (lk=="")
      {msg='<IMG SRC='+ad+' width="250" height="250" border=0>'}
     else
      {msg='<a href="'+lk+'" target="_blank"><IMG SRC="'+ad+'" width="250" height="250" border="0" align="right"></a>'; } 
    } 
   document.write(msg); 
 }



function inchannel(id)
 {
  
  if (inchannel.arguments.length==0)
    {  inadvert_top() ;  }
  else
    {  inadvert_top(id) ;  }    
  
 }



