function getFlashVersion(){var isSetFlash=false,v_flash=null;if(navigator.plugins){var np=navigator.plugins;for(var i=0;i<np.length;i++){if(np[i].name.toLowerCase().indexOf("shockwave flash")>=0){isSetFlash=true;var pos=np[i].description.toLowerCase().lastIndexOf("flash ")+6;v_flash=np[i].description.substring(pos,np[i].description.length);break;}}}if(window.ActiveXObject){var swf=false;try{swf=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');}catch(e){}if(swf){isSetFlash=true;v_flash=swf.GetVariable("$version").toLowerCase().replace("win","");}}return{is:isSetFlash,v:v_flash};};function getXs(){return navigator.userAgent;};function getXbr(){var dd=document.documentElement;return{width:dd.clientWidth,height:dd.clientHeight}};function ad_fid(id){return document.getElementById(id)};var ix,iy,startT;var ad_flash=getFlashVersion(),ad_screen={width:screen.width,height:screen.height},ad_color=screen.colorDepth,ad_xs=encodeURI(getXs()),ad_iscookie=navigator.cookieEnabled,ad_isjava=navigator.javaEnabled(),ad_refer=escape(document.referrer),ad_url=escape(location.href);var ad_div=document.createElement("div");ad_div.id="admBcnDiv";ad_div.style.width="1px";ad_div.style.height="1px";ad_div.style.background="#FFF";ad_div.innerHTML="&nbsp;";try{ad_fid("admasterAddiv").appendChild(ad_div);}catch(error){document.write("<div id='admBcnDiv' style='width:1px;height:1px;background:#FFF;'>&nbsp;</div>");};function admFixEvent(event){if(document.all){event.cancelBubble=true;}else{event.stopPropagation()}};function admPos(event){var posx,posy,dd = document.documentElement;if(document.all){posx=dd.scrollLeft+event.clientX;posy=dd.scrollTop+event.clientY;}else{posx=event.pageX;posy=event.pageY;}return{x:posx,y:posy};};function admBcnActGen(cmpnId,actInfo,wid,tagStr,event){var data={xs:ad_xs,xfv:ad_flash.v,xcd:ad_color,xjs:ad_isjava?1:0,xcs:ad_iscookie?1:0,xbr:getXbr().width+"x"+getXbr().height,xsr:ad_screen.width+"x"+ad_screen.height};if(ix&&iy){data.ix=ix;data.iy=iy;};var s1="",arr1=[];if(startT)data.dt=(new Date()).getTime()/1000-startT;if(arguments[4]){admFixEvent(event);data.ix=admPos(event).x;data.iy=admPos(event).y;};for(var i in data){s1=i+"="+data[i];arr1.push(s1);};if(getFlashVersion().is){var admBcnSrc=location.protocol.toLowerCase()+"//e.admaster.com.cn/sod/ad4actmid.swf?aid="+cmpnId+"&cstr="+actInfo+"&wid="+wid+"&bid="+(tagStr==""?escape(location.href):tagStr)+"&ix="+(data.ix?data.ix:"")+"&iy="+(data.iy?data.iy:"")+"&dt="+(data.dt?data.dt:"")+"&refer="+escape(document.referrer)+"&loc="+escape(location.href)+"&"+arr1.join("&");ad_fid('admBcnDiv').innerHTML="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='"+location.protocol.toLowerCase()+"//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' id='admBcnAct' align='middle' width='1' height='1'><param name='allowScriptAccess' value='always' /><param name='movie' value='"+admBcnSrc+"' /><param name='quality' value='high' /><embed src='"+admBcnSrc+"' quality='high' swLiveConnect=true id='admBcnAct' width='1' height='1' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='"+location.protocol.toLowerCase()+"//www.macromedia.com/go/getflashplayer' /></object>";}else{ad_fid('admBcnDiv').innerHTML="<img src='"+location.protocol.toLowerCase()+"//e.admaster.com.cn/action.php?a="+cmpnId+"&c="+actInfo+"&w="+wid+"&b="+(tagStr==""?escape(location.href):tagStr)+"&h="+encodeURI(location.href)+"&"+arr1.join("&")+"'/>";}};
