
function popUp(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=375,left = 50,top = 50');")}function MM_openBrWindow(C,A,B){window.open(C,A,B)}function TM_UpperCase(D,G){var C=D.value;var A="";var F=" ";var E=false;var H=G.split(",");C=C.replace(/(\s*)([^\s])/,"$2");C=C.toLowerCase();var B=C.split(F);A=B[0].slice(0,1).toUpperCase()+B[0].slice(1);for(i=1;i<B.length;i++){E=false;for(ii=0;ii<H.length;ii++){if(B[i]==H[ii]){E=true}}if(!E){B[i]=B[i].slice(0,1).toUpperCase()+B[i].slice(1)}A=A+F+B[i]}D.value=A}function openPictureWindow_Fever(G,E,C,B,F,A,D){newWindow=window.open("","newWindow","width="+C+",height="+B+",scrollbars=no,left="+A+",top="+D);newWindow.document.open();newWindow.document.write("<html><title>"+F+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');if(G=="swf"){newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+C+'" height="'+B+'">');newWindow.document.write('<param name=movie value="'+E+'"><param name=quality value=high>');newWindow.document.write('<embed src="'+E+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+C+'" height="'+B+'">');newWindow.document.write("</embed></object>")}else{newWindow.document.write('<img src="'+E+'" width='+C+" height="+B+' alt="'+F+'">')}newWindow.document.write("</body></html>");newWindow.document.close();newWindow.focus()}function openWin(E,B,D){var C="fullscreen=1,scrollbars=1";var A=open("","myDoc",C);A.document.writeln('<html><head><link rel="stylesheet" type="text/css" href="http://www.ez-sos.com/timbergear/styles/gallery.css"></head>');A.document.writeln('<body ><table width="80%" height="100%" border="0"><tr ><td></td><td valign="middle" width="500" height="100%">');A.document.writeln('<p align="center" ><span style="font-size: 14px; font-weight: 700; font-variant: small-caps; color: white; text-align: center; padding-bottom: 5px;">'+E+'</span><br /><br /><img src="'+B+'"><br /></p><p align="left"><span style="font-size: 12px;color: white;">'+D+"</span></p>");A.document.writeln('<p align="center"><a href="javascript:window.close();">Close This Window</a></p>');A.document.writeln("</td></tr></table></body></html>")}function longPopUp(G,B,N,E,J){var C=1;var M=0;var H=C;var F=C;var D=M;var L=M;var A=M;var I=M;var K=M;features="width="+B+",height="+N+",top="+J+",left="+E+"";features+=""+(H?",menubars":"")+(F?",scrollbars":"")+(D?",location":"")+(L?",directories":"")+(A?",resizable":"")+(I?",status":"")+(K?",toolbar":"");window.open(G,"Order_Form")}function AddToFaves_hp(){var D=parseInt(navigator.appVersion);var C=navigator.userAgent.toLowerCase().indexOf("mac")!=-1;var B=navigator.userAgent.toLowerCase().indexOf("msie")!=-1;var A=location.href;if(A.lastIndexOf("#")!=-1){A=A.substring(0,A.lastIndexOf("#"))}if(B&&D&&!C){window.external.AddFavorite(A,document.title)}else{if(B||document.images){booker_hp=window.open(A,"booker_","menubar,width=325,height=100,left=140,top=60")}}}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}var _CF_error_messages=new Array();var _CF_error_fields=new Object();var _CF_FirstErrorField=null;var _CF_submit_status=new Array();function _CF_signalLoad(){_CF_loaded=1}function _CF_onError(D,B,A,C){if(_CF_error_fields[B]==null){if(_CF_FirstErrorField==null){_CF_FirstErrorField=B}_CF_error_exists=true;_CF_error_fields[B]=C;_CF_error_messages[_CF_error_messages.length]=C}}function _CF_onErrorAlert(A){var C="";for(var B=0;B<A.length;B++){C+=A[B]+"\n"}alert(C);return false}function updateHiddenValue(C,B,A){if(B==null||B==""){B=0}if(document.forms[B]==null||document.forms[B][A]==null){return }document.forms[B][A].value=C}function _CF_hasValue(B,A,C){if(A=="TEXT"||A=="FILE"||A=="PASSWORD"||A=="CFTEXTAREA"||A=="TEXTAREA"||A=="CFTEXTINPUT"){if(B.value.length==0){return false}else{if(C){str=B.value.replace(/^\s+/,"").replace(/\s+$/,"");if(str.length==0){return false}}}return true}else{if(A=="SELECT"){for(i=0;i<B.length;i++){if(B.options[i].selected){return true}}return false}else{if(A=="SINGLE_VALUE_RADIO"||A=="SINGLE_VALUE_CHECKBOX"){if(B.checked){return true}else{return false}}else{if(A=="RADIO"||A=="CHECKBOX"){if(B.length==undefined&&B.checked){return true}else{for(i=0;i<B.length;i++){if(B[i].checked){return true}}}return false}else{if(A=="CFTREE"){if(B.value.length>0){return true}else{return false}}else{return true}}}}}}function _CF_checkdate(A,C){A=A.replace(/^\s+/,"").replace(/\s+$/,"");A=A=A.replace(/{d \'/,"").replace(/'}/,"");if(C){if(A.length==0){return false}}else{if(A.length==0){return true}}if(A.length==0){return true}isplit=A.indexOf("/");splitchr="/";if(isplit==-1){isplit=A.indexOf(".");splitchr="."}if(isplit==-1){isplit=A.indexOf("-");splitchr="-"}if(isplit==-1||isplit==A.length){return false}var B=A.substring(0,isplit);if(B.length==4){sYear=A.substring(0,isplit);isplit=A.indexOf(splitchr,isplit+1);if(isplit==-1||(isplit+1)==A.length){return false}sMonth=A.substring((sYear.length+1),isplit);sDay=A.substring(isplit+1)}else{sMonth=A.substring(0,isplit);isplit=A.indexOf(splitchr,isplit+1);if(isplit==-1||(isplit+1)==A.length){return false}sDay=A.substring((sMonth.length+1),isplit);sYear=A.substring(isplit+1)}if(!_CF_checkinteger(sMonth)){return false}else{if(!_CF_checkrange(sMonth,1,12)){return false}else{if(!_CF_checkinteger(sYear)){return false}else{if(sYear.length!=1&&sYear.length!=2&&sYear.length!=4){return false}else{if(!_CF_checkrange(sYear,0,9999)){return false}else{if(!_CF_checkinteger(sDay)){return false}else{if(!_CF_checkday(sYear,sMonth,sDay)){return false}else{return true}}}}}}}}function _CF_checkeurodate(A,C){A=A.replace(/^\s+/,"").replace(/\s+$/,"");A=A=A.replace(/{d \'/,"").replace(/'}/,"");if(C){if(A.length==0){return false}}else{if(A.length==0){return true}}isplit=A.indexOf("/");splitchr="/";if(isplit==-1){isplit=A.indexOf(".");splitchr="."}if(isplit==-1){isplit=A.indexOf("-");splitchr="-"}if(isplit==-1||isplit==A.length){return false}var B=A.substring(0,isplit);if(B.length==4){sYear=A.substring(0,isplit);isplit=A.indexOf(splitchr,isplit+1);if(isplit==-1||(isplit+1)==A.length){return false}sMonth=A.substring((sYear.length+1),isplit);sDay=A.substring(isplit+1)}else{sDay=A.substring(0,isplit);isplit=A.indexOf(splitchr,isplit+1);if(isplit==-1||(isplit+1)==A.length){return false}sMonth=A.substring((sDay.length+1),isplit);sYear=A.substring(isplit+1)}if(!_CF_checkinteger(sMonth)){return false}else{if(!_CF_checkrange(sMonth,1,12)){return false}else{if(!_CF_checkinteger(sYear)){return false}else{if(!_CF_checkrange(sYear,0,null)){return false}else{if(!_CF_checkinteger(sDay)){return false}else{if(!_CF_checkday(sYear,sMonth,sDay)){return false}else{return true}}}}}}}function _CF_checkday(A,B,C){maxDay=31;if(B==4||B==6||B==9||B==11){maxDay=30}else{if(B==2){if(A%4>0){maxDay=28}else{if(A%100==0&&A%400>0){maxDay=28}else{maxDay=29}}}}return _CF_checkrange(C,1,maxDay)}function _CF_checkinteger(A,D){A=A.replace(/^\s+/,"").replace(/\s+$/,"");A=A.replace(/[$гем,~+]?/g,"");if(D){if(A.length==0){return false}}else{if(A.length==0){return true}}var C=".";var B=A.indexOf(C);if(B==-1){return _CF_checknumber(A)}else{return false}}function _CF_numberrange(B,A,D,C){if(C){if(B.length==0){return false}}else{if(B.length==0){return true}}if(A!=null){if(B<A){return false}}if(D!=null){if(B>D){return false}}return true}function _CF_checknumber(I,E){var A=" .+-0123456789";var F=" .0123456789";var G;var D=false;var H=false;var B=false;I=I.replace(/^\s+/,"").replace(/\s+$/,"");I=I.replace(/[$гем,~+]?/g,"");if(E){if(I.length==0){return false}}else{if(I.length==0){return true}}G=A.indexOf(I.charAt(0));if(G==1){D=true}else{if(G<1){return false}}for(var C=1;C<I.length;C++){G=F.indexOf(I.charAt(C));if(G<0){return false}else{if(G==1){if(D){return false}else{D=true}}else{if(G==0){if(D||B){H=true}}else{if(H){return false}else{B=true}}}}}return true}function _CF_checkrange(object_value,min_value,max_value,required){object_value=object_value.replace(/^\s+/,"").replace(/\s+$/,"");if(required){if(object_value.length==0){return false}}else{if(object_value.length==0){return true}}if(!_CF_checknumber(object_value)){return false}else{return(_CF_numberrange((eval(object_value)),min_value,max_value))}return true}function _CF_checktime(B,C){B=B.replace(/^\s+/,"").replace(/\s+$/,"");B=B=B.replace(/{t \'/,"").replace(/'}/,"");if(C){if(B.length==0){return false}}else{if(B.length==0){return true}}var A=_CF_checkregex(B,/^(([0-1]?[0-9]|[2][1-4]):([0-5]?[0-9])(:[0-5]?[0-9])?).?([AP]M|[AP]m|[ap]m|[ap]M)?$/,C);return A}function _CF_checkphone(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}if(A.length==0){return true}return _CF_checkregex(A,/^(((1))?[ ,\-,\.]?([\\(]?([1-9][0-9]{2})[\\)]?))?[ ,\-,\.]?([^0-1]){1}([0-9]){2}[ ,\-,\.]?([0-9]){4}(( )((x){0,1}([0-9]){1,5}){0,1})?$/,B)}function _CF_checkzip(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}return _CF_checkregex(A,/^([0-9]){5,5}$|(([0-9]){5,5}(-| ){1}([0-9]){4,4}$)/,B)}function _CF_checkcreditcard(object_value,required){object_value=object_value.replace(/^\s+/,"").replace(/\s+$/,"");if(required){if(object_value.length==0){return false}}else{if(object_value.length==0){return true}}if(object_value.length==0){return true}var white_space=" -";var creditcard_string="";var check_char;for(var i=0;i<object_value.length;i++){check_char=white_space.indexOf(object_value.charAt(i));if(check_char<0){creditcard_string+=object_value.substring(i,(i+1))}}if(creditcard_string.length<13||creditcard_string.length>19){return false}if(creditcard_string.charAt(0)=="+"){return false}if(!_CF_checkinteger(creditcard_string)){return false}var doubledigit=creditcard_string.length%2==1?false:true;var checkdigit=0;var tempdigit;for(var i=0;i<creditcard_string.length;i++){tempdigit=eval(creditcard_string.charAt(i));if(doubledigit){tempdigit*=2;checkdigit+=(tempdigit%10);if((tempdigit/10)>=1){checkdigit++}doubledigit=false}else{checkdigit+=tempdigit;doubledigit=true}}return(checkdigit%10)==0?true:false}function _CF_checkssn(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}return _CF_checkregex(A,/^[0-9]{3}(-| )[0-9]{2}(-| )[0-9]{4}$/,B)}function _CF_checkEmail(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}return _CF_checkregex(A,/^[a-zA-Z_0-9-]+(\.[a-zA-Z_0-9-]+)*@([a-zA-Z_0-9-]+\.)+[a-zA-Z]{2,7}$/,B)}function _CF_checkURL(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}return _CF_checkregex(A.toLowerCase(),/^((http|https|ftp|file)\:\/\/([a-zA-Z0-0]*:[a-zA-Z0-0]*(@))?[a-zA-Z0-9-\.]+(\.[a-zA-Z]{2,3})?(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9-\._\?\,\'\/\+&amp;%\$#\=~])*)|((mailto)\:[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,7})|((news)\:[a-zA-Z0-9\.]*)$/,B)}function _CF_checkUUID(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}return _CF_checkregex(A,/[A-Fa-f0-9]{8,8}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{16,16}/,B)}function _CF_checkGUID(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}return _CF_checkregex(A,/[A-Fa-f0-9]{8,8}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{4,4}-[A-Fa-f0-9]{12,12}/,B)}function _CF_checkBoolean(A,B){A=A.replace(/^\s+/,"").replace(/\s+$/,"");if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}if(A.toUpperCase()=="TRUE"||A.toUpperCase()=="YES"||(_CF_checknumber(A)&&A!="0")){return true}else{if(A.toUpperCase()=="FALSE"||A.toUpperCase()=="NO"||A=="0"){return true}else{return false}}}function _CF_setFormParam(strFormName,strParamName,strParamValue){var strObjName="document['"+strFormName+"']['"+strParamName+"']";var obj=eval(strObjName);if(obj==undefined){return false}else{obj.value=strParamValue;return true}}function _CF_checkregex(A,C,B){if(B){if(A.length==0){return false}}else{if(A.length==0){return true}}return C.test(A)}String.prototype.parseColor=function(){var A="#";if(this.slice(0,4)=="rgb("){var C=this.slice(4,this.length-1).split(",");var B=0;do{A+=parseInt(C[B]).toColorPart()}while(++B<3)}else{if(this.slice(0,1)=="#"){if(this.length==4){for(var B=1;B<4;B++){A+=(this.charAt(B)+this.charAt(B)).toLowerCase()}}if(this.length==7){A=this.toLowerCase()}}}return(A.length==7?A:(arguments[0]||this))};Element.collectTextNodes=function(A){return $A($(A).childNodes).collect(function(B){return(B.nodeType==3?B.nodeValue:(B.hasChildNodes()?Element.collectTextNodes(B):""))}).flatten().join("")};Element.collectTextNodesIgnoreClass=function(A,B){return $A($(A).childNodes).collect(function(C){return(C.nodeType==3?C.nodeValue:((C.hasChildNodes()&&!Element.hasClassName(C,B))?Element.collectTextNodesIgnoreClass(C,B):""))}).flatten().join("")};Element.setContentZoom=function(A,B){A=$(A);A.setStyle({fontSize:(B/100)+"em"});if(Prototype.Browser.WebKit){window.scrollBy(0,0)}return A};Element.getInlineOpacity=function(A){return $(A).style.opacity||""};Element.forceRerendering=function(A){try{A=$(A);var C=document.createTextNode(" ");A.appendChild(C);A.removeChild(C)}catch(B){}};Array.prototype.call=function(){var A=arguments;this.each(function(B){B.apply(this,A)})};var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},tagifyText:function(A){if(typeof Builder=="undefined"){throw ("Effect.tagifyText requires including script.aculo.us' builder.js library")}var B="position:relative";if(Prototype.Browser.IE){B+=";zoom:1"}A=$(A);$A(A.childNodes).each(function(C){if(C.nodeType==3){C.nodeValue.toArray().each(function(D){A.insertBefore(Builder.node("span",{style:B},D==" "?String.fromCharCode(160):D),C)});Element.remove(C)}})},multiple:function(B,C){var E;if(((typeof B=="object")||(typeof B=="function"))&&(B.length)){E=B}else{E=$(B).childNodes}var A=Object.extend({speed:0.1,delay:0},arguments[2]||{});var D=A.delay;$A(E).each(function(G,F){new C(G,Object.extend(A,{delay:F*A.speed+D}))})},PAIRS:{slide:["SlideDown","SlideUp"],blind:["BlindDown","BlindUp"],appear:["Appear","Fade"]},toggle:function(B,C){B=$(B);C=(C||"appear").toLowerCase();var A=Object.extend({queue:{position:"end",scope:(B.id||"global"),limit:1}},arguments[2]||{});Effect[B.visible()?Effect.PAIRS[C][1]:Effect.PAIRS[C][0]](B,A)}};var Effect2=Effect;Effect.Transitions={linear:Prototype.K,sinoidal:function(A){return(-Math.cos(A*Math.PI)/2)+0.5},reverse:function(A){return 1-A},flicker:function(A){var A=((-Math.cos(A*Math.PI)/4)+0.75)+Math.random()/4;return(A>1?1:A)},wobble:function(A){return(-Math.cos(A*Math.PI*(9*A))/2)+0.5},pulse:function(B,A){A=A||5;return(Math.round((B%(1/A))*A)==0?((B*A*2)-Math.floor(B*A*2)):1-((B*A*2)-Math.floor(B*A*2)))},none:function(A){return 0},full:function(A){return 1}};Effect.ScopedQueue=Class.create();Object.extend(Object.extend(Effect.ScopedQueue.prototype,Enumerable),{initialize:function(){this.effects=[];this.interval=null},_each:function(A){this.effects._each(A)},add:function(B){var C=new Date().getTime();var A=(typeof B.options.queue=="string")?B.options.queue:B.options.queue.position;switch(A){case"front":this.effects.findAll(function(D){return D.state=="idle"}).each(function(D){D.startOn+=B.finishOn;D.finishOn+=B.finishOn});break;case"with-last":C=this.effects.pluck("startOn").max()||C;break;case"end":C=this.effects.pluck("finishOn").max()||C;break}B.startOn+=C;B.finishOn+=C;if(!B.options.queue.limit||(this.effects.length<B.options.queue.limit)){this.effects.push(B)}if(!this.interval){this.interval=setInterval(this.loop.bind(this),15)}},remove:function(A){this.effects=this.effects.reject(function(B){return B==A});if(this.effects.length==0){clearInterval(this.interval);this.interval=null}},loop:function(){var C=new Date().getTime();for(var B=0,A=this.effects.length;B<A;B++){this.effects[B]&&this.effects[B].loop(C)}}});Effect.Queues={instances:$H(),get:function(A){if(typeof A!="string"){return A}if(!this.instances[A]){this.instances[A]=new Effect.ScopedQueue()}return this.instances[A]}};Effect.Queue=Effect.Queues.get("global");Effect.DefaultOptions={transition:Effect.Transitions.sinoidal,duration:1,fps:100,sync:false,from:0,to:1,delay:0,queue:"parallel"};Effect.Base=function(){};Effect.Base.prototype={position:null,start:function(options){function codeForEvent(options,eventName){return((options[eventName+"Internal"]?"this.options."+eventName+"Internal(this);":"")+(options[eventName]?"this.options."+eventName+"(this);":""))}if(options.transition===false){options.transition=Effect.Transitions.linear}this.options=Object.extend(Object.extend({},Effect.DefaultOptions),options||{});this.currentFrame=0;this.state="idle";this.startOn=this.options.delay*1000;this.finishOn=this.startOn+(this.options.duration*1000);this.fromToDelta=this.options.to-this.options.from;this.totalTime=this.finishOn-this.startOn;this.totalFrames=this.options.fps*this.options.duration;eval('this.render = function(pos){ if(this.state=="idle"){this.state="running";'+codeForEvent(options,"beforeSetup")+(this.setup?"this.setup();":"")+codeForEvent(options,"afterSetup")+'};if(this.state=="running"){pos=this.options.transition(pos)*'+this.fromToDelta+"+"+this.options.from+";this.position=pos;"+codeForEvent(options,"beforeUpdate")+(this.update?"this.update(pos);":"")+codeForEvent(options,"afterUpdate")+"}}");this.event("beforeStart");if(!this.options.sync){Effect.Queues.get(typeof this.options.queue=="string"?"global":this.options.queue.scope).add(this)}},loop:function(C){if(C>=this.startOn){if(C>=this.finishOn){this.render(1);this.cancel();this.event("beforeFinish");if(this.finish){this.finish()}this.event("afterFinish");return }var B=(C-this.startOn)/this.totalTime,A=Math.round(B*this.totalFrames);if(A>this.currentFrame){this.render(B);this.currentFrame=A}}},cancel:function(){if(!this.options.sync){Effect.Queues.get(typeof this.options.queue=="string"?"global":this.options.queue.scope).remove(this)}this.state="finished"},event:function(A){if(this.options[A+"Internal"]){this.options[A+"Internal"](this)}if(this.options[A]){this.options[A](this)}},inspect:function(){var A=$H();for(property in this){if(typeof this[property]!="function"){A[property]=this[property]}}return"#<Effect:"+A.inspect()+",options:"+$H(this.options).inspect()+">"}};Effect.Parallel=Class.create();Object.extend(Object.extend(Effect.Parallel.prototype,Effect.Base.prototype),{initialize:function(A){this.effects=A||[];this.start(arguments[1])},update:function(A){this.effects.invoke("render",A)},finish:function(A){this.effects.each(function(B){B.render(1);B.cancel();B.event("beforeFinish");if(B.finish){B.finish(A)}B.event("afterFinish")})}});Effect.Event=Class.create();Object.extend(Object.extend(Effect.Event.prototype,Effect.Base.prototype),{initialize:function(){var A=Object.extend({duration:0},arguments[0]||{});this.start(A)},update:Prototype.emptyFunction});Effect.Opacity=Class.create();Object.extend(Object.extend(Effect.Opacity.prototype,Effect.Base.prototype),{initialize:function(B){this.element=$(B);if(!this.element){throw (Effect._elementDoesNotExistError)}if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}var A=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});this.start(A)},update:function(A){this.element.setOpacity(A)}});Effect.Move=Class.create();Object.extend(Object.extend(Effect.Move.prototype,Effect.Base.prototype),{initialize:function(B){this.element=$(B);if(!this.element){throw (Effect._elementDoesNotExistError)}var A=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});this.start(A)},setup:function(){this.element.makePositioned();this.originalLeft=parseFloat(this.element.getStyle("left")||"0");this.originalTop=parseFloat(this.element.getStyle("top")||"0");if(this.options.mode=="absolute"){this.options.x=this.options.x-this.originalLeft;this.options.y=this.options.y-this.originalTop}},update:function(A){this.element.setStyle({left:Math.round(this.options.x*A+this.originalLeft)+"px",top:Math.round(this.options.y*A+this.originalTop)+"px"})}});Effect.MoveBy=function(B,A,C){return new Effect.Move(B,Object.extend({x:C,y:A},arguments[3]||{}))};Effect.Scale=Class.create();Object.extend(Object.extend(Effect.Scale.prototype,Effect.Base.prototype),{initialize:function(B,C){this.element=$(B);if(!this.element){throw (Effect._elementDoesNotExistError)}var A=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:C},arguments[2]||{});this.start(A)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=this.element.getStyle("position");this.originalStyle={};["top","left","width","height","fontSize"].each(function(B){this.originalStyle[B]=this.element.style[B]}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var A=this.element.getStyle("font-size")||"100%";["em","px","%","pt"].each(function(B){if(A.indexOf(B)>0){this.fontSize=parseFloat(A);this.fontSizeType=B}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=="box"){this.dims=[this.element.offsetHeight,this.element.offsetWidth]}if(/^content/.test(this.options.scaleMode)){this.dims=[this.element.scrollHeight,this.element.scrollWidth]}if(!this.dims){this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]}},update:function(A){var B=(this.options.scaleFrom/100)+(this.factor*A);if(this.options.scaleContent&&this.fontSize){this.element.setStyle({fontSize:this.fontSize*B+this.fontSizeType})}this.setDimensions(this.dims[0]*B,this.dims[1]*B)},finish:function(A){if(this.restoreAfterFinish){this.element.setStyle(this.originalStyle)}},setDimensions:function(A,D){var E={};if(this.options.scaleX){E.width=Math.round(D)+"px"}if(this.options.scaleY){E.height=Math.round(A)+"px"}if(this.options.scaleFromCenter){var C=(A-this.dims[0])/2;var B=(D-this.dims[1])/2;if(this.elementPositioning=="absolute"){if(this.options.scaleY){E.top=this.originalTop-C+"px"}if(this.options.scaleX){E.left=this.originalLeft-B+"px"}}else{if(this.options.scaleY){E.top=-C+"px"}if(this.options.scaleX){E.left=-B+"px"}}}this.element.setStyle(E)}});Effect.Highlight=Class.create();Object.extend(Object.extend(Effect.Highlight.prototype,Effect.Base.prototype),{initialize:function(B){this.element=$(B);if(!this.element){throw (Effect._elementDoesNotExistError)}var A=Object.extend({startcolor:"#ffff99"},arguments[1]||{});this.start(A)},setup:function(){if(this.element.getStyle("display")=="none"){this.cancel();return }this.oldStyle={};if(!this.options.keepBackgroundImage){this.oldStyle.backgroundImage=this.element.getStyle("background-image");this.element.setStyle({backgroundImage:"none"})}if(!this.options.endcolor){this.options.endcolor=this.element.getStyle("background-color").parseColor("#ffffff")}if(!this.options.restorecolor){this.options.restorecolor=this.element.getStyle("background-color")}this._base=$R(0,2).map(function(A){return parseInt(this.options.startcolor.slice(A*2+1,A*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(A){return parseInt(this.options.endcolor.slice(A*2+1,A*2+3),16)-this._base[A]}.bind(this))},update:function(A){this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(B,C,D){return B+(Math.round(this._base[D]+(this._delta[D]*A)).toColorPart())}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}});Effect.ScrollTo=Class.create();Object.extend(Object.extend(Effect.ScrollTo.prototype,Effect.Base.prototype),{initialize:function(A){this.element=$(A);this.start(arguments[1]||{})},setup:function(){Position.prepare();var B=Position.cumulativeOffset(this.element);if(this.options.offset){B[1]+=this.options.offset}var A=window.innerHeight?window.height-window.innerHeight:document.body.scrollHeight-(document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight);this.scrollStart=Position.deltaY;this.delta=(B[1]>A?A:B[1])-this.scrollStart},update:function(A){Position.prepare();window.scrollTo(Position.deltaX,this.scrollStart+(A*this.delta))}});Effect.Fade=function(C){C=$(C);var A=C.getInlineOpacity();var B=Object.extend({from:C.getOpacity()||1,to:0,afterFinishInternal:function(D){if(D.options.to!=0){return }D.element.hide().setStyle({opacity:A})}},arguments[1]||{});return new Effect.Opacity(C,B)};Effect.Appear=function(B){B=$(B);var A=Object.extend({from:(B.getStyle("display")=="none"?0:B.getOpacity()||0),to:1,afterFinishInternal:function(C){C.element.forceRerendering()},beforeSetup:function(C){C.element.setOpacity(C.options.from).show()}},arguments[1]||{});return new Effect.Opacity(B,A)};Effect.Puff=function(B){B=$(B);var A={opacity:B.getInlineOpacity(),position:B.getStyle("position"),top:B.style.top,left:B.style.left,width:B.style.width,height:B.style.height};return new Effect.Parallel([new Effect.Scale(B,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(B,{sync:true,to:0})],Object.extend({duration:1,beforeSetupInternal:function(C){Position.absolutize(C.effects[0].element)},afterFinishInternal:function(C){C.effects[0].element.hide().setStyle(A)}},arguments[1]||{}))};Effect.BlindUp=function(A){A=$(A);A.makeClipping();return new Effect.Scale(A,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(B){B.element.hide().undoClipping()}},arguments[1]||{}))};Effect.BlindDown=function(B){B=$(B);var A=B.getDimensions();return new Effect.Scale(B,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:A.height,originalWidth:A.width},restoreAfterFinish:true,afterSetup:function(C){C.element.makeClipping().setStyle({height:"0px"}).show()},afterFinishInternal:function(C){C.element.undoClipping()}},arguments[1]||{}))};Effect.SwitchOff=function(B){B=$(B);var A=B.getInlineOpacity();return new Effect.Appear(B,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(C){new Effect.Scale(C.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(D){D.element.makePositioned().makeClipping()},afterFinishInternal:function(D){D.element.hide().undoClipping().undoPositioned().setStyle({opacity:A})}})}},arguments[1]||{}))};Effect.DropOut=function(B){B=$(B);var A={top:B.getStyle("top"),left:B.getStyle("left"),opacity:B.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(B,{x:0,y:100,sync:true}),new Effect.Opacity(B,{sync:true,to:0})],Object.extend({duration:0.5,beforeSetup:function(C){C.effects[0].element.makePositioned()},afterFinishInternal:function(C){C.effects[0].element.hide().undoPositioned().setStyle(A)}},arguments[1]||{}))};Effect.Shake=function(B){B=$(B);var A={top:B.getStyle("top"),left:B.getStyle("left")};return new Effect.Move(B,{x:20,y:0,duration:0.05,afterFinishInternal:function(C){new Effect.Move(C.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(D){new Effect.Move(D.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(E){new Effect.Move(E.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(F){new Effect.Move(F.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(G){new Effect.Move(G.element,{x:-20,y:0,duration:0.05,afterFinishInternal:function(H){H.element.undoPositioned().setStyle(A)}})}})}})}})}})}})};Effect.SlideDown=function(C){C=$(C).cleanWhitespace();var A=C.down().getStyle("bottom");var B=C.getDimensions();return new Effect.Scale(C,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:B.height,originalWidth:B.width},restoreAfterFinish:true,afterSetup:function(D){D.element.makePositioned();D.element.down().makePositioned();if(window.opera){D.element.setStyle({top:""})}D.element.makeClipping().setStyle({height:"0px"}).show()},afterUpdateInternal:function(D){D.element.down().setStyle({bottom:(D.dims[0]-D.element.clientHeight)+"px"})},afterFinishInternal:function(D){D.element.undoClipping().undoPositioned();D.element.down().undoPositioned().setStyle({bottom:A})}},arguments[1]||{}))};Effect.SlideUp=function(B){B=$(B).cleanWhitespace();var A=B.down().getStyle("bottom");return new Effect.Scale(B,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:"box",scaleFrom:100,restoreAfterFinish:true,beforeStartInternal:function(C){C.element.makePositioned();C.element.down().makePositioned();if(window.opera){C.element.setStyle({top:""})}C.element.makeClipping().show()},afterUpdateInternal:function(C){C.element.down().setStyle({bottom:(C.dims[0]-C.element.clientHeight)+"px"})},afterFinishInternal:function(C){C.element.hide().undoClipping().undoPositioned().setStyle({bottom:A});C.element.down().undoPositioned()}},arguments[1]||{}))};Effect.Squish=function(A){return new Effect.Scale(A,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(B){B.element.makeClipping()},afterFinishInternal:function(B){B.element.hide().undoClipping()}})};Effect.Grow=function(C){C=$(C);var B=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{});var A={top:C.style.top,left:C.style.left,height:C.style.height,width:C.style.width,opacity:C.getInlineOpacity()};var G=C.getDimensions();var H,F;var E,D;switch(B.direction){case"top-left":H=F=E=D=0;break;case"top-right":H=G.width;F=D=0;E=-G.width;break;case"bottom-left":H=E=0;F=G.height;D=-G.height;break;case"bottom-right":H=G.width;F=G.height;E=-G.width;D=-G.height;break;case"center":H=G.width/2;F=G.height/2;E=-G.width/2;D=-G.height/2;break}return new Effect.Move(C,{x:H,y:F,duration:0.01,beforeSetup:function(I){I.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(I){new Effect.Parallel([new Effect.Opacity(I.element,{sync:true,to:1,from:0,transition:B.opacityTransition}),new Effect.Move(I.element,{x:E,y:D,sync:true,transition:B.moveTransition}),new Effect.Scale(I.element,100,{scaleMode:{originalHeight:G.height,originalWidth:G.width},sync:true,scaleFrom:window.opera?1:0,transition:B.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(J){J.effects[0].element.setStyle({height:"0px"}).show()},afterFinishInternal:function(J){J.effects[0].element.undoClipping().undoPositioned().setStyle(A)}},B))}})};Effect.Shrink=function(C){C=$(C);var B=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{});var A={top:C.style.top,left:C.style.left,height:C.style.height,width:C.style.width,opacity:C.getInlineOpacity()};var F=C.getDimensions();var E,D;switch(B.direction){case"top-left":E=D=0;break;case"top-right":E=F.width;D=0;break;case"bottom-left":E=0;D=F.height;break;case"bottom-right":E=F.width;D=F.height;break;case"center":E=F.width/2;D=F.height/2;break}return new Effect.Parallel([new Effect.Opacity(C,{sync:true,to:0,from:1,transition:B.opacityTransition}),new Effect.Scale(C,window.opera?1:0,{sync:true,transition:B.scaleTransition,restoreAfterFinish:true}),new Effect.Move(C,{x:E,y:D,sync:true,transition:B.moveTransition})],Object.extend({beforeStartInternal:function(G){G.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(G){G.effects[0].element.hide().undoClipping().undoPositioned().setStyle(A)}},B))};Effect.Pulsate=function(C){C=$(C);var B=arguments[1]||{};var A=C.getInlineOpacity();var E=B.transition||Effect.Transitions.sinoidal;var D=function(F){return E(1-Effect.Transitions.pulse(F,B.pulses))};D.bind(E);return new Effect.Opacity(C,Object.extend(Object.extend({duration:2,from:0,afterFinishInternal:function(F){F.element.setStyle({opacity:A})}},B),{transition:D}))};Effect.Fold=function(B){B=$(B);var A={top:B.style.top,left:B.style.left,width:B.style.width,height:B.style.height};B.makeClipping();return new Effect.Scale(B,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(C){new Effect.Scale(B,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(D){D.element.hide().undoClipping().setStyle(A)}})}},arguments[1]||{}))};Effect.Morph=Class.create();Object.extend(Object.extend(Effect.Morph.prototype,Effect.Base.prototype),{initialize:function(C){this.element=$(C);if(!this.element){throw (Effect._elementDoesNotExistError)}var B=Object.extend({style:{}},arguments[1]||{});if(typeof B.style=="string"){if(B.style.indexOf(":")==-1){var D="",A="."+B.style;$A(document.styleSheets).reverse().each(function(E){if(E.cssRules){cssRules=E.cssRules}else{if(E.rules){cssRules=E.rules}}$A(cssRules).reverse().each(function(F){if(A==F.selectorText){D=F.style.cssText;throw $break}});if(D){throw $break}});this.style=D.parseStyle();B.afterFinishInternal=function(E){E.element.addClassName(E.options.style);E.transforms.each(function(F){if(F.style!="opacity"){E.element.style[F.style]=""}})}}else{this.style=B.style.parseStyle()}}else{this.style=$H(B.style)}this.start(B)},setup:function(){function A(B){if(!B||["rgba(0, 0, 0, 0)","transparent"].include(B)){B="#ffffff"}B=B.parseColor();return $R(0,2).map(function(C){return parseInt(B.slice(C*2+1,C*2+3),16)})}this.transforms=this.style.map(function(G){var F=G[0],E=G[1],D=null;if(E.parseColor("#zzzzzz")!="#zzzzzz"){E=E.parseColor();D="color"}else{if(F=="opacity"){E=parseFloat(E);if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}}else{if(Element.CSS_LENGTH.test(E)){var C=E.match(/^([\+\-]?[0-9\.]+)(.*)$/);E=parseFloat(C[1]);D=(C.length==3)?C[2]:null}}}var B=this.element.getStyle(F);return{style:F.camelize(),originalValue:D=="color"?A(B):parseFloat(B||0),targetValue:D=="color"?A(E):E,unit:D}}.bind(this)).reject(function(B){return((B.originalValue==B.targetValue)||(B.unit!="color"&&(isNaN(B.originalValue)||isNaN(B.targetValue))))})},update:function(A){var D={},B,C=this.transforms.length;while(C--){D[(B=this.transforms[C]).style]=B.unit=="color"?"#"+(Math.round(B.originalValue[0]+(B.targetValue[0]-B.originalValue[0])*A)).toColorPart()+(Math.round(B.originalValue[1]+(B.targetValue[1]-B.originalValue[1])*A)).toColorPart()+(Math.round(B.originalValue[2]+(B.targetValue[2]-B.originalValue[2])*A)).toColorPart():B.originalValue+Math.round(((B.targetValue-B.originalValue)*A)*1000)/1000+B.unit}this.element.setStyle(D,true)}});Effect.Transform=Class.create();Object.extend(Effect.Transform.prototype,{initialize:function(A){this.tracks=[];this.options=arguments[1]||{};this.addTracks(A)},addTracks:function(A){A.each(function(B){var C=$H(B).values().first();this.tracks.push($H({ids:$H(B).keys().first(),effect:Effect.Morph,options:{style:C}}))}.bind(this));return this},play:function(){return new Effect.Parallel(this.tracks.map(function(A){var B=[$(A.ids)||$$(A.ids)].flatten();return B.map(function(C){return new A.effect(C,Object.extend({sync:true},A.options))})}).flatten(),this.options)}});Element.CSS_PROPERTIES=$w("backgroundColor backgroundPosition borderBottomColor borderBottomStyle borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderSpacing borderTopColor borderTopStyle borderTopWidth bottom clip color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop markerOffset maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex");Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;String.prototype.parseStyle=function(){var B=document.createElement("div");B.innerHTML='<div style="'+this+'"></div>';var C=B.childNodes[0].style,A=$H();Element.CSS_PROPERTIES.each(function(D){if(C[D]){A[D]=C[D]}});if(Prototype.Browser.IE&&this.indexOf("opacity")>-1){A.opacity=this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]}return A};Element.morph=function(A,B){new Effect.Morph(A,Object.extend({style:B},arguments[2]||{}));return A};["getInlineOpacity","forceRerendering","setContentZoom","collectTextNodes","collectTextNodesIgnoreClass","morph"].each(function(A){Element.Methods[A]=Element[A]});Element.Methods.visualEffect=function(B,C,A){s=C.dasherize().camelize();effect_class=s.charAt(0).toUpperCase()+s.substring(1);new Effect[effect_class](B,A);return $(B)};Element.addMethods();var KT_focusedEl=null;function KT_validateSingle(A,C){var B=A.charCodeAt(0);switch(C){case"9":if(B<58&&B>47){return true}break;case"A":if((B<91&&B>64)||(B<123&&B>96)){return true}break;case"X":if((B<91&&B>64)||(B<123&&B>96)||(B<58&&B>47)){return true}break;case"?":return true;break;default:return true;break}}function KT_maskDefaultValue(A){switch(A){case"9":return"0";break;case"A":return"a";break;case"X":return"0";break;case"?":return"0";break;default:return"0";break}}function KT_isSpecialChar(A){if(A=="9"||A=="A"||A=="X"||A=="?"){return true}else{return false}}function mask_onValueChanged(){if((typeof window.getSelection=="undefined"&&typeof document.selection=="undefined")){return }if(KT_focusedEl==null||KT_focusedEl.mask==null||KT_focusedEl.mask==""){return }var A=KT_focusedEl.mask;var E=KT_focusedEl.value;var C=0;var D=false;if(E==KT_focusedEl.oldText){return }if(E.length>A.length){E=E.substr(0,A.length);D=true}for(;C<A.length;C++){if(E.charCodeAt(C).toString()!="NaN"){if(KT_isSpecialChar(A.charAt(C))){if(KT_validateSingle(E.charAt(C),A.charAt(C))){continue}else{E=KT_focusedEl.oldText;C=A.length;break}}else{if(E.charAt(C)!=A.charAt(C)){if(C==E.length-1){var B=E.substr(E.length-1,E.length);E=E.substr(0,E.length-1)+A.charAt(C)+B;D=true;continue}else{E=KT_focusedEl.oldText;C=A.length}break}}}else{if(E.length<KT_focusedEl.oldText.length){break}for(;C<A.length;C++){if(!KT_isSpecialChar(A.charAt(C))){E+=A.charAt(C);D=true}else{break}}break}}if(E.length>A.length){E=E.substr(0,A.length);D=true}if(KT_focusedEl.value!=E){KT_focusedEl.value=E}KT_focusedEl.oldText=E;if(D){}}function mask_parseFirstTime(G,B){var F="";var A="";cond=1;imask=0;ival=0;cnt=0;while(cond==1){cond=1;if(!KT_isSpecialChar(B.charAt(imask))){if(G.charCodeAt(ival).toString()!="NaN"){if(B.charAt(imask)==G.charAt(ival)){imask++;ival++}else{G=G.substr(0,ival)+B.charAt(imask)+G.substr(ival,G.length);imask=0;ival=0;cond=1}}else{G+=KT_maskDefaultValue(B.charAt(imask))}}else{imask++;ival++}if(imask>=B.length||ival>=G.length){cond=0}}for(i=0;i<B.length;i++){if(KT_isSpecialChar(B.charAt(i))){F+=B.charAt(i);if(G.charCodeAt(i).toString()!="NaN"){A+=G.charAt(i)}else{A+=KT_maskDefaultValue(B.charAt(i))}}}oldvalue=G;G=A;var C="";for(i=0;i<F.length;i++){if(!KT_validateSingle(G.charAt(i),F.charAt(i))){C+=KT_maskDefaultValue(F.charAt(i))}else{C+=G.charAt(i)}}var E="";var D=0;for(i=0;i<B.length;i++){if(KT_isSpecialChar(B.charAt(i))){E+=C.charAt(D++)}else{E+=B.charAt(i)}}return E}function mask_onSetFocus(B,A){if((typeof window.getSelection=="undefined"&&typeof document.selection=="undefined")){return }if(typeof B.mask=="undefined"){ret="";if(B.value!=""){ret=mask_parseFirstTime(B.value,A)}B.value=ret;B.mask=A}KT_focusedEl=B;if(typeof KT_focusedEl.oldText=="undefined"){KT_focusedEl.oldText=B.value;mask_onValueChanged()}}function mask_onKillFocus(){if((typeof window.getSelection=="undefined"&&typeof document.selection=="undefined")){return }mask_onValueChanged();KT_focusedEl=null}var sweetTitles={xCord:0,yCord:0,tipElements:["abbr","acronym","a"],obj:Object,tip:Object,active:0,init:function(){if(!document.getElementById||!document.createElement||!document.getElementsByTagName){return }var C,B;this.tip=document.createElement("div");this.tip.id="toolTip";document.getElementsByTagName("body")[0].appendChild(this.tip);this.tip.style.top="0";this.tip.style.visibility="hidden";var A=this.tipElements.length;for(C=0;C<A;C++){var D=document.getElementsByTagName(this.tipElements[C]);for(B=0;B<D.length;B++){if(D[B].getAttribute("title")==null){continue}addEvent(D[B],"mouseover",this.tipOver);addEvent(D[B],"mouseout",this.tipOut);D[B].setAttribute("tip",D[B].title);D[B].removeAttribute("title")}}},updateXY:function(A){if(document.captureEvents){sweetTitles.xCord=A.pageX;sweetTitles.yCord=A.pageY}else{if(window.event.clientX){sweetTitles.xCord=window.event.clientX+document.documentElement.scrollLeft;sweetTitles.yCord=window.event.clientY+document.documentElement.scrollTop}}},tipOut:function(){if(window.tID){clearTimeout(tID)}if(window.opacityID){clearTimeout(opacityID)}sweetTitles.tip.style.visibility="hidden"},checkNode:function(){var A=this.obj;if(this.tipElements.inArray(A.nodeName.toLowerCase())){return A}else{return A.parentNode}},tipOver:function(A){sweetTitles.obj=this;tID=window.setTimeout("sweetTitles.tipShow()",500);sweetTitles.updateXY(A)},tipShow:function(){var A=Number(this.xCord);var K=Number(this.yCord);var H=parseInt(K+15);var E=parseInt(A+10);var G=this.checkNode();var D="";var C="";if(G.nodeName.toLowerCase()=="a"){var I=location.hostname.toString();var F=new RegExp("(http://?)"+I,"gi");var B=G.href.toString();var J=B.replace(F,"");D=(J.length>0?J.toString().substring(0,0)+"":J);var C=(G.accessKey?" ["+G.accessKey+"]":"")}else{D=G.firstChild.nodeValue}this.tip.innerHTML="<p>"+G.getAttribute("tip")+"<em>"+C+" "+D+"</em></p>";if(parseInt(document.documentElement.clientWidth+document.documentElement.scrollLeft)<parseInt(this.tip.offsetWidth+E)){this.tip.style.left=parseInt(E-(this.tip.offsetWidth+10))+"px"}else{this.tip.style.left=E+"px"}if(parseInt(document.documentElement.clientHeight+document.documentElement.scrollTop)<parseInt(this.tip.offsetHeight+H)){this.tip.style.top=parseInt(H-(this.tip.offsetHeight+10))+"px"}else{this.tip.style.top=H+"px"}this.tip.style.visibility="visible";this.tip.style.opacity=".1";this.tipFade(10)},tipFade:function(B){var C=parseInt(B);var A=parseInt(C+10);if(A<80){this.tip.style.opacity="."+A;this.tip.style.filter="alpha(opacity:"+A+")";opacityID=window.setTimeout("sweetTitles.tipFade('"+A+"')",20)}else{this.tip.style.opacity=".90";this.tip.style.filter="alpha(opacity:90)"}}};Array.prototype.inArray=function(B){var A;for(A=0;A<this.length;A++){if(this[A]===B){return true}}return false};function addEvent(C,B,A){if(C.addEventListener){C.addEventListener(B,A,false);EventCache.add(C,B,A)}else{if(C.attachEvent){C["e"+B+A]=A;C[B+A]=function(){C["e"+B+A](window.event)};C.attachEvent("on"+B,C[B+A]);EventCache.add(C,B,A)}else{C["on"+B]=C["e"+B+A]}}}var EventCache=function(){var A=[];return{listEvents:A,add:function(B,D,C){A.push(arguments)},flush:function(){var B,C;for(B=A.length-1;B>=0;B=B-1){C=A[B];if(C[0].removeEventListener){C[0].removeEventListener(C[1],C[2],C[3])}if(C[1].substring(0,2)!="on"){C[1]="on"+C[1]}if(C[0].detachEvent){C[0].detachEvent(C[1],C[2])}C[0][C[1]]=null}}}}();function externalLinks(){if(!document.getElementsByTagName){return }var B=document.getElementsByTagName("a");for(var A=0;A<B.length;A++){if(B[A].getAttribute("href")&&B[A].getAttribute("rel")=="external"){B[A].target="_blank"}}}function P7_rowLite(D,C){var G,F,A,E,B;if(document.getElementById){G=document.getElementsByTagName("TABLE");for(A=0;A<G.length;A++){if(G[A].className&&G[A].className==D){E=G[A].getElementsByTagName("TR");if(E){for(F=0;F<E.length;F++){if(F>0){E[F].onmouseover=function(){B=this.className;this.className=C};E[F].onmouseout=function(){this.className=B}}}}}}}}function ListFind(A,B,F){if(!F){F=","}var E=0;var D=A.split(F);for(var C=0;C<D.length;C++){if(D[C]==B){E=C+1;break}}return E}function ListFindNoCase(A,B,C){if(!C){C=","}return ListFind(A.toUpperCase(),B.toUpperCase(),C)}function removeOptionalElements(){if(document.getElementById){var B=document.getElementById("frmOptional");if(B){var A=B.appendChild(document.createElement("a"));A.href="#";A.appendChild(document.createTextNode("Remove optional fields?"));A.onclick=function(){var E=this.firstChild.nodeValue;this.firstChild.nodeValue=(E=="Remove optional fields?")?"Display optional fields?":"Remove optional fields?";var D=document.getElementsByTagName("div");for(var C=0;C<D.length;C++){if(ListFindNoCase(D[C].className,"optional"," ")){D[C].style.display=(D[C].style.display=="none")?"block":"none"}}return false}}}}function pageLoader(){sweetTitles.init();externalLinks();P7_rowLite("highlight","hover");removeOptionalElements()}addEvent(window,"unload",EventCache.flush);addEvent(window,"load",pageLoader);

		
	
		
		
		

		
		
		

		

		

		
			
		
	
	
		
		
			
		
	
		
		
		

		
		
		

		

		

		
			
		
	
		
		
	
			
			
	
		
		
		
		
		
		
		
		

		
		
		

		

		

		
			
		
	
		
		
		
		
		
		
		
	
	
	
		


	