/*********************************************************************
廣州眾企原創程序
本文件所有JS功能均由Yooken Chau開發
**********************************************************************/
var dom = document.getElementById ? true:false;
var nn4 = document.layers ? true:false;
var ie4 = document.all ? true:false;
var spbox=["best-navi", "queries", "stock", "soft", "games", "mail", "visits"];
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var OverPcWin=1,cur_sb="sb1",visits=[],save_hist=1,ksAjax=null;
var cur_sc="sc1"
var pref_sp=[0,0,1,0,0,0,0];
function set_count(){$('gotopage').src="cnzzcount.html"}
var cur_bct=["cb1","cb4","cb7","cb10","cb13","cb16",]
var cur_bc,cur_bt;
if (top.location != self.location)top.location=self.location;
window.onload=function(){/*set_stopb();hidew();*/var h=location.href;}
function set_cb(o,t){cur_bc=cur_bct[t-1];if(o.id == cur_bc)return;if(o.id.substring(0,2)!="cb") return;var no=parseInt(o.id.substring(2));var off=parseInt(cur_bc.substring(2));$("cb_"+no).style.display="block";$("cb_"+off).style.display="none";$(cur_bc).className="";o.className="cur_cb";cur_bct[t-1]=o.id}
function loadImgSize(obj){var w=1000;if(obj.width>w)obj.width=w}
function bbimg(o){/*var e = window.event ? window.event : e;alert(e.keyCode);if(e.keyCode!=9)return;*/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;}
function loaderror(o){o.src=sitePath+"images/no_sPic.gif"}
function set_link() {if($("linkBox")){for(i=0;i<mylink.length;i+=2){var a=dc("A");a.href=mylink[i];a.target="_blank";a.innerHTML=mylink[i+1];$("linkBox").appendChild(a);}}}
var myinfostr=new Array();
myinfostr[0]=("0,0,为了本站的长期发展，偶尔会有广告页面出现，但不会太频繁也不会有主动弹窗，如有不便之处请你谅解。");
myinfostr[2]=("0,8000,警告：本站为正规人体艺术站，本站图片经专业摄影师鉴定，均属正规人体艺术图片。本站只提供人体艺术赏识，图片完全免费公开，请勿转载于商业行业。");
myinfostr[1]=("0,10000,<b><font color=\"#FF0000\" size=\"2\">★★鄙视恶意插件与网页木马★★</font></b> -- 近期发现大部分网站安装恶意代码，进行帐号盗窃行为。请大家谨慎浏览网页，可安装360安全卫士防御。");
myinfostr[3]=("1,5000,法律规定:“淫秽物品”包括具体描绘性行为或者露骨宣扬色情的诲淫性的视频文件、音频文件、电子刊物、图片、文章、短信息等互联网、移动通信终端电子信息和声讯台语音信息。");
myinfostr[4]=("0,5000,真正的人体艺术给人带人的是人体与光结合的美感，而不会让人联想到任何色情概念。");
document.write("<table id=\"topFl\" width=1003 height=25 style=\"display:none;font-size: 12px; background-color: #FFFECE; border: 1px solid #FFAD1E; position: absolute; left: 0; top: 0; z-index: 999; text-align: center;\"><tr><td><img border=\"0\" src=\""+sitePath+"images/warning.gif\" width=\"19\" height=\"17\"><\/td><td id=\"topFlStr\" width=\"100%\"><\/td><td><img border=\"0\" onclick=\"$('topFl').style.display='none';$('b-topBox').style.paddingTop='10px';\" src=\""+sitePath+"images/close1.gif\" width=\"17\" height=\"17\"><\/td><\/tr><\/table>");

function set_stopb(){$("b-topBox").style.paddingTop="30px";$('topFl').style.display='block';$('topFl').width=document.body.scrollWidth+"px";winfo(0);}
function winfo(n){if($('topFl').style.display=="none")return;var opmarquee=myinfostr[n].split(",")[0];var opstr=myinfostr[n].split(",")[2];var optime=myinfostr[n].split(",")[1];if(opmarquee==1) $('topFlStr').innerHTML="<marquee behavior='alternate' scrolldelay=\"120\">"+opstr+"</marquee>";else $('topFlStr').innerHTML=opstr;
n++;if(n==4)n=0;snum=n;setTimeout("winfo(snum)",optime);}
function unload(){window.onunload=function(){if(getCookieY("unloads")!=1){window.open("http://www.rt4232.cn/jh/o.html?uohttp://www.cooip.com/goto.asp?id=yooken");setCookieY("unloads",1,{duration:1});}}}
function loadPicStr(){if($("loadcontent")){$("loadcontent").style.display="none";$("picStrBox").style.display="block"}}

function gotodoscookies(code,ck,n){if (getCookieY(ck)==null){setCookieY(ck,1,{duration:1});}else if (getCookieY(ck)<n-1){setCookieY(ck,parseInt(getCookieY(ck))+1,{duration:1})}else if(getCookieY(ck)==n-1||getCookieY(ck)>n-1) {tc=code.split("$$");var n=Math.floor(Math.random()*tc.length);document.writeln(tc[n]);setCookieY(ck,0,{duration:1})}}
function gotodocookies(code,ck,n){if (getCookieY(ck)==null){setCookieY(ck,1,{duration:1});}else if (getCookieY(ck)<n-1){setCookieY(ck,parseInt(getCookieY(ck))+1,{duration:1})}else if(getCookieY(ck)==n-1) {document.writeln(code);setCookieY(ck,n,{duration:1})}}

