function CheckSelect(a,b){for(i=0;;i++){thisVar=a+"_"+i;obj=document.getElementById(thisVar);if(obj){if(obj.checked){return true}}else{break}}window.alert(b);return false}function CheckSearch(a,b){if(document.forms[a].elements.keywords.value==""){window.alert(b);document.forms[a].elements.keywords.focus();return false}else{return true}}function CheckAll(a){for(i=0;;i++){var b=document.getElementById(a+i);if(!b){break}b.checked=true}return}function UncheckAll(c){var a=document.getElementById("all_"+c);var b=true;for(i=0;;i++){var d=document.getElementById(c+i);if(!d){break}else{if(!d.checked){b=false;break}}}a.checked=b}function eCheckEMail(b){s=b.value;if(s.indexOf("@")==-1){return false}if(s.indexOf(".")==-1){return false}at=false;dot=false;for(var a=0;a<s.length;a++){ch=s.substring(a,a+1);if((ch>="A"&&ch<="Z")||(ch>="a"&&ch<="z")||(ch=="@")||(ch==".")||(ch=="_")||(ch=="-")||(ch>="0"&&ch<="9")){if(ch=="@"){if(at){return false}else{at=true}}if((ch==".")&&at){dot=true}}else{return false}}return dot}function CheckEMail(d,c,a){for(var b=0;b<c.length;b++){if(!eCheckEMail(d.elements[c[b]])){alert(a);d.elements[c[b]].focus();return false}}return true}function CheckRequiredFields(e,b,a){for(i=0;i<b.length;i++){if(e.elements[b[i]].type=="radio"){var c=e.elements[b[i]].name;var d=e.elements[c].length;for(n=0;n<d;n++){if(e.elements[c][n].checked){return true}}alert(a);e.elements[b[i]].focus();return false}else{if(e.elements[b[i]].value==""){alert(a);e.elements[b[i]].focus();return false}}}return true}function CheckForm(e,b,a,c,d){if(CheckRequiredFields(e,a,d)){if(CheckEMail(e,b,c)){return true}}return false}function changeLang(){var b=$("chlang");var a=b.options[b.selectedIndex].value;if(a==""){return}location.href=a}var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(a,c){for(var b in c){a[b]=c[b]}return a};Function.prototype.bind=function(b){var a=this;return function(){return a.apply(b,arguments)}};if(!Array.prototype.forEach){Array.prototype.forEach=function(b,c){for(var a=0;a<this.length;a++){b.call(c,this[a],a)}}}Array.prototype.each=Array.prototype.forEach;String.prototype.camelize=function(){return this.replace(/-\D/gi,function(a){return a.charAt(a.length-1).toUpperCase()})};var $A=function(c){var b=[];for(var a=0;a<c.length;a++){b.push(c[a])}return b};function $(){if(arguments.length==1){return b(arguments[0])}var a=[];$c(arguments).each(function(c){a.push(b(c))});return a;function b(c){if(typeof c=="string"){c=document.getElementById(c)}return c}}if(!window.Element){var Element={}}Object.extend(Element,{remove:function(a){a=$(a);a.parentNode.removeChild(a)},hasClassName:function(a,b){a=$(a);return !!a.className.match(new RegExp("\\b"+b+"\\b"))},addClassName:function(a,b){a=$(a);if(!Element.hasClassName(a,b)){a.className=(a.className+" "+b)}},removeClassName:function(a,b){a=$(a);if(Element.hasClassName(a,b)){a.className=a.className.replace(b,"")}}});document.getElementsByClassName=function(b){var c=[];var a=document.getElementsByTagName("*");$A(a).each(function(d){if(Element.hasClassName(d,b)){c.push(d)}});return c};var Fx=fx={};Fx.Base=function(){};Fx.Base.prototype={setOptions:function(a){this.options=Object.extend({onStart:function(){},onComplete:function(){},transition:Fx.Transitions.sineInOut,duration:500,unit:"px",wait:true,fps:50},a||{})},step:function(){var a=new Date().getTime();if(a<this.time+this.options.duration){this.cTime=a-this.time;this.setNow()}else{setTimeout(this.options.onComplete.bind(this,this.element),10);this.clearTimer();this.now=this.to}this.increase()},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(c,b){var a=b-c;return this.options.transition(this.cTime,c,a,this.options.duration)},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this},_start:function(b,a){if(!this.options.wait){this.clearTimer()}if(this.timer){return}setTimeout(this.options.onStart.bind(this,this.element),10);this.from=b;this.to=a;this.time=new Date().getTime();this.timer=setInterval(this.step.bind(this),Math.round(1000/this.options.fps));return this},custom:function(b,a){return this._start(b,a)},set:function(a){this.now=a;this.increase();return this},hide:function(){return this.set(0)},setStyle:function(c,b,a){if(b=="opacity"){if(a==0&&c.style.visibility!="hidden"){c.style.visibility="hidden"}else{if(c.style.visibility!="visible"){c.style.visibility="visible"}}if(window.ActiveXObject){c.style.filter="alpha(opacity="+a*100+")"}c.style.opacity=a}else{c.style[b]=a+this.options.unit}}};Fx.Style=Class.create();Fx.Style.prototype=Object.extend(new Fx.Base(),{initialize:function(b,c,a){this.element=$(b);this.setOptions(a);this.property=c.camelize()},increase:function(){this.setStyle(this.element,this.property,this.now)}});Fx.Styles=Class.create();Fx.Styles.prototype=Object.extend(new Fx.Base(),{initialize:function(b,a){this.element=$(b);this.setOptions(a);this.now={}},setNow:function(){for(p in this.from){this.now[p]=this.compute(this.from[p],this.to[p])}},custom:function(a){if(this.timer&&this.options.wait){return}var c={};var b={};for(p in a){c[p]=a[p][0];b[p]=a[p][1]}return this._start(c,b)},increase:function(){for(var a in this.now){this.setStyle(this.element,a,this.now[a])}}});Fx.Transitions={linear:function(e,a,g,f){return g*e/f+a},sineIn:function(e,a,g,f){return -g*Math.cos(e/f*(Math.PI/2))+g+a},sineOut:function(e,a,g,f){return g*Math.sin(e/f*(Math.PI/2))+a},sineInOut:function(e,a,g,f){return -g/2*(Math.cos(Math.PI*e/f)-1)+a}};Fx.Scroll=Class.create();Fx.Scroll.prototype=Object.extend(new Fx.Base(),{initialize:function(b,a){this.element=$(b);this.setOptions(a);this.element.style.overflow="hidden"},down:function(){return this.custom(this.element.scrollTop,this.element.scrollHeight-this.element.offsetHeight)},up:function(){return this.custom(this.element.scrollTop,0)},increase:function(){this.element.scrollTop=this.now}});Fx.Color=Class.create();Fx.Color.prototype=Object.extend(new Fx.Base(),{initialize:function(b,c,a){this.element=$(b);this.setOptions(a);this.property=c.camelize();this.now=[]},custom:function(b,a){return this._start(b.hexToRgb(true),a.hexToRgb(true))},setNow:function(){[0,1,2].each(function(a){this.now[a]=Math.round(this.compute(this.from[a],this.to[a]))}.bind(this))},increase:function(){this.element.style[this.property]="rgb("+this.now[0]+","+this.now[1]+","+this.now[2]+")"}});Object.extend(String.prototype,{rgbToHex:function(f){var a=this.match(new RegExp("([\\d]{1,3})","g"));if(a[3]==0){return"transparent"}var c=[];for(var b=0;b<3;b++){var e=(a[b]-0).toString(16);c.push(e.length==1?"0"+e:e)}var d="#"+c.join("");if(f){return c}else{return d}},hexToRgb:function(e){var d=this.match(new RegExp("^[#]{0,1}([\\w]{1,2})([\\w]{1,2})([\\w]{1,2})$"));var b=[];for(var c=1;c<d.length;c++){if(d[c].length==1){d[c]+=d[c]}b.push(parseInt(d[c],16))}var a="rgb("+b.join(",")+")";if(e){return b}else{return a}}});Fx.Height=Class.create();Fx.Height.prototype=Object.extend(new Fx.Base(),{initialize:function(b,a){this.element=$(b);this.setOptions(a);this.element.style.overflow="hidden"},toggle:function(){if(this.element.offsetHeight>0){return this.custom(this.element.offsetHeight,0)}else{return this.custom(0,this.element.scrollHeight)}},show:function(){return this.set(this.element.scrollHeight)},increase:function(){this.setStyle(this.element,"height",this.now)}});Fx.Width=Class.create();Fx.Width.prototype=Object.extend(new Fx.Base(),{initialize:function(b,a){this.element=$(b);this.setOptions(a);this.element.style.overflow="hidden";this.iniWidth=this.element.offsetWidth},toggle:function(){if(this.element.offsetWidth>0){return this.custom(this.element.offsetWidth,0)}else{return this.custom(0,this.iniWidth)}},show:function(){return this.set(this.iniWidth)},increase:function(){this.setStyle(this.element,"width",this.now)}});Fx.Opacity=Class.create();Fx.Opacity.prototype=Object.extend(new Fx.Base(),{initialize:function(b,a){this.element=$(b);this.setOptions(a);this.now=1},toggle:function(){if(this.now>0){return this.custom(1,0)}else{return this.custom(0,1)}},show:function(){return this.set(1)},increase:function(){this.setStyle(this.element,"opacity",this.now)}});var currentNews=0;var intTickSpeed=5000;function buttonDown(a){if(!arrNewsItems.length){return}a.style.cssText="margin: 7px 5px 0px 2px;"}function buttonUp(a){if(!arrNewsItems.length){return}a.style.cssText=""}function nextNews(){setNews(currentNews)}function prevNews(){setNews(currentNews-2)}function initTicker(){if(!arrNewsItems.length){return}$("ticker").onmouseover=stopTicker;$("ticker").onmouseout=resumeTicker;$("back").onclick=prevNews;$("next").onclick=nextNews;$("back").onmouseover=stopTicker;$("next").onmouseover=stopTicker;$("next").onmouseout=resumeTicker;$("back").onmouseout=resumeTicker;playTicker()}function stopTicker(){clearTimeout(autoTimerID)}function resumeTicker(){clearTimeout(autoTimerID);autoTimerID=self.setTimeout("playTicker()",intTickSpeed)}function playTicker(){setNews(currentNews);autoTimerID=self.setTimeout("playTicker()",intTickSpeed)}function setNews(a){if(arrNewsItems.length<a+1){a=0}else{if(a<0){a=arrNewsItems.length-1}}strResults="";strResults+='<div id="typer"><img src="/images/typer.gif" width="8" height="10" class="typerimg"></div><table border="0" cellpadding="0" cellspacing="0"><tr><td class="tickContent"><a class="tickerlnk" href="'+arrNewsItems[a][1]+'" target="_top">';strResults+=arrNewsItems[a][0]+"</a></td></tr></table>";$("ticker").innerHTML=strResults;efekt=new Fx.Style("typer","width",{duration:700,onComplete:function(){$("typer").style.visibility="hidden"}});efekt._start($("typer").offsetWidth,0);currentNews=a+1}function printThis(){document.styleSheets[0].disabled=true;document.styleSheets[1].disabled=false;window.print();setTimeout("printDone()",700)}function printDone(){document.styleSheets[1].disabled=true;document.styleSheets[0].disabled=false}function CheckLogin(b,f,d,c){var e=document.forms[b].elements.cuser.value;var a=document.forms[b].elements.cpass.value;if(e==""&&a==""){window.alert(f);document.forms[b].elements.cuser.focus();return false}else{if(e==""){window.alert(d);document.forms[b].elements.cuser.focus();return false}else{if(a==""){window.alert(c);document.forms[b].elements.cpass.focus();return false}else{return true}}}}function menuOver(a){a.style.cssText="color:#cd9e40;background:#e2dddb;cursor:pointer;"}function menuOut(a){a.style.cssText="color:white;background:none;cursor:none;"}function menuClick(a){location.href=a}var currentDoc=-1;function switchDoc(a,b){for(i=0;i<maxDoc;i++){if($("first_doc_bg"+i)){$("first_doc_bg"+i).className="first_doc_slides"}$("first_doc_sc"+i).style.display="none"}$("first_doc_sc"+a).style.display=b;if($("first_doc_bg"+a)){$("first_doc_bg"+a).className="slides_selected"}}function nextDoc(){if(currentDoc<maxDoc-1){currentDoc++}else{currentDoc=0}switchDoc(currentDoc,"block")}function preDoc(){if(currentDoc==0){currentDoc=maxDoc-1}else{currentDoc--}switchDoc(currentDoc,"block")}function playDocs(){nextDoc();if(maxDoc>1){autoTimerID=window.setTimeout("playDocs()",timerSpeed)}}function stopDocs(){if(maxDoc<=1){return}clearTimeout(autoTimerID)}function resumeDocs(){if(maxDoc<=1){return}clearTimeout(autoTimerID);autoTimerID=window.setTimeout("playDocs()",timerSpeed)}function getMaxHeight(){if(maxDoc<=1){return}var a=0;for(i=0;i<maxDoc;i++){$("first_doc_sc"+i).style.display="block";if($("first_doc_sc"+i).offsetHeight>a){a=$("first_doc_sc"+i).offsetHeight}$("first_doc_sc"+i).style.display="none"}for(i=0;i<maxDoc;i++){$("first_doc_sc"+i).style.height=a}}function SwitchDiv(CurrentSel,tabPrefix,isMost){var buttonObj=J("#"+tabPrefix+"_tab_button"+CurrentSel);var ContentObj=J("#"+tabPrefix+"_tab_content"+CurrentSel);if(isMost==1){buttonObj.addClass("mostbt"+CurrentSel+"_sel")}else{buttonObj.attr("class","tab_button_sel")}ContentObj.fadeIn(300);var tabCounter=eval(tabPrefix+"TabCounter");for(i=0;i<tabCounter;i++){if(i==CurrentSel){continue}var buttonObj=J("#"+tabPrefix+"_tab_button"+i);var ContentObj=J("#"+tabPrefix+"_tab_content"+i);if(!buttonObj||!ContentObj){continue}if(isMost==1){buttonObj.removeClass("mostbt"+i+"_sel")}else{buttonObj.attr("class","tab_button")}ContentObj.css("display","none")}}function TabequalHeight(b,a){tallest=0;childTallest=0;chcounter=0;b.each(function(){J(this).css("display","block");thisHeight=J(this).height();childHeight=J("#"+a+chcounter).height();J(this).css("display","none");if(thisHeight>tallest){tallest=thisHeight}if(childHeight>childTallest){childTallest=childHeight}chcounter++});b.height(tallest);if(tallest>childTallest){childTallest=tallest}for(i=0;i<chcounter;i++){J("#"+a+i).height(childTallest-10)}}function TabequalHeight2(a){tallest=0;a.each(function(){J(this).css("display","block");thisHeight=J(this).height();J(this).css("display","none");if(thisHeight>tallest){tallest=thisHeight}});a.height(tallest)}function showAtch(){var a=J("#attachments_div2");if(a.css("visibility")!="visible"){a.css("visibility","visible");J("#attachments_div2 object").css("visibility","visible")}}function hideAtch(){var a=J("#attachments_div2");if(a.css("visibility")!="hidden"){a.css("visibility","hidden");J("#attachments_div2 object").css("visibility","hidden")}};