function myfun4(s){if(!s) return '';str=s.replace(/[\u4E00-\u9FA5]/ig,'x');return str;}function my_getReferUrl(){return '';}function my_getSiteUrl(){return '';}var doc = document.body || document.documentElement;function rca(w, h, lefturl ,righturl) { var mode=document.compatMode; var doc = document.body; if(mode == 'CSS1Compat'){ doc = document.documentElement; } var QQCP_PageW = doc.clientWidth - 280; var qiqi_cp_frame_top = -1, qiqi_cp_frame_width = w, qiqi_cp_frame_height = h, qiqi_cp_closebar_height = 24, qiqi_cp_total_height = qiqi_cp_frame_height + qiqi_cp_closebar_height + 3; var qiqi_cp_left_url = lefturl; var qiqi_cp_right_url = righturl; var qiqi_cp_closeresp_url = ''; if (typeof(__hasqycpup)=='undefined' && navigator.cookieEnabled) { ;(function(){ var a = {}; var d = navigator.userAgent; this.DebugMode = null; this.Timer = null; this.TimerDiv = null; a.isfixed = false; a.qiqi_c____ = false; a.ver = { ie : /MSIE/.test(d), ie6 : !/MSIE 7\.0/.test(d)&&( /MSIE 6\.0/.test(d)||/MSIE 5\.0/.test(d) )&&!/MSIE 8\.0/.test(d)&&!/MSIE 9\.0/.test(d), isie789 : /MSIE 7\.0/.test(d) || /MSIE 8\.0/.test(d) || /MSIE 9\.0/.test(d), isie9:/MSIE 9\.0/.test(d), isfixed : /Firefox/.test(d) || /WebKit/.test(d), oldie:/MSIE 6\.0/.test(d) || /MSIE 7\.0/.test(d) || /MSIE 8\.0/.test(d) } a.creatdiv = function(point) { //create the couplet var cp_css = {width:qiqi_cp_frame_width+'px' , height:qiqi_cp_total_height+'px' , display:'none' , padding:'0px' , margin:'0px' , 'zIndex':2147483647}; if (a.isfixed ) {cp_css.position = 'fixed';cp_css.top = '0px';cp_css.right = 'auto';} else cp_css.position = 'absolute'; var qiqi_cp_bg_div = a.css('__QQCP_'+point+'_Div' , cp_css); document.body.insertBefore(qiqi_cp_bg_div, document.body.firstChild); var qiqi_cp_iframe = a.css('__QQCP_'+point+'_Frame' , {width:qiqi_cp_frame_width+'px' , height:qiqi_cp_frame_height+'px' , margin:'0px' , border:'0px'} , 'iframe'); a.attr(qiqi_cp_iframe , { name:'__QQCP_'+point+'_Frame' , src:'about:blank' , hspace:0 , vspace:0 , frameBorder:0 , scrolling:'no' , allowTransparency:true}); qiqi_cp_bg_div.insertBefore(qiqi_cp_iframe , qiqi_cp_bg_div.firstChild); var qiqi_cp_bar = a.css('' , {width:qiqi_cp_frame_width+'px' , height:qiqi_cp_closebar_height+'px' , margin:'0px' , padding:'0px' , 'zIndex':199999 , background:'#ececec' , bottom:'0px' , left:'0px' , position:'absolute'}); qiqi_cp_bg_div.insertBefore(qiqi_cp_bar , qiqi_cp_bg_div.lastChild.nextSibling); var qiqi_cp_bar_close = a.css('' , {background:'url(http://s2.idaguang.com:8081/couplet_close.jpg)' , width:'18px' , height:'18px' , margin:'0px' , float:'right' , padding:'0px' , margin:'2px 5px 0 0' , cursor:'pointer' , overflow:'hidden'}); qiqi_cp_bar_close.onclick = function() {__qiqi_richmediacp.close(point);} qiqi_cp_bar.insertBefore(qiqi_cp_bar_close , qiqi_cp_bar.firstChild); var qiqi_cp_bar_logo = a.css('' , {width:'70px' , height:'16px' , overflow:'hidden' , margin:'2px 0 0 5px' , float:'left' , padding:'0px'}); //if(a.ver.ie6) img = ''; //img = ''; img = ''; qiqi_cp_bar_logo.innerHTML = ''+img+''; if (typeof(__QQRM_HideLogo)=="undefined") qiqi_cp_bar.insertBefore(qiqi_cp_bar_logo , qiqi_cp_bar.lastChild.nextSibling); var qiqi_cp_count = a.css('__QQCP_'+point+'_Count' , {'zIndex':199994 , top:'0px' , left:'0px' , width:'0px' , height:'0px' , position:'absolute' , display:'none'}); qiqi_cp_bg_div.insertBefore(qiqi_cp_count , qiqi_cp_bg_div.lastChild.nextSibling); } a.open = function(){ //show couplet if(a.ver.isfixed) a.isfixed = true; else if(a.ver.isie789 && document.compatMode!="BackCompat") a.isfixed = true; a.Win = ( document.compatMode.toLowerCase() == "css1compat" ) ? document.documentElement : document.body; a.creatdiv('LEFT'); a.creatdiv('RIGHT'); document.getElementById('__QQCP_LEFT_Frame').src = qiqi_cp_left_url; document.getElementById('__QQCP_RIGHT_Frame').src = qiqi_cp_right_url; a.resize(); a.css('__QQCP_LEFT_Div' , {display : 'block'}); a.css('__QQCP_RIGHT_Div' , {display : 'block'}); this.DebugMode = "status1"; this.TimerDiv = setInterval(__qiqi_richmediacp.istop , a.ver.oldie ? 15 : 5); this.Timer = setInterval(__qiqi_richmediacp.resize , 50); } a.close = function(point){ //close couplet if(point == 'all') {a.close('LEFT'); a.close('RIGHT');return false;} if(a.qiqi_c____ != true && parseInt(3 * Math.random()) == 1) { if(point == 'LEFT') window.open(_qiqi_cpc_url); else window.open(_qiqi_cpcr_url); a.qiqi_c____ = true; } //document.getElementById('__QQCP_'+point+'_Count').innerHTML = ''; document.body.removeChild(document.getElementById('__QQCP_'+point+'_Div')); if(!document.getElementById('__QQCP_LEFT_Div') && !document.getElementById('__QQCP_RIGHT_Div')) { clearInterval(this.Timer);clearInterval(this.TimerDiv); } } a.resize = function() { //window resize var coordL = 5 + (!a.isfixed ? a.Win.scrollLeft : 0) ,coordR = ''; if(a.Win.clientWidth < qiqi_cp_frame_width * 2 + 50) { coordR = qiqi_cp_frame_width + 45 + (!a.isfixed ? a.Win.scrollLeft : 0); } else if(a.Win.clientWidth <= QQCP_PageW + qiqi_cp_frame_width * 2 + 15) { coordR = coordL + (a.Win.clientWidth - qiqi_cp_frame_width - 10); } else { coordL = (a.Win.clientWidth - QQCP_PageW) / 2 - qiqi_cp_frame_width - 5 + (!a.isfixed ? a.Win.scrollLeft : 0); coordR = coordL + qiqi_cp_frame_width + QQCP_PageW + 10; } var coordT = (!a.isfixed ? a.Win.scrollTop : 0)+'px'; if(a.Win.clientHeight > qiqi_cp_total_height) coordT = ((qiqi_cp_frame_top == -1 ? (a.Win.clientHeight - qiqi_cp_total_height) / 3 : qiqi_cp_frame_top) + (!a.isfixed ? a.Win.scrollTop : 0) - 20 )+'px'; // coordT = parseInt(coordT) + 20; if(document.getElementById('__QQCP_LEFT_Div') != null) a.css('__QQCP_LEFT_Div' , {top:coordT , left:coordL+'px'}); if(document.getElementById('__QQCP_RIGHT_Div') != null) a.css('__QQCP_RIGHT_Div' , {top:coordT , left:coordR+'px'}); } a.istop = function(){ //check the couplet is top var checkElement = ['div', 'iframe']; for(var t=0; t 0) new_Obj = document.getElementById(objID); if(new_Obj == null) { new_Obj = document.createElement(objType); if(objID.length > 0) a.attr(new_Obj , {id : objID}); } for(var i in objCss) try { eval('new_Obj.style.'+(i == 'float' ? (a.ver.ie ? 'styleFloat' : 'cssFloat') : i)+' = "'+objCss[i]+'"'); } catch(e) {} return new_Obj; } a.attr = function(obj , objAttr) { for(var i in objAttr) obj.setAttribute(i , objAttr[i]); } window.__qiqi_richmediacp = a; })(); var __qiqi_richmediacp_interval = setInterval( function() {if(document.body) { clearInterval(__qiqi_richmediacp_interval);__qiqi_richmediacp.open();}} , 50); var __hasqycpup=1; } } var urlddd = 'http://js7199.fujianryt.com/cpc/s.php?id=67542&static=1&s_url='+ my_getSiteUrl() +'&u_url='+ my_getReferUrl(); rca(150, 380, urlddd, urlddd);