function loadPng(a){if(Site.Browser.ie){try{var d=a;var j=a.src.toUpperCase();if(j.substring(j.length-3,j.length)=="PNG"){var f=(d.id)?"id='"+d.id+"' ":"";var k=(d.className)?"class='"+d.className+"' ":"";var c=(d.title)?"title='"+d.title+"' ":"title='"+d.alt+"' ";var h="display:inline-block;"+d.style.cssText;if(d.align=="left"){h="float:left;"+h}if(d.align=="right"){h="float:right;"+h}if(d.parentElement.href){h="cursor:hand;"+h}var b="<span "+f+k+c+' style="width:'+d.width+"px; height:"+d.height+"px;"+h+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d.src+"', sizingMethod='image');\"></span>";d.outerHTML=b}}catch(g){}}}function setTab(a,d){var c=document.getElementById("p"+a).getElementsByTagName("li");var b=document.getElementById("showdiv"+a).getElementsByTagName("ul");for(i=0;i<c.length;i++){c[i].className=i==d?"hover":"";b[i].style.display=i==d?"block":"none"}}function olImg(){var g=document;if(g.images){if(!g.MM_p){g.MM_p=new Array()}var f,c=g.MM_p.length,b=olImg.arguments;for(f=0;f<b.length;f++){if(b[f].indexOf("#")!=0){g.MM_p[c]=new Image;g.MM_p[c++].src=b[f]}}}}var userAgent=navigator.userAgent.toLowerCase();var is_opera=userAgent.indexOf("opera")!=-1&&opera.version();var is_moz=(navigator.product=="Gecko")&&userAgent.substr(userAgent.indexOf("firefox")+8,3);var is_ie=(userAgent.indexOf("msie")!=-1&&!is_opera)&&userAgent.substr(userAgent.indexOf("msie")+5,3);function $(a){return document.getElementById(a)}function doane(a){e=a?a:window.event;if(is_ie){e.returnValue=false;e.cancelBubble=true}else{if(e){e.stopPropagation();e.preventDefault()}}}function isUndefined(a){return typeof a=="undefined"?true:false}function _attachEvent(c,a,b){if(c.addEventListener){c.addEventListener(a,b,false)}else{if(c.attachEvent){c.attachEvent("on"+a,b)}}}var jsmenu=new Array();var ctrlobjclassName;jsmenu.active=new Array();jsmenu.timer=new Array();jsmenu.iframe=new Array();function initCtrl(c,b,f,d,a){if(c&&!c.initialized){c.initialized=true;c.unselectable=true;c.outfunc=typeof c.onmouseout=="function"?c.onmouseout:null;c.onmouseout=function(){if(this.outfunc){this.outfunc()}if(f<3){jsmenu.timer[c.id]=setTimeout("hideMenu("+a+")",d)}};c.overfunc=typeof c.onmouseover=="function"?c.onmouseover:null;c.onmouseover=function(g){doane(g);if(this.overfunc){this.overfunc()}if(b){clearTimeout(jsmenu.timer[this.id])}else{for(var h in jsmenu.timer){if(jsmenu.timer[h]){clearTimeout(jsmenu.timer[h])}}}}}}function initMenu(a,g,f,d,b,c){if(g&&!g.initialized){g.initialized=true;g.ctrlkey=a;g.onclick=ebygum;g.style.position="absolute";if(f<3){if(f>1){g.onmouseover=function(){clearTimeout(jsmenu.timer[a])}}if(f!=1){g.onmouseout=function(){jsmenu.timer[a]=setTimeout("hideMenu("+b+")",d)}}}if(c){g.onmousedown=function(h){try{menudrag(g,h,1)}catch(j){}};g.onmousemove=function(h){try{menudrag(g,h,2)}catch(j){}};g.onmouseup=function(h){try{menudrag(g,h,3)}catch(j){}}}}}function showMenu(a,n,d,c,l,j,b,f,h){var k=$(a);if(!k){return}if(isUndefined(n)){n=false}if(isUndefined(d)){d=0}if(isUndefined(c)){c=2}if(isUndefined(l)){l=500}if(isUndefined(j)){j=0}if(isUndefined(b)){b=a}var m=$(b);var g=$(b+"_menu");if(!m||!g){return}if(isUndefined(f)){f=400}if(isUndefined(h)){h=false}if(n&&jsmenu.active[j]==g){hideMenu(j);return}else{hideMenu(j)}initCtrl(k,n,c,l,j);ctrlobjclassName=k.className;k.className+=" hover";initMenu(a,g,c,l,j,h);g.style.display="";if(!is_opera){g.style.clip="rect(auto, auto, auto, auto)"}setMenuPosition(b,d);if(!c){setTimeout("hideMenu("+j+")",l)}jsmenu.active[j]=g}function setMenuPosition(d,c){var a=$(d);var b=$(d+"_menu");if(isUndefined(c)){c=0}if(a){a.pos=fetchOffset(a);a.X=a.pos.left;a.Y=a.pos.top;a.w=a.offsetWidth;a.h=a.offsetHeight;b.w=b.offsetWidth;b.h=b.offsetHeight;if(c<3){b.style.left=(a.X+b.w>document.body.clientWidth)&&(a.X+a.w-b.w>=0)?a.X+a.w-b.w+"px":a.X+"px";b.style.top=c==1?a.Y+"px":(c==2||((a.Y+a.h+b.h>document.documentElement.scrollTop+document.documentElement.clientHeight)&&(a.Y-b.h>=0))?(a.Y-b.h)+"px":a.Y+a.h+"px")}else{if(c==3){b.style.left=(document.body.clientWidth-b.clientWidth)/2+document.body.scrollLeft+"px";b.style.top=(document.body.clientHeight-b.clientHeight)/2+document.body.scrollTop+"px"}}if(b.style.clip&&!is_opera){b.style.clip="rect(auto, auto, auto, auto)"}}}function hideMenu(a){if(isUndefined(a)){a=0}if(jsmenu.active[a]){try{$(jsmenu.active[a].ctrlkey).className=ctrlobjclassName}catch(b){}clearTimeout(jsmenu.timer[jsmenu.active[a].ctrlkey]);jsmenu.active[a].style.display="none";if(is_ie&&is_ie<7&&jsmenu.iframe[a]){jsmenu.iframe[a].style.display="none"}jsmenu.active[a]=null}}function fetchOffset(c){var b=c.offsetLeft;var a=c.offsetTop;while((c=c.offsetParent)!=null){b+=c.offsetLeft;a+=c.offsetTop}return{left:b,top:a}}function ebygum(a){if(!a||is_ie){window.event.cancelBubble=true;return window.event}else{if(a.target.type=="submit"){a.target.form.submit()}a.stopPropagation();return a}}var num;num=1;function chimg(){setTimeout('change_img()',5000);}function change_img(){if(num>4){num=1}setTimeout("showFocus("+num+")",5000);num++;tt=setTimeout("change_img()",5000)}function showFocus(a){selectLayer(a)}function selectLayer(d){var b=[null,document.getElementById("focusPic1"),document.getElementById("focusPic2"),document.getElementById("focusPic3"),document.getElementById("focusPic4")];var c=[null,document.getElementById("focusnav1"),document.getElementById("focusnav2"),document.getElementById("focusnav3"),document.getElementById("focusnav4")];for(var a=1;a<b.length;a++){if(a==d){c[a].className="active";b[a].style.display="block"}else{c[a].className="";b[a].style.display="none"}}}var ifsearch=true;SetPageinIt();function SetPageinIt(){window.setTimeout("SetPageinIt()","100")}function searchWord(){var a="";var b=escape(document.getElementById("keyword").value);a="http://search.66wz.com/?key="+b+"&dbids=all";window.open(a)}function processForm(a){window.open(a,"popup","")}function showurl(b){var a="";if(b==""||b==null){b=escape(document.form1.anyword2.value)}else{b=escape(b)}a="http://search.66wz.com/?key="+b+"&dbids=all";window.open(a)}function scrollBanner(timer,moveNumber){function move(o){var st=document.documentElement.scrollTop+o.t;var sl=document.documentElement.scrollLeft+(o.c==0?o.a:document.documentElement.clientWidth-o.a-o.offsetWidth);var tc=st-o.offsetTop,lc=sl-o.offsetLeft;with(o.style){top=o.offsetTop+(tc!=0?tc/Math.abs(tc):0)*Math.min(Math.abs(tc),moveNumber)+"px";left=o.offsetLeft+(lc!=0?lc/Math.abs(lc):0)*Math.min(Math.abs(lc),moveNumber)+"px"}if(o.person){with(o.person.style){top=o.offsetTop+"px";left=o.offsetLeft+o.offsetWidth-o.person.offsetWidth+"px"}}}var hidden=function(){var o=this.parent;window.clearInterval(o.interval);o.parentNode.removeChild(o);this.parentNode.removeChild(this)};this.add=function(to,t,a,c,lo){var div,exec=function(){move(to)};to.person=lo;to.t=t;to.a=a;to.c=c;with(to.style){position="absolute";display="block";top=document.documentElement.scrollTop+t;left=document.documentElement.scrollLeft+(c==0?a:document.documentElement.clientWidth-a-to.offsetWidth)}if("undefined"!=typeof lo){with(lo.style){position="absolute";display="block"}lo.onmousedown=hidden;lo.parent=to}exec();to.interval=window.setInterval(exec,timer)}}function SetHome(c,d){try{c.style.behavior="url(#default#homepage)";c.setHomePage(d)}catch(b){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(b){alert("抱歉！您的浏览器不支持直接设为首页。请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为“true”，点击“加入收藏”后忽略安全提示，即可设置成功。")}var a=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);a.setCharPref("browser.startup.homepage",d)}}};function delHtmlTag(str){ return str.replace(/<[^>]+>/g,""); }
function cli(obj) {
	var con = obj.id;
	var a = delHtmlTag(document.getElementById("artibodytitle").innerHTML+"(分享自 @温州网)");
	var b = "";
if (document.getElementById("abstr")){
	b =  delHtmlTag(document.getElementById("abstr").innerHTML);
	}else{b = "点击浏览内容详情..."}
		if(con=="btn_sf"){		
			var u='http://t.sohu.com/third/post.jsp?&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(a)+'&c='+encodeURIComponent(b)+'&content=utf-8';window.open(u,"sohu");}
		else if(con=="btn_kx"){
			var u='http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent(a)+'&rurl='+encodeURIComponent(location.href)+'&rcontent='+encodeURIComponent(b);window.open(u,"kaixin");}
		else if(con=="btn_xn"){
			var u='http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(a);window.open(u,"xiaonei");}
		else if(con=="btn_db"){
			var u='http://www.douban.com/recommend/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(a);window.open(u,"douban");}
		else if(con=="btn_fb"){
			var u='http://www.facebook.com/share.php?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(a)+'&rurl='+encodeURIComponent(location.href)+'&rcontent='+encodeURIComponent(b);window.open(u,"btn_fb");}
		else if(con=="btn_tt"){
			var u='http://twitter.com/home?status='+encodeURIComponent(a) + encodeURIComponent(location.href) +'&content'+ encodeURIComponent(location.href);window.open(u,"btn_tt");}
		else if(con=="btn_ff"){
			var u='http://fanfou.com/share.new?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(a)+'&d='+ encodeURIComponent(b);window.location.href = u;}
		else if(con=="btn_sina"){
			var u='http://v.t.sina.com.cn/share/share.php?appkey=3755993324&url='+encodeURIComponent(location.href)+'&title='+ encodeURIComponent(a) +'&source=温州网&sourceUrl=http://www.66wz.com/&content=utf-8&pic=';window.location.href = u;}
		else if(con=="btn_t6"){
			var u='http://t.66wz.com/api/share.php?url='+encodeURIComponent(location.href)+'&title='+escape(a);window.open(u,"t6");
			}
		else if(con=="btn_qq"){
			var _appkey = encodeURI("f22911c98d05438f96f9f3e2a3e5f983");
			var _pic = '';
			var u='http://v.t.qq.com/share/share.php?url='+encodeURIComponent(location.href)+'&appkey='+_appkey+'&site=http://www.66wz.com/&pic='+_pic+'&title='+encodeURIComponent(a);
			window.open(u,"qq");
		}else if(con=="btn_163"){
			var url = 'link=http://ent.163.com/&source=' + encodeURIComponent(a)
    + '&info=' + encodeURIComponent(b) + ' ' + encodeURIComponent(document.location.href);
    +'&images=http://www.66wz.com/images/logo_s.png'
    window.open('http://t.163.com/article/user/checkLogin.do?' + url + '&' + new Date().getTime(), 'newwindow', 'height=330,width=550,top=' + (screen.height - 280) / 2 + ',left=' + (screen.width - 550) / 2 + ', toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no');
		}
		else{return false}}
