﻿var Head_LinkID =0;
function setHeadLink(){var a=$$('#nav .nNo');for(var i=1;i<a.length;i++){if(i==Head_LinkID){a[i].className='nOn';}else{a[i].className='nNo';}}}

function __Page(){}
var $P = new __Page();
__Page.prototype.getTop = function(e){var offset=e.offsetTop;if(e.offsetParent!=null) offset+=$P.getTop(e.offsetParent);return offset;}
__Page.prototype.getLeft = function(e){var offset=e.offsetLeft;if(e.offsetParent!=null) offset+=$P.getLeft(e.offsetParent);return offset;}
__Page.prototype.getPageDiv = function(a,b){
var top =$P.getTop(document.getElementById(b));
document.getElementById(a).style.top=top-100+'px';
document.getElementById(a).style.display="block";
}
__Page.prototype.outPageDiv = function(a){document.getElementById(a).style.display="none";}
function _$C(){}
var $C = new _$C();
_$C.prototype.Sclose = function(){
 $('lgoutIH').innerHTML='';
 $('LoginOnPageOutDiv').style.display='none';
}
_$C.prototype.ShowOutDiv = function(a,b,c,d){
$('LoginOnPageOutDiv').style.display='block';
$('lgoutBG').style.height=parseInt(document.documentElement.scrollHeight)+'px';
$('lgoutIH').style.height=parseInt(document.documentElement.scrollHeight)+'px';
$('lgoutIH').innerHTML='<iframe id="F__F__iframe" frameborder="0" framespacing="0" scrolling="no" src="" vspale="0" style="display:block;position:absolute;z-index:-1;border-style:none;width:'+d+'px;height:'+c+'px;background-color:#fff;"></iframe>'+a;
$('F__F__iframe').style.top=parseInt(Math.max(document.documentElement.scrollTop+parseInt((document.documentElement.clientHeight-c)/2),10))+'px';
$(b).style.top=parseInt(Math.max(document.documentElement.scrollTop+parseInt((document.documentElement.clientHeight-c)/2),10))+'px';
$('F__F__iframe').style.left=parseInt((document.documentElement.clientWidth-d)/2)+'px';
$(b).style.left=parseInt((document.documentElement.clientWidth-d)/2)+'px';
$(b).focus();
}
_$C.prototype.getEPos = function(a){var b=navigator.userAgent.toLowerCase();var c=(b.indexOf('opera')!=-1);var d=(b.indexOf('msie')!=-1&&!c);var e=$(a);if(e.parentNode===null||e.style.display=='none'){return false}var f=null;var g=[];var h;if(e.getBoundingClientRect){h=e.getBoundingClientRect();var i=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var j=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return{x:h.left+j,y:h.top+i}}else if(document.getBoxObjectFor){h=document.getBoxObjectFor(e);var k=(e.style.borderLeftWidth)?parseInt(e.style.borderLeftWidth):0;var l=(e.style.borderTopWidth)?parseInt(e.style.borderTopWidth):0;g=[h.x-k,h.y-l]}else{g=[e.offsetLeft,e.offsetTop];f=e.offsetParent;if(f!=e){while(f){g[0]+=f.offsetLeft;g[1]+=f.offsetTop;f=f.offsetParent}}if(b.indexOf('opera')!=-1||(b.indexOf('safari')!=-1&&e.style.position=='absolute')){g[0]-=document.body.offsetLeft;g[1]-=document.body.offsetTop}}if(e.parentNode){f=e.parentNode}else{f=null}while(f&&f.tagName!='BODY'&&f.tagName!='HTML'){g[0]-=f.scrollLeft;g[1]-=f.scrollTop;if(f.parentNode){f=f.parentNode}else{f=null}}return{x:g[0],y:g[1]};}
_$C.prototype.lTrim=function(a){var b=new String(" \t\n\r");var s=new String(a);if(b.indexOf(s.charAt(0))!=-1){var j=0;i=s.length;while(j<i&&b.indexOf(s.charAt(j))!=-1){j++}s=s.substring(j,i)}return s}
_$C.prototype.rTrim=function(a){var b=new String(" \t\n\r");var s=new String(a);if(b.indexOf(s.charAt(s.length-1))!=-1){var i=s.length-1;while(i>=0&&b.indexOf(s.charAt(i))!=-1){i--}s=s.substring(0,i+1)}return s}
_$C.prototype.Trim=function(a){return $C.rTrim($C.lTrim(a))}
_$C.prototype.isEmpty=function(a,b){if($C.Trim(a.value)==""){alert(b);if(a.disabled==false&&a.readOnly==false){a.focus()}return false}else{return true}}
_$C.prototype.checkEmail = function(a){if(a.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)!=-1){return true;}else{return false;}}
_$C.prototype.getQString = function(a,b){var c=new RegExp("(^|\\?|&)"+b+"=([^&]*)(\\s|&|$)","i");if(c.test(a)){return unescape(RegExp.$2.replace(/\+/g,' '));}else{return'';}}

