if(self!=top){top.location=self.location;}
document.write("");
document.write("");
document.write("");
function AddFavorite(sURL, sTitle)
{
try
{
window.external.addFavorite(sURL, sTitle);
}
catch (e)
{
try
{
window.sidebar.addPanel(sTitle, sURL, "");
}
catch (e)
{
alert("加入收藏失败,有劳您手动添加。");
}
}
}
function listhover(){
var self = "";
var self_top = "";
var pos_nav_offsetTop = "";
$(".listhover li").hover(
function(){
self = $(this);
self.addClass("hover");
},
function(){
self = $(this);
self.removeClass("hover");
}
);
};
function setTab(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
if(cursel==1)
{
document.getElementById("share").style.display="block";
}else{
document.getElementById("share").style.display="none";
}
}
function setTabout(name,cursel){
var menu=document.getElementById(name+cursel);
menu.className="";
var con=document.getElementById("con_"+name+"_"+cursel);
con.style.display="none";
}
function sethover(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
menu.className=i==cursel?"hover":"";
}
}
// 加载后执行的代码
function regetImage(obj) {
alert("a");
var today = new Date();
var today_ms = ""
+ today.getFullYear() + (today.getMonth() + 1) + today.getDate()
+ today.getMinutes() + today.getSeconds() + today.getMilliseconds();
obj.src = '../include/auth/getimage.php?' + today_ms;
}
function bookmarkit(href,title){
if(href==null){href=location.href}
if(title==null){title=document.title}
window.external.addFavorite(href,title);
}
function fixPNG(myImage)
{
var arVersion = navigator.appVersion.split("MSIE");
var version = parseFloat(arVersion[1]);
if ((version >= 5.5) && (document.body.filters))
{
var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";
var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "";
var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' ";
var imgStyle = "display:inline-block;" + myImage.style.cssText;
var strNewHTML = "";
myImage.outerHTML = strNewHTML;
}
}
function setHomepage(pageURL) {
pageURL=location.href;
if (document.all) {
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(pageURL);
}
else if (window.sidebar) {
if(window.netscape) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch (e) {
alert( "该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config,然后将项signed.applets.codebase_principal_support 值该为true" );
}
}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
prefs.setCharPref('browser.startup.homepage',pageURL);
}
}
function del_ff(elem){
var elem_child = elem.childNodes;
for(var i=0; i0 && image.height>0){
flag=true;
if(image.width/image.height>= awidth/aheight){
if(image.width>awidth){
ImgD.width=awidth;
ImgD.height=(image.height*aheight)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
/*ImgD.alt="bigpic" */
}
else{
if(image.height>aheight){
ImgD.height=aheight;
ImgD.width=(image.width*awidth)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
/*ImgD.alt="bigpic" */
}
}
}
function limitheight(ImgD,height){
var image=new Image();
image.src=ImgD.src;
if(image.height>height){
widthed=height*image.width/image.height;
ImgD.width=widthed;
ImgD.height=height;
}
}
function makeup(r){
var url=r;
var img=document.getElementById("pushimg");
img.src=url;
img.jqimg=url;
var sections=document.getElementsByTagName("a");
for(var i=0;i');
document.write('');
document.write('
');
jobads();
}
function jobads()
{
if(navigator.appName.indexOf("Internet Explorer")!=-1)
{
if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled();mie=true;
}
if(navigator.appName.indexOf("Netscape")!=-1)
{
if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled();
}
jobads.named="jobads";
jobads.vx=vmin+vmax*Math.random();
jobads.vy=vmin+vmax*Math.random();
jobads.w=1;
jobads.h=1;
jobads.xx=0;
jobads.yy=0;
jobads.timer1=null;
movechip("jobads");
}
function movechip(chipname)
{
if(brOK)
{
eval("chip="+chipname);
if(!mie)
{
pageX=window.pageXOffset;
pageW=window.innerWidth;
pageY=window.pageYOffset;
pageH=window.innerHeight;
}
else
{
pageX=window.document.body.scrollLeft;
pageW=window.document.body.offsetWidth-8;
pageY=window.document.body.scrollTop;
pageH=window.document.body.offsetHeight;
}
chip.xx=chip.xx+chip.vx;
chip.yy=chip.yy+chip.vy;
chip.vx+=vr*(Math.random()-0.5);
chip.vy+=vr*(Math.random()-0.5);
if(chip.vx>(vmax+vmin)) chip.vx=(vmax+vmin)*2-chip.vx;
if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
if(chip.vy>(vmax+vmin)) chip.vy=(vmax+vmin)*2-chip.vy;
if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;
if(chip.xx<=pageX)
{
chip.xx=pageX;
chip.vx=vmin+vmax*Math.random();
}
if(chip.xx>=pageX+pageW-chip.w)
{
chip.xx=pageX+pageW-chip.w;
chip.vx=-vmin-vmax*Math.random();
}
if(chip.xx>=680)
{
chip.xx=chip.xx-20;
chip.vx=-vmin-vmax*Math.random();
}
if(chip.yy<=pageY)
{
chip.yy=pageY;
chip.vy=vmin+vmax*Math.random();
}
if(chip.yy>=pageY+pageH-chip.h)
{
chip.yy=pageY+pageH-chip.h;
chip.vy=-vmin-vmax*Math.random();
}
if(!mie)
{
eval('document.'+chip.named+'.top ='+chip.yy);
eval('document.'+chip.named+'.left='+chip.xx);
}
else
{
eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);
}
chip.timer1=setTimeout("movechip('"+chip.named+"')",80);
}
}
function stopme(chipname)
{
if(brOK)
{
eval("chip="+chipname);
if(chip.timer1!=null)
{
clearTimeout(chip.timer1)
}
}
}
function printPage() {
if (window.print) {
if(navigator.userAgent.toLowerCase().indexOf('mozilla') != -1)
{
if(navigator.userAgent.toLowerCase().indexOf('msie') !=-1)
{
// much better browser, so do nothing
}
else
{
if(parseInt(navigator.appVersion)>3 && parseInt(navigator.appVersion)<5)
{
alert('you are using nav4 so print format not supported');
}
}
}
window.print();
} else {
alert("Sorry, your browser doesn't support this feature.");
}
}
function locahref(){
username = document.getElementById("cusername").value;
window.open("check.php?username="+username);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function changsub(id){
hiddenme=document.getElementsByTagName("li");
for(i=0;i 1){
tTagName = arguments[1];
}
if(arguments.length > 2){
var pObj = arguments[2]
}
else{
var pObj = document;
}
var objArr = pObj.getElementsByTagName(tTagName);
var tRObj = new Array();
for(var i=0; i');
}
function openme(id){
obj=document.getElementById(id);
style=obj.style.display
if(style=="none"){
document.getElementById(id).style.display="block";
}else{
document.getElementById(id).style.display="none";
}
}
function tofix(){
var tofixid=document.getElementsByClassName('tofixid');
for(n=0;n0 || u.indexOf('.mp4')>0 ) && u.indexOf('?')==-1) return '';
t = 'application/x-shockwave-flash';
c = 'quality="high" extendspage="http://get.adobe.com/flashplayer/" allowfullscreen="true" wmode="transparent"';
}
return '';
}
function entervalue(obj,text){
var v=obj.value;
if(obj.value==''){
obj.value=v;
}else{
if(obj.value==v)obj.value='';
}
}