﻿// JScript 文件
    function show_intro(pre,pree, n, select_n,css)
     {
        for (i = 1; i <= n; i++) 
        {
            var intro = document.getElementById(pre + i);
            var cha = document.getElementById(pree + i);
            intro.style.display = "none";
            cha.className=css + "_off";
            if (i == select_n) 
            {
                intro.style.display = "block";
                cha.className=css + "_on";
            }
        }
    }

function MM_findObj(n, d) 
{ //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() 
 { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}


//function GetTC()
//{ 
//var Then = new Date()
//Then.setTime(Then.getTime() + 5000)
//var cookieString = new String(document.cookie)
//var cookieHeader = "cookie1="
//var beginPosition = cookieString.indexOf(cookieHeader)
//if (beginPosition != -1)
//{  
//}
//else  
//{
//document.cookie = "cookie1=POPWIN;expires="+ Then.toGMTString()  
//focusid=setTimeout("focus();window.showModelessDialog('../qq.htm','','scroll:0;status:0;help:0;resizable:0;dialogWidth:30px;dialogHeight:0px')",3000) 
//window.focus(); 
//} 
//}
//GetTC(); 

//if (window.Event) 
//document.captureEvents(Event.MOUSEUP); 

//function nocontextmenu() 
//{
//event.cancelBubble = true
//event.returnValue = false;

//return false;
//}

//function norightclick(e) 
//{
//if (window.Event) 
//{
//if (e.which == 2 || e.which == 3)
//return false;
//}
//else
//if (event.button == 2 || event.button == 3)
//{
//event.cancelBubble = true
//event.returnValue = false;
//return false;
//}

//}

//document.oncontextmenu = nocontextmenu; //对ie5.0以上
//document.onmousedown = norightclick; //对其它浏览器


// function   click()   {                                                                                                                               
//  if   (event.button==2)  
//   {                                                                                                                                                                                          
//   }                                                                                                                                                                 
//  }                                                                                                                                                                 
//  document.onmousedown=click      

 document.onkeydown = function()
 {
          if(event.keyCode==116) {
          event.keyCode=0;
          event.returnValue = false;
          }
}
document.oncontextmenu = function() {event.returnValue = false;}