function _$Win(){this.NS4=(document.layers)?true:false;this.IE4=(document.all)?true:false;}
var $Win = new _$Win();    
_$Win.prototype.Winclose = function(){$('WinOutIH').innerHTML='';$('WinOutDiv').style.display='none';}
_$Win.prototype.WinShow = function(a,b,c,d,code){
$('WinOutDiv').style.display='block';
var BGHeight=parseInt(document.documentElement.scrollHeight);
$('WinOutBG').style.height=BGHeight+'px';
$('WinOutIH').style.height=BGHeight+'px';
$('WinOutIH').innerHTML='<iframe id="F__F__iframe" frameborder="0" framespacing="0" scrolling="no" src="" vspale="0" style="display:block;position:absolute;z-index:-1;border-style:none;width:'+d+'px;height:'+c+'px;background-color:#fff;"></iframe>'+a;
var WTop=parseInt(Math.max(document.documentElement.scrollTop+parseInt((document.documentElement.clientHeight-c)/2),10));
var WLeft =parseInt((document.documentElement.clientWidth-d)/2);
$('F__F__iframe').style.top=WTop+'px';
$(b).style.top=WTop+'px';
$('F__F__iframe').style.left=WLeft+'px';
$(b).style.left=WLeft+'px';
$(b).focus();
}
var __Dialog=function(){var str='<div id="DialogDiv">';str+='<div id="DialogBg"></div>';str+='<div id="DialogHtml"></div>';str+='</div>';document.write(str)}
__Dialog.prototype.Show=function(width,height,title,content,isDrag){var t='';if(isDrag){t+='<div id="Title" onmousedown="Dialog.startDrag(event)" ><span id="tTitle">'+title+'</span><span id="tClose"><a href="javascript:void(0)" onclick="Dialog.Close();" title="关闭窗口"></a></span></div>'}else{t+='<div id="Title" ><span id="tTitle">'+title+'</span><span id="tClose"><a href="javascript:void(0)" onclick="Dialog.Close();" title="关闭窗口"></a></span></div>'}var c='<div style="height:'+(height-40)+'px;" class="c1"><div class="c2" style="height:'+(height-52)+'px;">'+content+'<div></div>';$('DialogDiv').style.display='block';var h=parseInt(document.documentElement.scrollHeight);$('DialogBg').style.height=h+'px';$('DialogHtml').style.height=h+'px';var ifrm='<iframe id="DialogIframe" frameborder="0" framespacing="0" scrolling="no" src="" vspale="0" style="display:block;position:absolute;z-index:100000;border-style:none;width:'+parseInt(parseInt(width,10)+4,10)+'px;height:'+parseInt(parseInt(height,10)+4,10)+'px;background-color:#f2f2f2;"></iframe>';var diag='<div id="Dialog" style="width:'+width+'px; height:'+height+'px;">'+t+c+'</div>';$('DialogHtml').innerHTML=ifrm+diag;var top=parseInt(Math.max(document.documentElement.scrollTop+parseInt((document.documentElement.clientHeight-height)/2),10));var left=parseInt((document.documentElement.clientWidth-width)/2);$('Title').className='Title';$('Dialog').className='Dialog';$('DialogIframe').style.top=top+'px';$('Dialog').style.top=top+'px';$('DialogIframe').style.left=left+'px';$('Dialog').style.left=left+'px';$('Dialog').focus()}
__Dialog.prototype.Close=function(){$('DialogHtml').innerHTML='';$('DialogDiv').style.display='none'}
__Dialog.prototype.startDrag=function(e){var e,obj,temp;obj=$('Dialog');$('Title').className='TitleHover';$('Dialog').className='DialogHover';e=window.event?window.event:e;obj.startX=e.clientX-obj.offsetLeft;obj.startY=e.clientY-obj.offsetTop;document.onmousemove=Dialog.Drag;temp=document.attachEvent?document.attachEvent("onmouseup",Dialog.stopDrag):document.addEventListener("mouseup",Dialog.stopDrag,"")}
__Dialog.prototype.Drag=function(e){var e,obj,ifrm;obj=$('Dialog');ifrm=$('DialogIframe');e=window.event?window.event:e;with(obj.style){left=e.clientX-obj.startX+"px";top=e.clientY-obj.startY+"px"}with(ifrm.style){left=e.clientX-obj.startX+"px";top=e.clientY-obj.startY+"px"}}
__Dialog.prototype.stopDrag=function(e){var temp;$('Title').className='Title';$('Dialog').className='Dialog';document.onmousemove="";temp=document.detachEvent?document.detachEvent("onmouseup",Dialog.stopDrag):document.removeEventListener("mouseup",Dialog.stopDrag,"")}
__Dialog.prototype.WinShow=function(a,b,c,d){$('DialogDiv').style.display='block';var bgH=parseInt(document.documentElement.scrollHeight);$('DialogBg').style.height=bgH+'px';$('DialogBg').style.height=bgH+'px';$('DialogHtml').innerHTML='<iframe id="F__F__iframe" frameborder="0" framespacing="0" scrolling="no" src="" vspale="0" style="display:block;position:absolute;z-index:100000;border-style:none;width:'+d+'px;height:'+c+'px;background-color:#fff;"></iframe>'+a;var wTop=parseInt(Math.max(document.documentElement.scrollTop+parseInt((document.documentElement.clientHeight-c)/2),10));var wLeft=parseInt((document.documentElement.clientWidth-d)/2);$('F__F__iframe').style.top=wTop+'px';$(b).style.top=wTop+'px';$('F__F__iframe').style.left=wLeft+'px';$(b).style.left=wLeft+'px';$(b).focus()}
var Dialog = new __Dialog();

