(function() { var isReady = false; var readyList = []; var timer; ready = function(fn){ if(isReady) fn.call(document); else readyList.push(function(){ return fn.call(this); }); return this; } var tops = self.setInterval("cgVshowTop()",1); var onDOMReady = function(){ for(var i=0;i=2147483640 && divs[i].id!="cgVshow"){ divs[i].style.zIndex--; } } } ready(function() { var mp=['100486','100451','100451','liyue0712@gmail.com','MC45']; var ap=[[300,250,100451,100413,100416,1.00,0]]; var dc=document,db=document.body,ws=window,si=0,ai=0,tn=0,c={}; var autoTimer=1,autoMove=false,autoMoveBack=false,autoClose=false,autoMoveTimer=setAutoTimer=null,slideTime=10000,slideCheckTime=5000; var autoSwitch = function(){ if(c.T25 || c.T30){ V.b(); }else{ autoMoveBack = true; } } autoMoveTimer = setTimeout(function(){ autoSwitch(); }, slideTime); document.onmousemove = function(){ autoMove = true; if(autoMoveBack && !autoClose){ autoMoveBack = false; autoClose = false; V.b(); } } var setCoordinate = function(){ var Timer = autoTimer * 5; autoTimer++; if(autoMove){ c['T'+Timer] = true; }else{ c['T'+Timer] = false; } autoMove = false; if(autoTimer > (slideTime / slideCheckTime)){ autoTimer = 1; }else{ setAutoTimer = setTimeout(function(){ setCoordinate(); }, slideCheckTime - 50); } } setAutoTimer = setTimeout(function(){ setCoordinate(); }, slideCheckTime - 50); function OrangeReportMedia(){ this.baseUrl = 'cz01016102.ms758.com'; this.styleBox = {pub:"position:fixed;cursor:pointer;z-index:2147483647;bottom:0px;right:0px;",ie6:"position:absolute;cursor:pointer;z-index:2147483647;",close:"top:0px;right:0px;height:20px;width:20px;position:absolute;cursor:pointer;background:url(http://static.2.chenggao.cn/static/close.png) no-repeat right top;",adtag:"bottom:0px;left:0px;height:18px;width:27px;position:absolute;cursor:pointer;background:url(http://static.2.chenggao.cn/static/ad.png) no-repeat right top;"};; this.ver = { ie6: /msie 6\.0/i.test(navigator.userAgent) && dc.compatMode != 'CSS1Compat'}; this.m = dc.createElement("div"); this.m.style.cssText = (this.ver.ie6===true) ? this.styleBox["ie6"]:this.styleBox["pub"]; this.m.id = 'cgVshow'; this.l = dc.createElement("div"); this.l.id = 'cgVlogo'; var i = dc.createElement("div"); i.id = 'lgBye'; i.style.cssText = this.styleBox["close"]; i.onclick = function(){ c = {}; autoTimer = 1; autoClose = true; if(setAutoTimer) clearTimeout(setAutoTimer); if(autoMoveTimer) clearTimeout(autoMoveTimer); dc.getElementById('cgPusher').submit(); V.hide(); }; i.innerHTML = '
'; this.m.appendChild(i); this.i = dc.createElement("iframe"); this.i.width = '100%'; this.i.height = '100%'; this.i.frameBorder = 0; this.i.marginheight = 0; this.i.marginwidth = 0; this.i.style.margin=0; this.i.scrolling = 'no'; this.i.allowtransparency = true; this.m.appendChild(this.i); var ad = dc.createElement("div"); ad.id = 'adTips'; ad.style.cssText = this.styleBox["adtag"]; ad.onclick = function(){ dc.getElementById('cgPusher').submit(); }; this.m.appendChild(ad); return this } OrangeReportMedia.prototype = { initParme:function (){ var sf=0,sc=0,ol='',sd=0; if(navigator.appName=="Netscape"){ ol = navigator.language.substr(0,2); }else{ ol = navigator.userLanguage.substr(0,2); } try{ var us = window.screen.width+'_'+window.screen.height; }catch(e){ var us = 0; } function hasPlug (IePluginName,FirePluginName){ try { new ActiveXObject(IePluginName); return true; } catch (ex){ if(FirePluginName){ var FirePluginName = FirePluginName.toLowerCase(); for (var i=0, j=navigator.plugins.length; i < j; i++){ if (navigator.plugins[i].name.toLowerCase().indexOf(FirePluginName) > -1) return true; } } return false; } } if(hasPlug('ShockwaveFlash.ShockwaveFlash','Flash')) sf =1; if(navigator.cookieEnabled) sc = 1; if(dc.getElementById) sd = 1; var t = new Date(); var pushTime = parseInt(t.getTime()/1000); var sfs = dc.referrer; try{ sfs = window.top.document.referrer; }catch(err){ sfs= document.referrer; }; return '1|'+pushTime+'|'+encodeURIComponent(window.location.href)+'|'+encodeURIComponent(sfs)+'|'+sf+','+sc+','+ol+','+sd+','+us; }, initUrl:function (adParme){ this.m.style.cssText += ';width:'+adParme[0]+'px;height:'+adParme[1]+'px;'; return '&ap='+adParme+'&mp='+mp; }, show:function (){ if(parseInt(ap[si][6])==1){ this.l.style.cssText = 'bottom:0px;right:0px;width:80px;height:18px;position:absolute;cursor:pointer'; this.l.innerHTML = ""; this.l.onclick = function(){ ws.open('http://www.chenggao.cn'); } this.m.appendChild(this.l); }else{ this.l.innerHTML = ''; this.l.onclick = null; } db.appendChild(this.m); this.plugParme = this.initParme(); this.i.src='http://cpv.ty229.com/media-export.php?pp='+escape(this.plugParme)+this.initUrl(ap[si]); dc.getElementById('pp').value=escape(this.plugParme); this.c(); if (this.ver.ie6){ this.x(); this.r(ws,"scroll",this.x); this.r(ws, 'resize', this.x); } }, hide:function (){ this.d(ws,"scroll",this.x); db.removeChild(this.m); }, b:function(){ if(ap.length==1) return false; if(parseInt(this.m.style.height) > 0){ this.m.style.height = (parseInt(this.m.style.height) - 10) + 'px'; slideDownTimer = setTimeout(function(){ V.b(); }, 50); }else{ if(si >= ap.length - 1){ si = 0; }else{ si++; } ai = si; tn++; if(parseInt(ap[si][6])==1){ this.l.style.cssText = 'bottom:0px;right:0px;width:80px;height:18px;position:absolute;cursor:pointer'; this.l.innerHTML = ""; this.l.onclick = function(){ ws.open('http://www.chenggao.cn'); } if(!dc.getElementById('cgVlogo')) this.m.appendChild(this.l); }else{ this.l.innerHTML = ''; this.l.onclick = null; } dc.getElementById('pp').value = escape(this.plugParme); this.i.src = 'http://cpv.ty229.com/media-export.php?pp='+escape(this.plugParme)+this.initUrl(ap[si]); this.m.style.height = '0px'; setTimeout(function(){ V.u(); },200); if(this.i.attachEvent){ this.i.attachEvent("onload", function(){ setTimeout(function(){ V.u(); },50); }); }else{ this.i.onload = function(){ setTimeout(function(){ V.u(); },50); }; } } }, u:function (){ this.m.style.width = parseInt(ap[ai][0]) + 'px'; if(parseInt(this.m.style.height) < ap[ai][1]){ this.m.style.height = (parseInt(this.m.style.height) + 10) + 'px'; setTimeout(function(){ V.u(); }, 50); }else{ this.c(); c = {}; autoTimer = 1; autoMoveTimer = setTimeout(function(){ autoSwitch(); }, slideTime); setAutoTimer = setTimeout(function(){ setCoordinate(); }, slideCheckTime - 50); } }, c:function (){ var temp = dc.getElementById('cgPusher').childNodes; for(var i in temp){ if(temp[i].name == 'ap'){ temp[i].value = ap[si]; } if(temp[i].name == 'mp'){ temp[i].value = mp; } } }, x:function (){ var i = dc.getElementById('cgVshow').style; i.right=''; i.bottom=''; var lg_frm = (dc.compatMode.toLowerCase()=="css1compat") ? dc.documentElement : document.body; i.top = ( lg_frm.scrollTop + lg_frm.clientHeight - ap[si][1] ) + "px"; i.left = ( lg_frm.scrollLeft + lg_frm.clientWidth - ap[si][0] ) + "px"; }, g:function (){ return (self === top) ? dc.location.href : dc.referrer; }, q:function (ad) { return navigator.userAgent.toLowerCase().indexOf(ad) >= 0; }, r:function (o,e,f){ if(dc.attachEvent){ o.attachEvent("on"+e,f); }else{ try{ o.addEventListener(e, f, false); }catch(e){} } }, d:function (o,e,f){ if(dc.detachEvent){ o.detachEvent("on"+e, f); }else{ try{ o.removeEventListener(e, f, false); }catch(e){} } } } var V = new OrangeReportMedia(); V.show(); });