<!--
var already = 0;
window.onload = function ()
{
    //MM_preloadImages('images/index2_10_2.gif','images/cp_2.gif','images/xw_2.gif','images/fw_2.gif');
    //xx();
    //rdl_doInit(); // emulate flash effection
    var dong =  document.body;
   dong.oncontextmenu = function () { return false; }; // 屏蔽右键
   //dong.onmousemove = function () { if( already == 0 ) { already = 1; ExpandoAd(); } }; // 膏药显示
}

//随机显示图片
 function xx()
{
		  
        var x=(Math.random())*100;  
        if(x>50) 
       {
             dong1.style.display="inline"; 
       } 
        else        
        {
             dong2.style.display="inline"; 
        }
       //$PopupNotice(); // 是否弹出通知窗口
}

//通知窗口
function $PopupNotice()
{
    window.showModalDialog    ("tips.htm","tips","dialogWidth:590px;dialogHeight:300px;status:0;");
}

//写日期
function WriteDate()
{
        today=new Date();
 function initArray(){
   this.length=initArray.arguments.length
   for(var i=0;i<this.length;i++)
   this[i+1]=initArray.arguments[i]  }
   var d=new initArray(
     "星期日",
     "星期一",
     "星期二",
     "星期三",
     "星期四",
     "星期五",
     "星期六");
document.write(
     "<font color=##000000 style='font-size:9pt;font-family: 宋体'> ",
     today.getYear(),"年",
     today.getMonth()+1,"月",
     today.getDate(),"日 ",
     d[today.getDay()+1],
     "</font>" ); 
}

function DrawShadow( img, yesNo )
{
       img.style.filter =  yesNo == true ? "progid:DXImageTransform.Microsoft.Shadow(Strength=3,Direction=0,color=red) " : "";
}

// Flash效果模拟
var sBaseStr="filter : progid:DXImageTransform.Microsoft.Fade ( ";

var oParentDiv,oCodeDiv;

function rdl_doInit(e)
{
       
oParentDiv=document.all("mainImage");
       //

rdl_play();

       setInterval(rdl_play, 5000 );
}
       

function rdl_play()
       {

             with (oParentDiv) 
             {

                    if(children[0].style.display=="none")   children[1].style.display="inline";

                   else children[1].style.display="none";
filters[0].Apply();

                    if (children[0].style.display=="none") children[0].style.display="inline";
                   else children[0].style.display="none";

                if (children[1].style.display=="none") 
               children[1].style.display="inline"; else children[1].style.display="none";

                 filters[0].play();

            }

   }
   
//显示通知
function DisplayNotice( b )
{
     if( b )
     {
          notice.style.left = ( parseInt( event.clientX ) - 410 ).toString() + "px";
          notice.style.top = event.srcElement.clientTop;
          notice.style.display = "inline";
     }
     else
     {
          notice.style.display="none";
     }
}

// 收缩广告
var y;
var w;
var h;
var z;
function CollapseAd()
{ 
     h = 130;
     w = 250;
     y = setInterval( "flash1()", 5 );
}

function flash1()
{
       var c = title2;
       if( w <=0 || h <= 0 )
       {
            adImage.style.display="inline";
            c.style.display = "none";
            clearInterval( y );
       }
       else
       {
           c.style.height  = ( h  ).toString() + "px";
           c.style.width  = ( w ).toString() + "px";
           h = h - 2;
           w = w - 2;
       }
}

//展开广告
function ExpandoAd()
{ 
     h = 0;
     w = 0;
     title2.style.display="inline";
     adImage.style.display="none";
     z = setInterval( "flash2()", 5 );
}

function flash2()
{
       var c = title2;
       if( w >= 250 && h >= 135 )
       {
            c.style.display = "inline";
            clearInterval( z );
       }
       else
       {
           c.style.width  = ( w ).toString() + "px";
           if( h <= 135 ) { c.style.height  = ( h  ).toString() + "px"; }
           h = h + 2;
           w = w + 2;
       }
}
