function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func}else{window.onload=function(){oldonload();func()}}};function MM_swapImg_cRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc};function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc};function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i]}}};function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x};function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2]}};function MM_showHideLayers(){var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v=='hide')?'hidden':v}obj.visibility=v}};function getCheckedValue(radioObj){if(!radioObj)return"";var radioLength=radioObj.length;if(radioLength==undefined)if(radioObj.checked)return radioObj.value;else return"";for(var i=0;i<radioLength;i++){if(radioObj[i].checked){return radioObj[i].value}}return""};function setCheckedValue(radioObj,newValue){if(!radioObj)return;var radioLength=radioObj.length;if(radioLength==undefined){radioObj.checked=(radioObj.value==newValue.toString());return}for(var i=0;i<radioLength;i++){radioObj[i].checked=false;if(radioObj[i].value==newValue.toString()){radioObj[i].checked=true}}};var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];var FFextraHeight=getFFVersion>=0.1?16:0;function dyniframesize(iframename){var pTar=null;if(document.getElementById){pTar=document.getElementById(iframename)}else{eval('pTar = '+iframename+';')}if(pTar&&!window.opera){pTar.style.display="block";if(pTar.contentDocument&&pTar.contentDocument.body.offsetHeight){pTar.height=pTar.contentDocument.body.offsetHeight+FFextraHeight}else if(pTar.Document&&pTar.Document.body.scrollHeight){pTar.height=pTar.Document.body.scrollHeight}}}function chk_url(url){host=window.location.href.split("/")[2];window.top.location.href="http://"+host+url}function isNumber(name){if(name.length==0){return false}for(i=0;i<name.length;i++){if(name.charAt(i)<"0"||name.charAt(i)>"9"){return false}}return true}function checkEMailValid(email){var mailCheckRule=/^[\w-\.]+\@[\w\.-]+\.[a-z]{2,4}$/;return mailCheckRule.test(email)}function checkSpecialWord(str){var specialRule=/[\&|\@|\%|\$|\/|\;|\||!|\[|\]|{|}|\^|\"|~|\?|:|\\]|<script/gi;return specialRule.test(str)}function setCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString()}else var expires="";document.cookie=name+"="+value+expires+"; path=/"}function getCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null}function ClearCookie(name){var ThreeDays=3*24*60*60*1000;var expDate=new Date();expDate.setTime(expDate.getTime()-ThreeDays);document.cookie=name+"=;expires="+expDate.toGMTString()+"; path=/"}function slideline(delay,speed,lh,height){var _news=document.getElementById('_news');var delay=delay||5000;var speed=speed||20;var lh=lh||20;var tid=null;var pause=false;if(height&&height>0){var initTable=document.getElementById("T1");if(initTable){for(var i=0;i<initTable.rows.length;i++){var initTr=initTable.rows[i];initTr.style.height=height+'px'}}}var start=function(){tid=setInterval(slide,speed)};var slide=function(){if(pause)return;_news.scrollTop+=1;if(_news.scrollTop%lh==0){clearInterval(tid);var t=document.getElementById("T1");var tr=t.rows[0];var tbody=tr.parentNode;tr=tbody.removeChild(tr);tbody.appendChild(tr);_news.scrollTop=0;setTimeout(start,delay)}};_news.onmouseover=function(){pause=true};_news.onmouseout=function(){pause=false};setTimeout(start,delay)}
