function getScrollOffset(){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}return[b,a]}function addListener(b,c,a){if(b.attachEvent){b.attachEvent("on"+c,a)}else{if(b.addEventListener){b.addEventListener(c,a,false)}}}function findPos(a){var b=curtop=0;if(a.offsetParent){b=a.offsetLeft;curtop=a.offsetTop;while(a=a.offsetParent){b+=a.offsetLeft;curtop+=a.offsetTop}}return[b,curtop]}function stopFirefoxEvent(a){if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}}function fDragging(b,c,g){var f=document.getElementById(b);if(f==null){return}if(!c){c=window.event}var k=parseInt(f.style.left);var i=parseInt(f.style.top);var a=c.clientX-k;var j=c.clientY-i;addListener(document,"mousemove",l);addListener(document,"mouseup",h);d(c);e(c);function l(n){var m;if(!n){n=window.event}if(g){var q=f.parentNode;var p=parseInt(q.style.left);var o=parseInt(q.style.top);if((n.clientX-a)<0){return false}else{if((n.clientX-a+f.offsetWidth+p)>(p+q.offsetWidth)){return false}}if(n.clientY-j<0){return false}else{if((n.clientY-j+f.offsetHeight+o)>(o+q.offsetHeight)){return false}}}f.style.left=n.clientX-a+"px";f.style.top=n.clientY-j+"px";d(n)}function h(n){var m;if(!n){n=window.event}if(document.removeEventListener){document.removeEventListener("mousemove",l,false);document.removeEventListener("mouseup",h,false)}else{if(document.detachEvent){document.detachEvent("onmousemove",l);document.detachEvent("onmouseup",h)}}d(n)}function d(m){if(m.stopPropagation){return m.stopPropagation()}else{return m.cancelBubble=true}}function e(m){if(m.preventDefault){return m.preventDefault()}else{return m.returnValue=false}}}function startMove(a){document.addEventListener("mousemove",moveDiv,false);document.addEventListener("mouseup",endMove,false);document.addEventListener("selectstart",selectNo,false);document.moveDiv=a;document.startX=event.x;document.startY=event.y;document.oldX=a.getBoundingClientRect().left;document.oldY=a.getBoundingClientRect().top}function moveDiv(){var c=document.moveDiv;if(c){var a=document.oldX;var b=document.oldY;c.style.position="absolute";c.style.left=a+(event.x-document.startX);c.style.top=b+(event.y-document.startY)}}function endMove(){document.detachEvent("onmousemove",moveDiv);document.detachEvent("onmouseup",endMove);document.detachEvent("onselectstart",selectNo);document.moveDiv=null;document.startX=null;document.startY=null}function selectNo(){return false}if(typeof(String.prototype.trim)=="undefined"){String.prototype.trim=function(pTrimString){if(arguments.length==0){return this.replace(/^\s+|\s+$/g,"")}else{var reg=eval("/^("+pTrimString+")+|("+pTrimString+")+$/g");return this.replace(reg,"")}}}if(typeof(String.prototype.left)=="undefined"){String.prototype.left=function(a){if(this.length<a){return this}else{return this.substr(0,a)}}}if(typeof(String.prototype.right)=="undefined"){String.prototype.right=function(a){if(this.length<a){return this}else{return this.substr(this.length-a)}}}if(typeof(String.prototype.hasLetter)=="undefined"){String.prototype.hasLetter=function(pLetters){var reg=eval("/["+pLetters+"]/");var result=this.match(reg);return(result!=null)}}if(typeof(String.prototype.lettersInRange)=="undefined"){String.prototype.lettersInRange=function(c,b){for(var d=0;d<this.length;d++){var a=this.charCodeAt(d);if(a<c||a>b){return false}}return true}}if(typeof(String.isEmptyOrNull)=="undefined"){String.isEmptyOrNull=function(a){return(a==null||a.length==0)}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_openBrWindow(c,a,b){window.open(c,a,b)}AutoRefresh=function(c,b){url=c;interval=b;timerId=null;function e(){var f=getScrollOffset()[1];window.location.href=url+"&yoffset="+f+"px"}function d(){a();timerId=window.setInterval(e,interval*1000)}function a(){var i=getScrollOffset()[1];if(i>0){return}var g=window.location.href;if(g.indexOf("yoffset=")==-1){return}var j=g.indexOf("yoffset=");var f=g.indexOf("px",j);var h=g.substring(j+8,f);document.documentElement.scrollTop=h}this.start=function(){addListener(window,"load",d)}};var g_isLoadComplete=0;var g_ellipsisObjArray=[];var g_intervalId=null;var g_lasttime=0;var g_ellipsisObjCount=0;var g_ellipsisCount=0;var g_isFirfox=false;function doTextAndLinkOverflow(a){if(a.pfCallBack==undefined){if(a.scrollWidth>=0&&a.scrollWidth<=a.clientWidth){return}}if(g_isLoadComplete==0){g_ellipsisObjArray[g_ellipsisObjArray.length]=a}else{if(a.pfCallBack){a.pfCallBack()}else{doTextAndLinkOverflowImplement(a)}}}function doTextAndLinkOverTimeOut(){var d=(new Date()).getTime();if(d-g_lasttime<600){return}g_lasttime=d;var a=0,c,b;while(g_ellipsisObjArray.length){a++;if(a>=10){break}c=g_ellipsisObjArray[g_ellipsisObjArray.length-1];if(c.pfCallBack){c.pfCallBack()}else{doTextAndLinkOverflowImplement(c)}g_ellipsisObjArray.length-=1}if(g_ellipsisObjArray.length==0){delete g_ellipsisObjArray;g_ellipsisObjArray=[];window.clearInterval(g_intervalId)}}function doTextAndLinkOverflowImplement(e){var c=0,d,g;do{if(null==e.childNodes){break}if(e.childNodes.length!=1){c=-1;break}d=e.firstChild;if(d.nodeType==3){g=1}else{if((d.nodeType==1)&&(d.tagName=="A")){g=2}else{c=-2;break}}var a=e;var f,b;if(a.scrollWidth<=a.clientWidth){break}if(g==2){if(null==a.firstChild.firstChild){break}f=a.firstChild.firstChild.nodeValue;if(a.firstChild.title==""){a.firstChild.title=f}}else{f=a.firstChild.nodeValue;a.title=f}if(typeof f!="string"){break}g_ellipsisObjCount++;if(g_isFirfox){var h=0,i;h=Math.floor(a.scrollWidth*1.2/f.length);b=Math.floor(f.length*a.clientWidth*1.1/a.scrollWidth)-3;while(1){g_ellipsisCount++;if(g==2){a.firstChild.firstChild.nodeValue=f.substring(0,b)+"..."}else{a.firstChild.nodeValue=f.substring(0,b)+"..."}if(a.scrollWidth<=a.clientWidth){break}i=Math.floor((a.scrollWidth-a.clientWidth)/h);if(i<1){i=1}b-=i;if(b<=0){break}}}}while(0);return}function doTextAndLinkOverInit(){if(window.navigator.userAgent.indexOf("Firefox")>=1){g_isFirfox=true}function a(){g_isLoadComplete=1;g_intervalId=window.setInterval(doTextAndLinkOverTimeOut,500)}if(window.attachEvent){window.attachEvent("onload",a)}else{if(window.addEventListener){window.addEventListener("load",a,false)}}}doTextAndLinkOverInit();function createXMLHttpRequest(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.Ajax_XMLHttpRequestProgID){return new ActiveXObject(window.Ajax_XMLHttpRequestProgID)}else{var b=["Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var c=0;c<b.length;++c){var d=b[c];try{var a=new ActiveXObject(d);window.Ajax_XMLHttpRequestProgID=d;return a}catch(f){}}}}return null}function setPortCookie(a,b,d){var c=new Date();c.setTime(c.getTime()+d*1000);document.cookie=a+"="+escape(b)+";expires="+c.toGMTString()};