var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}}
Object.extend=function(destination,source){for(property in source)destination[property]=source[property];return destination;}
Function.prototype.bind=function(object){var __method=this;return function(){return __method.apply(object,arguments);}}
Function.prototype.bindAsEventListener=function(object){var __method=this;return function(event){__method.call(object,event||window.event);}}
function $(){if(arguments.length==1)return get$(arguments[0]);var elements=[];$c(arguments).each(function(el){elements.push(get$(el));});return elements;function get$(el){if(typeof el=='string')el=document.getElementById(el);return el;}}
if(!window.Element)var Element=new Object();Object.extend(Element,{remove:function(element){element=$(element);element.parentNode.removeChild(element);},hasClassName:function(element,className){element=$(element);if(!element)return;var hasClass=false;element.className.split(' ').each(function(cn){if(cn==className)hasClass=true;});return hasClass;},addClassName:function(element,className){element=$(element);Element.removeClassName(element,className);element.className+=' '+className;},removeClassName:function(element,className){element=$(element);if(!element)return;var newClassName='';element.className.split(' ').each(function(cn,i){if(cn!=className){if(i>0)newClassName+=' ';newClassName+=cn;}});element.className=newClassName;},cleanWhitespace:function(element){element=$(element);$c(element.childNodes).each(function(node){if(node.nodeType==3&&!/\S/.test(node.nodeValue))Element.remove(node);});},find:function(element,what){element=$(element)[what];while(element.nodeType!=1)element=element[what];return element;}});var Position={cumulativeOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;}while(element);return[valueL,valueT];}};document.getElementsByClassName=function(className){var children=document.getElementsByTagName('*')||document.all;var elements=[];$c(children).each(function(child){if(Element.hasClassName(child,className))elements.push(child);});return elements;}
Array.prototype.iterate=function(func){for(var i=0;i<this.length;i++)func(this[i],i);}
if(!Array.prototype.each)Array.prototype.each=Array.prototype.iterate;function $c(array){var nArray=[];for(var i=0;i<array.length;i++)nArray.push(array[i]);return nArray;}
var fx=new Object();fx.Base=function(){};fx.Base.prototype={setOptions:function(options){this.options={duration:500,onComplete:'',transition:fx.sinoidal}
Object.extend(this.options,options||{});},step:function(){var time=(new Date).getTime();if(time>=this.options.duration+this.startTime){this.now=this.to;clearInterval(this.timer);this.timer=null;if(this.options.onComplete)setTimeout(this.options.onComplete.bind(this),10);}
else{var Tpos=(time-this.startTime)/(this.options.duration);this.now=this.options.transition(Tpos)*(this.to-this.from)+this.from;}
this.increase();},custom:function(from,to){if(this.timer!=null)return;this.from=from;this.to=to;this.startTime=(new Date).getTime();this.timer=setInterval(this.step.bind(this),13);},hide:function(){this.now=0;this.increase();},clearTimer:function(){clearInterval(this.timer);this.timer=null;}}
fx.Layout=Class.create();fx.Layout.prototype=Object.extend(new fx.Base(),{initialize:function(el,options){this.el=$(el);this.el.style.overflow="hidden";this.iniWidth=this.el.offsetWidth;this.iniHeight=this.el.offsetHeight;this.setOptions(options);}});fx.Height=Class.create();Object.extend(Object.extend(fx.Height.prototype,fx.Layout.prototype),{increase:function(){this.el.style.height=this.now+"px";},toggle:function(){if(this.el.offsetHeight>0)this.custom(this.el.offsetHeight,0);else this.custom(0,this.el.scrollHeight);}});fx.Width=Class.create();Object.extend(Object.extend(fx.Width.prototype,fx.Layout.prototype),{increase:function(){this.el.style.width=this.now+"px";},toggle:function(){if(this.el.offsetWidth>0)this.custom(this.el.offsetWidth,0);else this.custom(0,this.iniWidth);}});fx.Opacity=Class.create();fx.Opacity.prototype=Object.extend(new fx.Base(),{initialize:function(el,options){this.el=$(el);this.now=1;this.increase();this.setOptions(options);},increase:function(){if(this.now==1&&(/Firefox/.test(navigator.userAgent)))this.now=0.9999;this.setOpacity(this.now);},setOpacity:function(opacity){if(opacity==0&&this.el.style.visibility!="hidden")this.el.style.visibility="hidden";else if(this.el.style.visibility!="visible")this.el.style.visibility="visible";if(window.ActiveXObject)this.el.style.filter="alpha(opacity="+opacity*100+")";this.el.style.opacity=opacity;},toggle:function(){if(this.now>0)this.custom(1,0);else this.custom(0,1);}});fx.sinoidal=function(pos){return((-Math.cos(pos*Math.PI)/2)+0.5);}
fx.linear=function(pos){return pos;}
fx.cubic=function(pos){return Math.pow(pos,3);}
fx.circ=function(pos){return Math.sqrt(pos);}
fx.Scroll=Class.create();fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(options){this.setOptions(options);},scrollTo:function(el){var dest=Position.cumulativeOffset($(el))[1];var client=window.innerHeight||document.documentElement.clientHeight;var full=document.documentElement.scrollHeight;var top=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(dest+client>full)this.custom(top,dest-client+(full-dest));else this.custom(top,dest);},increase:function(){window.scrollTo(0,this.now);}});fx.Text=Class.create();fx.Text.prototype=Object.extend(new fx.Base(),{initialize:function(el,options){this.el=$(el);this.setOptions(options);if(!this.options.unit)this.options.unit="em";},increase:function(){this.el.style.fontSize=this.now+this.options.unit;}});fx.Combo=Class.create();fx.Combo.prototype={setOptions:function(options){this.options={opacity:true,height:true,width:false}
Object.extend(this.options,options||{});},initialize:function(el,options){this.el=$(el);this.setOptions(options);if(this.options.opacity){this.o=new fx.Opacity(el,options);options.onComplete=null;}
if(this.options.height){this.h=new fx.Height(el,options);options.onComplete=null;}
if(this.options.width)this.w=new fx.Width(el,options);},toggle:function(){this.checkExec('toggle');},hide:function(){this.checkExec('hide');},clearTimer:function(){this.checkExec('clearTimer');},checkExec:function(func){if(this.o)this.o[func]();if(this.h)this.h[func]();if(this.w)this.w[func]();},resizeTo:function(hto,wto){if(this.h&&this.w){this.h.custom(this.el.offsetHeight,this.el.offsetHeight+hto);this.w.custom(this.el.offsetWidth,this.el.offsetWidth+wto);}},customSize:function(hto,wto){if(this.h&&this.w){this.h.custom(this.el.offsetHeight,hto);this.w.custom(this.el.offsetWidth,wto);}}}
fx.Accordion=Class.create();fx.Accordion.prototype={setOptions:function(options){this.options={delay:100,opacity:false}
Object.extend(this.options,options||{});},initialize:function(togglers,elements,options){this.elements=elements;this.setOptions(options);var options=options||'';this.fxa=[];if(options&&options.onComplete)options.onFinish=options.onComplete;elements.each(function(el,i){options.onComplete=function(){if(el.offsetHeight>0)el.style.height='1%';if(options.onFinish)options.onFinish(el);}
this.fxa[i]=new fx.Combo(el,options);this.fxa[i].hide();}.bind(this));togglers.each(function(tog,i){if(typeof tog.onclick=='function')var exClick=tog.onclick;tog.onclick=function(){if(exClick)exClick();this.showThisHideOpen(elements[i]);}.bind(this);}.bind(this));},showThisHideOpen:function(toShow){this.elements.each(function(el,j){if(el.offsetHeight>0&&el!=toShow)this.clearAndToggle(el,j);if(el==toShow&&toShow.offsetHeight==0)setTimeout(function(){this.clearAndToggle(toShow,j);}.bind(this),this.options.delay);}.bind(this));},clearAndToggle:function(el,i){this.fxa[i].clearTimer();this.fxa[i].toggle();}}
var Remember=new Object();Remember=function(){};Remember.prototype={initialize:function(el,options){this.el=$(el);this.days=365;this.options=options;this.effect();var cookie=this.readCookie();if(cookie){this.fx.now=cookie;this.fx.increase();}},setCookie:function(value){var date=new Date();date.setTime(date.getTime()+(this.days*24*60*60*1000));var expires="; expires="+date.toGMTString();document.cookie=this.el+this.el.id+this.prefix+"="+value+expires+"; path=/";},readCookie:function(){var nameEQ=this.el+this.el.id+this.prefix+"=";var ca=document.cookie.split(';');for(var i=0;c=ca[i];i++){while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return false;},custom:function(from,to){if(this.fx.now!=to){this.setCookie(to);this.fx.custom(from,to);}}}
fx.RememberHeight=Class.create();fx.RememberHeight.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Height(this.el,this.options);this.prefix='height';},toggle:function(){if(this.el.offsetHeight==0)this.setCookie(this.el.scrollHeight);else this.setCookie(0);this.fx.toggle();},resize:function(to){this.setCookie(this.el.offsetHeight+to);this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+to);},hide:function(){if(!this.readCookie()){this.fx.hide();}}});fx.RememberText=Class.create();fx.RememberText.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Text(this.el,this.options);this.prefix='text';}});Array.prototype.iterate=function(func){for(var i=0;i<this.length;i++)func(this[i],i);}
if(!Array.prototype.each)Array.prototype.each=Array.prototype.iterate;fx.expoIn=function(pos){return Math.pow(2,10*(pos-1));}
fx.expoOut=function(pos){return(-Math.pow(2,-10*pos)+1);}
fx.quadIn=function(pos){return Math.pow(pos,2);}
fx.quadOut=function(pos){return-(pos)*(pos-2);}
fx.circOut=function(pos){return Math.sqrt(1-Math.pow(pos-1,2));}
fx.circIn=function(pos){return-(Math.sqrt(1-Math.pow(pos,2))-1);}
fx.backIn=function(pos){return(pos)*pos*((2.7)*pos-1.7);}
fx.backOut=function(pos){return((pos-1)*(pos-1)*((2.7)*(pos-1)+1.7)+1);}
fx.sineOut=function(pos){return Math.sin(pos*(Math.PI/2));}
fx.sineIn=function(pos){return-Math.cos(pos*(Math.PI/2))+1;}
fx.sineInOut=function(pos){return-(Math.cos(Math.PI*pos)-1)/2;}
function zoomText(Accion,Elemento){obj=document.getElementById(Elemento);if(obj.style.fontSize==""){obj.style.fontSize="100%";}
actual=parseInt(obj.style.fontSize);incremento=10;if(Accion=="reestablecer"){obj.style.fontSize="100%"}
if(Accion=="aumentar"){valor=actual+incremento;obj.style.fontSize=valor+"%"}
if(Accion=="disminuir"){valor=actual-incremento;obj.style.fontSize=valor+"%"}}
var niceforms=document.getElementsByTagName('form');var inputs=new Array();var labels=new Array();var radios=new Array();var radioLabels=new Array();var checkboxes=new Array();var checkboxLabels=new Array();var texts=new Array();var textareas=new Array();var selects=new Array();var selectText="please select";var agt=navigator.userAgent.toLowerCase();this.ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));var hovers=new Array();var buttons=new Array();var isMac=new RegExp('(^|)'+'Apple'+'(|$)');var selectRightSideWidth=21;var selectLeftSideWidth=8;var selectAreaHeight=21;var selectAreaOptionsOverlap=2;function init(){if(!document.getElementById){return false;}
preloadImages();getElements();separateElements();replaceRadios();replaceCheckboxes();replaceSelects();if(!isMac.test(navigator.vendor)){replaceTexts();replaceTextareas();buttonHovers();}}
function preloadImages(){preloads=new Object();preloads[0]=new Image();preloads[0].src=imagesPath+"button_left_xon.gif";preloads[1]=new Image();preloads[1].src=imagesPath+"button_right_xon.gif";preloads[2]=new Image();preloads[2].src=imagesPath+"input_left_xon.gif";preloads[3]=new Image();preloads[3].src=imagesPath+"input_right_xon.gif";preloads[4]=new Image();preloads[4].src=imagesPath+"txtarea_bl_xon.gif";preloads[5]=new Image();preloads[5].src=imagesPath+"txtarea_br_xon.gif";preloads[6]=new Image();preloads[6].src=imagesPath+"txtarea_cntr_xon.gif";preloads[7]=new Image();preloads[7].src=imagesPath+"txtarea_l_xon.gif";preloads[8]=new Image();preloads[8].src=imagesPath+"txtarea_tl_xon.gif";preloads[9]=new Image();preloads[9].src=imagesPath+"txtarea_tr_xon.gif";}
function getElements(){var re=new RegExp('(^| )'+'niceform'+'( |$)');for(var nf=0;nf<document.getElementsByTagName('form').length;nf++){if(re.test(niceforms[nf].className)){for(var nfi=0;nfi<document.forms[nf].getElementsByTagName('input').length;nfi++){inputs.push(document.forms[nf].getElementsByTagName('input')[nfi]);}
for(var nfl=0;nfl<document.forms[nf].getElementsByTagName('label').length;nfl++){labels.push(document.forms[nf].getElementsByTagName('label')[nfl]);}
for(var nft=0;nft<document.forms[nf].getElementsByTagName('textarea').length;nft++){textareas.push(document.forms[nf].getElementsByTagName('textarea')[nft]);}
for(var nfs=0;nfs<document.forms[nf].getElementsByTagName('select').length;nfs++){selects.push(document.forms[nf].getElementsByTagName('select')[nfs]);}}}}
function separateElements(){var r=0;var c=0;var t=0;var rl=0;var cl=0;var tl=0;var b=0;for(var q=0;q<inputs.length;q++){if(inputs[q].type=='radio'){radios[r]=inputs[q];++r;for(var w=0;w<labels.length;w++){if(labels[w].htmlFor==inputs[q].id){if(inputs[q].checked){labels[w].className="chosen";}radioLabels[rl]=labels[w];++rl;}}}
if(inputs[q].type=='checkbox'){checkboxes[c]=inputs[q];++c;for(var w=0;w<labels.length;w++){if(labels[w].htmlFor==inputs[q].id){if(inputs[q].checked){labels[w].className="chosen";}checkboxLabels[cl]=labels[w];++cl;}}}
if((inputs[q].type=="text")||(inputs[q].type=="password")){texts[t]=inputs[q];++t;}
if((inputs[q].type=="submit")||(inputs[q].type=="button")){buttons[b]=inputs[q];++b;}}}
function replaceRadios(){for(var q=0;q<radios.length;q++){radios[q].className="outtaHere";var radioArea=document.createElement('div');if(radios[q].checked){radioArea.className="radioAreaChecked";}else{radioArea.className="radioArea";}
radioArea.style.left=findPosX(radios[q])+'px';radioArea.style.top=findPosY(radios[q])+'px';radioArea.style.margin="1px";radioArea.id="myRadio"+q;radios[q].parentNode.insertBefore(radioArea,radios[q]);radioArea.onclick=new Function('rechangeRadios('+q+')');radioLabels[q].onclick=new Function('rechangeRadios('+q+')');if(!this.ie){radios[q].onfocus=new Function('focusRadios('+q+')');radios[q].onblur=new Function('blurRadios('+q+')');}
radios[q].onclick=radioEvent;}
return true;}
function focusRadios(who){var what=document.getElementById('myRadio'+who);what.style.border="1px dotted #333";what.style.margin="0";return false;}
function blurRadios(who){var what=document.getElementById('myRadio'+who);what.style.border="0";what.style.margin="1px";return false;}
function checkRadios(who){var what=document.getElementById('myRadio'+who);others=document.getElementsByTagName('div');for(var q=0;q<others.length;q++){if((others[q].className=="radioAreaChecked")&&(others[q].nextSibling.name==radios[who].name)){others[q].className="radioArea";}}
what.className="radioAreaChecked";}
function changeRadios(who){if(radios[who].checked){for(var q=0;q<radios.length;q++){if(radios[q].name==radios[who].name){radios[q].checked=false;radioLabels[q].className="";}}
radios[who].checked=true;radioLabels[who].className="chosen";checkRadios(who);}}
function rechangeRadios(who){if(!radios[who].checked){for(var q=0;q<radios.length;q++){if(radios[q].name==radios[who].name){radios[q].checked=false;radioLabels[q].className="";}}
radios[who].checked=true;radioLabels[who].className="chosen";checkRadios(who);}}
function radioEvent(e){if(!e)var e=window.event;if(e.type=="click"){for(var q=0;q<radios.length;q++){if(this==radios[q]){changeRadios(q);break;}}}}
function replaceCheckboxes(){for(var q=0;q<checkboxes.length;q++){checkboxes[q].className="outtaHere";var checkboxArea=document.createElement('div');if(checkboxes[q].checked){checkboxArea.className="checkboxAreaChecked";}else{checkboxArea.className="checkboxArea";}
checkboxArea.style.left=findPosX(checkboxes[q])+'px';checkboxArea.style.top=findPosY(checkboxes[q])+'px';checkboxArea.style.margin="1px";checkboxArea.id="myCheckbox"+q;checkboxes[q].parentNode.insertBefore(checkboxArea,checkboxes[q]);checkboxArea.onclick=new Function('rechangeCheckboxes('+q+')');if(!isMac.test(navigator.vendor)){checkboxLabels[q].onclick=new Function('changeCheckboxes('+q+')');}
else{checkboxLabels[q].onclick=new Function('rechangeCheckboxes('+q+')');}
if(!this.ie){checkboxes[q].onfocus=new Function('focusCheckboxes('+q+')');checkboxes[q].onblur=new Function('blurCheckboxes('+q+')');}
checkboxes[q].onkeydown=checkEvent;}
return true;}
function focusCheckboxes(who){var what=document.getElementById('myCheckbox'+who);what.style.border="1px dotted #333";what.style.margin="0";return false;}
function blurCheckboxes(who){var what=document.getElementById('myCheckbox'+who);what.style.border="0";what.style.margin="1px";return false;}
function checkCheckboxes(who,action){var what=document.getElementById('myCheckbox'+who);if(action==true){what.className="checkboxAreaChecked";}
if(action==false){what.className="checkboxArea";}}
function changeCheckboxes(who){if(checkboxLabels[who].className=="chosen"){checkboxes[who].checked=true;checkboxLabels[who].className="";checkCheckboxes(who,false);}
else if(checkboxLabels[who].className==""){checkboxes[who].checked=false;checkboxLabels[who].className="chosen";checkCheckboxes(who,true);}}
function rechangeCheckboxes(who){var tester=false;if(checkboxLabels[who].className=="chosen"){tester=false;checkboxLabels[who].className="";}
else if(checkboxLabels[who].className==""){tester=true;checkboxLabels[who].className="chosen";}
checkboxes[who].checked=tester;checkCheckboxes(who,tester);}
function checkEvent(e){if(!e)var e=window.event;if(e.keyCode==32){for(var q=0;q<checkboxes.length;q++){if(this==checkboxes[q]){changeCheckboxes(q);}}}}
function replaceSelects(){for(var q=0;q<selects.length;q++){var selectArea=document.createElement('div');var left=document.createElement('div');var right=document.createElement('div');var center=document.createElement('div');var button=document.createElement('a');var text=document.createTextNode(selectText);center.id="mySelectText"+q;var selectWidth=parseInt(selects[q].className.replace(/width_/g,""));center.style.width=selectWidth-10+'px';selectArea.style.width=selectWidth+selectRightSideWidth+selectLeftSideWidth+'px';button.style.width=selectWidth+selectRightSideWidth+selectLeftSideWidth+'px';button.style.marginLeft=-selectWidth-selectLeftSideWidth+'px';button.href="javascript:showOptions("+q+")";button.onkeydown=selectEvent;button.className="selectButton";selectArea.className="selectArea";selectArea.id="sarea"+q;left.className="left";right.className="right";center.className="center";right.appendChild(button);center.appendChild(text);selectArea.appendChild(left);selectArea.appendChild(right);selectArea.appendChild(center);selects[q].style.display='none';selects[q].parentNode.insertBefore(selectArea,selects[q]);var optionsDiv=document.createElement('div');optionsDiv.style.width=selectWidth+1+'px';optionsDiv.className="optionsDivInvisible";optionsDiv.id="optionsDiv"+q;optionsDiv.style.left=findPosX(selectArea)+'px';optionsDiv.style.top=findPosY(selectArea)+selectAreaHeight-selectAreaOptionsOverlap+'px';for(var w=0;w<selects[q].options.length;w++){var optionHolder=document.createElement('p');var optionLink=document.createElement('a');var optionTxt=document.createTextNode(selects[q].options[w].text);optionLink.href="javascript:showOptions("+q+"); selectMe('"+selects[q].id+"',"+w+","+q+");";optionLink.appendChild(optionTxt);optionHolder.appendChild(optionLink);optionsDiv.appendChild(optionHolder);if(selects[q].options[w].selected){selectMe(selects[q].id,w,q);}}
document.getElementsByTagName("body")[0].appendChild(optionsDiv);}}
function showOptions(g){elem=document.getElementById("optionsDiv"+g);if(elem.className=="optionsDivInvisible"){elem.className="optionsDivVisible";}
else if(elem.className=="optionsDivVisible"){elem.className="optionsDivInvisible";}
elem.onmouseout=hideOptions;}
function hideOptions(e){if(!e)var e=window.event;var reltg=(e.relatedTarget)?e.relatedTarget:e.toElement;if(((reltg.nodeName!='A')&&(reltg.nodeName!='DIV'))||((reltg.nodeName=='A')&&(reltg.className=="selectButton")&&(reltg.nodeName!='DIV'))){this.className="optionsDivInvisible";};e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();}
function selectMe(selectFieldId,linkNo,selectNo){selectField=document.getElementById(selectFieldId);for(var k=0;k<selectField.options.length;k++){if(k==linkNo){selectField.options[k].selected="selected";}
else{selectField.options[k].selected="";}}
textVar=document.getElementById("mySelectText"+selectNo);var newText=document.createTextNode(selectField.options[linkNo].text);textVar.replaceChild(newText,textVar.childNodes[0]);}
function selectEvent(e){if(!e)var e=window.event;var thecode=e.keyCode;switch(thecode){case 40:var fieldId=this.parentNode.parentNode.id.replace(/sarea/g,"");var linkNo=0;for(var q=0;q<selects[fieldId].options.length;q++){if(selects[fieldId].options[q].selected){linkNo=q;}}
++linkNo;if(linkNo>=selects[fieldId].options.length){linkNo=0;}
selectMe(selects[fieldId].id,linkNo,fieldId);break;case 38:var fieldId=this.parentNode.parentNode.id.replace(/sarea/g,"");var linkNo=0;for(var q=0;q<selects[fieldId].options.length;q++){if(selects[fieldId].options[q].selected){linkNo=q;}}
--linkNo;if(linkNo<0){linkNo=selects[fieldId].options.length-1;}
selectMe(selects[fieldId].id,linkNo,fieldId);break;default:break;}}
function replaceTexts(){for(var q=0;q<texts.length;q++){texts[q].style.width=texts[q].size*10+'px';txtLeft=document.createElement('img');txtLeft.src=imagesPath+"input_left.gif";txtLeft.className="inputCorner";txtRight=document.createElement('img');txtRight.src=imagesPath+"input_right.gif";txtRight.className="inputCorner";texts[q].parentNode.insertBefore(txtLeft,texts[q]);texts[q].parentNode.insertBefore(txtRight,texts[q].nextSibling);texts[q].className="textinput";texts[q].onfocus=function(){this.className="textinputHovered";this.previousSibling.src=imagesPath+"input_left_xon.gif";this.nextSibling.src=imagesPath+"input_right_xon.gif";}
texts[q].onblur=function(){this.className="textinput";this.previousSibling.src=imagesPath+"input_left.gif";this.nextSibling.src=imagesPath+"input_right.gif";}}}
function replaceTextareas(){for(var q=0;q<textareas.length;q++){var where=textareas[q].parentNode;var where2=textareas[q].previousSibling;textareas[q].style.width=textareas[q].cols*10+'px';textareas[q].style.height=textareas[q].rows*10+'px';var container=document.createElement('div');container.className="txtarea";container.style.width=textareas[q].cols*10+20+'px';container.style.height=textareas[q].rows*10+20+'px';var topRight=document.createElement('div');topRight.className="tr";var topLeft=document.createElement('img');topLeft.className="txt_corner";topLeft.src=imagesPath+"txtarea_tl.gif";var centerRight=document.createElement('div');centerRight.className="cntr";var centerLeft=document.createElement('div');centerLeft.className="cntr_l";if(!this.ie){centerLeft.style.height=textareas[q].rows*10+10+'px';}
else{centerLeft.style.height=textareas[q].rows*10+12+'px';}
var bottomRight=document.createElement('div');bottomRight.className="br";var bottomLeft=document.createElement('img');bottomLeft.className="txt_corner";bottomLeft.src=imagesPath+"txtarea_bl.gif";container.appendChild(topRight);topRight.appendChild(topLeft);container.appendChild(centerRight);centerRight.appendChild(centerLeft);centerRight.appendChild(textareas[q]);container.appendChild(bottomRight);bottomRight.appendChild(bottomLeft);where.insertBefore(container,where2);textareas[q].onfocus=function(){this.previousSibling.className="cntr_l_xon";this.parentNode.className="cntr_xon";this.parentNode.previousSibling.className="tr_xon";this.parentNode.previousSibling.getElementsByTagName("img")[0].src=imagesPath+"txtarea_tl_xon.gif";this.parentNode.nextSibling.className="br_xon";this.parentNode.nextSibling.getElementsByTagName("img")[0].src=imagesPath+"txtarea_bl_xon.gif";}
textareas[q].onblur=function(){this.previousSibling.className="cntr_l";this.parentNode.className="cntr";this.parentNode.previousSibling.className="tr";this.parentNode.previousSibling.getElementsByTagName("img")[0].src=imagesPath+"txtarea_tl.gif";this.parentNode.nextSibling.className="br";this.parentNode.nextSibling.getElementsByTagName("img")[0].src=imagesPath+"txtarea_bl.gif";}}}
function buttonHovers(){for(var i=0;i<buttons.length;i++){buttons[i].className="buttonSubmit";var buttonLeft=document.createElement('img');buttonLeft.src=imagesPath+"button_left.gif";buttonLeft.className="buttonImg";buttons[i].parentNode.insertBefore(buttonLeft,buttons[i]);var buttonRight=document.createElement('img');buttonRight.src=imagesPath+"button_right.gif";buttonRight.className="buttonImg";if(buttons[i].nextSibling){buttons[i].parentNode.insertBefore(buttonRight,buttons[i].nextSibling);}
else{buttons[i].parentNode.appendChild(buttonRight);}
buttons[i].onmouseover=function(){this.className+="Hovered";this.previousSibling.src=imagesPath+"button_left_xon.gif";this.nextSibling.src=imagesPath+"button_right_xon.gif";}
buttons[i].onmouseout=function(){this.className=this.className.replace(/Hovered/g,"");this.previousSibling.src=imagesPath+"button_left.gif";this.nextSibling.src=imagesPath+"button_right.gif";}}}
function findPosY(obj){var posTop=0;while(obj.offsetParent){posTop+=obj.offsetTop;obj=obj.offsetParent;}
return posTop;}
function findPosX(obj){var posLeft=0;while(obj.offsetParent){posLeft+=obj.offsetLeft;obj=obj.offsetParent;}
return posLeft;}
window.onload=init;var hasFlash=function(){var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null)return window.hasFlash}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.charAt(b.indexOf(".")-1))>=a}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,a=this.length,b=arguments.length;while(i<b){this[a++]=arguments[i++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,e;if(!a)a=window;if(!b)b=[];for(var i=0;i<b.length;i++){c[i]="b["+i+"]"}e="a.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(e);a.__applyTemp__=null;return d}}function named(a){return new named.Arguments(a)}named.Arguments=function(a){this.oArgs=a};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(a,b){var c,d;var i=a.length;while(i--){d=a[i];if(d!=null&&d.constructor!=null&&d.constructor==named.Arguments){c=a[i].oArgs;break}}if(c==null)return;for(e in c)if(b[e]!=null)b[e](c[e]);return};var parseSelector=function(){var a=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function r(s,t){var u=s.split(/\s*\,\s*/);var v=[];for(var i=0;i<u.length;i++)v=v.concat(b(u[i],t));return v}function b(c,d,e){c=c.normalize().replace(" ","`");var f=c.match(a);var g,h,i,j,k,n;var l=[];if(f==null)f=[c,c];if(f[1]=="")f[1]="*";if(e==null)e="`";if(d==null)d=document;switch(f[2]){case"#":k=f[3].match(a);if(k==null)k=[null,f[3]];g=document.getElementById(k[1]);if(g==null||(f[1]!="*"&&!o(g,f[1])))return l;if(k.length==2){l.push(g);return l}return b(k[3],g,k[2]);case".":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;k=f[3].match(a);if(k!=null){if(g.className==null||g.className.match("(\\s|^)"+k[1]+"(\\s|$)")==null)continue;j=b(k[3],g,k[2]);l=l.concat(j)}else if(g.className!=null&&g.className.match("(\\s|^)"+f[3]+"(\\s|$)")!=null)l.push(g)}return l;case">":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;j=b(f[3],g,">");l=l.concat(j)}return l;case"`":h=m(d,f[1]);for(i=0,n=h.length;i<n;i++){g=h[i];j=b(f[3],g,"`");l=l.concat(j)}return l;default:if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;l.push(g)}return l}}function m(d,o){if(o=="*"&&d.all!=null)return d.all;return d.getElementsByTagName(o)}function o(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}return r}();var sIFR=function(){var a="http://www.w3.org/1999/xhtml";var b=false;var c=false;var d;var ah=[];var al=document;var ak=al.documentElement;var am=window;var au=al.addEventListener;var av=am.addEventListener;var f=function(){var g=navigator.userAgent.toLowerCase();var f={a:g.indexOf("applewebkit")>-1,b:g.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:g.indexOf("opera")>-1,e:al.contentType!=null&&al.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};f.l=f.a||f.c;f.m=!f.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(f.m&&g.match(/.*gecko\/(\d{8}).*/))f.j=new Number(g.match(/.*gecko\/(\d{8}).*/)[1]);f.n=g.indexOf("msie")>-1&&!f.d&&!f.l&&!f.m;f.o=f.n&&g.match(/.*mac.*/)!=null;if(f.d&&g.match(/.*opera(\s|\/)(\d+\.\d+)/))f.i=new Number(g.match(/.*opera(\s|\/)(\d+\.\d+)/)[2]);if(f.n||(f.d&&f.i<7.6))f.g=false;if(f.a&&g.match(/.*applewebkit\/(\d+).*/))f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1]);if(am.hasFlash&&(!f.n||f.o)){var aj=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;f.h=parseInt(aj.charAt(aj.indexOf(".")-1))}if(g.match(/.*(windows|mac).*/)==null||f.o||f.c||(f.d&&(g.match(/.*mac.*/)!=null||f.i<7.6))||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<312)||(f.m&&f.j<20020523))f.f=false;if(!f.o&&!f.m&&al.createElementNS)try{al.createElementNS(a,"i").innerHTML=""}catch(e){f.e=true}f.p=f.c||(f.a&&f.k<312);return f}();function at(){return{bIsWebKit:f.a,bIsSafari:f.b,bIsKonq:f.c,bIsOpera:f.d,bIsXML:f.e,bHasTransparencySupport:f.f,bUseDOM:f.g,nFlashVersion:f.h,nOperaVersion:f.i,nGeckoBuildDate:f.j,nWebKitVersion:f.k,bIsKHTML:f.l,bIsGecko:f.m,bIsIE:f.n,bIsIEMac:f.o,bUseInnerHTMLHack:f.p}}if(am.hasFlash==false||!al.getElementsByTagName||!al.getElementById||(f.e&&(f.p||f.n)))return{UA:at()};function af(e){if((!k.bAutoInit&&(am.event||e)!=null)||!l(e))return;b=true;for(var i=0,h=ah.length;i<h;i++)j.apply(null,ah[i]);ah=[]}var k=af;function l(e){if(c==false||k.bIsDisabled==true||((f.e&&f.m||f.l)&&e==null&&b==false)||(al.body==null||al.getElementsByTagName("body").length==0))return false;return true}function m(n){if(f.n)return n.replace(new RegExp("%\d{0}","g"),"%25");return n.replace(new RegExp("%(?!\d)","g"),"%25")}function as(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:","")==q.toLowerCase()}function o(p,q,r,s,t){var u="";var v=p.firstChild;var w,x,y,z;if(s==null)s=0;if(t==null)t="";while(v){if(v.nodeType==3){z=v.nodeValue.replace("<","&lt;");switch(r){case"lower":u+=z.toLowerCase();break;case"upper":u+=z.toUpperCase();break;default:u+=z}}else if(v.nodeType==1){if(as(v,"a")&&!v.getAttribute("href")==false){if(v.getAttribute("target"))t+="&sifr_url_"+s+"_target="+v.getAttribute("target");t+="&sifr_url_"+s+"="+m(v.getAttribute("href")).replace(/&/g,"%26");u+='<a href="asfunction:_root.launchURL,'+s+'">';s++}else if(as(v,"br"))u+="<br/>";if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(as(v,"a"))u+="</a>"}w=v;v=v.nextSibling;if(q!=null){x=w.parentNode.removeChild(w);q.appendChild(x)}}return{"u":u,"s":s,"t":t}}function A(B){if(al.createElementNS&&f.g)return al.createElementNS(a,B);return al.createElement(B)}function C(D,E,z){var p=A("param");p.setAttribute("name",E);p.setAttribute("value",z);D.appendChild(p)}function F(p,G){var H=p.className;if(H==null)H=G;else H=H.normalize()+(H==""?"":" ")+G;p.className=H}function aq(ar){var a=ak;if(k.bHideBrowserText==false)a=al.getElementsByTagName("body")[0];if((k.bHideBrowserText==false||ar)&&a)if(a.className==null||a.className.match(/\bsIFR\-hasFlash\b/)==null)F(a,"sIFR-hasFlash")}function j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l())return ah.push(arguments);aq();named.extract(arguments,{sSelector:function(ap){I=ap},sFlashSrc:function(ap){J=ap},sColor:function(ap){K=ap},sLinkColor:function(ap){L=ap},sHoverColor:function(ap){M=ap},sBgColor:function(ap){N=ap},nPaddingTop:function(ap){O=ap},nPaddingRight:function(ap){P=ap},nPaddingBottom:function(ap){Q=ap},nPaddingLeft:function(ap){R=ap},sFlashVars:function(ap){S=ap},sCase:function(ap){r=ap},sWmode:function(ap){T=ap}});var U=parseSelector(I);if(U.length==0)return false;if(S!=null)S="&"+S.normalize();else S="";if(K!=null)S+="&textcolor="+K;if(M!=null)S+="&hovercolor="+M;if(M!=null||L!=null)S+="&linkcolor="+(L||K);if(O==null)O=0;if(P==null)P=0;if(Q==null)Q=0;if(R==null)R=0;if(N==null)N="#FFFFFF";if(T=="transparent")if(!f.f)T="opaque";else N="transparent";if(T==null)T="";var p,V,W,X,Y,Z,aa,ab,ac;var ad=null;for(var i=0,h=U.length;i<h;i++){p=U[i];if(p.className!=null&&p.className.match(/\bsIFR\-replaced\b/)!=null)continue;V=p.offsetWidth-R-P;W=p.offsetHeight-O-Q;aa=A("span");aa.className="sIFR-alternate";ac=o(p,aa,r);Z="txt="+m(ac.u).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+S+"&w="+V+"&h="+W+ac.t;F(p,"sIFR-replaced");if(ad==null||!f.g){if(!f.g){if(!f.n)p.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',J,'" quality="best" wmode="',T,'" bgcolor="',N,'" flashvars="',Z,'" width="',V,'" height="',W,'" sifr="true"></embed>'].join("");else p.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',V,'" height="',W,'" class="sIFR-flash"><param name="movie" value="',J,"?",Z,'"></param><param name="quality" value="best"></param><param name="wmode" value="',T,'"></param><param name="bgcolor" value="',N,'"></param> </object>'].join('')}else{if(f.d){ab=A("object");ab.setAttribute("data",J);C(ab,"quality","best");C(ab,"wmode",T);C(ab,"bgcolor",N)}else{ab=A("embed");ab.setAttribute("src",J);ab.setAttribute("quality","best");ab.setAttribute("flashvars",Z);ab.setAttribute("wmode",T);ab.setAttribute("bgcolor",N)}ab.setAttribute("sifr","true");ab.setAttribute("type","application/x-shockwave-flash");ab.className="sIFR-flash";if(!f.l||!f.e)ad=ab.cloneNode(true)}}else ab=ad.cloneNode(true);if(f.g){if(f.d)C(ab,"flashvars",Z);else ab.setAttribute("flashvars",Z);ab.setAttribute("width",V);ab.setAttribute("height",W);ab.style.width=V+"px";ab.style.height=W+"px";p.appendChild(ab)}p.appendChild(aa);if(f.p)p.innerHTML+=""}if(f.n&&k.bFixFragIdBug)setTimeout(function(){al.title=d},0)}function ai(){d=al.title}function ae(){if(k.bIsDisabled==true)return;c=true;if(k.bHideBrowserText)aq(true);if(am.attachEvent)am.attachEvent("onload",af);else if(!f.c&&(al.addEventListener||am.addEventListener)){if(f.a&&f.k>=132&&am.addEventListener)am.addEventListener("load",function(){setTimeout("sIFR({})",1)},false);else{if(al.addEventListener)al.addEventListener("load",af,false);if(am.addEventListener)am.addEventListener("load",af,false)}}else if(typeof am.onload=="function"){var ag=am.onload;am.onload=function(){ag();af()}}else am.onload=af;if(!f.n||am.location.hash=="")k.bFixFragIdBug=false;else ai()}k.UA=at();k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.appendToClassName=F;k.setup=ae;k.debug=function(){aq(true)};k.debug.replaceNow=function(){ae();k()};k.bIsDisabled=false;k.bHideBrowserText=true;return k}();if(typeof sIFR=="function"&&!sIFR.UA.bIsIEMac){sIFR.setup();};