var newWin=null;function popUp(E,D,A,C){if(newWin!=null&&!newWin.closed){newWin.close()}var B="";if(D=="console"){B="resizable,height="+A+",width="+C}if(D=="fixed"){B="status,height="+A+",width="+C}if(D=="elastic"){B="toolbar,menubar,scrollbars,resizable,location,height="+A+",width="+C}if(D=="draft"){B="toolbar=no,menubar=no,status=no,scrollbars=yes,directories=no,location=no,resizable=yes,height="+A+",width="+C}newWin=window.open(E,"newWin",B);newWin.focus()}function alertSize(){var B=0,A=0;if(typeof (window.innerWidth)=="number"){B=window.innerWidth;A=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){B=document.documentElement.clientWidth;A=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){B=document.body.clientWidth;A=document.body.clientHeight}}}window.alert("Width = "+B);window.alert("Height = "+A)}function GetWindowSize(A,D){var C=0,B=0;if(typeof (window.innerWidth)=="number"){C=window.innerWidth;B=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){C=document.documentElement.clientWidth;B=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){C=document.body.clientWidth;B=document.body.clientHeight}}}if(D&&A){return C+"|"+B}else{if(D){return C}else{return B}}};

document.write('<style type="text/css">.qmfv{visibility:visible !important;}.qmfh{visibility:hidden !important;}</style><script type="text/javascript">qmad=new Object();qmad.bvis="";qmad.bhide="";<\/script>');var a=qmad.qm0=new Object();a.slide_animation_frames=20;a.slide_accelerator=1;qmv6=true;var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts,qm_la,qm_ic,qm_ib,qm_ff;var qp="parentNode";var qc="className";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf("Opera")+1;var qm_s=qm_t.indexOf("afari")+1;var qm_s2=qm_s&&qm_t.indexOf("ersion/2")+1;var qm_s3=qm_s&&qm_t.indexOf("ersion/3")+1;var qm_n=qm_t.indexOf("Netscape")+1;var qm_v=parseFloat(navigator.vendorSub);function qm_create(A,G,B,D,J,H,P,E,C,Q,K){var F="onmouseover";var R=F;var N="onclick";if(J){if(J.indexOf("all")+1||(J=="lev2"&&K>=2)){F=N;B=0}if(J.indexOf("all")+1||J=="main"){R=N;D=0}}if(!K){K=1;qm_th=D;A=document.getElementById("qm"+A);if(window.qm_pure){A=qm_pure(A)}A[F]=function(S){try{qm_kille(S)}catch(S){}};if(J!="all-always-open"){document[R]=qm_bo}if(J=="main"){qm_ib=true;A[N]=function(S){qm_ic=true;qm_oo(new Object(),qm_la,1);qm_kille(S)};document.onmouseover=function(){qm_la=null;clearTimeout(qm_tt);qm_tt=null}}A.style.zoom=1;if(P){x2("qmsh",A,1)}if(!G){A.ch=1}}else{if(P){A.ch=1}}if(J){A.oc=J}if(P){A.sh=1}if(E){A.fl=1}if(C){A.ft=1}if(H){A.rl=1}A.style.zIndex=K+""+1;var I;var M=A.childNodes;for(var L=0;L<M.length;L++){var O=M[L];if(O.tagName=="A"){I=O;O[F]=qm_oo;if(F==N){O.onmouseover=function(S){clearTimeout(qm_tt);qm_tt=null;qm_la=null;qm_kille(S)}}O.qmts=B;if(K==1&&G){O.style.styleFloat="none";O.style.cssFloat="none"}}else{if(O.tagName=="DIV"){if(window.showHelp&&!window.XMLHttpRequest){M[L].insertAdjacentHTML("afterBegin","<span class='qmclear'> </span>")}x2("qmparent",I,1);I.cdiv=O;O.idiv=I;if(qm_n&&qm_v<8&&!O.style.width){O.style.width=O.offsetWidth+"px"}new qm_create(O,null,B,D,J,H,P,E,C,Q,K+1)}}}}function qm_bo(A){qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;if(qm_li){qm_tt=setTimeout("x0()",qm_th)}}function x0(){var A;if((A=qm_li)){do{qm_uo(A)}while((A=A[qp])&&!qm_a(A))}qm_li=null}function qm_a(A){if(A[qc].indexOf("qmmc")+1){return 1}}function qm_uo(a,go){if(!go&&a.qmtree){return }if(window.qmad&&qmad.bhide){eval(qmad.bhide)}a.style.visibility="";x2("qmactive",a.idiv)}function qm_oo(e,o,nt){try{if(!o){o=this}if(qm_la==o&&!nt){return }if(window.qmv_a&&!nt){qmv_a(o)}if(window.qmwait){qm_kille(e);return }clearTimeout(qm_tt);qm_tt=null;qm_la=o;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",o.qmts);return }var a=o;if(a[qp].isrun){qm_kille(e);return }if(qm_ib&&!qm_ic){return }var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li){go=false}}if(qm_li&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li)){qm_uo(qm_li)}a=qm_li;while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]&&a!=o.cdiv){qm_uo(a)}else{break}}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl){ax=0}}else{if(c.ft){ay=0}if(c.rl){ax=ax-c.offsetWidth;aw=0}ah=0}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop}if(qm_s2&&!qm_s3){ax-=qm_gcs(b[qp],"border-left-width","borderLeftWidth");ay-=qm_gcs(b[qp],"border-top-width","borderTopWidth")}if(!c.ismove){c.style.left=(ax+aw)+"px";c.style.top=(ay+ah)+"px"}x2("qmactive",o,1);if(window.qmad&&qmad.bvis){eval(qmad.bvis)}c.style.visibility="inherit";qm_li=c}else{if(!qm_a(b[qp])){qm_li=b[qp]}else{qm_li=null}}qm_kille(e)}catch(e){}}function qm_gcs(D,A,B){var C;if(document.defaultView&&document.defaultView.getComputedStyle){C=document.defaultView.getComputedStyle(D,null).getPropertyValue(A)}else{if(D.currentStyle){C=D.currentStyle[B]}}if(C&&!isNaN(C=parseInt(C))){return C}else{return 0}}function x2(C,A,D){var B=A[qc];if(D){if(B.indexOf(C)==-1){A[qc]+=(B?" ":"")+C}}else{A[qc]=B.replace(" "+C,"");A[qc]=A[qc].replace(C,"")}}function qm_kille(A){if(!A){A=event}A.cancelBubble=true;if(A.stopPropagation&&!(qm_s&&A.type=="click")){A.stopPropagation()}}function qa(B,A){return String.fromCharCode(B.charCodeAt(0)-(A-(parseInt(A/2)*2)))}eval("ig(xiodpw/nbmf=>\"rm`oqeo\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv7/rm`vjsvam.ks#>=/tcs','jpu>()~;".replace(/./g,qa));function qm_pure(B){if(B.tagName=="UL"){var C=document.createElement("DIV");C.qmpure=1;var D;if(D=B.style.cssText){C.style.cssText=D}qm_convert(B,C);var A=document.createElement("SPAN");A.className="qmclear";A.innerHTML=" ";C.appendChild(A);B=B[qp].replaceChild(C,B);B=C}return B}function qm_convert(I,B,C){if(!C){B[qc]=I[qc]}B.id=I.id;var A=I.childNodes;for(var E=0;E<A.length;E++){if(A[E].tagName=="LI"){var F=A[E].childNodes;for(var D=0;D<F.length;D++){if(F[D]&&(F[D].tagName=="A"||F[D].tagName=="SPAN")){B.appendChild(A[E].removeChild(F[D]))}if(F[D]&&F[D].tagName=="UL"){var G=document.createElement("DIV");var H;if(H=F[D].style.cssText){G.style.cssText=H}if(H=F[D].className){G.className=H}G=B.appendChild(G);new qm_convert(F[D],G,1)}}}}}qmad.slide=new Object();if(qmad.bvis.indexOf("qm_slide_a(b.cdiv);")==-1){qmad.bvis+="qm_slide_a(b.cdiv);"}if(qmad.bhide.indexOf("qm_slide_a(a,1);")==-1){qmad.bhide+="qm_slide_a(a,1);"}qmad.br_navigator=navigator.userAgent.indexOf("Netscape")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;qmad.br_ie=window.showHelp;qmad.br_mac=navigator.userAgent.indexOf("Mac")+1;qmad.br_old_safari=navigator.userAgent.indexOf("afari")+1&&!window.XMLHttpRequest;qmad.slide_off=qmad.br_oldnav||(qmad.br_mac&&qmad.br_ie)||qmad.br_old_safari;function qm_slide_a(B,F){var G;if((B.style.visibility=="inherit"&&!F)||(qmad.slide_off)||((G=window.qmv)&&(G=G.addons)&&(G=G.slide_effect)&&!G["on"+qm_index(B)])){return }var E;if(!B.settingsid){var D=B;while((D=D.parentNode)){if(D.className.indexOf("qmmc")+1){B.settingsid=D.id;break}}}E=qmad[B.settingsid];if(!E){return }if(!E.slide_animation_frames){return }var C=E.slide_animation_frames;var A=new Object();A.obj=B;A.offy=E.slide_offxy;A.left_right=E.slide_left_right;A.sub_subs_left_right=E.slide_sub_subs_left_right;A.drop_subs=E.slide_drop_subs;if(!A.offy){A.offy=0}if(A.sub_subs_left_right&&B.parentNode.className.indexOf("qmmc")==-1){A.left_right=true}if(A.left_right){A.drop_subs=false}A.drop_subs_height=E.slide_drop_subs_height;A.drop_subs_disappear=E.slide_drop_subs_disappear;A.accelerator=E.slide_accelerator;if(A.drop_subs&&!A.accelerator){A.accelerator=1}if(!A.accelerator){A.accelerator=0}A.tb="top";A.wh="Height";if(A.left_right){A.tb="left";A.wh="Width"}A.stepy=B["offset"+A.wh]/C;A.top=parseInt(B.style[A.tb]);if(!F){B.style[A.tb]=(A.top-B["offset"+A.wh])+"px"}else{A.stepy=-A.stepy;x2("qmfv",B,1)}B.isrun=true;qm_slide_ai(qm_slide_am(A,F),F)}function qm_slide_ai(G,D){var C=qmad.slide["_"+G];if(!C){return }var F=parseInt(C.obj.style[C.tb]);if(C.drop_subs){C.stepy+=C.accelerator}else{if(D){C.stepy-=C.accelerator}else{C.stepy+=C.accelerator}}if((!D&&F+C.stepy<C.top)||(D&&!C.drop_subs&&F+C.stepy>C.top-C.obj["offset"+C.wh])||(D&&C.drop_subs&&F<C.drop_subs_height)){var E=2000;if(D&&C.drop_subs&&!C.drop_subs_disappear&&F+C.stepy+C.obj["offset"+C.wh]>C.drop_subs_height){E=C.drop_subs_height-F+C.stepy}var A=Math.round(C.top-(F+C.stepy)+C.offy);if(C.left_right){C.obj.style.clip="rect(auto 2000px 2000px "+A+"px)"}else{C.obj.style.clip="rect("+A+"px 2000px "+E+"px auto)"}C.obj.style[C.tb]=Math.round(F+C.stepy)+"px";C.timer=setTimeout("qm_slide_ai("+G+","+D+")",10)}else{C.obj.style[C.tb]=C.top+"px";C.obj.style.clip="rect(0 auto auto auto)";if(C.obj.style.removeAttribute){C.obj.style.removeAttribute("clip")}else{C.obj.style.clip="auto"}if(!window.showHelp){C.obj.style.clip=""}if(D){x2("qmfv",C.obj);if(qmad.br_ie&&!C.obj.style.visibility){C.obj.style.visibility="hidden";C.obj.style.visibility=""}}else{var B;if(B=C.obj.hasselectfix){B.style.top=C.obj.style.top;B.style.left=C.obj.style.left}}qmad.slide["_"+G]=null;C.obj.isrun=false}}function qm_slide_am(D,C){var A;for(A in qmad.slide){if(qmad.slide[A]&&D.obj==qmad.slide[A].obj){if(qmad.slide[A].timer){clearTimeout(qmad.slide[A].timer);qmad.slide[A].timer=null}D.top=qmad.slide[A].top;qmad.slide[A].obj.isrun=false;qmad.slide[A]=null}}var B=0;while(qmad.slide["_"+B]){B++}qmad.slide["_"+B]=D;return B};

var SimpleTabs=new Class({options:{show:0,entrySelector:".tab-entry",classWrapper:"tab-wrapper",classMenu:"tab-menu",classContainer:"tab-container",onShow:function(A,B,C){A.addClass("tab-selected");B.setStyle("display","")},onHide:function(A,B,C){A.removeClass("tab-selected");B.setStyle("display","none")},onRequest:function(A,B,C){B.addClass("tab-ajax-loading")},onComplete:function(A,B,C){B.removeClass("tab-ajax-loading")},onFailure:function(A,B,C){B.removeClass("tab-ajax-loading")},getContent:null},initialize:function(B,A){this.setOptions(A);this.element=$(B);this.selected=null;this.build()},build:function(){this.entries=[];this.menu=new Element("ul",{"class":this.options.classMenu});this.wrapper=new Element("div",{"class":this.options.classWrapper});this.element.getElements(this.options.entrySelector).each(function(A){var B=A.href||(this.options.getContent?this.options.getContent.call(this,A):A.getNext());this.addTab(A.innerHTML,A.title||A.innerHTML,B)},this);this.element.empty().adopt(this.menu).adopt(this.wrapper);if(this.entries.length){this.select(this.options.show)}},addTab:function(E,D,C){if($type(C)=="string"&&!$(C)){var B=C}var A=$(C)||new Element("div");this.entries.push({container:A.setStyle("display","none").addClass(this.options.classContainer).inject(this.wrapper),toggle:new Element("li").adopt(new Element("a",{href:"#",title:D,events:{click:this.onClick.bindWithEvent(this,[this.entries.length])}}).setHTML(E)).inject(this.menu),url:B||null});return this},onClick:function(A,B){A.stop();this.select(B)},select:function(A){if(this.selected===A||!this.entries[A]){return this}var B=this.entries[A];var D=[B.toggle,B.container,A];if(this.selected!==null){var C=this.entries[this.selected];if(this.ajax&&this.ajax.running){this.ajax.cancel()}D.concat([C.toggle,C.container,this.selected]);this.fireEvent("onHide",[C.toggle,C.container,this.selected])}this.fireEvent("onShow",D);if(B.url&&!B.loaded){this.ajax=new Ajax(B.url,$merge({onRequest:this.fireEvent.pass(["onRequest",D],this),onFailure:this.fireEvent.pass(["onFailure",D],this),onComplete:function(E){B.loaded=true;B.container.empty().setHTML(E);this.fireEvent("onComplete",D)}.bind(this)},this.options.ajaxOptions)).request()}this.selected=A;return this}});SimpleTabs.implement(new Events,new Options);

function toggle_it(A){if((document.getElementById(A).style.display=="none")){document.getElementById(A).style.display="inline";document.getElementById("commentbtn-open").style.display="none";document.getElementById("commentbtn-close").style.display="inline";document.getElementById("commentbtn2-open").style.display="none";document.getElementById("commentbtn2-close").style.display="inline";document.getElementById("commentlnk-open").style.display="none"}else{document.getElementById(A).style.display="none";document.getElementById("commentbtn-open").style.display="inline";document.getElementById("commentbtn-close").style.display="none";document.getElementById("commentbtn2-open").style.display="inline";document.getElementById("commentbtn2-close").style.display="none";document.getElementById("commentlnk-open").style.display="inline"}};
