function openPopup(k,c,e,g){var b=770;var f=580;var a=0;var d=0;if(self.screen){b=screen.width-12;f=screen.height-70}if(e!=0&&g!=0){a=(b-e)/2;d=(f-g)/2}else{e=b;g=f}var h="";if(!h.closed&&h.location){h.location.href=k}else{h=window.open(k,c,"top="+d+",left="+a+",width="+e+",height="+g+",toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");if(!h.opener){h.opener=self}}if(window.focus){h.focus()}return false}function openWindow(e){var c=770;var b=580;var f=0;var d=0;if(self.screen){c=screen.width-12;b=screen.height-70}intWidth=c;intHeight=b;var a="";if(!a.closed&&a.location){a.location.href=e}else{a=window.open(e,"","top="+d+",left="+f+",width="+intWidth+",height="+intHeight+",toolbar=yes,directories=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");if(!a.opener){a.opener=self}}if(window.focus){a.focus()}return false}function myExtLink(a){top.location.href=a}function setMyCookie(d,f,e,c,g,l){var h=d+"="+f;if(e){var a=new Date();var b=e*1000;a.setTime(a.getTime()+b);var k=a.toGMTString();h+="; expires="+k}if(c){h+="; path="+c}if(g){h+="; domain="+g}if(l){h+="; true"}document.cookie=h}function getMyCookie(d){var b;var f;var e;var c=document.cookie.split("; ");for(var a=0;a<c.length;a++){b=c[a].split("=");f=b[0];e=b[1];if(f==d){return unescape(e)}}return null}function deleteMyCookie(a){setMyCookie(a,"",-1000*60*60*24*5)}function addBookmark(c,d){if(!c){c=location.href}if(!d){d=document.title}if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel(d,c,"")}else{if(typeof window.external=="object"){window.external.AddFavorite(c,d)}else{if(window.opera&&document.createElement){var b=document.createElement("A");if(!b){return false}b.setAttribute("rel","sidebar");b.setAttribute("href",c);b.setAttribute("title",d);b.click()}}}return true}function convRus2Eng(g){var b=new Array("À","Á","Â","Ã","Ä","Å","¨","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ü","Ú","Û","Ý","Þ","ß","à","á","â","ã","ä","å","¸","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ü","ú","û","ý","þ","ÿ");var c=new Array("A","B","V","G","D","E","YO","ZH","Z","I","Y","K","L","M","N","O","P","R","S","T","U","F","KH","TS","CH","SH","SHCH","","","Y","E","YU","YA","a","b","v","g","d","e","yo","zh","z","i","y","k","l","m","n","o","p","r","s","t","u","f","kh","ts","ch","sh","shch","","","y","e","yu","ya");var f="";var a=g.length;var d,e;for(i=0;i<a;i++){d=g.charAt(i,1);e=false;for(j=0;j<b.length;j++){if(d==b[j]){e=true;break}}f+=(e)?c[j]:d}return f}function moveListOption(b,a){if(b.selectedIndex!=-1){if(a<0){for(i=0;i<b.options.length;i++){swapValue=(i==0||b.options[i+a].selected)?null:b.options[i+a].value;swapText=(i==0||b.options[i+a].selected)?null:b.options[i+a].text;if(b.options[i].selected&&swapValue!=null&&swapText!=null){thisValue=b.options[i].value;thisText=b.options[i].text;b.options[i].value=swapValue;b.options[i].text=swapText;b.options[i+a].value=thisValue;b.options[i+a].text=thisText;b.options[i].selected=false;b.options[i+a].selected=true}}}else{for(i=b.options.length-1;i>=0;i--){swapValue=(i==b.options.length-1||b.options[i+a].selected)?null:b.options[i+a].value;swapText=(i==b.options.length-1||b.options[i+a].selected)?null:b.options[i+a].text;if(b.options[i].selected&&swapValue!=null&&swapText!=null){thisValue=b.options[i].value;thisText=b.options[i].text;b.options[i].value=swapValue;b.options[i].text=swapText;b.options[i+a].value=thisValue;b.options[i+a].text=thisText;b.options[i].selected=false;b.options[i+a].selected=true}}}}}function selListAll(a){for(i=0;i<a.options.length;i++){a.options[i].selected=true}return true}var theSelection=false;var clientPC=navigator.userAgent.toLowerCase();var clientVer=parseInt(navigator.appVersion);var is_ie=((clientPC.indexOf("msie")!=-1)&&(clientPC.indexOf("opera")==-1));var is_nav=((clientPC.indexOf("mozilla")!=-1)&&(clientPC.indexOf("spoofer")==-1)&&(clientPC.indexOf("compatible")==-1)&&(clientPC.indexOf("opera")==-1)&&(clientPC.indexOf("webtv")==-1)&&(clientPC.indexOf("hotjava")==-1));var is_moz=0;var is_win=((clientPC.indexOf("win")!=-1)||(clientPC.indexOf("16bit")!=-1));var is_mac=(clientPC.indexOf("mac")!=-1);bbcode=new Array();bbtags=new Array("[b]","[/b]","[i]","[/i]","[u]","[/u]","[quote]","[/quote]","[url]","[/url]","[email]","[/email]");function getarraysize(a){for(i=0;i<a.length;i++){if((a[i]=="undefined")||(a[i]=="")||(a[i]==null)){return i}}return a.length}function arraypush(b,a){b[getarraysize(b)]=a}function arraypop(a){thearraysize=getarraysize(a);retval=a[thearraysize-1];delete a[thearraysize-1];return retval}function bbstyle(bbnumber){var txtarea=document.tpl_form.bodytxt;if((txtarea=="undefined")||(txtarea==null)){return false}txtarea.focus();donotinsert=false;theSelection=false;bblast=0;if(bbnumber==-1){while(bbcode[0]){butnumber=arraypop(bbcode)-1;txtarea.value+=bbtags[butnumber+1];buttext=eval("document.tpl_form.addbbcode"+butnumber+".value");eval("document.tpl_form.addbbcode"+butnumber+'.value ="'+buttext.substr(0,(buttext.length-1))+'"')}txtarea.focus();return}if((clientVer>=4)&&is_ie&&is_win){theSelection=document.selection.createRange().text;if(theSelection){document.selection.createRange().text=bbtags[bbnumber]+theSelection+bbtags[bbnumber+1];txtarea.focus();theSelection="";return}}else{if(txtarea.selectionEnd&&(txtarea.selectionEnd-txtarea.selectionStart>0)){mozWrap(txtarea,bbtags[bbnumber],bbtags[bbnumber+1]);return}}for(i=0;i<bbcode.length;i++){if(bbcode[i]==bbnumber+1){bblast=i;donotinsert=true}}if(donotinsert){while(bbcode[bblast]){butnumber=arraypop(bbcode)-1;txtarea.value+=bbtags[butnumber+1];buttext=eval("document.tpl_form.addbbcode"+butnumber+".value");eval("document.tpl_form.addbbcode"+butnumber+'.value ="'+buttext.substr(0,(buttext.length-1))+'"')}txtarea.focus();return}else{txtarea.value+=bbtags[bbnumber];arraypush(bbcode,bbnumber+1);eval("document.tpl_form.addbbcode"+bbnumber+'.value += "*"');txtarea.focus();return}storeCaret(txtarea)}function mozWrap(f,c,k){var b=f.textLength;var a=f.selectionStart;var d=f.selectionEnd;if(d==1||d==2){d=b}var h=(f.value).substring(0,a);var g=(f.value).substring(a,d);var e=(f.value).substring(d,b);f.value=h+c+g+k+e;return}function storeCaret(a){if(a.createTextRange){a.caretPos=document.selection.createRange().duplicate()}}if(typeof addEvent!="function"){var addEvent=function(b,q,h,g){var k="addEventListener",c="on"+q,p=b,m=q,e=h,a=g;if(b[k]&&!g){return b[k](q,h,false)}if(!b._evts){b._evts={}}if(!b._evts[q]){b._evts[q]=b[c]?{b:b[c]}:{};b[c]=new Function("e",'var r = true, o = this, a = o._evts["'+q+'"], i; for (i in a) {o._f = a[i]; r = o._f(e||window.event) != false && r; o._f = null;} return r');if(q!="unload"){addEvent(window,"unload",function(){removeEvent(p,m,e,a)})}}if(!h._i){h._i=addEvent._i++}b._evts[q][h._i]=h};addEvent._i=1;var removeEvent=function(g,b,c,a){var e="removeEventListener";if(g[e]&&!a){return g[e](b,c,false)}if(g._evts&&g._evts[b]&&c._i){delete g._evts[b][c._i]}}}function cancelEvent(a,b){a.returnValue=false;if(a.preventDefault){a.preventDefault()}if(b){a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}}}function SuperNote(b,a){var e={myName:b,allowNesting:false,cssProp:"visibility",cssVis:"inherit",cssHid:"hidden",IESelectBoxFix:true,showDelay:0,hideDelay:500,animInSpeed:0.1,animOutSpeed:0.1,animations:[],mouseX:0,mouseY:0,notes:{},rootElm:null,onshow:null,onhide:null};for(var d in e){this[d]=(typeof a[d]=="undefined")?e[d]:a[d]}var c=this;addEvent(document,"mouseover",function(f){c.mouseHandler(f,1)});addEvent(document,"click",function(f){c.mouseHandler(f,2)});document.mousemove=function(f){c.mouseTrack(f)};addEvent(document,"mouseout",function(f){c.mouseHandler(f,0)});this.instance=SuperNote.instances.length;SuperNote.instances[this.instance]=this}SuperNote.instances=[];SuperNote.prototype.bTypes={};SuperNote.prototype.pTypes={};SuperNote.prototype.pTypes.mouseoffset=function(obj,noteID,nextVis,nextAnim){with(obj){var note=notes[noteID];if(nextVis&&!note.animating&&!note.visible){note.ref.style.left=checkWinX(mouseX,note)+"px";note.ref.style.top=checkWinY(mouseY,note)+"px"}}};SuperNote.prototype.pTypes.mousetrack=function(obj,noteID,nextVis,nextAnim){with(obj){var note=notes[noteID];if(nextVis&&!note.animating&&!note.visible){var posString="with ("+myName+') {var note = notes["'+noteID+'"];note.ref.style.left = checkWinX(mouseX, note) + "px";note.ref.style.top = checkWinY(mouseY, note) + "px" }';eval(posString);obj.IEFrameFix(noteID,1);if(!note.trackTimer){note.trackTimer=setInterval(posString,100)}}else{if(!nextVis&&!nextAnim){clearInterval(note.trackTimer);note.trackTimer=null}}}};SuperNote.prototype.pTypes.triggeroffset=function(obj,noteID,nextVis,nextAnim){with(obj){var note=notes[noteID];if(nextVis&&!note.animating&&!note.visible){var x=0,y=0,elm=note.trigRef;while(elm){x+=elm.offsetLeft;y+=elm.offsetTop;elm=elm.offsetParent}note.ref.style.left=checkWinX(x,note)+"px";note.ref.style.top=checkWinY(y,note)+"px"}}};SuperNote.prototype.bTypes.pinned=function(obj,noteID,nextVis){with(obj){return(!nextVis)?false:true}};SuperNote.prototype.docBody=function(){return document[(document.compatMode&&document.compatMode.indexOf("CSS")>-1)?"documentElement":"body"]};SuperNote.prototype.getWinW=function(){return this.docBody().clientWidth||window.innerWidth||0};SuperNote.prototype.getWinH=function(){return this.docBody().clientHeight||window.innerHeight||0};SuperNote.prototype.getScrX=function(){return this.docBody().scrollLeft||window.scrollX||0};SuperNote.prototype.getScrY=function(){return this.docBody().scrollTop||window.scrollY||0};SuperNote.prototype.checkWinX=function(newX,note){with(this){return Math.max(getScrX(),Math.min(newX,getScrX()+getWinW()-note.ref.offsetWidth-8))}};SuperNote.prototype.checkWinY=function(newY,note){with(this){return Math.max(getScrY(),Math.min(newY,getScrY()+getWinH()-note.ref.offsetHeight-8))}};SuperNote.prototype.mouseTrack=function(evt){with(this){mouseX=evt.pageX||evt.clientX+getScrX()||0;mouseY=evt.pageY||evt.clientY+getScrY()||0}};SuperNote.prototype.mouseHandler=function(evt,show){with(this){if(!document.documentElement){return true}var srcElm=evt.target||evt.srcElement,trigRE=new RegExp(myName+"-(hover|click)-([a-z0-9]+)","i"),targRE=new RegExp(myName+"-(note)-([a-z0-9]+)","i"),trigFind=1,foundNotes={};if(srcElm.nodeType!=1){srcElm=srcElm.parentNode}var elm=srcElm;while(elm&&elm!=rootElm){if(targRE.test(elm.id)||(trigFind&&trigRE.test(elm.className))){if(!allowNesting){trigFind=0}var click=RegExp.$1=="click"?1:0,noteID=RegExp.$2,ref=document.getElementById(myName+"-note-"+noteID),trigRef=trigRE.test(elm.className)?elm:null;if(ref){if(!notes[noteID]){notes[noteID]={click:click,ref:ref,trigRef:null,visible:0,animating:0,timer:null};ref._sn_obj=this;ref._sn_id=noteID}var note=notes[noteID];if(!note.click||(trigRef!=srcElm)){foundNotes[noteID]=true}if(!note.click||(show==2)){if(trigRef){notes[noteID].trigRef=notes[noteID].ref._sn_trig=elm}display(noteID,show);if(note.click&&(srcElm==trigRef)){cancelEvent(evt)}}}}if(elm._sn_trig){trigFind=1;elm=elm._sn_trig}else{elm=elm.parentNode}}if(show==2){for(var n in notes){if(notes[n].click&&notes[n].visible&&!foundNotes[n]){display(n,0)}}}}};SuperNote.prototype.display=function(noteID,show){with(this){with(notes[noteID]){clearTimeout(timer);if(!animating||(show?!visible:visible)){var tmt=animating?1:(show?showDelay||1:hideDelay||1);timer=setTimeout("SuperNote.instances["+instance+'].setVis("'+noteID+'", '+show+", false)",tmt)}}}};SuperNote.prototype.checkType=function(noteID,nextVis,nextAnim){with(this){var note=notes[noteID],bType,pType;if((/snp-([a-z]+)/).test(note.ref.className)){pType=RegExp.$1}if((/snb-([a-z]+)/).test(note.ref.className)){bType=RegExp.$1}if(nextAnim&&bType&&bTypes[bType]&&(bTypes[bType](this,noteID,nextVis)==false)){return false}if(pType&&pTypes[pType]){pTypes[pType](this,noteID,nextVis,nextAnim)}return true}};SuperNote.prototype.setVis=function(noteID,show,now){with(this){var note=notes[noteID];if(note&&checkType(noteID,show,1)||now){note.visible=show;note.animating=1;animate(noteID,show,now)}}};SuperNote.prototype.animate=function(noteID,show,now){with(this){var note=notes[noteID];if(!note.animTimer){note.animTimer=0}if(!note.animC){note.animC=0}with(note){clearTimeout(animTimer);var speed=(animations.length&&!now)?(show?animInSpeed:animOutSpeed):1;if(show&&!animC){if(onshow){this.onshow(noteID)}IEFrameFix(noteID,1);ref.style[cssProp]=cssVis}animC=Math.max(0,Math.min(1,animC+speed*(show?1:-1)));if(document.getElementById&&speed<1){for(var a=0;a<animations.length;a++){animations[a](ref,animC)}}if(!show&&!animC){if(onhide){this.onhide(noteID)}IEFrameFix(noteID,0);ref.style[cssProp]=cssHid}if(animC!=parseInt(animC)){animTimer=setTimeout(myName+'.animate("'+noteID+'", '+show+")",50)}else{checkType(noteID,animC?1:0,0);note.animating=0}}}};SuperNote.prototype.IEFrameFix=function(noteID,show){with(this){if(!window.createPopup||!IESelectBoxFix){return}var note=notes[noteID],ifr=note.iframe;if(!ifr){ifr=notes[noteID].iframe=document.createElement("iframe");ifr.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";ifr.style.position="absolute";ifr.style.borderWidth="0";note.ref.parentNode.insertBefore(ifr,note.ref.parentNode.firstChild)}if(show){ifr.style.left=note.ref.offsetLeft+"px";ifr.style.top=note.ref.offsetTop+"px";ifr.style.width=note.ref.offsetWidth+"px";ifr.style.height=note.ref.offsetHeight+"px";ifr.style.visibility="inherit"}else{ifr.style.visibility="hidden"}}};(function(b){b.fn.superfish=function(m){var g=b.fn.superfish,l=g.c,f=b(['<span class="',l.arrowClass,'"> &#187;</span>'].join("")),k=function(){var c=b(this),n=d(c);clearTimeout(n.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),p=d(c),n=g.op;clearTimeout(p.sfTimer);p.sfTimer=setTimeout(function(){n.retainPath=(b.inArray(c[0],n.$path)>-1);c.hideSuperfishUl();if(n.$path.length&&c.parents(["li.",n.hoverClass].join("")).length<1){k.call(n.$path)}},n.delay)},d=function(c){var n=c.parents(["ul.",l.menuClass,":first"].join(""))[0];g.op=g.o[n.serial];return n},h=function(c){c.addClass(l.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var p=b.extend({},g.defaults,m);p.$path=b("li."+p.pathClass,this).slice(0,p.pathLevels).each(function(){b(this).addClass([p.hoverClass,l.bcClass].join(" ")).filter("li:has(ul)").removeClass(p.pathClass)});g.o[c]=g.op=p;b("li:has(ul)",this)[(b.fn.hoverIntent&&!p.disableHI)?"hoverIntent":"hover"](k,e).each(function(){if(p.autoArrows){h(b(">a:first-child",this))}}).not("."+l.bcClass).hideSuperfishUl();var n=b("a",this);n.each(function(o){var q=n.eq(o).parents("li");n.eq(o).focus(function(){k.call(q)}).blur(function(){e.call(q)})});p.onInit.call(this)}).each(function(){var c=[l.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(l.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);(function(a){a.fn.hoverIntent=function(m,l){var n={sensitivity:7,interval:100,timeout:0};n=a.extend(n,l?{over:m,out:l}:m);var p,o,h,d;var e=function(f){p=f.pageX;o=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-p)+Math.abs(d-o))<n.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return n.over.apply(f,[g])}else{h=p;d=o;f.hoverIntent_t=setTimeout(function(){c(g,f)},n.interval)}};var k=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return n.out.apply(f,[g])};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(r){q=this}}if(q==this){return false}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(r.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},n.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){k(g,f)},n.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&parseInt(a.browser.version)<=6){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this};if(!a.browser.version){a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]}})(jQuery);(function(a){a.fn.supersubs=function(b){var c=a.extend({},a.fn.supersubs.defaults,b);return this.each(function(){var d=a(this);var e=a.meta?a.extend({},c,d.data()):c;var f=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(d).width();a("#menu-fontsize").remove();$ULs=d.find("ul");$ULs.each(function(m){var l=$ULs.eq(m);var k=l.children();var g=k.children("a");var n=k.css("white-space","nowrap").css("float");var h=l.add(k).add(g).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/f;h+=e.extraWidth;if(h>e.maxWidth){h=e.maxWidth}else{if(h<e.minWidth){h=e.minWidth}}h+="em";l.css("width",h);k.css({"float":n,width:"100%","white-space":"normal"}).each(function(){var p=a(">ul",this);var o=p.css("left")!==undefined?"left":"right";p.css(o,h)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);