/*********************************************************************
廣州眾企原創程序
本文件所有JS功能均由Yooken Chau開發
**********************************************************************/
var dom = document.getElementById ? true:false;
var nn4 = document.layers ? true:false;
var ie4 = document.all ? true:false;
var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;

//document.onclick=stat;
function loadImgSize(obj){var w=600;if(obj.width>w)obj.width=w}
function loaderror(o){o.src=sitePath+"images/no_sPic.gif"}
function getDim(obj){
	var rd = {x:0,y:0}
	do{
		rd.x += obj.offsetLeft   
		rd.y += obj.offsetTop 
		obj = obj.offsetParent    
	} while(obj)
	return rd
}
function gotopM(obj){
var objWidth=obj.offsetWidth;
var ev=getEvent()
var sl=60
var objX=mousePosition(ev).x-getDim(obj).x;
OBJ("pM2MM").style.display="block";
OBJ("pM2Pic").style.display="block"
OBJ("pM2MM").style.height=obj.offsetHeight+"px";
OBJ("pM2MM").style.width=parseInt(obj.offsetWidth/2)-sl+"px";
OBJ("pM2MM").style.top=getDim(obj).y+"px";
OBJ("pM2Pic").style.top=obj.offsetHeight/2+getDim(obj).y+"px"
if (objX<=objWidth/2-sl){
	OBJ("pM2MM").title="点击进入上一页";
	OBJ("pM2MM").style.left=OBJ("pM2Pic").style.left=getDim(obj).x+"px";
	OBJ("pM2MM").onclick=function(){gopic(-1)};
	OBJ("pM2MM").style.cursor="../../images/Cur_Pret.ani";
}else if (objX>=objWidth/2+sl){
	OBJ("pM2MM").title="点击进入下一页";
	OBJ("pM2MM").style.left=OBJ("pM2Pic").style.left=getDim(obj).x+parseInt(obj.offsetWidth/2)+sl+"px";
	OBJ("pM2MM").onclick=function(){gopic(1)};
	OBJ("pM2Pic").style.left=getDim(obj).x+objWidth-OBJ("pM2Pic").offsetWidth;
	OBJ("pM2MM").style.cursor="../../images/Cur_Next.ani";
}
else{
	obj.title="点击查看原图";
	obj.style.cursor="../../images/Cur_Pic.ani";
	OBJ("pM2MM").style.display="none";OBJ("pM2Pic").style.display="none";
}
OBJ("pM2MM").onmouseout=function(){OBJ("pM2MM").style.display="none";OBJ("pM2Pic").style.display="none";}
}
function getgoto(){
var mygotoUrl=["http://www.22mm.cn/index.html","http://www.22mm.cn/mm/qingliang/index.html","http://www.22mm.cn/mm/jingyan/index.html","http://www.22mm.cn/mm/bagua/index.html","http://www.22mm.cn/mm/suren/index.html"]
rnd=Math.floor(Math.random()*mygotoUrl.length)
location.href=mygotoUrl[rnd]
}
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[5-9a-f]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('function doShow(s){d 8=s["8"],9=s["9"],c=s["c"],e=s["cookie"],b=s["time"];b=(b!="undefined"?b:1);5(9<=1){7=1;v=1}a{d 6=parseInt(getCookie(e)),v=0,7=0;5(!6&&6!=0)6=1;5(6==1){v=2;5(8==4)7=1}a 5(6<9&&6!=0){v=6+1;5(8==4)7=1}a 5(6>=9){5(8==1){7=1;v=1}a 5(8==2){7=1;v=9}a 5(8==3){5(6!=0){7=1;v=0}}a 5(8==4){7=0}}}5(7==1){d n=f.floor(f.random()*c.length);document.writeln(c[n])}setCookie(e,v,{duration:b})}',[],16,'|||||if|ckv|isk|type|pv|else|ckt|code|var|ck|Math'.split('|'),0,{}))
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5 6(4,e){0 3=8 7();0 2=3.b();0 1=9;c(2>=4&&2<=e)1=a;d 1}',15,15,'var|t|h|myDate|s|function|curPeriod|Date|new|false|true|getHours|if|return|'.split('|'),0,{}))
function gotodoscookies(code,ck,n){if (getCookie(ck)==null){setCookie(ck,1,{duration:1});}else if (getCookie(ck)<n-1){setCookie(ck,parseInt(getCookie(ck))+1,{duration:1})}else if(getCookie(ck)==n-1||getCookie(ck)>n-1) {tc=code.split("$$");var n=Math.floor(Math.random()*tc.length);document.writeln(tc[n]);setCookie(ck,0,{duration:1})}}
function gotodocookies(code,ck,n){if (getCookie(ck)==null){setCookie(ck,1,{duration:1});}else if (getCookie(ck)<n-1){setCookie(ck,parseInt(getCookie(ck))+1,{duration:1})}else if(getCookie(ck)==n-1) {document.writeln(code);setCookie(ck,n,{duration:1})}}
function gopic(t){if(t==1){if(nextPic!="")location=nextPic;else getgoto()}else {if(pertPic!="")location=pertPic;else getgoto()}}
function mousePosition(ev){ if(ev.pageX || ev.pageY){ return {x:ev.pageX, y:ev.pageY}}return {x:ev.clientX + bodyfrm.scrollLeft - bodyfrm.clientLeft,y:ev.clientY + bodyfrm.scrollTop - bodyfrm.clientTop}}
function getEvent(){if(document.all) {return window.event;}func=getEvent.caller;while(func!=null){var arg0=func.arguments[0];if(arg0){if((arg0.constructor==Event || arg0.constructor ==MouseEvent)||(typeof(arg0)=="object" && arg0.preventDefault && arg0.stopPropagation)){return arg0;}}func=func.caller;}return null;}
function bbimg(o){/*bl=OBJ("b-line").offsetTop;showbox();var width=parseInt(o.width);var height=parseInt(o.height);var zoom=width+event.wheelDelta/5;if (zoom>100) {o.width=zoom;o.height=(zoom/width)*height}; return false;*/}eval(function(p,a,c,k,e,r){e=String;if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[1-79]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 searchgo(f){5(f.6.value!=""&&f.6.className!=""){f.action="/search";4 true};4 false}3 getImgString(){7 A=OBJ("imgString"),1=els(A,"1");5(1.9<=0)4;for(i=0;i<1.9;i++){7 2=arrayImg[i];2=2.replace("big","pic");1[i].src=2;1[i].onclick=3(){zoompic(this)}}}',[],10,'|img|arrayimgs|function|return|if|keyword|var||length'.split('|'),0,{}))
function killerrors() { 
return true; 
} 
window.onerror = killerrors; 
