var arr=[[{name:"关于优讯",target:"",href:"/about/",classnm:""},{name:"创始人介绍",target:"",href:"/about/founder/",classnm:""},{name:"优讯新闻",target:"",href:"/about/news/",classnm:"dh_last"}],[{name:"全媒体舆情监测服务",target:"",href:"/product/alert/",classnm:""},{name:"全媒体新闻资讯服务",target:"",href:"/product/watch/",classnm:"dh_last"}],[{name:"电视",target:"",href:"/monitoring/tv/",classnm:""},{name:"报刊",target:"",href:"/monitoring/press/",classnm:""},{name:"网络",target:"",href:"/monitoring/web/",classnm:"dh_last"}],[],[],[],[],[{name:"电视平台",target:"_blank",href:"http://www1.uuwatch.com/login/",classnm:""},{name:"全媒体平台",target:"_blank",href:"http://una.uuwatch.com/",classnm:"dh_last"}]];var classNames=["dh_one","dh_two","dh_three","dh_four","dh_five","dh_six","dh_seven","dh_eight"];var banner=$("banner");var href=location.href;var chooseArr=["","","","","","","","",""];if(href.indexOf("/about")!=-1){chooseArr[1]=" yxjja"}else{if(href.indexOf("/product")!=-1){chooseArr[2]=" cpjsa"}else{if(href.indexOf("/monitoring")!=-1){chooseArr[3]=" qmtjca"}else{if(href.indexOf("/customer")!=-1){chooseArr[4]=" cgala"}else{if(href.indexOf("/partners")!=-1){chooseArr[5]=" hzhba"}else{if(href.indexOf("/contact")!=-1){chooseArr[6]=" lxwma"}else{if(href.indexOf("/job")!=-1){chooseArr[7]=" zpyca"}}}}}}}if(banner){banner.innerHTML='<div class="nav_l"><div class="nav_r"><div class="dh" style="width:79px;"><a href="/" class="sy'+chooseArr[0]+'"></a></div><div class="dh"><a onmouseover="list(this,0)" onmouseout="mousot(this,event)" href="/about/" class="yxjj'+chooseArr[1]+'"></a></div><div class="dh"><a onmouseover="list(this,1)" onmouseout="mousot(this,event)" href="/product/alert/" class="cpjs'+chooseArr[2]+'"></a></div><div class="dh"><a onmouseover="list(this,2)" onmouseout="mousot(this,event)" href="/monitoring/tv/" class="qmtjc'+chooseArr[3]+'"></a></div><div class="dh"><a onmouseover="list(this,3)" onmouseout="mousot(this,event)" href="/customer" class="cgal'+chooseArr[4]+'"></a></div><div class="dh"><a onmouseover="list(this,4)" onmouseout="mousot(this,event)" href="/partners" class="hzhb'+chooseArr[5]+'"></a></div><div class="dh"><a onmouseover="list(this,5)" onmouseout="mousot(this,event)" href="/contact" class="lxwm'+chooseArr[6]+'"></a></div><div class="dh"><a onmouseover="list(this,6)" onmouseout="mousot(this,event)" href="/job" class="zpyc'+chooseArr[7]+'"></a></div><div class="dh dha"><a target="_blank" onmouseover="list(this,7)" onmouseout="mousot(this,event)" href="http://una.uuwatch.com/" class="yhdl"></a></div></div></div><div id="childs" onmouseover="show();" onmouseout="mousot(this, event, 1);"  style="display:none;"><div id="list"class="alp"></div><div id="una_list"></div></div>'}var list_is_show=false;var mouspos;var pdim;function getElementPos(h){var a=navigator.userAgent.toLowerCase();var b=(a.indexOf("opera")!=-1);var e=(a.indexOf("msie")!=-1&&!b);var d;if(typeof h=="string"){d=document.getElementById(h)}else{if(typeof h!="undefined"){d=h}}if(d.parentNode===null||d.style.display=="none"){return false}var l=null;var k=[];var i;if(d.getBoundingClientRect){i=d.getBoundingClientRect();var c=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var f=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return{x:i.left+f,y:i.top+c}}else{if(document.getBoxObjectFor){i=document.getBoxObjectFor(d);var j=(d.style.borderLeftWidth)?parseInt(d.style.borderLeftWidth):0;var g=(d.style.borderTopWidth)?parseInt(d.style.borderTopWidth):0;k=[i.x-j,i.y-g]}else{k=[d.offsetLeft,d.offsetTop];l=d.offsetParent;if(l!=d){while(l){k[0]+=l.offsetLeft;k[1]+=l.offsetTop;l=l.offsetParent}}if(a.indexOf("opera")!=-1||(a.indexOf("safari")!=-1&&d.style.position=="absolute")){k[0]-=document.body.offsetLeft;k[1]-=document.body.offsetTop}}}if(d.parentNode){l=d.parentNode}else{l=null}while(l&&l.tagName!="BODY"&&l.tagName!="HTML"){k[0]-=l.scrollLeft;k[1]-=l.scrollTop;if(l.parentNode){l=l.parentNode}else{l=null}}return{x:k[0],y:k[1]}}function getdimensions(a){var b;if(typeof a=="undefined"){return}else{if(typeof a=="string"){b=document.getElementById(a)}else{b=a}}return{width:b.offsetWidth,height:b.offsetHeight}}function getinfo(b){try{if(arr.length==0){return""}var a=arr[b];var f="";if(a.length==0){return""}for(var c=0;c<a.length;c++){f+='<a href="'+a[c].href+'" ';if(a[c].target&&a[c].target!=""){f+='target="'+a[c].target+'"'}if(a[c].classnm&&a[c].classnm!=""){f+='class="'+a[c].classnm+'"'}f+=">"+a[c].name+"</a>"}return f}catch(d){}}function mouscrds(b){var a={x:0,y:0};if(typeof window.pageYOffset!="undefined"){a.x=window.pageXOffset;a.y=window.pageYOffset}else{if(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat"){a.x=document.documentElement.scrollLeft;a.y=document.documentElement.scrollTop}else{if(typeof document.body!="undefined"){a.x=document.body.scrollLeft;a.y=document.body.scrollTop}}}a.x+=b.clientX;a.y+=b.clientY;return a}function mousot(f,a,d){if(d){notShow()}try{var c=$("list").getDimensions();var g=mouscrds(a);if(list_is_show){return}else{$("childs").style.display="none"}}catch(b){}}function waitHide(){if(list_is_show){return}else{$("childs").style.display="none"}}function show(){list_is_show=true}function notShow(){list_is_show=false}function list(f,b){var g=getdimensions(f);var d=$("una_list");var e=$("list");d.innerHTML="";var a=getinfo(b);var c=getElementPos(f);if(""==a){return}$("childs").style.display="";list_is_show=true;d.innerHTML=a;d.className=classNames[b];mouspos={x:c.x,y:c.y};pdim=g}function checkbrowser(){var b=navigator.userAgent;var a=b.indexOf("MSIE");if(a==-1){return 8}var c=parseInt(b.substr(a+5,3),10);return c;if(7==c){return 7}else{return false}}var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-400056-7"]);_gaq.push(["_trackPageview"]);(function(){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();