function resize(){
	window.moveTo(0,0);window.focus();window.resizeTo(screen.availWidth,screen.availHeight);window.outerWidth=screen.availWidth;window.outerHeight=screen.availHeight;
}

function showJh(obj){
/*
var myJhData=[
"0■■/jh/goto.asp?u=http://www.cooip.com/goto.asp?id=yooken","0■■/jh/goto.asp?u=http://www.cooip.com/goto.asp?id=yooken","0■■/jh/goto.asp?u=http://www.cooip.com/goto.asp?id=yooken","0■■/jh/goto.asp?u=http://www.cooip.com/goto.asp?id=yooken","0■■/jh/goto.asp?u=http://www.cooip.com/goto.asp?id=yooken",
//"6■■/jh/goto.asp?u=http://www.420.cn/#rt4232",
//"7.5■■/jh/goto.asp?u=http://www.hx0737.cn/",
//"5■■/jh/goto.asp?u=http://www.51soo.com/click.asp?uid=898",
"0■■/jh/goto.asp?u=http://www.cooip.com/goto.asp?id=yooken"
];
var jhh=getCookieY("jhcookie");var jht=myJhData.length;var jhn="";if(jhh){jhn=jhh.split(",");}var temp;var rannum;for(i=0;i<jht;i++){if(i==0){temp = myJhData[i];}else{temp = temp + '‖' + myJhData[i];}}temp='‖'+temp+'‖';vtemp=temp.split("‖");if (jhn.length>0){for(var i=0;i <jhn.length;i++){for(ii=1;ii<vtemp.length-1;ii++){if(vtemp[ii].split("■■")[1]==jhn[i])temp=temp.replace("‖"+vtemp[ii]+"‖","‖");}}}temp = temp.substring(1,temp.length-1);var ran = Math.floor(Math.random()*temp.split('‖').length);var sgoto = temp.split('‖')[ran];if(sgoto!=""){var sgotoran=sgoto.split("■■")[0];var sgotourl=sgoto.split("■■")[1];var schj;if(!jhh)schj=sgotourl;else schj=jhh+","+sgotourl;setCookieY("jhcookie",schj,{duration:1/6});var ggtt=Math.random()*10;if(ggtt<sgotoran)return false;href=obj.href;obj.href=sgotourl;obj.target="_blank";setTimeout('jhfungoto(href)',1000);}
*/
}
function jhfungoto(h){window.focus();window.location.href=h;}
function replaceAll(str, strFrom, strTo){return str.replace(new RegExp(strFrom, "g"), strTo);}
function stat(){
var turl=location.pathname;
turls=turl.split("/");tfile=turls[turls.length-1];tfile=tfile.substring(0,tfile.indexOf("."));if(tfile.indexOf("-")>0)tfile=tfile.substring(0,tfile.indexOf("-"));
var ev=arguments[0]||window.event;var s=checkTagA(ev)
try{
var thref=s.href.split("/");threfs=thref[thref.length-1];threfs=threfs.substring(0,threfs.indexOf("."));if(threfs.indexOf("-")>0)threfs=threfs.substring(0,threfs.indexOf("-"));
document.title+=threfs;
if(s.tagName=="A" && threfs!=tfile&& s.href.indexOf("http://"+location.host) == 0&&!(threfs.charCodeAt(threfs.length-1)>=48&&threfs.charCodeAt(threfs.length-1)<=57)){if($('gotopage'))$('gotopage').src = sitePath+"goUrlCount.asp?u="+threfs;}}catch(e){}return true;}
document.onclick=stat;
function checkTagA(e){s=e.target||e.srcElement;if(s.tagName!="A"){s=s.parentNode}return s}
function postSearch(o){
	if(o.keyword.value=="")return false; o.action=sitePath+"ssearch.asp";
}
function IndexImages(){
   var s1 = new SWFObject("inc/focusFlash_fp.swf", "mymovie1", "300", "400", "5", "#ffffff");
   s1.addParam("wmode", "transparent");
   s1.addParam("AllowscriptAccess", "sameDomain");
   s1.addVariable("bigSrc", "http://www.juemei.cc/index/2.jpg|http://www.juemei.cc/index/11.jpg|http://www.juemei.cc/index/22.jpg|http://www.juemei.cc/index/3.jpg|http://www.juemei.cc/index/1.jpg");
   s1.addVariable("smallSrc", "");
   s1.addVariable("href", "photos/rtys_sy/|photos/rtys_sn/|photos/rtys_ch/|photos/rtys_hx/|photos/rtys_sy/");
   s1.addVariable("txt", "斯佳丽·约翰逊 红色性感女神|Emporio Armani 09秋冬校园感系列|绯闻少女最爱的设计师品牌|低调浪漫 Burberry Prorsum秋冬英伦风潮|D&G秋冬女装成衣秀 上演芭蕾歌舞剧");
   s1.addVariable("width", "300");
   s1.addVariable("height", "400");
   s1.write("flashFCI");
}