 var BROWSER={ie:document.all&&!window.opera,ie6:navigator.appVersion.indexOf("MSIE 6")!=-1,ie7:navigator.appVersion.indexOf("MSIE 7")!=-1,chrome:navigator.appVersion.indexOf("Chrome")!=-1,safari:navigator.appVersion.indexOf("Safari")!=-1&&navigator.appVersion.indexOf("Chrome")==-1,opera:window.opera};var _=function(a,b){if(!a)return null;if(typeof a=="string"&&document.getElementById)a=document.getElementById(a);if(a)return b?_DOM(a,b):a;else return null};function _DOM(p,q){q=q.replace(/[^<>\^$\/~a-z0-9_@.:# ]/gi,"");q=q.replace(/(^[a-z@.:#].*)/i,"^$1");q=q.replace(/((\<+)|(\>+)|(\^)|(\$)|(\/)|(\~)|(\@))/g,"$1*").replace(/\*([a-z0-9_@.:# ])/gi,"$1");var a=q.toUpperCase().match(/([a-z0-9_*.:# ]+)/gi)||[];var b=q.replace(/[^<>\^$\/~@]+/g,"+");var c={">":"nextSibling","<":"previousSibling","^":"firstChild","$":"lastChild","/":"parentNode",".":BROWSER.ie6||BROWSER.ie7?"className":"class",":":"id","#":"name"};var d=0,e=0;var f,h,j,k,l,m,n;var o=[];while((f=b.charAt(0))){if(f=="+"){if(a[d+1])d++;b=b.substr(1);continue}j=a[d];k="";if(j&&(/[.:#]/.test(j))){k=c[j.replace(/[^.:#]/g,"")];h=j.match(/([a-z1-6_]*)[.:#]([a-z0-9_ ]*)/i);j=h[1]||"*";l=h[2]}if(f=="~"){if(!n)n=p.getElementsByTagName(j);else e++}else if(n){n=null;e=0}if(!(p=p[c[f]]||(n&&n[e])))return o.length?o:null;m=!(p.nodeType!=1||(j!="*"&&p.tagName!=j)||(k&&(!p.getAttribute(k)||typeof p.getAttribute(k)!="string"||p.getAttribute(k).toUpperCase()!=l)));if(m)b=b.substr(1);if((f=="^"||f=="$")&&!m){b=b.replace(/./,(f=="^"?">":"<"))}if(b.charAt(0)=="@"){if(f=="^"&&m)f=">";b=f+b;o[o.length]=p}}return p};function addEvent(a,b,c){if(!a["on"+b]&&a!=window&&a!=document)return a["on"+b]=c;if(a.attachEvent)a.attachEvent("on"+b,c);else if(a.addEventListener)a.addEventListener(b,c,true);else a["on"+b]=c};function removeEvent(a,b,c){if(a.detachEvent)a.detachEvent("on"+b,c);else if(a.removeEventListener)a.removeEventListener(b,c,true);else a["on"+b]=null};function _ATTR(a,b){a=_(a);if(!a||!b)return null;return a.getAttribute&&a.getAttribute(b)!=undefined?a.getAttribute(b):(a[b]!=undefined?a[b]:null)};function _EV(c,d,e){var b=_ATTR(c,d);if(b&&/^on[a-z]+/.test(d))return typeof b=="function"?b:function(){return(new Function(e,b)).apply(c,arguments)};else return function(){}};var Style=function(b){b=_(b);return{empty:function(){return b.className.replace(/\s/g,"")==""?true:false},all:function(a){return!this.empty()?b.className.split(/\s+/):[]},exist:function(a){for(var i=0,c=this.all(a),l=c.length;i<l;i++)if(c[i]==a)return true;return false},set:function(a){b.className=a},add:function(a){this.remove(a);b.className+=b.className?' '+a:a;return true},remove:function(a){b.className=b.className.replace(new RegExp("((^)|(\\s))"+a+"((\\s)|($))"),"$3");return false},invert:function(a){return this.exist(a)?this.remove(a):this.add(a)},clear:function(){b.className=''}}};var CSS=function(d){d=_(d);return{js2css:function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()},get:function(b){if(typeof b=="string"){if(d.currentStyle)return d.currentStyle[b];if(window.getComputedStyle)return window.getComputedStyle(d,null).getPropertyValue(this.js2css(b))}else if(b){var a={};for(var i in b){if(b.length)i=b[i];a[i]=this.get(i)}return a}else return 0},set:function(b){var a={};for(var i in b){a[i]=this.get(i);d.style[i]=b[i]}return a},copy:function(b,c){if(typeof b=="string")return(c.style[b]=this.get(b));else if(b){var a=this.get(b);for(var i in a)c.style[i]=a[i];return a}return null},check:function(a){for(var i in a)if(a[i]!=this.get(i))return false;return true}}};function makeHTML(b,c,d){var a=c;for(var i in b){if(i=="tag")a=document.createElement(b[i]);else if(i=="append")for(var j in b[i]){if(b[i][j].tag)a.appendChild(makeHTML(b[i][j]))}else if(a)a[i]=b[i]}if(c&&c!=a){if(d)c.insertBefore(a,d);else c.appendChild(a)}return a};var COOKIE={set:function(a,b,c){if(c){var d=new Date();d.setTime(d.getTime()+c*1000);c="; expires="+d.toUTCString()}else c="";document.cookie=a+"="+escape(b)+c+"; path=/"},get:function(c){if(document.cookie.length==0)return false;var a=document.cookie.indexOf(c+"=");if(a!=-1){a+=c.length+1;var b=document.cookie.indexOf(";",a);if(b==-1)b=document.cookie.length;return unescape(document.cookie.substring(a,b))}return false}};document.include=function(a){if(!document.includes)document.includes={};if(document.includes[a])return false;document.includes[a]=1;a=(/^https?:\/\/.+/.test(a)?a:GLOBAL_PATH+a);if(a.indexOf(".css")==-1)document.write('<'+'script type="text/javascript" src="'+a+'"><'+'/script>');else document.write('<link type="text/css" rel="stylesheet" href="'+a+'" />')};function Num(a){if(isNaN(a))a=a.replace(/,/,".");if(isNaN(a))a=parseInt(a);if(isNaN(a))a=0;return Number(a)};function Coord(e){return{x:BROWSER.ie?event.clientX+document.documentElement.scrollLeft:e.pageX,y:BROWSER.ie?event.clientY+document.documentElement.scrollTop:e.pageY}};function Hash(h){var c={};for(var i in h)c[i]=h[i];return{clone:function(){return c},count:function(){var k=0;for(var i in c)k++;return k},branch:function(){var h=this.clone();while(typeof h=="object")for(var i in h){h=h[i];break}return h},merge:function(){for(var i=0,l=arguments.length;i<l;i++)for(var j in arguments[i])c[j]=arguments[i][j];return c},replace:function(a,b){if(typeof a=="number")a=this.key(a);c[''+a]=b;return	c},record:function(a){var k=0;for(var i in c)if(a==k++)return[i,c[i]];return[null,null]},key:function(a){return this.record(a)[0]},value:function(a){return this.record(a)[1]}}};Date.prototype._0=function(a){return(a<10?"0"+a:a)};if(!BROWSER.chrome&&!BROWSER.safari)Array.prototype.toString=Object.prototype.toString=function(){var a=[];var b=function(s){return s.split('\\').join('\\\\').split('"').join('\\"')};for(var k in this){if(a.length)a[a.length-1]+=",";var v=this[k];var c='';if(v.constructor==String)c='"'+b(v)+'"';else c=v.toString();a[a.length]=k+": "+c}a="	"+a.join("\n").split("\n").join("\n	");var s=a;if(this.constructor==Object)s="{\n"+a+"\n}";if(this.constructor==Array)s="[\n"+a+"\n]";return s};var LANG="de";var GLOBAL_PATH="front/";var IMGS_PATH=GLOBAL_PATH+"imgs/";var GOOGLE_MAP_ENABLED=1;var DEBUGGER_ENABLED=1;var BANNERS_ENABLED=1;var AJAX_ENABLED=1;var AJAX_GET="?option=com_exporter&ajax=1";var AJAX_POST="?option=com_exporter&ajax=1";var CACHE_DEFAULT=60;var START_MODE="online";var Debugger={win:null,data:'',init:function(){addEvent(document,"keypress",function(e){var a=e?e:window.event;var b=a.keyCode?a.keyCode:a.which;if(a.ctrlKey&&a.shiftKey&&(b==113||b==81||b==17))Debugger.winopen()})},winopen:function(){this.win=window.open('','debug','scrollbars=no,status=yes,resizable=yes,width=780,height=560');this.load()},load:function(){this.win.document.open();this.win.document.write("<title>AJAX debugger</title><input type='button' value='refresh' onclick='window.opener.Debugger.load()' /><div style='width:100%;height:95%;overflow-y:auto; border:1px solid #555; font:12px \"Courier New\"'>"+this.data+"</div>");this.win.document.close()},add:function(a){a=a.replace(/={20,}/g,"");a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;");a=a.replace(/\t/g,"&nbsp; ");this.now=new Date();this.data+="["+this.now._0(this.now.getHours())+":"+this.now._0(this.now.getMinutes())+":"+this.now._0(this.now.getSeconds())+"]\n";this.data+="====================\n";this.data+=a+"\n\n\n";this.data=this.data.replace(/\n/g,"<br />");return false}};var History={stack:[],cur:null,loc:window.location,domain:window.location.protocol+"://"+window.location.host+"/",isInited:0,isCallback:0,lock:false,init:function(){var a=this;if(BROWSER.ie)this.iframe.create();else setInterval(function(){a.checker()},10);this.isInited=1},add:function(a,b,c){if(this.isCallback)return this.isCallback=0;if(this.lock)return false;if(!this.isInited){this.init()}a=a.replace(/[^#]*/,'');if(a)this.set(a);if(c)document.title=c;if(BROWSER.ie&&!this.stack[a])this.iframe.write(a);this.stack[a]={callback:b,title:c};this.cur=this.loc.hash;return false},load:function(b){if(!this.stack[b])return false;var a=this.stack[b];if(BROWSER.ie)this.set(b);this.lock=true;if(a.callback!=undefined){this.isCallback=1;a.callback()}this.lock=false;if(a.title!=undefined)document.title=a.title;this.cur=this.loc.hash},set:function(a){this.loc.hash=a;this.onhistory(a)},checker:function(){if(this.loc.hash!=this.cur){this.load(this.loc.hash)}},iframe:{create:function(){this.ifr=document.createElement("iframe");this.ifr.src="javascript:false;";this.ifr.style["display"]="none";document.body.appendChild(this.ifr)},write:function(b){var a=this.ifr.contentWindow.document;a.open();a.write('<script>window.parent.History.load("'+b+'");</'+'script>');a.close()}},hash:function(){return location.hash.replace(/#\/?/,"")},params:function(){var a=this.hash();if(!a)return[""];return a.split("/")},link:function(a){History.add(a.href,function(){return GET(a)},BASE_TITLE+': '+a.title)},onhistory:function(a){}};function Box(g){var a,b,c;var d=[];var e=g.firstChild;(a=g.insertBefore(document.createElement("div"),e)).className="top_";(b=a.appendChild(document.createElement("div")));(b.appendChild(document.createElement("b")));(c=b.appendChild(document.createElement("div")));(c.appendChild(document.createElement("div")));(g.appendChild(a.cloneNode(true))).className="bot_";var f=g.getAttribute("skin");if(f!=undefined){var f=(f.indexOf(" ")!=-1?f.split(" "):[f,f]);(a=g.insertBefore(document.createElement("div"),e)).className="top__";(b=a.appendChild(document.createElement("div"))).className="box_"+f[0];(c=b.appendChild(document.createElement("div")));(el_4=c.appendChild(document.createElement("div")));(el_4=g.appendChild(a.cloneNode(true))).className="bot__";_(el_4,"^").className="box_"+f[1]}(a=g.insertBefore(document.createElement("div"),e)).className="shl_";(a.appendChild(document.createElement("div")));(a=g.insertBefore(document.createElement("div"),e)).className="shr_";(a.appendChild(document.createElement("div")));(g.insertBefore(g.ask=document.createElement("div"),e)).className="ask_";(g.insertBefore(g.but_close=document.createElement("a"),e)).className="close_button";if(BROWSER.ie6)initPNG(g);return g};function Move(o,f){var b=this;var f=f?f:{};var g=f.verDrag!=undefined?f.verDrag:true;var h=f.horDrag!=undefined?f.horDrag:true;var j=f.handler!=undefined?f.handler:o;this.bounds=f.bounds!=undefined?f.bounds:{t:0,b:document.body.offsetHeight-o.offsetHeight,l:0,r:document.body.offsetWidth-o.offsetWidth};this.dragEnabled=f.dragEnabled!=undefined?f.dragEnabled:true;var k=false;var l;var m=o.style.cursor;var n=(j.length?j:[j]);for(var i=0;i<n.length;i++){n[i]._=this;n[i].onmousedown=function(e){this._.StartDrag(e)}}this.StartDrag=function(e){this.onStartDrag();if(this.dragEnabled){preventEvent(e);o.style.cursor=g&&h?"move":(g?"n-resize":(h?"e-resize":"pointer"));this.offset={x:Coord(e).x-o.offsetLeft,y:Coord(e).y-o.offsetTop};o.style["margin"]="0px";k=true;document.dragObj=this;document.onmousemove=function(e){this.dragObj.Drag(e)};document.onmouseup=function(e){this.dragObj.EndDrag(e)}}};this.Drag=function(e){if(k){preventEvent(e);this.pos={x:Coord(e).x-this.offset.x,y:Coord(e).y-this.offset.y};if(h)o.style["left"]=this.checkBound(this.pos,"x")+"px";if(g)o.style["top"]=this.checkBound(this.pos,"y")+"px";this.shift={x:(o.offsetLeft-this.bounds.l)/(this.bounds.r-this.bounds.l)*100,y:(o.offsetTop-this.bounds.t)/(this.bounds.b-this.bounds.t)*100};this.onDrag();clearTimeout(l);l=setTimeout(function(){b.onPauseDrag()},500)}};this.EndDrag=function(e){if(k){k=false;o.style.cursor=m;document.onmousemove=null;document.onmouseup=null;this.onEndDrag();clearTimeout(l)}};this.checkBound=function(c,d){var a={begin:d=="x"?this.bounds.l:this.bounds.t,end:d=="x"?this.bounds.r:this.bounds.b};return a.begin>c[d]?a.begin:(a.end<c[d]?a.end:c[d])};this.onStartDrag=function(){};this.onPauseDrag=function(){};this.onDrag=function(){};this.onEndDrag=function(){};return this};function preventEvent(e){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}else if(e.preventDefault)e.preventDefault()};function ScrollBars(p,q){var a=this;var b=p.clientHeight<p.offsetHeight-Num(CSS(p).get("borderBottomWidth"))-Num(CSS(p).get("borderTopWidth"));var c=p.clientWidth<p.offsetWidth-Num(CSS(p).get("borderRightWidth"))-Num(CSS(p).get("borderLeftWidth"));if(!b&&!c)return false;var d,e,f,g,h,i,j,k,l;d=document.createElement("div");d.style["overflow"]="hidden";CSS(p).copy(['position','zIndex','top','left','borderLeftWidth','borderRightWidth','borderTopWidth','borderBottomWidth','borderLeftColor','borderRightColor','borderTopColor','borderBottomColor','borderLeftStyle','borderRightStyle','borderTopStyle','borderBottomStyle','marginLeft','marginRight','marginTop','marginBottom'],d);CSS(p).set({position:"relative",top:0,left:0,zIndex:0,margin:0,border:0});if(b){(d.appendChild(e=document.createElement("div"))).className="scrollerH";(e.appendChild(f=document.createElement("div"))).className="scrollerX";(e.appendChild(g=document.createElement("div"))).className="scrollerXL";(e.appendChild(h=document.createElement("div"))).className="scrollerXR";e.style["position"]=f.style["position"]=g.style["position"]=h.style["position"]="absolute";e.style["overflow"]=f.style["overflow"]=g.style["overflow"]=h.style["overflow"]="hidden";e.style["left"]=g.style["left"]=e.style["bottom"]=h.style["right"]=0}if(c){(d.appendChild(i=document.createElement("div"))).className="scrollerV";(i.appendChild(j=document.createElement("div"))).className="scrollerY";(i.appendChild(k=document.createElement("div"))).className="scrollerYT";(i.appendChild(l=document.createElement("div"))).className="scrollerYB";i.style["position"]=j.style["position"]=k.style["position"]=l.style["position"]="absolute";i.style["overflow"]=j.style["overflow"]=k.style["overflow"]=l.style["overflow"]="hidden";i.style["top"]=k.style["top"]=i.style["right"]=l.style["bottom"]=0}var m=p.cloneNode(true);d.appendChild(m);p.parentNode.replaceChild(d,p);m.customHeight=b?m.offsetHeight-parseInt(CSS(e).get("height")):m.clientHeight;m.customWidth=c?m.offsetWidth-parseInt(CSS(i).get("width")):m.clientWidth;var n=m.clientHeight-m.customHeight;var o=m.clientWidth-m.customWidth;d.style["width"]=m.offsetWidth+"px";d.style["height"]=m.offsetHeight+"px";m.style["overflow"]="hidden";m.style["width"]=parseInt(CSS(m).get("width"))-o+"px";m.style["height"]=parseInt(CSS(m).get("height"))-n+"px";if(o>0)m.style["paddingRight"]=parseInt(CSS(m).get("paddingRight"))+o+"px";if(n>0)m.style["paddingBottom"]=parseInt(CSS(m).get("paddingBottom"))+n+"px";if(b){e.style["bottom"]=BROWSER.ie6&&Math.floor(parseInt(CSS(m).get("height"))/2)*2!=parseInt(CSS(m).get("height"))?"-1px":0;f.style["left"]=CSS(g).get("width");e.style["width"]=m.offsetWidth+"px";e.style["zIndex"]=1;f.startPos=parseInt(CSS(g).get("width"));f.endPos=parseInt(CSS(e).get("width"))-parseInt(CSS(f).get("width"))-parseInt(CSS(h).get("width"))}if(c){i.style["right"]=BROWSER.ie6&&Math.floor(parseInt(CSS(m).get("width"))/2)*2==parseInt(CSS(m).get("width"))?"-1px":0;j.style["top"]=CSS(l).get("height");i.style["height"]=m.offsetHeight+"px";i.style["zIndex"]=1;j.startPos=parseInt(CSS(k).get("height"));j.endPos=parseInt(CSS(i).get("height"))-parseInt(CSS(j).get("height"))-parseInt(CSS(l).get("height"))}if(b){f.move=new Move(f,{verDrag:false,bounds:{l:f.startPos,r:f.endPos}});f.move.onStartDrag=function(){a.onScrollStart();f.move.dragEnabled=m.scrollWidth-m.clientWidth?1:0};f.move.onDrag=function(){m.scrollLeft=Math.round((m.scrollWidth-m.clientWidth)*f.move.shift.x/100)};f.move.onEndDrag=function(){a.onScrollEnd()};f.move.onPauseDrag=function(){a.onScrollPause()};g.onclick=function(){a.onScrollStart();m.scrollLeft-=m.clientWidth;a.onScrollEnd()};h.onclick=function(){a.onScrollStart();m.scrollLeft+=m.clientWidth;a.onScrollEnd()}}if(c){j.move=new Move(j,{horDrag:false,bounds:{t:j.startPos,b:j.endPos}});j.move.onStartDrag=function(){a.onScrollStart();j.move.dragEnabled=m.scrollHeight-m.clientHeight?1:0};j.move.onDrag=function(){a.onScroll();m.scrollTop=Math.round((m.scrollHeight-m.clientHeight)*j.move.shift.y/100)};j.move.onEndDrag=function(){a.onScrollEnd()};j.move.onPauseDrag=function(){a.onScrollPause()};k.onclick=function(){a.onScrollStart();m.scrollTop-=m.scrollHeight;a.onScrollEnd()};l.onclick=function(){a.onScrollStart();m.scrollTop+=m.scrollHeight;a.onScrollEnd()}}m.onscroll=function(){if(b)f.style["left"]=(f.endPos-f.startPos)*(m.scrollLeft/(m.scrollWidth-m.clientWidth))+f.startPos+"px";if(c)j.style["top"]=(j.endPos-j.startPos)*(m.scrollTop/(m.scrollHeight-m.clientHeight))+j.startPos+"px"};this.reset=function(){m.scrollLeft=0;m.scrollTop=0;if(f)f.style["left"]=f.startPos+"px";if(j)j.style["top"]=j.startPos+"px"};this.resize=function(){d.style["width"]=m.offsetWidth+"px";d.style["height"]=m.offsetHeight+"px";if(b){e.style["width"]=m.offsetWidth+"px";f.endPos=f.move.bounds.r=parseInt(CSS(e).get("width"))-parseInt(CSS(f).get("width"))-parseInt(CSS(h).get("width"))}if(c){i.style["height"]=m.offsetHeight+"px";j.endPos=f.move.bounds.b=parseInt(CSS(i).get("height"))-parseInt(CSS(j).get("height"))-parseInt(CSS(l).get("height"))}};this.onScrollStart=function(){};this.onScrollEnd=function(){};this.onScrollPause=function(){};this.scrollerX=f;this.scrollerY=j;return this};function Bar(h){var g=this;this.lock=false;this.isOpen=true;this.init=function(){addEvent(window,"resize",function(){if(window.tm)clearTimeout(tm);window.tm=setTimeout(function(){if(_bar.isOpen)_bar.resize();Map.fixPos(1);window.tm=null},400)});h.style.display="block";h.height=CSS(h).get("height");this.slides_count=0;this.scroll=_("scroll");this.scroll.style.width=document.body.offsetWidth-10+"px";this.scrollbars=new ScrollBars(_("scroll"));this.scroll=_("scroll");this.slides_block=_(this.scroll,"^");this.slides=this.slides_block.getElementsByTagName("a");this.scrollbars.onScrollEnd=this.scrollbars.onScrollPause=function(){g.getSlidesInterval();g.loadSlidesImg()};if(_("menu_sorting"))Box(_("menu_sorting"));this.createButs100();this.close();return this};this.createButs100=function(){var a,b;(this.scroll.parentNode.insertBefore(a=document.createElement("div"),this.scroll.parentNode.firstChild)).className="prev100";(this.scroll.parentNode.insertBefore(b=document.createElement("div"),this.scroll.parentNode.firstChild)).className="next100";a.scroll=b.scroll=this.scroll;a.onclick=function(){this.scroll.scrollLeft-=this.scroll.clientWidth;g.scrollbars.onScrollEnd()};b.onclick=function(){this.scroll.scrollLeft+=this.scroll.clientWidth;g.scrollbars.onScrollEnd()}};this.createSlides=function(e,f){this.slides_count=e.length?e.length:0;if(this.slides_count)this.slides_block.innerHTML="";Map.clear();this.getSlidesInterval();if(this.scrollbars&&this.scrollbars.scrollerX)this.scrollbars.scrollerX.innerHTML=this.slides_count+" "+this.scroll.getAttribute("from")+" "+(f||this.slides_count);if(!this.slides_count)return false;for(var i=0,l=e.length;i<l;i++){var a=makeHTML({tag:"a",i:i,autoload:e[i].autoload,className:e[i].type,aref:e[i].href,href:e[i].hash,target:"uid_page",image:e[i].image,hover:e[i].hover,onstarting:function(){_page.open()},onfocus:function(){this.blur()},onclick:function(){return GET(this)},onmouseover:function(){if(this.hover)_(this,"~img").src=this.hover},onmouseout:function(){if(this.hover)_(this,"~img").src=this.image},append:[{tag:"img",src:IMGS_PATH+"dot.gif"},{tag:(e[i].icon?"i":null),className:e[i].icon},{tag:"u"},{tag:"b",innerHTML:e[i].num}]},this.slides_block);new Tooltip(a,{content:e[i].tooltip,skin:"skin_slide"});if(!GOOGLE_MAP_ENABLED&&e[i].autoload&&!e[i].lockload)a.onclick()}if(BROWSER.ie6)initPNG(this.slides_block);var b=this.curStruct?this.qtype[this.curStruct]["page"]:0;if(b>1)var c=makeHTML({tag:"a",className:e[0].type},this.slides_block);if(f&&e.length==50&&b*50!=f){var d=makeHTML({tag:"a",className:"more "+e[0].type,bar:_bar.curStruct,onclick:function(){_bar.load(this,{page:Number(_bar.qtype[_bar.curStruct]["page"])+1})},onfocus:function(){this.blur()},innerHTML:this.scroll.getAttribute("more")},this.slides_block);CSS(_(h,"~.areabar")).copy("backgroundColor",d)}this.slides_block.cur=null;this.slides=this.slides_block.getElementsByTagName("a");this.slide_width=this.slides.length?this.slides[0].offsetWidth+5:0;this.slides_block.style.width=this.slide_width*this.slides.length+5+"px";this.resize();if(this.scrollbars&&this.scrollbars.reset)this.scrollbars.reset();this.getSlidesInterval();this.loadSlidesImg();this.lock=false;if(!this.isOpen)this.open();drawMarkers(e);if(b>1){this.slides_block.removeChild(c);var c=makeHTML({tag:"a",className:"more "+e[0].type,bar:_bar.curStruct,onclick:function(){_bar.load(this,{page:Number(_bar.qtype[_bar.curStruct]["page"])-1})},onfocus:function(){this.blur()},innerHTML:this.scroll.getAttribute("back")});this.slides_block.insertBefore(c,this.slides_block.firstChild);CSS(_(h,"~.areabar")).copy("backgroundColor",c)}};this.loadSlidesImg=function(){for(var i=this.interval.b;i<this.interval.e;i++){if(this.slides[i]&&this.slides[i].image&&!this.slides[i].loaded){_(this.slides[i],"~img").src=this.slides[i].image;this.slides[i].loaded=true}}if(_page.isOpen&&this.slides.length>this.interval.e)Ask.hide()};this.getSlidesInterval=function(){if(!this.slides.length)this.interval={b:0,c:0,e:0};else{this.interval={};this.interval.b=Math.round(this.scroll.scrollLeft/this.slide_width);this.interval.c=Math.round((document.body.offsetWidth-64)/this.slide_width);this.interval.c=this.slides.length<this.interval.c?this.slides.length:this.interval.c;this.interval.e=this.interval.b+this.interval.c}return this.interval};this.resize=function(){var a=h.style["overflow"];h.style["overflow"]="hidden";this.scroll.style.width=document.body.offsetWidth-10+"px";if(this.scrollbars&&this.scrollbars.resize){this.scrollbars.resize()}h.style["overflow"]=a;return false};this.openclose=function(b){if(this.lock)return false;this.isOpen=b;h.style["overflow"]=h.style["visibility"]=b?"visible":"hidden";h.style["height"]=b?h.height:0;_("progress").style["bottom"]=h.style["height"];LOCK_MAP_AUTORELOAD=b?0:1;if(GOOGLE_MAP_ENABLED&&_("map")&&_("map").getElementsByTagName("span")[0])_("map").getElementsByTagName("span")[0].style["bottom"]=_("map").getElementsByTagName("span")[1].style["bottom"]=_("map").getElementsByTagName("a")[0].style["bottom"]=_("map").getElementsByTagName("a")[1].style["bottom"]=h.style["height"];return false};this.open=function(){if(_page.isOpen)return false;if(_menu.last=="menu_channel")return false;if(this.slides_count==1&&this.slides[0]&&this.slides[0].autoload)return false;this.resize();return this.openclose(1)};this.close=function(){return this.openclose(0)};this.skin=function(a){_(h,"~.areabar").style.backgroundColor=_(h,"~.scrollerX").style.backgroundColor=_(h,"~.prev100").style.backgroundColor=_(h,"~.next100").style.backgroundColor=a};this.curStruct=null;this.set=function(a,b){if(typeof a!="string")a=_ATTR(a,"bar");if(!this.qtype)this.qtype={};if(!this.qtype[a])this.qtype[a]={};for(var i in b)this.qtype[a][i]=b[i]};this.load=function(d,e,f){var a=d?_ATTR(d,"bar"):this.curStruct;if(!a)return false;this.set(a,e);this.qtype[a]["bounds"]=Map.getViewPort();if(!e||(e&&!e["page"]&&!e["target"]&&!e["task"])){this.qtype[a]["page"]=1;this.qtype[a]["autoload_id"]=null}if(this.curStruct!=a){var b="headline";GET({hash:Hash(this.qtype[a]).replace(0,Hash(this.qtype[a]).value(0)+"_"+b),target:b});this.curStruct=a}GET({hash:this.qtype[a],target:this.qtype[a].target,cache_obj:d,oncomplete:_EV(d,"oncomplete")});_dropdown.close();_page.close();if(f){for(var i in f)this.qtype[a][i]=f[i]}if(!d)return false;if(d.aref)GET({target:d.target,ref:d.aref});if(_ATTR(d,"type")!="checkbox"&&_ATTR(d,"type")!="radio")_act(d);var c=_(d,"/.box")||_(d,"/.box box_fs");if(c&&_(c.button,"~u"))_(c.button,"~u").innerHTML=_(d,"~span").innerHTML;this.observe(d);return false};this._default=function(c){for(var i=0,a=_(c,"~@a"),l=a.length;i<l;i++){var b=_ATTR(a[i],"type");if(b){if((b=="checkbox"&&((!!(a[i].checked))!=(!!(a[i].default_checked))))||(b=="radio"&&a[i].default_checked)){a[i].onmouseup();a[i].onclick()}}}};this.toMap=function(b,c){var a=_(b,"/.content^a");if(c)this.set(a,c);a.onclick()};this.observe=function(e){var a=e.parentNode;if(!a)return false;var b=a.getAttribute("observe");if(b){var c=_(a,"~@a");var d=_(b,"~@a");if(d)for(var i=0,l=c.length;i<l;i++)if(c[i]==e){if(_ATTR(c[i],"type")=="checkbox")Checkbox(d[i],c[i].checked);else _act(d[i]);break}}};return this.init()};var Reflection={defaultHeight:0.5,defaultOpacity:0.5,add:function(n,o){Reflection.remove(n);doptions={"height":Reflection.defaultHeight,"opacity":Reflection.defaultOpacity};if(o){for(var i in doptions){if(!o[i]){o[i]=doptions[i]}}}else{o=doptions}try{var d=document.createElement('div');var p=n;var a=p.className.split(' ');var b='';for(j=0;j<a.length;j++){if(a[j]!="reflect"){if(b){b+=' '}b+=a[j]}}var c=Math.floor(p.height*o['height']);var f=Math.floor(p.height*(1+o['height']));var g=p.width;if(document.all&&!window.opera){d.className=b;p.className='reflected';d.style.cssText=p.style.cssText;p.style.cssText='vertical-align: bottom';var h=document.createElement('img');h.src=p.src;h.style.width=g+'px';h.style.marginBottom="-"+(p.height-c)+'px';h.style.filter='flipv progid:DXImageTransform.Microsoft.Alpha(opacity='+(o['opacity']*100)+', style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy='+(o['height']*100)+')';d.style.width=g+'px';d.style.height=f+'px';p.parentNode.replaceChild(d,p);d.appendChild(p);d.appendChild(h)}else{var k=document.createElement('canvas');if(k.getContext){d.className=b;p.className='reflected';d.style.cssText=p.style.cssText;p.style.cssText='vertical-align: bottom';var l=k.getContext("2d");k.style.height=c+'px';k.style.width=g+'px';k.height=c;k.width=g;d.style.width=g+'px';d.style.height=f+'px';p.parentNode.replaceChild(d,p);d.appendChild(p);d.appendChild(k);l.save();l.translate(0,n.height-1);l.scale(1,-1);l.drawImage(n,0,0,g,n.height);l.restore();l.globalCompositeOperation="destination-out";var m=l.createLinearGradient(0,0,0,c);m.addColorStop(1,"rgba(255, 255, 255, 1.0)");m.addColorStop(0,"rgba(255, 255, 255, "+(1-o['opacity'])+")");l.fillStyle=m;if(navigator.appVersion.indexOf('WebKit')!=-1&&navigator.appVersion.indexOf('Chrome')==-1){l.fill()}else{l.fillRect(0,0,g,c*2)}}}}catch(e){}},remove:function(a){if(a.className=="reflected"){a.className=a.parentNode.className;a.parentNode.parentNode.replaceChild(a,a.parentNode)}}};function init_content(h){var b;if(BROWSER.ie7)ie_border_radius.init(h);if(b=_(h,"~@script")){for(var i=0,l=b.length;i<l;i++){if((b[i].type=="ajax/javascript"||!b[i].type)){var c=(new Function(b[i]?b[i].innerHTML:""));if(!b[i].src)c.apply(b[i]);else try{c.apply(b[i])}catch(e){Script.preload(b[i])}}}}if(b=_(h,"~@a")){for(var i=0,l=b.length;i<l;i++){var d=b[i];if(_ATTR(d,"aref"))d.aref=_ATTR(d,"aref");if(!d.aref&&d.href.indexOf("?")!=-1)d.aref=d.href;if(d.aref&&!d.href&&!d.onclick)d.href="#";if(d.aref&&d.aref.indexOf("?")!=-1&&!d.onclick&&d.target.indexOf("_")!=0)d.onclick=function(e){return GET(this,e)};if(_ATTR(d,"type")){if(_ATTR(d,"type")=="submit"){d.onclick=function(){return POST(_(this,"/form"))};var f=_(d,"/form");f.submit_button=d;f.onsubmit=function(){this.submit_button.onclick();return false}}if(_ATTR(d,"type")=="file"){if(_ATTR(d,"selected")!=undefined){_(_ATTR(d,"clear")).obj=d;_(_ATTR(d,"clear")).onclick=function(){Forms.fileBrowse(this.obj,1)};_(_ATTR(d,"clear")).style.display="block";d.style.display="none"}else d.onmouseover=function(){Forms.fileBrowse(this)}}if(_ATTR(d,"type")=="checkbox")d.onmouseup=function(){Checkbox(this)};if(_ATTR(d,"type")=="radio")d.onmouseup=function(){_act(this)};if(_ATTR(d,"type")=="checkbox"&&d.getElementsByTagName("input")[0])Forms.checkbox(d);else if((_ATTR(d,"type")=="checkbox"||_ATTR(d,"type")=="radio")&&_ATTR(d,"checked"))d.onmouseup();if(_ATTR(d,"type")=="copy")d.onmouseover=function(){return setClipboard(this,1)}}if(_ATTR(d,"showhide")){d.onclick=function(a){return item_showhide(this,a)};if(_ATTR(d,"showhide")=="1")d.onclick()}if(_ATTR(d,"vote")!=undefined){d.onclick=function(){return page_comment_vote(this)}}if(_ATTR(d,"autoload")!=undefined&&d.onclick!=undefined){var g=d;if(_ATTR(d,"autoload"))setTimeout(function(){if(g&&g.parentNode)g.onclick()},_ATTR(g,"autoload")*1000);else g.onclick()}if(!d.onfocus)d.onfocus=function(){this.blur()};if(!d.onclick&&d.target.charAt(0)!="_")d.onclick=function(){return false};if(d.title||_ATTR(d,"tooltip"))new Tooltip(d,{skin:_ATTR(d,"tooltip")?"skin_slide":""})}}if(b=_(h,"~@select")){for(var i=0,l=b.length;i<l;i++){new Forms.select(b[i])}}if(b=_(h,"~@img")){for(var i=0,l=b.length;i<l;i++){if(_ATTR(b[i],"reflect")!=undefined){b[i].onload=function(){Reflection.add(this,{height:_ATTR(this,"reflect")/100||null,opacity:_ATTR(this,"opacity")/100||null});this.onload=null};if(h==document)b[i].onload()}}}};function initPNG(d){return false;if(!BROWSER.ie6)return false;var a=d.getElementsByTagName("*");var b;for(var i=0,l=a.length;i<l;i++){if(a[i].currentStyle&&a[i].currentStyle["backgroundAttachment"]!="fixed"){b=a[i].tagName.toLowerCase()=="img"?a[i].src:a[i].currentStyle["backgroundImage"];if(!(/\.png/i).test(b))continue;if(a[i].tagName.toLowerCase()=="img"){a[i].style.width=a[i].offsetWidth;a[i].style.height=a[i].offsetHeight;a[i].src=IMGS_PATH+"dot.gif"}else b=b.replace(/url\(\"(.*)\"\)$/i,"$1");var c=a[i].currentStyle["backgroundRepeat"]=="no-repeat"?"crop":"scale";a[i].style["filter"]='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'",sizingMethod='+c+')';a[i].style["backgroundImage"]="none";a[i].style["backgroundPosition"]="-1000px -1000px"}}};var ie_border_radius={prop:'-ie-border-radius',init:function(d){var a=_(d,"~@script");if(a){for(var i=0,l=a.length;i<l;i++){if(_ATTR(a[i],"priority")=="high"){(new Function(a[i].innerHTML)).apply(a[i]);if(a[i])a[i].parentNode.removeChild(a[i])}}}var b=d.getElementsByTagName("*");for(var i=0,l=b.length;i<l;i++){var c=b[i];if(c&&c.currentStyle[this.prop]&&parseInt(c.currentStyle[this.prop]))this.set(c,this.prop)}},set:function(r,s){if(!r.className.match(s)){if(!document.namespaces.v){document.namespaces.add("v","urn:schemas-microsoft-com:vml")}r.className=r.className.concat(' ',s);var a=parseInt(r.currentStyle[s]);var b=a*2;var c=r.currentStyle.borderColor;var d=r.currentStyle.borderWidth;r.style.borderTop='none';r.style.borderBottom='none';var e=r.currentStyle.backgroundColor;var f=r.currentStyle.backgroundImage.replace(/^url\("(.+)"\)$/,'$1');if(d=="0px"||!parseInt(d))c=e;var g=r.currentStyle.margin;r.style.margin='0';var h=r.currentStyle.styleFloat;r.style.styleFloat='none';var i=r.currentStyle.clear;r.style.clear='none';var j=r.currentStyle.left;r.style.left='0';var k=r.currentStyle.right;r.style.right='0';var l=r.currentStyle.top;r.style.top='0';var m=r.currentStyle.bottom;r.style.bottom='0';var n=r.currentStyle.zIndex;r.style.zIndex=0;var o=r.offsetWidth;r.style.width='auto';var p=r.currentStyle.height;if(navigator.appVersion.indexOf("MSIE 6")==-1)r.style.height='auto';if(parseInt(r.currentStyle.minHeight)>b)r.style.minHeight=parseInt(r.currentStyle.minHeight)-b+'px';var q=r.currentStyle.position;r.style.position='static';r.outerHTML='<div class="'+s+'" style="background: transparent; border: none; padding: 0; margin: '+g+'; float: '+h+'; clear: '+i+'; position: '+q+'; z-index:'+n+'; left: '+j+'; right: '+k+'; top: '+l+'; bottom: '+m+'; width: '+o+';"><v:roundrect arcsize="50%" fillcolor="'+e+'" strokecolor="'+c+'" strokeweight="'+d+'" style="behavior: url(#default#VML); display: block; width:99.8%; height:'+b+'px; margin-bottom:-'+(a+1)+'px;"></v:roundrect>'+r.outerHTML+'<v:roundrect arcsize="50%" fillcolor="'+e+'" strokecolor="'+c+'" strokeweight="'+d+'" style="behavior: url(#default#VML); display: block; width:99.8%; height:'+b+'px; margin-top:-'+a+'px;"></v:roundrect><v:roundrect arcsize="0" fillcolor="'+e+'" strokecolor="'+e+'" strokeweight="0" style="behavior: url(#default#VML); display: block; margin:0 1px; width:99.2%; height:'+a+'px; margin-top:-'+(b+2)+'px;"></v:roundrect></div>'}}};(Ajax=function(a){this.init(a)}).prototype={CACHE:{},init:function(a){a=a||{};this.method=a.method||"http";this.file=a.file||"";this.query=a.query||"";this.caching=a.caching||false;this.hash=a.hash||{};this.onready=a.onready||function(){};if(a.onready)this.send()},send:function(){this.query+=this.json2query(this.hash);try{if(this.caching&&this.CACHE[this.query])return this.ondata(this.CACHE[this.query])}catch(e){};var b=this;var c,d;var f=(new Date()).getTime()+Math.round(Math.random()*1000);switch(this.method){case"http":c=window.XMLHttpRequest?new XMLHttpRequest():(new ActiveXObject("Msxml2.XMLHTTP")||null);if(c){c.open('POST',this.file,true);c.setRequestHeader('Content-Type','application/x-www-form-urlencoded');c.onreadystatechange=function(){if(c.readyState==4){if(c.getResponseHeader('Content-Type')&&c.getResponseHeader('Content-Type').indexOf("/xml")!=-1)d=b.xml2json(c);else d=(new Function('return '+c.responseText))();b.ondata(d)}};c.send(this.query);break}case"script":c=document.createElement("script");if(c){c.id=f;var g=this.file+"?"+"_scriptID_="+c.id+"&"+this.query;if(BROWSER.ie)c.src=g.substr(0,2048);else{c.src=g;c.src=c.src.substr(0,4096)};c.onreadystatechange=function(a){if(a&&!a.initEvent){b.ondata(a);setTimeout(function(){c.parentNode.removeChild(c)},13)}};document.body.appendChild(c);break}case"form":var c=document.createElement(BROWSER.ie?"<iframe name="+f+">":"iframe");if(c){c.name=f;c.style.position="absolute";c.style.visibility="hidden";this.form.appendChild(c);this.form.method="post";this.form.target=c.name;this.form.action=this.file+this.form.action.replace(/.*(\?.*)$/,"$1");c.onreadystatechange=c.onload=function(a){if(!c.readyState||c.readyState=="complete"){b.ondata((new Function('return '+c.contentWindow.document.body.innerHTML))());setTimeout(function(){c.parentNode.removeChild(c)},13)}};this.form.submit();break}default:return c}},ondata:function(a){if(this.caching||this.CACHE[this.query])this.CACHE[this.query]=a;this.response=a;this.onready(a)},json2query:function(c,d){var a="";for(var i in c){var b=(d?d+"["+i+"]":i);a+=(typeof c[i]=="object"?this.json2query(c[i],b):"&"+b+"="+c[i].toString().replace(/&/g,"%26"))}return a},xml2json:function(g){var d=function(c){if(c.childNodes.length==1&&(c.firstChild.nodeType==3||c.firstChild.nodeType==4))return c.firstChild.data;var a={};for(var i=0,b=c.childNodes,l=b.length;i<l;i++)if(b[i].nodeType==1)if(a[b[i].tagName]){if(typeof a[b[i].tagName]=="string"||(typeof a[b[i].tagName]=="object"&&!a[b[i].tagName].length))a[b[i].tagName]=[a[b[i].tagName]];a[b[i].tagName][a[b[i].tagName].length]=d(b[i])}else a[b[i].tagName]=d(b[i]);return a};var e=BROWSER.ie?g.responseXML:(new DOMParser()).parseFromString(g.responseText,"text/xml");var f={obj:{},text:''};if(e&&e.documentElement)f.obj=d(e);return f},onerror:function(a){alert("Server output error...\n"+a)}};var HTMLAJAX=function(k){var j=this;this.init=function(){this.obj=k;this.target=_(_ATTR(k,"target"));this.indicatorShow=eval(_ATTR(k,"indicator"));this.onstarting=_EV(k,'onstarting','request');this.oncomplete=_EV(k,'oncomplete','response');this.onfailure=_EV(k,'onfailure','response');(this.req=new Ajax()).onready=function(a){j.onready(a)};this.cache_time=_ATTR(k,"cache")||_ATTR(k.cache_obj,"cache");return this};this.exec=function(){if(this.target)this.target.call_func=this.constructor.lastCall;if(this.onstarting(this.req.hash)==false)return false;if(this.onbeforesend()==false)return false;if(this.cache_time)this.constructor.cache.set(this.cache_time,this.req,this.obj||this.obj.cache_obj);this.indicator(1);this.req.send();return false};this.indicator=function(b){if(this.constructor.loader&&this.indicatorShow!=0)this.constructor.loader.style.display=b?"block":"none";return false};this.url2query=function(b){if(!b)return"";var a=b.replace(/([^?]*\/)*([^?]*)\??.*/,"$2");if(a)this.req.file=a;b=b.replace(/[^?]*\??/,"");if(!b)return"";b=this.func2query(b);return b};this.func2query=function(h){var b=h.match(/&?[a-z0-9_]+=\(%?[^&]+\)/gi);if(b&&b.length){for(var i=0,a,l=b.length;i<l;i++){a=b[i].split(/=/);var c=false;if(c=/^\(%/.test(a[1]))a[1]=a[1].replace(/^\(%/,"(");var d={};var e=a[0].replace(/&/,"");var f=(new Function('return '+a[1])).apply(k);d[e]=f;var g="";g=this.req.json2query(d);if(c&&typeof g=="string")g=unescape(g);h=h.replace(/&?[a-z0-9_]+=\(%?[^&]+\)/i,g)}}return h};this.onready=function(a){if(!a)return Debugger.add("\nNO RESPONSE!\n");if(DEBUGGER_ENABLED)Debugger.add("(target="+this.obj.target+")\n"+"["+this.req.query+"]\n"+"\n----------\n"+a.obj+"\n----------\n"+a.text);if(this.target){this.target.innerHTML=a.text;if(a.obj)this.targetProp(this.target,a.obj.target);init_content(this.target)}this.onreturn(a);this.constructor.onresponse(a);if(a.obj.complete==undefined||Number(a.obj.complete))this.oncomplete(a);else this.onfailure(a);this.indicator(0)};this.targetProp=function(a,b){if(b)for(var i in b)a[i]=b[i]};this.onbeforesend=function(){};this.onreturn=function(){};return this.init()};HTMLAJAX.loader=null;HTMLAJAX.onresponse=function(){};HTMLAJAX.lastCall=null;HTMLAJAX.cache={MULTIPLIER:60*1000,from:(new Date()).getTime(),init:function(c){var a={};var b=(new Date()).getTime();a.period=Number(c=="*"?CACHE_DEFAULT:c);a.start=b;a.end=b+a.period*this.MULTIPLIER;return a},expire:function(b){var a=(new Date()).getTime();if(b.end<a||b.start<this.from){b.start=a;b.end=this.init(b.period).end;return true}return false},set:function(a,b,c){if(a&&c){if(!c.cache_param)c.cache_param=this.init(a);if(!this.expire(c.cache_param)&&!c.nocaching)b.caching=true}},reset:function(){this.from=(new Date()).getTime()}};function GET(c){if(!AJAX_ENABLED)return false;if(!SITE_LOCKED)HTMLAJAX.lastCall=function(e){window["GET"](c,e)};var b=new HTMLAJAX(c);b.req.file=AJAX_GET;b.req.query=b.url2query(c.ref||c.aref||_ATTR(c,"aref")||_ATTR(c,"href"));if(c.nodeType!=1&&c.hash)b.req.hash=c.hash;if(!b.req.query&&!c.hash)return false;b.onbeforesend=function(){if(this.target&&this.indicatorShow!=0)this.target.innerHTML=HTMLAJAX.loader?HTMLAJAX.loader.alt:"..."};b.onreturn=function(a){_act(c);if(GET.onresponse)GET.onresponse(this)};return b.exec()};function POST(c,e){if(!AJAX_ENABLED)return false;if(!SITE_LOCKED)HTMLAJAX.lastCall=function(){window["POST"](c)};if(c.in_process)return false;c._form=(c.tagName=="FORM"?c:(c.form||_(c,"/form")));htmlajax=new HTMLAJAX(c);htmlajax.req.file=AJAX_POST;htmlajax.req.query=htmlajax.url2query(_ATTR(c._form,"action"));if(c._form.elements)for(var i=0;i<c._form.elements.length;i++){if(c._form.elements[i].tagName=="FIELDSET")continue;var b=((!c._form.elements[i].getAttribute("flag")&&!_ATTR(c,"flag"))||(c._form.elements[i].getAttribute("flag")&&_ATTR(c,"flag")&&c._form.elements[i].getAttribute("flag")==_ATTR(c,"flag"))?1:0);if(b&&c._form.elements[i].getAttribute("send")!=undefined)b=eval(c._form.elements[i].getAttribute("send"));if(b&&c._form.elements[i].type=="checkbox")htmlajax.req.hash[c._form.elements[i].name]=(c._form.elements[i].checked?1:0);else if(b&&c._form.elements[i].type=="radio"){if(c._form.elements[i].checked)htmlajax.req.hash[c._form.elements[i].name]=c._form.elements[i].value}else if(b&&c._form.elements[i].type=="file")htmlajax.req.hash[c._form.elements[i].name]=c._form.elements[i];else if(b)htmlajax.req.hash[c._form.elements[i].name]=c._form.elements[i].value}htmlajax.onbeforesend=function(){c.in_process=1};htmlajax.onreturn=function(a){setTimeout(function(){c.in_process=0},500);if(POST.onresponse)POST.onresponse(this)};return htmlajax.exec()};function LabeledMarker(a,b){this.latlng_=a;this.opts_=b||{};this.labelText_=this.opts_.labelText||"";this.labelClass_=this.opts_.labelClass||"LabeledMarker_markerLabel";this.labelOffset_=this.opts_.labelOffset||new GSize(0,0);this.clickable_=this.opts_.clickable||true;GMarker.apply(this,arguments)};function InitLabeledMarker(){LabeledMarker.prototype=new GMarker(new GLatLng(0,0));LabeledMarker.prototype.initialize=function(g){GMarker.prototype.initialize.apply(this,arguments);this.obj=g.getPane(G_MAP_MARKER_PANE).lastChild;this.mapa_=g;this.div_=document.createElement("div");this.div_.className=this.labelClass_;this.div_.innerHTML=this.labelText_;this.div_.style.position="absolute";this.label=this.div_;g.getPane(G_MAP_MARKER_PANE).appendChild(this.div_);if(this.clickable_){function newEventPassthru(a,b){return function(e){GEvent.trigger(a,b,e)}};var c=['click','dblclick','mousedown','mouseup','mouseover','mouseout'];for(var i=0,d=c.length;i<d;i++){var f=c[i];GEvent.addDomListener(this.div_,f,newEventPassthru(this,f))}}};LabeledMarker.prototype.redraw=function(a){GMarker.prototype.redraw.apply(this,arguments);var p=this.mapa_.fromLatLngToDivPixel(this.latlng_);var z=GOverlay.getZIndex(this.latlng_.lat());this.div_.style.left=(p.x+this.labelOffset_.width)+"px";this.div_.style.top=(p.y+this.labelOffset_.height)+"px";this.div_.style.zIndex=z};LabeledMarker.prototype.remove=function(){GEvent.clearInstanceListeners(this.div_);if(this.div_.outerHTML){this.div_.outerHTML=""}if(this.div_.parentNode){this.div_.parentNode.removeChild(this.div_)}this.div_=null;GMarker.prototype.remove.apply(this,arguments)};LabeledMarker.prototype.copy=function(){return new LabeledMarker(this.latlng_,this.opt_opts_)}}var mapa;var MARKERS={};var CUR_MARKER;var SLIDES=[];var SET_MARKER_FLAG;var MOVEEND_FUNCTION=[];var MAP_IS_MOVED=false;var LOCK_MAP_AUTORELOAD=1;var POINTS=[];var MAP_MOVE_TM;var LOCATION={latitude:51.78144,longitude:10.45898,zoom:5,type:0};var Marker={icon:{},opener:{},initIcon:function(a,b,c,d,e,f,g,h,i,j){this.icon[a]=new GIcon();this.icon[a].image=IMGS_PATH+b;this.icon[a].over=c?IMGS_PATH+c:null;this.icon[a].iconSize=new GSize(e,f);if(!BROWSER.ie6){this.icon[a].shadow=IMGS_PATH+d;this.icon[a].shadowSize=new GSize(g,h)}this.icon[a].iconAnchor=new GPoint(i,j);this.icon[a].infoWindowAnchor=new GPoint(0,0)}};var Map={init:function(g){if(!GOOGLE_MAP_ENABLED||!GBrowserIsCompatible())return;addEvent(window,"unload",GUnload);if(this.onresize){addEvent(window,"resize",this.onresize);if(!BROWSER.ie)this.onresize()}this.block=_(g);mapa=new GMap2(this.block);InitLabeledMarker();this.geocoder=new GClientGeocoder();Marker.initIcon("news","marker_n.png","marker_n_over.png","marker_n_shad.png",28,53,49,53,14,53);Marker.initIcon("user_L","marker_u_l.png","","marker_u_shad.png",25,59,40,59,13,59);Marker.initIcon("user_D","marker_u_d.png","","marker_u_shad.png",25,59,40,59,13,59);Marker.initIcon("place","marker_o.png","","marker_o_shad.png",32,37,56,37,14,37);Marker.initIcon("live","marker_l.png","marker_l_over.png","marker_n_shad.png",28,53,49,53,14,53);Marker.opener.page={type:"page",ui:"_page",id:"page",content:"uid_page",shift:{x:0,y:165},fixY:_page.getOffset};Marker.opener.place={type:"place",ui:"_popup",id:"dialog_place",content:"uid_dialog_place",shift:{x:-235,y:21}};mapa.enableScrollWheelZoom();mapa.enableContinuousZoom();mapa.addMapType(G_PHYSICAL_MAP);mapa.disableInfoWindow();GEvent.addListener(mapa,"zoomend",function(a,b){if(b<2)mapa.setZoom(2);if(_page.isOpen&&!MAP_IS_MOVED&&Ask.isDock&&CUR_MARKER)moveToMarker()});GEvent.addListener(mapa,"click",function(a,b){if(SET_MARKER_FLAG)setMarker(b)});GEvent.addListener(mapa,"dragstart",function(){Ask.hide()});GEvent.addListener(mapa,"movestart",function(){if(MAP_MOVE_TM)clearTimeout(MAP_MOVE_TM);MAP_IS_MOVED=true});GEvent.addListener(mapa,"moveend",function(){if(!MOVEEND_FUNCTION[0]&&!LOCK_MAP_AUTORELOAD&&_menu.last!="menu_search"&&!_page.isOpen){if(MAP_MOVE_TM)clearTimeout(MAP_MOVE_TM);MAP_MOVE_TM=setTimeout(function(){if(!LOCK_MAP_AUTORELOAD)_bar.load()},2000)}while(MOVEEND_FUNCTION[0])MOVEEND_FUNCTION.pop()();mapa.savePosition();MAP_IS_MOVED=false});var c=_('but_map_type').lang.split("|");for(var i=0,d=[],l=c.length;i<l;i++)d[i]={tag:"a",num:i,href:"#"+i,innerHTML:c[i],onfocus:function(){this.blur()},onclick:function(){return Map.setType(this.num)},className:i?"":"act"};makeHTML({tag:"div",append:d},_popup.block.dialog_map_type.content);var e=_("map_controls");e.style["display"]="block";_(e,"$div~@a")[0].onclick=function(){mapa.zoomIn();return false};_(e,"$div~@a")[1].onclick=function(){mapa.zoomOut();return false};_(e,"$div~@a")[3].onclick=function(){if(this.className=="world"){this.className="world_act";mapa.setZoom(Number(_ATTR(this,"zoom")))}else{this.className="world";loadUserScope()}};var f=_(e,"$div~@a")[2];f.move=new Move(f,{horDrag:false,bounds:{t:21,b:107}});f.move.onEndDrag=function(){if(f.move&&f.move.shift)mapa.setZoom(Math.round(18*(100-f.move.shift.y)/100)+2)};GEvent.addListener(mapa,"zoomend",function(a,b){if(b<=2)b=2;f.style["top"]=Number(f.move.bounds.b-Math.round((f.move.bounds.b-f.move.bounds.t)*(b-2)/18))+"px"});Map.onload()},onresize:function(){if(!_page.isOpen)_("map").style.height=document.body.offsetHeight-112+"px"},getType:function(){var a=mapa.getMapTypes();for(var i=0,l=a.length;i<l;i++)if(a[i]==mapa.getCurrentMapType())return i},setType:function(a){if(mapa&&Map.getType()!=a){switch(Number(a)){case 0:mapa.setMapType(G_NORMAL_MAP);break;case 1:mapa.setMapType(G_SATELLITE_MAP);break;case 2:mapa.setMapType(G_HYBRID_MAP);break;case 3:mapa.setMapType(G_PHYSICAL_MAP);break;case 4:mapa.setMapType(G_SATELLITE_3D_MAP);break;default:}var items=_(_popup.block.dialog_map_type.content,"~@a");if(items){_act(items[a]);_("but_map_type").innerHTML=items[a].innerHTML}}if(_popup.block.dialog_map_type.isOpen)_popup.close("dialog_map_type");return false},getScope:function(){var c=mapa.getCenter();return{latitude:c.lat(),longitude:c.lng(),zoom:mapa.getZoom(),type:Map.getType()}},setScope:function(a){if(mapa){if(a.latitude!=undefined&&a.longitude!=undefined){MOVEEND_FUNCTION.push(function(){});mapa.setCenter(new GLatLng(a.latitude,a.longitude))}if(a.zoom!=undefined){MOVEEND_FUNCTION.push(function(){});mapa.setZoom(a.zoom)}if(a.type!=undefined)Map.setType(a.type)}},fixPos:function(a){if(!mapa)return false;mapa.checkResize();if(a&&!BROWSER.ie6)mapa.returnToSavedPosition()},clear:function clearMarkers(){if(mapa)mapa.clearOverlays()},getViewPort:function(){if(!GOOGLE_MAP_ENABLED||!mapa)return false;var a=Map.boundsNormalize(mapa.getBounds());var b=a.getSouthWest();var c=a.getNorthEast();return{n:{lng:c.lng(),lat:c.lat()},s:{lng:b.lng(),lat:b.lat()}}},setViewPort:function(f){if(!GOOGLE_MAP_ENABLED||!f[0])return false;var a=Number(f[0]["lng"]);var b=Number(f[0]["lat"]);var c=Number(f[0]["lng"]);var d=Number(f[0]["lat"]);for(var i=0;i<f.length;i++){a=Number(f[i]["lng"])>a?Number(f[i]["lng"]):a;b=Number(f[i]["lat"])>b?Number(f[i]["lat"]):b;c=Number(f[i]["lng"])<c?Number(f[i]["lng"]):c;d=Number(f[i]["lat"])<d?Number(f[i]["lat"]):d}var e=new GLatLngBounds(new GLatLng(d,c),new GLatLng(b,a));MOVEEND_FUNCTION.push(function(){});mapa.setCenter(e.getCenter(),mapa.getBoundsZoomLevel(e))},boundsNormalize:function(d){var a=d.getSouthWest();var b=mapa.fromLatLngToDivPixel(a);a=mapa.fromDivPixelToLatLng(new GPoint(b.x+15,b.y-150));var c=d.getNorthEast();var b=mapa.fromLatLngToDivPixel(c);c=mapa.fromDivPixelToLatLng(new GPoint(b.x-15,b.y+80));return new GLatLngBounds(a,c)},distance2bounds:function(g,h){if(!GOOGLE_MAP_ENABLED)return null;h*=1000;var a=new GLatLng(Number(g.latitude),Number(g.longitude));var b=a.latRadians();var c=h*0.0000089831529;var d=Math.acos((Math.cos(h/6378137)-Math.sin(b)*Math.sin(b))/(Math.cos(b)*Math.cos(b)))*180/Math.PI;var e=new GLatLng(a.lat()-c,a.lng()-d);var f=new GLatLng(a.lat()+c,a.lng()+d);return{n:{lng:f.lng(),lat:f.lat()},s:{lng:e.lng(),lat:e.lat()}}},onload:function(){}};function moveToMarker(d){var a;d=d||mapa.getZoom();if(_popup.block.dialog_place.isOpen)a=Marker.opener.place;else if(_page.isOpen)a=Marker.opener.page;if(!a)return false;if(d!=mapa.getZoom()){MOVEEND_FUNCTION.push(function(){});mapa.setZoom(d)}if(!CUR_MARKER)return false;var b=mapa.fromLatLngToDivPixel(CUR_MARKER.getPoint());var c=mapa.fromDivPixelToLatLng(new GPoint(b.x+a.shift.x,b.y+a.shift.y+(a.fixY?a.fixY():0)));MOVEEND_FUNCTION.push(function(){});mapa.setCenter(c,mapa.getZoom());return false};function panToMarker(c,x,y,d){if(d)y+=d();var a=mapa.fromLatLngToDivPixel(c.getPoint());var b=mapa.fromDivPixelToLatLng(new GPoint(a.x+x,a.y+y));if(SITE_LOADED)mapa.panTo(b);else mapa.setCenter(b)};function setMarker(a){if(!a)return false;if(!MARKERS[SET_MARKER_FLAG]){MARKERS[SET_MARKER_FLAG]=new GMarker(a,{icon:Marker.icon[SET_MARKER_FLAG],draggable:true});mapa.addOverlay(MARKERS[SET_MARKER_FLAG])}else MARKERS[SET_MARKER_FLAG].setPoint(a)};function MarkerHistory(b){if(!CUR_MARKER)return false;var a=CUR_MARKER.sid;History.add(b.href,function(){if(_(a))_(a).onclick();else GET(b)},BASE_TITLE+': '+b.title)}function createMarker(g){var c=g.type=="user"?(g.online?"user_L":"user_D"):g.type;var d=Marker.icon[c];var e={"icon":d,"clickable":true,"draggable":false,"labelText":g.num,"labelClass":"marker_label marker_label_"+g.type,"labelOffset":new GSize(-13,-43)};var f=new LabeledMarker(new GLatLng(g.lat,g.lng),e);f.num=g.num;f.type=g.type;f.icon=c;f.opener=Marker.opener[g.opener||"page"];f.href=g.href;f.hash=g.hash;f.lockload=g.lockload;f.map={zoom:g.mapZoom,type:g.mapType};f.sid="sid_"+(POINTS[0]?POINTS[0].mode:g.mode)+(g.lat&&g.lng?(g.lat+"").replace(/[-.]/,"")+(g.lng+"").replace(/[-.]/,""):Math.round(Math.random()*Math.pow(10,16)));f.slide=g.slide?g.slide:_bar.slides[f.num-1];f.slide.marker=f;f.slide.id=f.sid;f.slide.onclick=function(){return f.onMarkerClick(f)};f.slide.onmouseover=function(){f.rollover(f,1)},f.slide.onmouseout=function(){f.rollover(f,0)},f.panTo=function(){if(_(this.sid))_act(this.slide);if(_(this.sid))panToMarker(this,this.opener.shift.x,this.opener.shift.y,this.opener.fixY);return this};f.onMarkerClick=function(a){_popup.close();_page.close();window[a.opener.ui].block[a.opener.id].marker=a;if(MAP_IS_MOVED)MOVEEND_FUNCTION.push(function(){window[a.opener.ui].open(a.opener.id)});else window[a.opener.ui].open(a.opener.id);setTimeout(function(){GET({target:a.opener.content,ref:(a.lockload?null:a.href)});a.lockload=null},13);a.panTo();return false};f.rollover=function(a,b){clearTimeout(a.tm);a.tm=setTimeout(function(){if(d.over)a.setImage(d[b?"over":"image"]);if(a.slide){if(a.slide.hover)_(a.slide,"~img").src=a.slide[b?"hover":"image"];Style(a.slide)[b?"add":"remove"]("act")}})};GEvent.addListener(f,"click",function(){f.onMarkerClick(f)});GEvent.addListener(f,"mouseover",function(){f.rollover(f,1)});GEvent.addListener(f,"mouseout",function(){f.rollover(f,0)});mapa.addOverlay(f);if(g.tooltip){new Tooltip(f.obj,{content:g.tooltip,skin:"skin_slide skin_marker",anotherHandle:f.label})}if(g.autoload){f.onMarkerClick(f);g.autoload=null}return f};function drawMarkers(b){POINTS=b||POINTS;if(!GOOGLE_MAP_ENABLED||!mapa||!POINTS)return false;if(MAP_MOVE_TM)clearTimeout(MAP_MOVE_TM);_popup.close("dialog_tooltip");Map.clear();var a=[];if(!mapa.isLoaded())Map.setScope(LOCATION);for(var i=0,l=POINTS.length;i<l;i++){a.push(createMarker(POINTS[i]))}if(POINTS&&POINTS[0]&&POINTS[0].setViewPort){LOCK_MAP_AUTORELOAD=1;Map.setViewPort(POINTS);moveToMarker()}return a};function searchAddress(b){if(Map.geocoder){Map.geocoder.getLatLng(b.value,function(a){if(!a){document.alert(Lang['js_address_error']+" "+b.value)}else{mapa.setCenter(a);setMarker(a)}})}return false};function searchPlaces(j){_bar.close();if(Map.geocoder)Map.geocoder.getLocations(Search.form("searchword").value,function(h){h=h?h.Placemark:null;_(j.parentNode,"~span").innerHTML=h?h.length:0;j.parentNode.style.display="block";var a=_(j,"^div").cloneNode(true);j.innerHTML="";Map.clear();if(h){for(var i=0,l=h.length;i<l;i++){var b=h[i].address.replace(/^([^,]*).*/,"$1");var c=h[i].address.replace(/[^,]*,(.*)$/,"$1");var d=h[i].ExtendedData.LatLonBox;var e=a.cloneNode(true);var f=_(e,"~a");var g=_(e,"~p^a");f.zoom=mapa.getBoundsZoomLevel(new GLatLngBounds(new GLatLng(d.south,d.west),new GLatLng(d.north,d.east)));f.marker=createMarker({num:(i+1),type:"place",opener:"place",lat:h[i].Point.coordinates[1]+"",lng:h[i].Point.coordinates[0]+"",href:(_ATTR(g,"aref")||_ATTR(g,"href"))+"&city="+b+"&region="+c+"&scope=(Map.getScope())",slide:f});f.onmousedown=function(){_popup.block.dialog_place.isOpen=true;CUR_MARKER=this.marker;moveToMarker(this.zoom);return false};g.innerHTML=b;g.slide=f;g.onmousedown=function(){return this.slide.onmousedown()};g.onclick=function(){return this.slide.onclick()};_(e,"~dfn").innerHTML=(i+1);_(e,"~p>p").innerHTML=c;_(e,"~i").innerHTML+=h[i].AddressDetails.Country.CountryNameCode;j.appendChild(e)}_(j,"~a").onmousedown();_(j,"~a").onclick()}else if(j.lang)j.innerHTML='<br />"'+Search.form("searchword").value+'" '+j.lang})};var Tooltip=function(a,b){this.init(a,b)};Tooltip.prototype={init:function(c,a){var a=a||{};this.delay=a.delay||400;this.block=a.block||_("dialog_tooltip");this.content=a.content||_ATTR(c,"tooltip")||_ATTR(c,"title")||"";this.classDefault="box";this.skin=a.skin||_ATTR(c,"skin")||"skin_default";if(!a.title)c.title="";var b=this;addEvent(c,"mouseover",function(e){b.preopen(e)});addEvent(c,"mousemove",function(e){b.move(e)});addEvent(c,"mouseout",function(e){b.preclose(e)});addEvent(c,"mousedown",function(e){b.preclose(e)});if(a.anotherHandle){addEvent(a.anotherHandle,"mouseover",function(e){b.preopen(e)});addEvent(a.anotherHandle,"mousemove",function(e){b.move(e)});addEvent(a.anotherHandle,"mouseout",function(e){b.preclose(e)});addEvent(a.anotherHandle,"mousedown",function(e){b.preclose(e)})}if(!arguments.callee.inited){arguments.callee.inited=1;addEvent(this.block,"mousemove",function(e){b.move(e)})}},preopen:function(e){if(this.delay){var a=this;clearInterval(this.tm_close);this.tm_open=setTimeout(function(){a.open(e)},this.delay)}else this.open(e)},preclose:function(e){if(this.delay){var a=this;clearInterval(this.tm_open);this.tm_close=setTimeout(function(){a.close(e)},this.delay/5)}else this.close(e)},open:function(e){try{if(MAP_IS_MOVED)return false;var _this=this;this.isOpen=true;if(this.content&&this.content.indexOf("?")==0)GET({ref:_this.content,target:_this.block.content,cache:"*"});else this.block.content.innerHTML=this.content;this.block.style.visibility="hidden";this.block.style.display="block";this.block.isOpen=true;this.block.className=this.classDefault+" "+this.skin;this.setPos(this.coord);this.block.style.visibility="visible"}catch(e){}},close:function(e){try{if(!this.isOpen)return false;this.isOpen=false;this.block.isOpen=false;this.block.style.display="none"}catch(e){}},move:function(e){try{this.coord=Coord(e);if(!this.isOpen)return false;this.setPos(this.coord)}catch(e){}},setPos:function(a){if(a){if(this.block.ask)this.block.ask.className="ask_";var c={t:a.y-this.block.offsetHeight,l:a.x,mt:parseInt(CSS(this.block).get("marginTop"))+8,ml:parseInt(CSS(this.block).get("marginLeft"))+8,w:parseInt(CSS(this.block).get("width"))-19,h:parseInt(CSS(this.block).get("height"))+37};if(c.l+c.ml<0){c.l=c.l-c.w-c.ml*2;this.block.ask.className="ask_ ask2_"}if(c.l+c.ml<0)c.l=-c.ml;this.block.style.top=c.t+"px";this.block.style.left=c.l+"px"}}};function Tabs(c){if(!(this.tabs_root=_(c,"~.tabs")))return{};if(!(this.fields_root=_(c,"~.tab_field")))return{};this.init=function(){this.disabled=false;this.items=_(this.tabs_root,"~@a");this.blockquote=_(this.fields_root,"~@blockquote");this.fields=[];for(var i=0,l=this.blockquote.length;i<l;i++)this.fields.push(this.blockquote[i]);for(var i=0,l=this.items.length;i<l;i++){this.items[i].root=this;this.items[i].num=i;this.items[i].isOpen=false;this.items[i].loaded=this.items[i].loaded?true:false;this.items[i].onclick=function(){return this.root.activate(this)};this.items[i].noact=true}this.activate(this.cur?this.cur:this.items[0]);return this};this.onopen=function(){};this.onclose=function(){};this.openclose=function(a,b){Style(a)[b?"add":"remove"]("act");a.isOpen=b;b?this.onopen():this.onclose();if(this.fields[a.num])Style(this.fields[a.num])[b?"add":"remove"]("act")};this.activate=function(a){if(this.disabled||a.disabled)return false;if(this.cur)this.openclose(this.cur,0);this.cur=a;this.openclose(a,1);return false};this.set=function(a){this.activate(this.items[a]);return false};this.step=function(d){if(Number(this.cur.num)+d<0||Number(this.cur.num)+d>=this.items.length)return false;return this.activate(this.items[Number(this.cur.num)+d])};this.reset=function(){for(var i=0;i<this.items.length;i++){this.items[i].loaded=false;this.fields[i].innerHTML=""}this.activate(this.cur||this.items[0])};return this.init()};var _menu={cur:null,block:{},close_dialogs:true,lock:false,last:"",init:function(d){var a=this;var b=_(d,"~@a");for(var i=0;i<b.length;i++)if(b[i].lang){var c=this.block[b[i].lang]=_(b[i].lang);c.content=_(c,"~div.content");c.areabar=_(c,"~div.areabar");c.name=b[i].lang;c.mi=b[i];c.mi.parent=c;if(c.mi.onclick==undefined)c.mi.onclick=function(){return a.open(this.parent.name)};c.mi.classBaseName=c.mi.className}},initBlock:function(b){var a=this;b.root=b.mi.root=this;b.isOpen=0;b.box=_(b,"~div.box");b.tabs=_(b,"~.tabs");if(b.tabs)_act(_(b.tabs,"~@a")[_ATTR(b.tabs,"autoload")||0]);if(b.box){Box(b.box);b.box.but_close.block=b;b.box.but_close.onclick=function(){return a.openclose(this.block,0)}}return b},openclose:function(a,b){if(b&&a.onopen)a.onopen();a.mi.className=a.mi.classBaseName+(b?" act "+a.mi.classBaseName+"_act":"");if(a.areabar){a.areabar.style.display=b?"block":"none";a.areabar.style["backgroundColor"]=CSS(a.mi).get("backgroundColor")}else if(a.box){a.box.style.top=(b?95:-400)+"px"}a.isOpen=b;this.cur=(b?a:null);if(!b&&a.onclose)a.onclose();return false},open:function(c,d){if(this.lock)return false;if(!this.block[c].root)this.initBlock(this.block[c]);var a=this.block[c].isOpen;var b=this.block[c].tabs;if(this.cur)this.close();if(!a)this.openclose(this.block[c],1);this.onopen();if(b&&this.block[c].isOpen&&!d&&b.cur){b.cur.onclick?b.cur.onclick():GET(b.cur)};if(d&&b&&b.cur){b.unset();b.cur=_(b,"~a")}this.last=c;return false},close:function(){if(this.lock)return false;if(this.cur)this.openclose(this.cur,0);this.onclose()},minmax:function(b,m){var a=this.block[b];if(a.minimized==m)return false;a.minimized=m;a.style.overflow=m?"hidden":"visible";_(a,"~div.tab_field").style.display=m?"none":"block";a.box.style.top=(!m?95:-400)+"px";a.box.but_close.style.display=m?"none":"block";return false},minimize:function(a){if(this.block[a].onminimize)this.block[a].onminimize();return this.minmax(a,1)},maximize:function(a){if(this.block[a].onmaximize)this.block[a].onmaximize();return this.minmax(a,0)}};var _popup={cur:null,block:{},init:function(b){var a=_(b,"@div.box");for(var i=0;i<a.length;i++)this.initOne(a[i])},initOne:function(a){a.name=a.id;this.block[a.name]=a;a.content=_(a,"div.content");return a},initBlock:function(b){var a=this;b.root=this;b.type="";b.lock=0;b.disabled=0;b.box=b;Box(b.box);b.box.but_close.block=b;b.box.but_close.onclick=function(){return a.close(this.block.name)};return b},create:function(b,c){if(_(b))return false;var a=document.createElement("div");a.id=b;a.className="box";(a.appendChild(document.createElement("div"))).className="content";if(c)_(root).insertBefore(a,c);else _(root).appendChild(a);return this.initOne(a)},display:function(a,b){if(this.block[a].disabled)return false;this.cur=a;this.block[a].style.display=(b?"block":"none");this.block[a].isOpen=b;return true},open:function(b){var a=this.block[b];if(!a.root){this.initBlock(a);if(a.oninit)a.oninit(b)}this.onopen();if(this.display(b,1)&&a.onopen)a.onopen(b);return false},close:function(a){if(!a){for(var a in this.block)if(this.block[a].isOpen)this.close(a);return false}else if(a.nodeType==1){while(a.className!="box")a=a.parentNode;if(a.name)a=a.name;else return false}this.onclose();if(this.block[a].isOpen&&this.display(a,0)&&this.block[a].onclose)this.block[a].onclose(a);return false},toggle:function(a){if(this.block[a].disabled)return false;return this[this.block[a].isOpen?'close':'open'](a)},clone:function(c){var a=this.block[c].cloneNode(false);this.block[c].parentNode.appendChild(a);var b=this.block[c].content.cloneNode(true);a.appendChild(b);a.name=c+Math.round(Math.random()*1000);this.block[a.name]=this.initBlock(a);this.block[a.name].content=_(this.block[a.name],"div.content");return a.name},write:function(a,b){this.block[a].content.innerHTML=b;return false},load:function(a,b){if(_ATTR(this.block[a].content,"src")){GET({ref:_ATTR(this.block[a].content,"src"),target:this.block[a].content,oncomplete:b});this.block[a].loaded=1;this.block[a].content.removeAttribute("src")}else if(b)b();return false},reload:function(a){if(typeof this.block[a].content.call_func=="function")this.block[a].content.call_func()},setPos:function(a,b){if(b){this.block[a].style.top=b.y-this.block[a].offsetHeight+"px";this.block[a].style.left=b.x+"px"}},attachBlur:function(b){var a=this;addEvent(a.block[b],"mouseover",function(){a.block[b].isOver=1});addEvent(a.block[b],"mouseout",function(){a.block[b].isOver=0});addEvent(document,"mousedown",function(){if(a.block[b].isOpen&&!a.block[b].isOver&&!Modal.isOpen){_popup.close(b);a.block[b].lock=1}});addEvent(document,"mouseup",function(){if(a.block[b].lock)setTimeout(function(){a.block[b].lock=0},12)})},onopen:function(){},onclose:function(){}};var _dropdown={cur:null,block:{},init:function(b){var a=_(b,"@div.box");for(var i=0;i<a.length;i++){a[i].name=a[i].id;this.block[a[i].name]=a[i];a[i].content=_(a[i],"div.content")}},initBlock:function(b){var a=this;b.root=this;b.box=b;Box(b.box);b.isOpen=0;b.box.but_close.target=b.name;b.box.but_close.onclick=function(){return a.close(this.target)};this.attachBlur(b);return b},load:function(a,b){if(this.block[a].content.getAttribute("src")){GET({ref:this.block[a].content.getAttribute("src"),target:this.block[a].content,oncomplete:b});this.block[a].loaded=1;this.block[a].content.removeAttribute("src")}},open:function(e,f,g){var a=this.block[e.target];if(!a.root)this.initBlock(a);if(a.lock)return false;this.load(e.target);if(!g)a.button=e;this.onopen();if(!a.isOpen){Style(a)[_(a.button,"/:dialog_fs")?"add":"remove"]("box_fs");CSS(a).set({visibility:'hidden',display:'block'});a.width=a.offsetWidth;a.height=a.offsetHeight;a.direction=_(a,".close_button").offsetTop<10?0:1;CSS(a).set({visibility:'visible',display:'none'});var b={top:a.button.offsetTop,left:a.button.offsetLeft};for(var i=0,c=_(a.button,"/@/"),l=c.length;i<l;i++){var d=CSS(c[i]).get('position');if(d!="static"){b.top+=c[i].offsetTop;b.left+=c[i].offsetLeft}if(CSS(c[i]).get('overflow')=="auto"){b.top-=c[i].scrollTop;b.left-=c[i].scrollLeft}if(d=="fixed")break}b.top+=a.button.offsetHeight-(!a.direction?a.height+34:0);b.left-=_("dropdown").offsetLeft+Math.round(a.width/2-a.button.offsetWidth/2);CSS(a).set({marginTop:b.top+"px",marginLeft:b.left+"px"});this.cur=a}a.isOpen=showhide(a,{'show':f,sender:a.button})},close:function(b){var a;this.onclose();if(this.cur)a=this.cur;if(b)a=this.block[b];if(a)a.isOpen=showhide(a,{'show':0,sender:a.button})},attachBlur:function(b){var a=this;addEvent(b,"mouseover",function(){b.isOver=1});addEvent(b,"mouseout",function(){b.isOver=0});addEvent(document,"mousedown",function(){if(b.isOpen&&!b.isOver){a.close(b.name);b.lock=1}});addEvent(document,"mouseup",function(){if(b.lock)setTimeout(function(){b.lock=0},12)})},onopen:function(){},onclose:function(){}};var Fullscreen={block:{},isOpen:false,isInited:false,init:function(b){var a=_(b,"@div");for(var i=0;i<a.length;i++)this.block[a[i].id]=a[i]},open:function(a){this.cur=a||"browse_news";if(!this.modal)this.modal=new Modal({opacity:60,zi:198});_("dialog_fs").style.display=this.block[this.cur].style.display="block";if(_popup.block[a])_popup.write(a,"");this.isOpen=true;return false},close:function(a){if(!this.isOpen)return false;this.modal.remove();this.modal=null;_("dialog_fs").style.display=this.block[this.cur].style.display="none";if(!a)this.block[this.cur].getElementsByTagName('div')[0].innerHTML="";this.isOpen=false;return false}};var Browse={isOpen:false,cur:"",bar:"",open:function(a,b){_dropdown.close();Fullscreen.open(b);this.bar=_ATTR(a,"bar");this.cur=b;this.isOpen=true;_EV(a,"onbrowsebegin")();GET({hash:_bar.qtype[this.bar],target:_bar.qtype[this.bar].target,oncomplete:_EV(a,"onbrowseend")});return false},close:function(){_dropdown.close();Fullscreen.close(1);this.isOpen=false;this.cur=null;return false}};var Ask={isDock:0,exec:function(a){if(a.ask)a.ask.style.display=(a.isOpen&&!this.isDock)?"none":"block"},showhide:function(b){this.prevState=this.isDock;this.isDock=b?1:0;this.exec(_popup.block.dialog_place);this.exec(_page)},show:function(){this.showhide(1)},hide:function(){this.showhide(0)}};_page={block:{},init:function(b){var a=this;this.root=_(b);this.pos={top:114,bottom:document.body.offsetHeight,def:350,cur:0};this.isOpen=false;this.locked=false;this.minimized=false;this.maximized=false;this.block["page"]=this.root;this.content=_(b,"~div.content");this.content.style[BROWSER.ie6?"height":"minHeight"]=this.pos.bottom-this.pos.top-parseInt(CSS(this.content).get("paddingBottom"))+"px";this.panel=makeHTML({tag:"div",className:"panel",append:[{tag:"div",append:[{tag:"a",className:"panel_max",shortName:"max",name:"maximized",mirror:"minimized",onclick:function(){a.minmax(this)}},{tag:"a",className:"panel_close",onclick:function(){a.close()}},{tag:"a",className:"panel_min",shortName:"min",name:"minimized",mirror:"maximized",onclick:function(){a.minmax(this)}},{tag:"a",className:"panel_drag1"},{tag:"a",className:"panel_drag2"},{tag:"a",className:"panel_ask"},{tag:"a",className:"panel_zoom",onmousedown:function(){a.zoomerSettings()},append:[{tag:"i"}]}]},{tag:"span",className:"panel_locked"}]});this.ask=_(this.panel,"~a.panel_ask");this.dragers=[_(this.panel,"~a.panel_drag1"),_(this.panel,"~a.panel_drag2")];this.controls={max:_(this.panel,"~a.panel_max"),min:_(this.panel,"~a.panel_min")};this.zoomer=_(this.panel,"~a.panel_zoom");this.root.insertBefore(this.panel,this.root.firstChild);this.move=new Move(this.root,{handler:this.dragers,horDrag:false,bounds:{t:this.pos.top,b:this.pos.bottom}});this.move.onStartDrag=function(){Ask.hide()};this.move.onEndDrag=function(){a.pos.cur=parseInt(a.root.style.top)}},openclose:function(b){this.root.style.display=b?"block":"none";this.isOpen=b?true:false;CSS(document.body).set({overflow:(b?"visible":"hidden")});document.documentElement.scrollTop=0;if(mapa)mapa.checkResize();_bar[b?"close":"open"]()},open:function(a){this.controls.min.style.display=(_menu.block.menu_channel.isOpen?"block":"none");this.move.bounds.b=document.body.offsetHeight-this.panel.offsetHeight-150;this.repos(this.pos.def);this.panel.style.display=(a!="blank"?"block":"none");if(a=="blank"){_menu.close();_page.move.bounds.t=_page.pos.top-2;this.repos(0)}this.openclose(1);this.onopen();return false},close:function(){if(!this.isOpen||this.locked)return false;this.openclose(0);if(this["minimized"])this.minmax(this["minimized"]);if(this["maximized"])this.minmax(this["maximized"]);this.onclose();return false},load:function(a){GET({ref:a,target:this.content.id});return false},reload:function(){if(typeof this.content.call_func=="function")this.content.call_func()},repos:function(a,b){if(!b){if(this.maximized||this.minimized)return false;if(a<this.move.bounds.t)a=this.move.bounds.t;if(a>this.move.bounds.b)a=this.move.bounds.b;this.pos.cur=a}this.root.style.top=a+"px"},lock:function(b){this.locked=b?true:false;_(this.panel,"~span.panel_locked").style.display=b?"block":"none"},minimizing:function(){this.controls.min.onclick()},maximizing:function(){this.controls.max.onclick()},minmax:function(d){var a=this;if(this.locked)return false;if(this[d.mirror])this.minmax(this[d.mirror]);var b=this[d.name]?false:true;this[d.name]=b?d:null;d.className="panel_"+(b?d.shortName+"_"+d.shortName:d.shortName);if(this.zoomer.isEnabled)this.zoomer.style.display=b?"none":"block";if(b||(Ask.prevState&&!b))Ask[b?"hide":"show"]();this.dragers[0].style.display=this.dragers[1].style.display=b?"none":"block";var c=d.name=="maximized"?this.move.bounds.t-2:this.move.bounds.b;if(!this.smooth)this.smooth=new Smooth({obj:this.root,style:"top"});this.smooth.onstart=function(){if(d.name=="minimized"&&!b){Style(a.root).remove("dock_bottom");CSS(document.body).set({overflow:"visible"})}};this.smooth.onend=function(){if(d.name=="minimized"&&b){Style(a.root).add("dock_bottom");CSS(document.body).set({overflow:"hidden"})}};this.smooth.start(parseInt(this.root.style.top),b?c:this.pos.cur)},goTo:function(b){_act(b);var a=_(b,"/blockquote~@a");for(var i=0;i<a.length;i++)if(a[i]==b)break;if(!_bar.slides[i])return false;CUR_MARKER=_page.block.page.marker=_bar.slides[i].marker;if(!_page.minimized&&!_page.maximized)Ask.showhide((CUR_MARKER&&_(CUR_MARKER.sid)));if(CUR_MARKER)CUR_MARKER.panTo();return false},getOffset:function(){return Math.round(mapa.getSize().height/2)-_page.pos.cur},zoomerSettings:function(h){if(typeof h=="object"){if(this.zoomer.isZoom)this.zoomerSettings();this.zoomer.zoom=h.zoom;this.zoomer.type=h.type;this.zoomer.isEnabled=(h.zoom!=undefined||h.type!=undefined)?true:false;if(!this.maximized&&!this.minimized)this.zoomer.style.display=this.zoomer.isEnabled?"block":"none";this.zoomer.isZoom=false;return false}if(this.zoomer.isEnabled){var a=this.zoomer[this.zoomer.isZoom?"defaultZoom":"zoom"];var b=this.zoomer[this.zoomer.isZoom?"defaultType":"type"];Ask.show();_(this.zoomer,"^i").style.display=this.zoomer.isZoom?"none":"block";if(!this.zoomer.isZoom){this.zoomer.defaultZoom=mapa.getZoom();this.zoomer.defaultType=Map.getType()}this.zoomer.isZoom=this.zoomer.isZoom?false:true;if(b!=undefined)Map.setScope({"type":b});moveToMarker(a!=undefined?a:mapa.getZoom())}},onopen:function(){},onclose:function(){}};(Smooth=function(a){this.init(a)}).prototype={init:function(a){this.opt=a;this.obj=a.obj||this.obj;this.prop=a.prop||this.prop;this.style=a.style||this.style;this.from=a.from||0;this.to=a.to||100;this.inversion=a.inversion||(a.to!=undefined)},go:function(){this.start(this.from,this.to)},back:function(){this.start(this.to,this.from)},start:function(a,b){if(this.tm)this.end(1);this.d=a<b?1:-1;this.onstart(this.d);this.startPos=this.curPos=a;this.endPos=b;this.inc=(this.d<0&&this.inversion)?4:(this.endPos-this.startPos)/2*this.d;this.play()},set:function(a){if(this.style)this.obj.style[this.style]=a+"px";if(this.prop)this.obj[this.prop]=a},play:function(){var a=this;this.inc=Math.round(this.inc-(this.inc/3)*(this.inversion?this.d:1));this.curPos+=this.inc*this.d;if(this.endPos*this.d<this.curPos*this.d)return this.end();this.set(this.curPos);this.tm=setTimeout(function(){a.play()},10)},end:function(a){clearTimeout(this.tm);this.tm=null;this.curPos=this.endPos;this.set(this.curPos);if(!a)this.onend(this.d);return false},onstart:function(){},onend:function(){}};var SlideModule={init:function(a){a.old_styles=CSS(a).get(["position","visibility","display","overflow","height","paddingTop","paddingBottom"]);a.smooth=new Smooth({"obj":a,style:"height",to:this.checkHeight(a)});a.smooth.onend=function(d){if(d>0)CSS(a).set({height:"auto",overflow:a.old_styles.overflow});else CSS(a).set({display:"none"})}},checkHeight:function(a){CSS(a).set({position:"absolute",visibility:"hidden",display:"block",overflow:"visible",height:"auto",paddingTop:0,paddingBottom:0});var h=a.offsetHeight;CSS(a).set(a.old_styles);return h},toogle:function(a){if(a.isShow==undefined)a.isShow=(a.style.display=="block");this[a.isShow?"hide":"show"](a);a.isShow=!a.isShow;return false},show:function(a){this.play(a,1)},hide:function(a){this.play(a,-1)},play:function(a,d){if(!a.smooth)this.init(a);else a.smooth.to=this.checkHeight(a);CSS(a).set({display:"block",overflow:"hidden"});a.smooth[d>0?"go":"back"]()}};var Slider={init:function(b,c){var a=this;this.root=_(b);this.curPos=0;this.endPos=0;this.d=1;this.isPlaying=false;this.take=_ATTR(this.root,"src").replace(/.*&take=([0-9]+).*/,"$1");this.from=_ATTR(this.root,"src").replace(/.*&from=([0-9]+)/,"$1")-this.take-1;this.root.src=_ATTR(this.root,"src").replace(/(.*=)[0-9]*$/,"$1");this.root.act="all";this.itemMargin=parseInt(CSS(_(this.root,"~a")).get("marginRight"));this.itemSize=_(this.root,"~a").offsetWidth+this.itemMargin;this.scrollStep=this.itemSize*this.take;this.visibleSize=this.root.parentNode.offsetWidth;this.fullSize=this.setFullSize();this.smooth=new Smooth({obj:this.root,style:"marginLeft"});this.smooth.onstart=function(){};this.smooth.onend=function(){a.moveEnd()};if(this.from)this.goToPage(this.getPageBySlidePos(this.getCurSlidePos()));else this.preload();this.setArrows(c.prev,c.next);this.setLabels(c.from,c.to)},movePrev:function(){this.moveStart(1)},moveNext:function(){this.moveStart(-1)},moveStart:function(d){if(this.isPlaying)this.moveEnd();this.isPlaying=true;this.d=d;this.endPos=this.getEndPos();this.smooth.start(this.curPos,this.endPos)},moveEnd:function(){this.curPos=this.endPos;if((this.fullSize+this.curPos)<(this.visibleSize+this.itemSize*this.take))this.preload();else this.setArrows();this.setLabels();this.isPlaying=false},getMaxPos:function(){return-this.root.offsetWidth+this.visibleSize+this.itemMargin},getEndPos:function(){if(this.curPos+this.d>0||this.curPos+this.d<this.getMaxPos())return this.endPos;var a=this.curPos+this.scrollStep*this.d;if(a>0)a=0;if(a<this.getMaxPos())a=this.getMaxPos();return a},getPageBySlidePos:function(b){var a=Math.floor((b-1+Number(this.take))/this.take);return a?a:1},getCurPage:function(){return Math.round(Math.abs(this.curPos)+this.scrollStep)/this.scrollStep},getCurSlidePos:function(){var a=this.root.getElementsByTagName('a');for(var i=0;i<a.length;i++)if(a[i].className=="act")break;return i},getSlidesCount:function(){return this.root.getElementsByTagName('a').length},setFullSize:function(a){this.fullSize=(this.getSlidesCount()+(a?a:0))*this.itemSize;this.root.style.width=this.fullSize+"px";return this.fullSize},preload:function(d,e){e=e||function(){};var a=document.createElement("li");this.root.appendChild(a);var b=this;var c=this.root.src;if(d)c=c.replace(/&take=[0-9]+/,"&take="+d);c+=this.getSlidesCount();GET({ref:c,target:a,oncomplete:function(){b.setFullSize();b.setArrows();e()}})},setArrows:function(b,c){if(b||c){var a=this;this.arrow={prev:_(b),next:_(c)};if(this.arrow.prev)this.arrow.prev.onclick=function(){a.movePrev()};if(this.arrow.next)this.arrow.next.onclick=function(){a.moveNext()}}if(!this.arrow)return false;if(this.arrow.prev)this.arrow.prev.style.visibility=(this.curPos+this.d>0||this.fullSize<this.visibleSize)?"hidden":"visible";if(this.arrow.next)this.arrow.next.style.visibility=(this.curPos+this.d<this.getMaxPos()||this.getMaxPos()==0)?"hidden":"visible"},setLabels:function(a,b){if(a||b)this.label={from:_(a),to:_(b)};if(!this.label)return false;if(this.label.from)this.label.from.innerHTML=Math.abs(Math.round(this.curPos/this.itemSize))+1;if(this.label.to){this.label.to.innerHTML=Number(this.label.from.innerHTML)+Number(this.take);if(Number(this.label.to.innerHTML)>this.getSlidesCount())this.label.to.innerHTML=this.getSlidesCount()}},goToPage:function(b){var a=b-this.getCurPage();this.d=a<0?1:-1;for(var i=0;i<a;i++){this.endPos=this.getEndPos();this.root.style.marginLeft=this.endPos+"px";this.moveEnd()}},goToSlide:function(c){var a=this.root.getElementsByTagName('a');if(c==undefined)c=this.getCurSlidePos()+1;var b=this.getPageBySlidePos(c)-this.getCurPage();if(b<=1){if(a[c]&&a[c].onclick){a[c].onclick();if(this.getPageBySlidePos(c)!=this.getCurPage())this.moveNext()}}else{var _this=this;var new_page=this.getPageBySlidePos(c);this.preload(b*this.take,function(){a[c].onclick();_this.goToPage(new_page)});return false}return true}};var PageEdit={edit:function(c){var a=_(c.target,"/div.item~a");if(a&&!a.isOpen)a.onclick();if(c.inProcess)return false;var b=this;c.parentNode.target=_(c.target);c.parentNode.target.contentTMP=c.parentNode.target.innerHTML;this.process(c,1);GET({ref:c.aref,target:c.target,indicator:0,oncomplete:function(){b.process(c,0);Style(c.parentNode).add("in_edit");_(c.parentNode.target,'~form').button=c}});return false},save:function(e){if(e.inProcess)return false;if(e.tagName=="FORM"){e.onsubmit=null;e=e.button}var b=this;var c=_(e.parentNode.target,'~form');if(c.onsubmit&&!c.onsubmit())return false;var d=_EV(c,"oncomplete")||function(){};this.process(e,1);POST({form:c,onstarting:_EV(c,"onstarting"),oncomplete:function(a){if(!c.upload)e.parentNode.target.innerHTML=a.text;b.process(e,0);Style(e.parentNode).remove("in_edit");d()},onfailure:function(){b.process(e,0)}});return false},cancel:function(a){if(a.inProcess)return false;a.parentNode.target.innerHTML=a.parentNode.target.contentTMP;Style(a.parentNode).remove("in_edit");return false},process:function(a,b){a.inProcess=b?1:0;CSS(a.parentNode).set({opacity:(b?"0.5":"1"),filter:"alpha(opacity:"+(b?"50":"100")+")"});return false}};PageEdit.channel={new_order:function(b,c){if(c&&!Key(c).isEnter())return false;var a=_('channel_new_order_link');if(a.default_ref==undefined)a.default_ref=a.aref;a.aref=a.default_ref+b;a.onclick()},delete_item:function(b){var a=_(b,"//^a");if(!b.oncomplete)b.oncomplete=function(){if(!_(a,"/~div"))a.onclick()};if(document.confirm(b,a.getAttribute("confirm")))GET(b);return false},hex_color:function(b){var a=window.event?b.srcElement:b.target;if(a.maxLength!=6){if(a.value.length>6)a.value=a.value.substr(0,6);a.maxLength=6}a.value=a.value.replace(/[^A-F0-9]/i,"");_(a,">span").style.backgroundColor="#"+a.value},check_browse_fields:function(c){var a=_(c,"~@input");var b=0;for(var i=0,l=a.length;i<l;i++)if(a[i].type=="file"&&a[i].value){if(a[i].name!="file_"+(b+1))return document.alert(c.lang);b++}if(b)c.upload=true;return true},skin:{set:function(b){if(!this.channel_skin){this.channel_skin=document.createElement("style");this.channel_skin.type="text/css";this.channel_skin.media="screen";document.getElementsByTagName("head")[0].appendChild(this.channel_skin);if(BROWSER.ie){this.channel_skin=document.styleSheets[document.styleSheets.length-1]}}var a=this.create(b);if(BROWSER.ie){this.channel_skin.cssText=a}else{if(this.channel_skin.firstChild)this.channel_skin.removeChild(this.channel_skin.firstChild);var textNode=document.createTextNode(a);this.channel_skin.appendChild(textNode)}},css:{bg_color:"#page{ background-color:__value__; }",bg_image:"#page{ background-image:url("+(BROWSER.ie6?"../":"")+"__value__);}",text_color:"#page .content{ color:__value__; }",h1_color:"#page .page_channel h1{color:__value__;}",h3_color:"#page .page_channel .item h3{ color:__value__;}",info_color:"#page .page_channel .h1, #page .page_channel .avatar{color:__value__; }",link_color:"#page .page_channel a{color:__value__;} #page .page_channel .slides blockquote a u{ border-color:__value__; }",module_bg:"#page .page_channel  .item, #page .page_channel .rside .slide_block, #page .page_channel .kyte, #page .page_channel .banner{ background:__value__; border-color:#232d36; }",module_color:"#page .page_channel  .item, #page .page_channel .rside .slide_block{  color:__value__;}",arrows_type:"#page .page_channel .slides span a:hover.arr_l{ background-position:0 -181px; }	#page .page_channel .slides span a:hover.arr_r{ background-position:0 -195px; } #page .page_channel form .news_list li .sort_ctrl a.but_up{ background-position:11px -73px !important;} #page .page_channel form .news_list li .sort_ctrl a.but_down{ background-position:11px -59px !important;}",head_opacity:"#page .page_channel .lside .item .head{ background-position:0px -__value__px;} #page .page_channel .rside .item .head{ background-position:-480px -__value__px;}",foot_opacity:"#page .page_channel .lside .item .foot{ background-position:0px -__value__px;} #page .page_channel .rside .item .foot{ background-position:-480px -__value__px;}",sep_opacity:"#page .page_channel .sep{background-position:0px -__value__px; }",but_small:"#page .page_channel .but1{ background-image: url("+(BROWSER.ie6?"../":"")+"__value__); }",but_large:"#page .page_channel .slides span .but5{background-image: url("+(BROWSER.ie6?"../":"")+"__value__); }",banner:"#page .page_channel .__value__{ display:block}"},create:function(b){var a="";if(b)for(var i in this.css)if(b[i]){if(i=="head_opacity"){b[i]=(Number(b[i])+Number(b[i]))*23}if(i=="foot_opacity"||i=="sep_opacity"){if(b[i]==0)b[i]=1;if(b[i]==1)b[i]=0;b[i]=(Number(b[i])+Number(b[i])+1)*23}a+=this.css[i].replace(/__value__/g,b[i])}return a}},show_more_sections:function(d,b){var a=_(d,"////");var c=_(a,"^@dl.hided");if(c){for(var i=0,l=c.length;i<l;i++)c[i].style.display=b?"block":"none";if(_("uid_branded").checked)showhide(_(a,"^div"),b)}},show_branded_section:function(a){showhide(_(a,"////^div"))}};var Autoplay={inProcess:false,obj:null,but:null,text:null,tm:null,init:function(a){this.obj=a;this.but=_(a,"~i");this.text=_(a,"~b");this.text.lang2=this.text.innerHTML;this.inited=1;return false},start:function(){if(!this.inited)return false;var a=this.inProcess;this.inProcess=true;this.button(1);if(!a&&Player.flashObj&&Player.flashObj.getState)Player.play();else this.next();return false},stop:function(){if(!this.inProcess)return false;if(this.tm)clearTimeout(this.tm);this.button(0);this.inProcess=false;return false},button:function(b){var a=this;this.but.className=b?"pause":"play";this.text.innerHTML=_ATTR(this.text,b?"lang":"lang2");this.obj.onclick=b?function(){return a.stop()}:function(){return a.start()}},next:function(){if(!this.inProcess)return false;if(this.tm)clearTimeout(this.tm);if(!Slider.goToSlide())return this.stop()},timeout:function(a){if(this.inProcess)this.tm=setTimeout(function(){_this.next()},(a?a:10)*1000)}};function item_showhide(c,d){if(d!=undefined&&c.isOpen==d)return false;c.isOpen=c.isOpen?0:1;Style(_(c,"~i"))[c.isOpen?"add":"remove"]("close");var a=_(c,"/>div");if((window.event&&event.srcElement!=c)||BROWSER.ie6)a.style.display=c.isOpen?"block":"none";else SlideModule.toogle(a);if(c.isOpen&&_ATTR(c,"onshow"))_EV(c,"onshow")();var b=_(c,"/^div");if(b&&(b.className=="vote"||b.className=="vote vote_active")){b.className=c.isOpen?"vote vote_active":"vote"}return false};function page_comment_vote(b){var a=_(b,"//^a.show_but");if(!a.isOpen)return false;GET({ref:b.aref,target:b.parentNode,indicator:0,onstarting:function(){if(Auth.checkAccess())b.parentNode.className='vote vote_disabled';else return false},oncomplete:function(){if(b.className=="ban")a.onclick()}});return false};function start_flash(c,d,e){if(!SITE_STARTED&&!e)return addEvent(window,"load",function(){start_flash(c,d,1)});var a=new SWFObject(d,"start_flash","565","220","7","#000000");a.addParam("wmode","opaque");a.addParam("quality","high");a.useExpressInstall(GLOBAL_PATH+"player/expressinstall.swf");var b=deconcept.SWFObjectUtil.getPlayerVersion();if(b["major"]<7)a.setAttribute('doExpressInstall',true);a.write(c)};function init_start_page_slides(){var b=_("uid_page").getElementsByTagName("blockquote");for(var i=0;i<b.length;i++)for(var j=0,a=b[i].getElementsByTagName("a");j<a.length;j++){a[j].onmouseover=function(){this.parentNode.parentNode.getElementsByTagName("tt")[0].innerHTML=this.lang};a[j].onmouseout=function(){this.parentNode.parentNode.getElementsByTagName("tt")[0].innerHTML=""}}};var MyPlebs={tab:function(d){var a=this;var b=_menu.block.menu_myplebs.areabar;if(d==undefined)return b.tab;else if(typeof d=="number"||typeof d=="string"){if(!_menu.block.menu_myplebs.isOpen){b.tab=d;if(Auth.checkAccess())_menu.open("menu_myplebs")}else{var c=_(_(_page.content,"~ul"),"~@a");if(c){for(var i=0;i<c.length;i++)if((typeof d=="number"?i:c[i].lang)==d){c[i].onclick();break}}}}else if(d.nodeType){var c=_(d,"//~@a");for(var i=0;i<c.length;i++)if(c[i]==d){b.tab=i;History.add(d.href,function(){a.tab(i)},BASE_TITLE+': '+d.innerHTML.replace(/<.*>.*<\/.*>/,""));break}}return false},indicator:function(d){var a=_(_(_page.content,"~ul"),"~a.act^i");if(!a||typeof d!="number"||Number(_(a,"^i").innerHTML)<1)return false;var b=Number(_(a,"^i").innerHTML)+d;a.innerHTML="<i>"+b+"</i>";a.style.display=(!b||b=="0")?"none":"inline";var c=_(_(_page.content,"~div.header^h1"),"~span");if(c){c.innerHTML="("+b+")";c.style.display=a.style.display}},read_entry:function(a){if(a){GET({ref:_ATTR(a,"aref"),oncomplete:function(){a.parentNode.removeChild(a);MyPlebs.indicator(-1)}})}},init_mail_list:function(g){var b=_(g,"~@li");for(var i=0;i<b.length;i++){var c=_(b[i],"^div.mess");var d=c.offsetHeight;CSS(c).set({height:"auto",overflow:"visible"});var f=c.offsetHeight;CSS(c).set({height:d+"px",overflow:"hidden"});b[i].smooth=new Smooth({"obj":c,style:"height",from:d,to:f});b[i].show=function(){this.isOpen=1;this.className="show";this.smooth.go();MyPlebs.read_entry(_(this,"~h5^i"))};b[i].hide=function(){this.isOpen=0;this.className="";this.smooth.back()};b[i].onclick=function(e){var a=window.event?event.srcElement:e.target;if(!this.isOpen&&a.tagName!="A"&&a.tagName!="H5")this.show()};_(b[i],"~h5").onclick=function(e){this.parentNode.parentNode[this.parentNode.parentNode.isOpen?"hide":"show"]()};if(_(b[i],"~form")){_(b[i],"~form").send=function(){Forms.fieldsReset(this);this.parentNode.parentNode.hide()}}}}};function startsite(){if(SITE_LOCKED)return false;var a=History.params();if(!SITE_STARTED&&a[0]){if(_("hash_static").lang==a[0])return document.onstart("static");var b=(a[0]==_menu.block.menu_myplebs.areabar.lang&&a[2]&&Auth.isLogin);if(_("hash_single_marker").lang.indexOf(a[0])!=-1&&!b){return document.onstart("single_marker")}}if(SITE_STARTED){_menu.close();_popup.close()}if(!Auth.isLogin){_menu.open('menu_news');if(SITE_STARTED)GET(_("startsite"));History.add(SITE_STARTED?_("startsite").href:location.hash,function(){startsite()},BASE_TITLE)}else{MyPlebs.tab(a[0]==_menu.block.menu_myplebs.areabar.lang&&a[2]?a[2]:0)}if(location.search&&!SITE_STARTED){GET({target:null,ref:location.search})};document.onstart();return false};function getScopeByIp(b){b=b||function(){};if(GOOGLE_MAP_ENABLED){GET_SCOPE_BY_IP_TM=setTimeout(function(){loadUserScope();b()},3000);GET({ref:_ATTR("startsite","geoIP"),oncomplete:function(a){if(!a.obj.string)return false;if(!a.obj.string.getpos.position&&a.obj.string.getpos.returncode)GET({ref:_ATTR("startsite","geoIP").replace(/[^?]*(\?.*)=[0-9]*$/,"$1="+a.obj.string.getpos.returncode)});if(!a.obj.string.getpos.position)a.obj.string.getpos.position=LOCATION;loadUserScope(a.obj.string.getpos.position);clearTimeout(GET_SCOPE_BY_IP_TM);b()}})}else{loadUserScope();b()}};function loadUserScope(b){var a=b||{};if(a.latitude!=undefined&&a.longitude!=undefined&&a.zoom==undefined)a.zoom=7;if(a.latitude!=undefined)LOCATION.latitude=Num(a.latitude);if(a.longitude!=undefined)LOCATION.longitude=Num(a.longitude);if(a.zoom!=undefined)LOCATION.zoom=Num(a.zoom);LOCATION.type=a.type||0;Map.setScope(LOCATION);if(!SITE_STARTED&&_("startsite").getAttribute("index")!=undefined&&!_menu.block.menu_reg.isOpen)_("startsite").onclick();LOCK_MAP_AUTORELOAD=0};function setScope(a){_popup.close("dialog_ort");if(a){Map.setScope(a);_bar.load();LOCK_MAP_AUTORELOAD=0}else getScopeByIp(function(){_bar.load()})};var Auth={isLogin:false,autologin:false,liveTime:365*24*60*60,init:function(){},logInOut:function(a){this.isLogin=a?true:false;_("menu","~blockquote").style.display=(a?"block":"none");COOKIE.set("in_session",a?"1":"");this.onlogin(a)},login:function(a,b){this.logInOut(1);this.rememberUser(a);if(b&&!DIRECT_LINK){if(b.obj.scope)loadUserScope(b.obj.scope);else getScopeByIp()}if(!this.autologin&&b)_menu.open('menu_myplebs');if(this.autologin)this.autologin=0},logout:function(){_menu.close();COOKIE.set("remember","");if(_("menu_login","~form").remember)_("menu_login","~form").remember.checked=0;if(_("menu_reg","~form").remember)_("menu_reg","~form").remember.checked=0;this.logInOut(0);HTMLAJAX.cache.reset()},rememberUser:function(c){var a=c;while(a.tagName.toLowerCase()!="form")a=a.parentNode;var b;if(a.remember&&a.remember.checked)b=this.liveTime;COOKIE.set("username",a.username.value,b);COOKIE.set("passwd",a.passwd.value,b);COOKIE.set("remember",a.remember.checked?"1":"",b)},restoreUser:function(c){var b=(COOKIE.get("username")&&COOKIE.get("passwd"));var a=_(c,"~form");if(a.remember)a.remember.checked=false;if(a.username)a.username.value=COOKIE.get("username")?COOKIE.get("username"):"";if(a.passwd)a.passwd.value=b?COOKIE.get("passwd"):""},checkAccess:function(){if(this.isLogin)return true;Fullscreen.close();if(_menu.block.menu_reg.isOpen)_menu.close();_menu.block.menu_reg.andLogin=true;showhide(_("access_denied"),1);_menu.open("menu_reg");document.documentElement.scrollTop=0;if(_('reg_login'))_('reg_login').focus();return false},fail:function(){getScopeByIp();COOKIE.set("remember","");COOKIE.set("in_session","");this.autologin=0},onlogin:function(){},onlogout:function(){}};function setLang(c){var a=_(c,"/div.box").id;var b=_(c,"~img").alt;_popup.close(a);if(a=="dialog_lang"){_act(c);COOKIE.set("_lang_",b,365*24*60*60);location.reload()}if(a=="dialog_lang2"){_act(c);_('menu_channel_lang').value=b;_('menu_channel_lang','<a').innerHTML=c.innerHTML}return false};function lockSite(a){if(SITE_LOCKED!=1&&a==1){SITE_LOCKED=1;document.alert(Lang["js_lock_site"],1);_popup.block[document.alert.current].box.but_close.style.display="none";_popup.block[document.alert.current].tm=setInterval(function(){_("lock_site").onclick()},10000)}if(SITE_LOCKED==1&&a!=1){SITE_LOCKED=0;clearInterval(_popup.block[document.alert.current].tm);_popup.close(document.alert.current);HTMLAJAX.cache.reset();(SITE_STARTED?HTMLAJAX.lastCall:startsite)()}};var Search={form:function(b){var a=document.forms.search_form;if(b)return a[b];return a},go:function(a,b){if(a){this.form("searchword").focus();this.form("searchword").value=a}if(b)this.form("searchinfo").value=b;if(_menu.block.menu_search.isOpen)_menu.close();return _menu.open('menu_search')},pager:function(e,d){if(!e)return false;var a=_(e.parentNode,"^span");var b=a.cur?a.cur:_(a,"~a");var c=b?_(b,(d>0?'>':'<')+'a'):null;if(c)c.onclick();return false},get:function(a){return this.form("searchword").value+"&searchinfo="+this.form("searchinfo").value}};var ccNewsSett={witness:{change:function(a){if(!_(a,'~input').disabled){_(a,'~input').checked=!_(a,'~input').checked;_(a,'~input').onclick()}},click:function(a){Style(a.parentNode).invert('act')}},date:{change:function(a){a.blur();if(a.value){_(a,'>input').checked=1;Style(a.parentNode).add('act')}},click:function(a){if(!a.checked){_(a,'/~input').value='';Style(a.parentNode).remove('act')}else{_(a,'/~input').focus();a.checked=!a.checked}},focus:function(a){showhide(_(a),1)},blur:function(a){showhide(_(a),0)}}};function initNicEditor(d){var b;var c=new nicEditor({iconsPath:IMGS_PATH+'icos_nicEdit.png',buttonList:['bold','divider','italic','link','unlink','ol','ul']});c.panelInstance(d);b=c.instanceById(d);b.textarea=d;b.saveText=function(){b.saveContent();var a=_(d).value;a=a.replace(/<(\/?)i>/gi,'<$1em>');a=a.replace(/<(\/?)b>/gi,'<$1strong>');_(d).value=a};b.cleanUpRules=function(a){a=a.replace(/\r?\n/g," ");a=a.replace(/<(\/?((li)|(ul)|(ol)|(strong)|(em)|(b)|(i)|(br)|(a)|(a[^>]*)) ?\/?)>/gi,"!~~$1~~!");a=a.replace(/<script[^>]*>.*<\/script>/gi,"");a=a.replace(/<\/?[a-z0-9][^>]*>/gi,"");a=a.replace(/!~~(\/?[a-z0-9][^~]*)~~!/gi,"<$1>");a=a.replace(/<(\/?)strong>/gi,'<$1b>');a=a.replace(/<(\/?)em>/gi,'<$1i>');a=a.replace(/(<b>)+/gi,'$1');a=a.replace(/(<i>)+/gi,'$1');a=a.replace(/(<\/b>)+/gi,'$1');a=a.replace(/(<\/i>)+/gi,'$1');a=a.replace(/<a[^>]*(href="[^"]*")[^>]*(title="[^"]*")[^>]*>/gi,'<a $1 target="_blank">');a=a.replace(/<a[^>]*(title="[^"]*")[^>]*(href="[^"]*")[^>]*>/gi,'<a $2 target="_blank">');return a};return b};function Advertising(c,d,e,f){if(!_(d))return false;_(d).innerHTML="";var a="plebs_adv_"+c;var b=document.createElement(BROWSER.ie?"<iframe name="+a+" frameborder=0>":"iframe");b.name=a;b.scrolling="no";if(BANNERS_ENABLED)b.src=GLOBAL_PATH+"adv.php?"+"zone="+c+(f?"&custom_zone="+f:'');_(d).appendChild(b);if(e&&BANNERS_ENABLED)setTimeout(function(){Advertising(c,d,e)},e*1000)};var gaTrack=[];function gaTrackCheck(c){var a=true;for(var i in gaTrack){for(var j in gaTrack[i]){var b=new RegExp("(^|&)"+j+"="+gaTrack[i][j]+"($|&)");if(!b.test(c)){a=false;break}else{a=true}}if(a)return true}return false};document.alert=function(f,g){var b=document.alert;var c=_popup.clone("dialog_sys");var d=_popup.block[c];if(!arguments.callee.inited){b.stack=[];b.current="";addEvent(document,"keydown",function(e){if(b.current&&(Key(e).isEscape()||(Key(e).isEnter()&&!_popup.block[b.current].syswin))&&!SITE_LOCKED)_popup.close(b.current)});arguments.callee.inited=1}d.onopen=function(a){if(!b.stack[0])_sys_modal=new Modal({opacity:10});b.stack.push(a);b.current=b.stack[b.stack.length-1];window.focus()};d.onclose=function(a){if(b.stack[0])b.stack.pop();b.current=b.stack[0]?b.stack[b.stack.length-1]:"";if(!b.current)_sys_modal.remove();_popup.block[a].parentNode.removeChild(_popup.block[a])};_popup.write(c,f);init_content(d);d.buts=_(d.content,"~div.buts");d.syswin=g;if(!g){if(!d.buts)d.buts=makeHTML({tag:"div",className:"buts"},d.content);d.but_ok=makeHTML({tag:"a",className:"but1 ok",innerHTML:'OK',onclick:function(){return _popup.close(c)}},d.buts)}d.style["visibility"]="hidden";_popup.open(c);d.style["marginTop"]=-Math.round(d.content.offsetHeight/2)-16+"px";d.style["visibility"]="visible";if(d.but_ok)d.but_ok.focus();return false};document.confirm=function(b,c,d){if(!b.inConfirming){document.alert(c,1);var a=_popup.block[document.alert.current];if(!a.buts)a.buts=makeHTML({tag:"div",className:"buts"},a.content);makeHTML({tag:"a",className:"but1 ok2",innerHTML:'OK',onclick:function(){if(b.getAttribute&&_ATTR(b,"onstarting"))_EV(b,"onstarting")();else if(b.getAttribute&&_ATTR(b,"onclick"))_EV(b,"onclick")();else if(d)d();return a.but_cancel.onclick()}},a.buts);a.but_cancel=makeHTML({tag:"a",className:"but1 cancel",innerHTML:'Cancel',onclick:function(){b.inConfirming=0;return _popup.close(document.alert.current)}},a.buts);a.box.but_close.onclick=a.but_cancel.onclick;b.inConfirming=1;return false}else{return true}};function _act(c){if(!c||!c.parentNode)return false;if(_ATTR(c,"noact")!=undefined)return false;var a=(c.parentNode.tagName=="LI"||c.parentNode.tagName=="VAR");var b=(a?c.parentNode.parentNode:c.parentNode);if(!b.set)b.set=function(i){return(i==undefined?b.cur:_(b,'~@a')[i]).onclick()};if(!b.act)b.act=function(i){return _act(_(b,'~@a')[i])};if(!b.unset)b.unset=function(){Style(b.cur).remove("act");b.cur=null;return false};if(!b.cur)b.cur=_(b,(_ATTR(b,"act")=="all"?"~":"^")+"a.act");if(b.cur)Style(b.cur).remove("act");Style(c).add("act");if(b.cur==c)return false;if(a){if(b.cur)Style(b.cur.parentNode).remove("act");Style(c.parentNode).add("act")}b.cur=c;(_ATTR(c,"onact")||function(){})();return false};function showhide(b,c){b=_(b);var a=(c!=undefined&&typeof c=="object")?c.show:c;if(a!=undefined)b.style.display=(a?"block":"none");else b.style.display=(CSS(b).check({display:'block'})?"none":"block");a=CSS(b).check({display:'block'});if(c!=undefined&&typeof c=="object"&&c.sender)Checkbox(c.sender,a);return a};function periodical(a,b,c){if(c==undefined)c=1;if(a.tm)clearTimeout(a.tm);a.tm=setTimeout(function(){if(a&&c)a.onclick()},b*1000)};function Modal(a){if(BROWSER.ie6)return{is:false,remove:function(){}};if(!arguments.callee.inited){arguments.callee.inited=1;this.constructor.isOpen=0}var a=a||{};this.is=true;this.constructor.isOpen++;var b=document.createElement("div");b.className="modal";if(a.zi)b.style.zIndex=a.zi;var c=document.createElement("span");if(a.opacity){if(BROWSER.ie)c.style.filter="Alpha(opacity:"+a.opacity+")";else c.style.opacity="0."+a.opacity}b.appendChild(c);b.style.height="100%";document.body.appendChild(b);this.remove=function(){this.is=false;b.parentNode.removeChild(b);this.constructor.isOpen--};return this};function setClipboard(c,d){if(!c)return false;var a=_(c.target);if(!a)return false;if(a.createTextRange){if(d){c.onclick=function(){return setClipboard(this)};c.onmouseover=null;return false}var b=a.createTextRange();if(b)b.execCommand('Copy')}else{var embed=document.createElement("embed");embed.setAttribute("type","application/x-shockwave-flash");embed.setAttribute("menu","false");embed.setAttribute("wmode","transparent");embed.setAttribute("src",GLOBAL_PATH+"js/static/setClipboard.swf");embed.setAttribute("flashVars","txt="+escape(a.value));embed.setAttribute("width",c.offsetWidth);embed.setAttribute("height",c.offsetHeight);CSS(c).set({position:"relative"});CSS(embed).set({position:"absolute",left:0,top:0});c.insertBefore(embed,c.firstChild);c.onmouseover=null}return false};function addBookmark(a,b){if(a==undefined)a=document.title;if(b==undefined)b=top.location.href;if(window.sidebar){window.sidebar.addPanel(a,b,'')}else if(window.opera&&window.print){var t=document.createElement('a');t.setAttribute('rel','sidebar');t.setAttribute('href',b);t.setAttribute('title',a);t.click()}else if(window.external){window.external.AddFavorite(b,a)}else{alert('Press CTRL-D for add to favorites.')}return false};var Key=function(b){return{code:function(){return window.event?window.event.keyCode:b.which},is:function(a){return this.code()==a},isEnter:function(){return this.code()==13},isEscape:function(){return this.code()==27}}};var Script={preload:function(b){if(!b)return;var a=this;if(!b.inLoading){this.load(_ATTR(b,"src"));b.callback=new Function(b.innerHTML);b.inLoading=1}b.tm=1;setTimeout(function(){if(b.tm){b.tm=0;a.exec(b)}},500)},load:function(a){makeHTML({tag:"script",type:"text/javascript",src:a},document.body)},exec:function(a){try{a.callback.apply(a)}catch(e){this.preload(a)}}};if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(b,d,w,h,e,c,f,g,i,j){if(!document.getElementById){return}this.DETECT_KEY=j?j:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(b){this.setAttribute("swf",b)}if(d){this.setAttribute("id",d)}if(w){this.setAttribute("width",w)}if(h){this.setAttribute("height",h)}if(e){this.setAttribute("version",new deconcept.PlayerVersion(e.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(c){this.addParam("bgcolor",c)}var q=f?f:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var a=(g)?g:window.location;this.setAttribute("xiRedirectUrl",a);this.setAttribute("redirectUrl","");if(i){this.setAttribute("redirectUrl",i)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=new Array();var b;var c=this.getVariables();for(b in c){a[a.length]=b+"="+c[b]}return a},getSWFHTML:function(){var a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}a="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";a+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var b=this.getParams();for(var c in b){a+=c+"=\""+b[c]+"\" "}var d=this.getVariablePairs().join("&");if(d.length>0){a+="flashvars=\""+d+"\""}a+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}a="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";a+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var e=this.getParams();for(var c in e){a+="<param name=\""+c+"\" value=\""+e[c]+"\" />"}var f=this.getVariablePairs().join("&");if(f.length>0){a+="<param name=\"flashvars\" value=\""+f+"\" />"}a+="</object>"}return a},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof b=="string")?document.getElementById(b):b;n.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var a=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){a=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);a=new deconcept.PlayerVersion([c,0,0])}catch(e){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(e){if(a.major==6){return a}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(b!=null){a=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return a};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(b){var q=document.location.search||document.location.hash;if(b==null){return q}if(q){var a=q.substring(1).split("&");for(var i=0;i<a.length;i++){if(a[i].substring(0,a[i].indexOf("="))==b){return a[i].substring((a[i].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var a=document.getElementsByTagName("OBJECT");for(var i=a.length-1;i>=0;i--){a[i].style.display="none";for(var x in a[i]){if(typeof a[i][x]=="function"){a[i][x]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var Player={inFullscreen:false,load:function(e,f,g,h,i){this.type=f;var a="plebsTVplayer";var b=new SWFObject(GLOBAL_PATH+"player/plebsTVplayer2.swf",a,"480","369","7","#000000");b.addParam("wmode","opaque");b.addParam("devicefont","false");b.addParam("menu","false");b.addParam("allowScriptAccess","sameDomain");b.addParam("allowFullScreen","true");var c="";c+="DataID="+g;c+="&type="+f;if(i)c+="&first_clip="+i;c+="&start_paused=false";c+="&slideshow_effect_duration=2";c+="&disable_emebed_code=false";c+="&callback=Player.onStatus";c+="&lang="+LANG;if(h)c+="&definition="+h;b.addParam("FlashVars",c);b.useExpressInstall(GLOBAL_PATH+"player/expressinstall.swf");var d=deconcept.SWFObjectUtil.getPlayerVersion();if(d["major"]<7)b.setAttribute('doExpressInstall',true);b.write(e);this.flashObj=BROWSER.ie?_(a):window.document[a]},onStatus:function(a,p){if(this.type=="channel"){if(a=="FULLSCREEN"){if(this.inFullscreen&&!p){}this.inFullscreen=p}if(a=="START"){if(this.inFullscreen&&Player.syncList&&p!=undefined)Slider.goToSlide(Player.syncList[p])}if(a=="END"){if(Autoplay.inProcess)Autoplay.next()}}},play:function(){if(this.flashObj.getState()=='PAUSE')this.flashObj.play()}};var Forms={};Forms.checkValue=function(d,e){var a=[];var b=/.+\.([A-Za-z0-9]+)/;var c=/^http:\/\/.+\..+/;a["video_ext"]={"avi":1,"mpe":1,"mpeg":1,"wmv":1,"aif":1,"mov":1,"mkv":1,"flv":1,"mp2":1,"mp4":1,"rm":1,"dv":1,"yuv":1,"3gp":1,"3gp2":1};a["image_ext"]={"jpg":1,"jpeg":1,"gif":1,"eps":1,"pcx":1,"raw":1,"pct":1,"pict":1,"pxr":1,"png":1,"pbm":1,"pgm":1,"ppm":1,"pnm":1,"pfm":1,"pam":1,"tga":1,"vda":1,"icb":1,"vst":1,"tif":1,"tiff":1,"bmp":1,"apx":1,"cpt":1,"gbr":1,"iff":1,"img":1,"jp2":1,"jpc":1,"j2c":1,"jpx":1,"kdc":1,"qti":1,"qtif":1,"xcf":1};a["audio_ext"]={"mp3":1,"wav":1,"mid":1};if(e=="video_ext")return a["video_ext"][d.replace(b,"$1").toLowerCase()];if(e=="image_ext")return a["image_ext"][d.replace(b,"$1").toLowerCase()];if(e=="audio_ext")return a["audio_ext"][d.replace(b,"$1").toLowerCase()];if(e=="url")return c.test(d);return false};Forms.checkFields=function(g){function concat(c){var a=[];for(var i=0,l=c.length;i<l;i++)for(var j=0,b=c[i].length;j<b;j++)a.push(c[i][j]);return a};var d=g;while(d.tagName.toLowerCase()!="form")d=d.parentNode;var e=concat([d.getElementsByTagName("input"),d.getElementsByTagName("textarea"),d.getElementsByTagName("select")]);var f;for(var i=0,l=e.length;i<l;i++){if(f=e[i].getAttribute("require")){if(e[i].getAttribute("send")!=undefined&&!eval(e[i].getAttribute("send")))continue;if(f=="empty"&&e[i].value.replace(/\s+/,"")=="")return document.alert(e[i].lang);if(f=="checked"&&!e[i].checked)return document.alert(e[i].lang);if(f=="video_ext"&&!Forms.checkValue(e[i].value,"video_ext"))return document.alert(e[i].lang);if(f=="image_ext"&&!Forms.checkValue(e[i].value,"image_ext"))return document.alert(e[i].lang);if(f=="audio_ext"&&!Forms.checkValue(e[i].value,"audio_ext"))return document.alert(e[i].lang);if(f=="url"&&!Forms.checkValue(e[i].value,"url"))return document.alert(e[i].lang)}}return true};Forms.fieldsReset=function(d){function clearInputFile(b){var a=b.parentNode;b.parentNode.innerHTML=b.parentNode.innerHTML;return a.getElementsByTagName("input")[0]};var c=d.getElementsByTagName("*");for(var i=0,l=c.length;i<l;i++){if(!c[i])continue;if(c[i].getAttribute("temporary")!=undefined)c[i].innerHTML="";if(c[i].getAttribute("disabled")!=undefined)c[i].disabled=c[i].getAttribute("disabled")?1:0;if(c[i].getAttribute("send")!=undefined)c[i].setAttribute("send",0);if(_ATTR(c[i],"type")=="file")clearInputFile(c[i]);if(_ATTR(c[i],"type")=="checkbox")c[i].checked=0;if(_ATTR(c[i],"type")=="text"||c[i].tagName.toLowerCase()=="textarea"){c[i].value="";if(c[i].def_value&&c[i].onblur)c[i].onblur()}if(c[i].reset)c[i].reset();if(_ATTR(c[i],"onreset"))c[i][_ATTR(c[i],"onreset")]()}return false};Forms.maxlength=function(a,b){a.value=a.value.substr(0,b)};Forms.dropAjaxFilter=function(d){var c=document.createElement("div");c.className="drop_filter";d.parentNode.insertBefore(c,d.nextSibling);d.inFocus=true;d.isOpen=false;d.onkeydown=function(e){if(Key(e).is(13))return false};d.onkeyup=function(e){if(this.isOpen&&(Key(e).is(40)||Key(e).is(38)||Key(e).is(13)))return c.act(Key(e).code());this._value=this.value;if(this.value)GET(this);else c.close()};d.onfocus=function(){this.onkeyup();this.inFocus=true};d.onblur=function(){c.close();this.inFocus=false};d.oncomplete="if(this.inFocus){ this.list.showhide(1); this.list.init(); }";d.setAttribute("indicator","0");d.target=d.list=c;c.input=d;c.init=function(){var a=_(c,"~@a");if(!a)return false;for(var i=0;i<a.length;i++){a[i].onmousedown=function(){c.lock=true};a[i].onclick=function(){d.value=this.innerHTML;c.showhide(0);return false};a[i].onmouseup=function(){c.lock=false}}};c.close=function(){if(!c.lock)setTimeout(function(){c.showhide(0)},100)};c.showhide=function(b){d.isOpen=showhide(c,b)};c.act=function(b){if(b==13){if(c.cur){d._value=d.value;c.showhide(0)}return false}if(!c.firstChild)return false;var a;c.cur=_(c,"~a.act");if(c.cur)c.cur.className="";if(!c.cur)a=c[b==40?"firstChild":"lastChild"];else a=c.cur[b==40?"nextSibling":"previousSibling"];if(a){a.className="act";d.value=a.innerHTML;c.cur=a}else d.value=d._value;return false}};Forms.fileBrowse=function(e,f){this.init=function(){this.obj=e;e.onmouseover=function(){return false};e.onclick=function(){return false};var a=document.createElement("input");a.type="file";a.name=e.getAttribute("name");a._onchange=e.onchange;a.size=1;if(e.getAttribute("lang"))a.setAttribute("lang",e.getAttribute("lang"));if(e.getAttribute("flag"))a.setAttribute("flag",e.getAttribute("flag"));var b=_ATTR(e,"clear");if(b){b=_(_ATTR(e,"clear"));b.onclick=function(){this.style.display="none";c.style.display="block";if(c.target)_(c.target).innerHTML="";Forms.fieldsReset(c);c.getElementsByTagName("input")[0].onchange=a.onchange}}var c=document.createElement("div");c.className=e.className;c.innerHTML=e.innerHTML;c.target=e.target;e.parentNode.replaceChild(c,e);e=c;if(this.obj.getAttribute("hidden")){var d=document.createElement("input");d.type="hidden";d.name=this.obj.getAttribute("hidden");d.value=0;e.insertBefore(d,e.firstChild)}a.onchange=function(){if(this._onchange)this._onchange();if(e.target)_(e.target).innerHTML=Forms.getFileName(this.value);if(d)d.value=this.value?1:0;if(b){b.style.display="block";c.style.display="none"}};CSS(a).set({fontSize:'100px',position:'absolute',margin:'-30px 0 0 -300px',opacity:0,filter:'Alpha(opacity:0)',cursor:'pointer'});CSS(e).set({overflow:'hidden'});if(CSS(e).check({position:'static'}))CSS(e).set({position:'relative'});e.insertBefore(a,e.firstChild);if(f)b.onclick()};return this.init()};Forms.getFileName=function(a){return a.replace(/([^\\]*\\)+([^\\]*\.[A-Za-z]+)/,"$2")};Forms.input=function(e){var d=this;this.init=function(){e.onfocus=null;if(e.getAttribute("mask")){addEvent(e,"keyup",function(a){d.mask(this)});addEvent(e,"blur",function(a){d.mask(this)})}if(e.getAttribute("onenterkey")){addEvent(e,"keyup",function(a){if(d.isEnter(a))_EV(this,'onenterkey')()})}if(e.getAttribute("default")!=undefined){this.setDefault(e)}return this};this.mask=function(b){var a=new RegExp("[^"+b.getAttribute("mask")+"]","gi");b.value=b.value.replace(a,"")};this.isEnter=function(a){return(window.event?window.event.keyCode:a.which)==13};this.setDefault=function(c){function setOpt(a){if(a.def_opt)CSS(a).set(a.def_value==a.value?a.def_style:a.def_opt)};if(!c.def_value){var b=_ATTR(c,"default");if(b&&/^{[^}]*}$/.test(b)){c.def_opt=(new Function("return "+b))();c.def_value=c.value=c.getAttribute("value")||c.value;c.def_style=CSS(c).get(c.def_opt)}else if(b)c.def_value=c.def_text=b;addEvent(c,"focus",function(){d.setDefault(this)});addEvent(c,"blur",function(){if(!this.value)this.value=this.def_value;setOpt(this)})}if(e.def_value==e.value)e.value=e.def_text?e.def_text:"";setOpt(e)};return this.init()};function Checkbox(c,d){if(!c)return false;if(!c.default_checked){c.default_checked=_ATTR(c,"checked");c.checked=0}if(d!=null)c.checked=d?0:1;c.checked=c.checked?0:1;Style(c)[c.checked?'add':'remove']("act");if(!c.checked&&_ATTR(c.parentNode,"uncheckable")){for(var i=0,a=0,b=_(c.parentNode,"@a"),l=b.length;i<l;i++)if(b[i].checked)a++;if(a<Number(_ATTR(c.parentNode,"uncheckable")))Checkbox(c,1)}};Forms.checkbox=function(b){b.chb=b.getElementsByTagName("input")[0];if(!b.classNative){CSS(b.chb).set({opacity:"0",filter:"alpha(opacity:0)",cursor:"pointer"});if(!b.className)b.className="checkbox";b.classNative=b.className;b.classAct=b.className+" "+b.className+"_act";b._checked=0}if(b.chb.checked){b.className=b.classAct;b._checked=1}b.onclick=function(e){var a=window.event?window.event.srcElement:e.target;this._checked=this._checked?0:1;this.className=this._checked?this.classAct:this.classNative;if(a.tagName==this.tagName){this.chb.checked=this._checked;if(this.chb.onchange)this.chb.onchange();return false}else if(this.chb.onchange)this.chb.blur();return true}};Forms.select=function(m){var c=this;var e,f,g,h,j,k,l;this.isOpen=false;this.init=function(){l=true;m.style.display="none";this.isOver=0;e=document.createElement("s");e.className="custom_select "+m.className;e.onmouseover=function(){c.isOver=1};e.onmouseout=function(){c.isOver=0};f=document.createElement("input");f.type="hidden";f.value=m.value;f.name=m.name;f.id=m.id;f.disabled=m.disabled;f.onchange=m.onchange;f.autoload=(_ATTR(m,"autoload")!=undefined);f.className="";if(_ATTR(m,"flag"))f.setAttribute("flag",_ATTR(m,"flag"));f.update=function(){c.update(f)};f.reset=function(){c.set(f.defaultElement)};e.appendChild(f);g=document.createElement("var");g.className="field";f.field=g;k=document.createElement("a");k.className="arrow";g.appendChild(k);h=document.createElement("var");g.appendChild(h);e.appendChild(g);h.onclick=k.onclick=function(){return c.dropdown()};j=document.createElement("div");j.className="dropdown";f.options=[];if(m.options.length)for(var i=0;i<m.options.length;i++){var a=document.createElement("a");a.innerHTML=m.options[i].innerHTML;a.value=m.options[i].value;a.onclick=function(){return c.set(this)};CSS(a).set({display:"block",whiteSpace:"nowrap",textDecoration:"none"});f.options.push(a);if(m.options[i].selected||m.value==a.value)f.selected=f.defaultElement=a;if(_ATTR(m.options[i],"image")){var b=document.createElement("img");b.src=_ATTR(m.options[i],"image");a.insertBefore(b,a.firstChild)}j.appendChild(a)}e.appendChild(j);setTimeout(function(){c.create()},12);return this};this.create=function(){if(!m||!m.parentNode)return false;m.parentNode.replaceChild(e,m);CSS(e).set({position:"relative",textDecoration:"none"});if(BROWSER.ie){if(document.selects_count==undefined)document.selects_count=0;CSS(e).set({zIndex:100-(document.selects_count++)})}CSS(g).set({whiteSpace:"nowrap"});CSS(h).set({fontStyle:"normal"});CSS(k).set({position:"absolute",display:"block",top:0,right:0});CSS(j).set({position:"absolute",visibility:"hidden"});if(m.options.length){f.selected?this.set(f.selected):this.set(f.options[0]);addEvent(document,"mouseup",function(){if(c.isOpen&&!c.isOver)setTimeout(function(){c.dropdown(0)},40)})}l=false};this.update=function(a){for(var i=0;i<a.options.length;i++){if(a.options[i].value==a.value){this.set(a.options[i]);break}}};this.dropdown=function(d){if(f.disabled)return false;if(parseInt(CSS(j).get("width"))==j.clientWidth)CSS(j).set({height:"auto"});if(d==undefined)d=j.style.visibility!="visible";j.style.visibility=d?"visible":"hidden";this.isOpen=d;return false};this.set=function(a){f.prevValue=f.value;f.value=a.value;f.selected=a;h.innerHTML=a.innerHTML;this.autoInlineWidth();this.dropdown(0);if(((!l&&f.prevValue!=f.value)||f.autoload)&&f.onchange)f.onchange();if(this.cur)Style(this.cur).remove("act");Style(a).add("act");this.cur=a;return false};this.autoInlineWidth=function(){if(CSS(g).check({display:"block"}))return false;if(!j.inited){CSS(j).set({width:(j.offsetWidth+k.offsetWidth)+"px"});j.inited=1}g.style["paddingRight"]=0;var a=j.offsetWidth-g.offsetWidth-parseInt(CSS(g).get("marginRight"))-parseInt(CSS(g).get("marginLeft"))-parseInt(CSS(e).get("borderRightWidth"))-parseInt(CSS(e).get("borderLeftWidth"));if(a>0)g.style["paddingRight"]=a+"px"};return this.init()};var _addnews={form_primary:null,form_second:null,isContinue:0,editMode:false,mode:'',prepare:function(a){_popup.load('dialog_add',function(){a.onmouseup=function(){};a.onclick=function(){return GET(this)};a.onclick()});return false},start:function(a,b){a=a||{};this.editMode=a.latitude&&a.longitude?true:false;this.mode=b||"news";SET_MARKER_FLAG=(this.mode=="user"?"user_L":"news");this.form_primary=_("block_new_ort",this.mode=="user"?null:">form");this.form_second=_("block_new_ort",this.mode=="news"?null:">form");showhide(this.form_primary,1);showhide(this.form_second,0);if(!Auth.isLogin)return Auth.checkAccess();if(Progressbar.uploading)return document.alert(Lang["js_in_upload"]);LOCK_MAP_AUTORELOAD=1;if(mapa)Map.clear();_popup.close();if(!this.editMode)_page.close();_("but_add").style["display"]="none";if(this.mode=="news")_("news_nex_but").innerHTML=_ATTR("news_nex_but",this.editMode?"lang2":"lang");_popup.open('dialog_add');if(this.editMode){_page.minimizing();_page.lock(1);this.mapScopes={latitude:mapa.getCenter().lat(),longitude:mapa.getCenter().lng(),zoom:mapa.getZoom(),type:Map.getType()};Map.setScope(a);SET_MARKER_FLAG=CUR_MARKER.icon;setMarker(new GLatLng(a.latitude,a.longitude));if(this.form_primary.mapview)this.form_primary.mapview.checked=(a.zoom!=undefined)?1:0}else _bar.close();return false},edit:function(a){if(this.editMode)return this.changeMarkerPos(a);if(!MARKERS[SET_MARKER_FLAG])return document.alert(Lang["js_no_upload_marker"]);if(!_popup.block.dialog_upload.loaded){a.target="dialog_upload_inf";a.oncomplete=a.onclick;a.onclick=function(){POST(a)};_popup.load("dialog_upload",function(){a.onclick()});return false}this.isContinue=1;_popup.close('dialog_add');this.isContinue=0;panToMarker(MARKERS[SET_MARKER_FLAG],-445,23);var p=MARKERS[SET_MARKER_FLAG].getPoint();_("news_lat").value=p.lat();_("news_lng").value=p.lng();_("news_upload_mapview").value=this.form_primary.mapview.checked?1:0;MOVEEND_FUNCTION.push(function(){_popup.open("dialog_upload")});return false},changeMarkerPos:function(b){var a=POINTS[CUR_MARKER.num-1];var p=MARKERS[SET_MARKER_FLAG].getPoint();PAGE_SCOPE=this.form_primary.mapview&&this.form_primary.mapview.checked?{zoom:mapa.getZoom(),type:Map.getType()}:{};PAGE_SCOPE.latitude=p.lat();PAGE_SCOPE.longitude=p.lng();this.form_primary.lat.value=a.lat=PAGE_SCOPE.latitude;this.form_primary.lng.value=a.lng=PAGE_SCOPE.longitude;if(this.mode=="news")_page.zoomerSettings(PAGE_SCOPE);if(!b.oncomplete)POST(b);_popup.close('dialog_add');return false},finish:function(){if(this.isContinue)return false;LOCK_MAP_AUTORELOAD=0;_("but_add").style["display"]="block";if(mapa&&MARKERS[SET_MARKER_FLAG])mapa.removeOverlay(MARKERS[SET_MARKER_FLAG]);MARKERS[SET_MARKER_FLAG]=null;SET_MARKER_FLAG=null;var a=drawMarkers();if(this.editMode){_page.lock(0);_page.minimizing();Map.setScope(this.mapScopes);CUR_MARKER=a[CUR_MARKER.num-1];CUR_MARKER.panTo();Ask.show()}else _bar.open();showhide(_("block_new_ort"),0);showhide(_("block_new_ort",">form"),1);return false}};var _adduser={start:function(){LOCK_MAP_AUTORELOAD=1;_bar.close();_bar.lock=true;SET_MARKER_FLAG="user_L";if(mapa)Map.clear();this.formReset();return false},check:function(a,b){if(!MARKERS[SET_MARKER_FLAG])return document.alert(Lang["js_no_reg_marker"]);if(!Forms.checkFields(a))return false;var p=MARKERS[SET_MARKER_FLAG].getPoint();b.lat=p.lat();b.lng=p.lng();return true},finish:function(){LOCK_MAP_AUTORELOAD=0;if(mapa&&MARKERS[SET_MARKER_FLAG])mapa.removeOverlay(MARKERS[SET_MARKER_FLAG]);MARKERS[SET_MARKER_FLAG]=null;SET_MARKER_FLAG=null;_bar.lock=false;if(!_menu.block.menu_reg.andLogin&&!_page.isOpen)_bar.open();_menu.close();drawMarkers();return false},formReset:function(){Forms.fieldsReset(_menu.block.menu_reg.getElementsByTagName("form")[1]);if(_("id_check_name"))_("id_check_name").className="";if(_("id_check_email"))_("id_check_email").className="";if(_("id_check_pass"))_("id_check_pass").className=""}};var Progressbar=function(a,b){this.init(a,b)};(function(){var e,f,g,h,j;Progressbar.uploading=false;Progressbar.prototype={obj:null,args:{},root:null,block:null,form:null,bottom:0,init:function(a,b){if(!this.oninit())return false;e=this;f=null;g=null;h=3;j=false;this.obj=a;this.args=b||{};this.root=_("progress");if(!this.args.uid)this.args.uid+=Math.round(Math.random()*1000);this.build();this.createForm();return this},build:function(){this.block=makeHTML({tag:"div",className:"block",append:[{tag:"span",className:"s1",innerHTML:this.root.lang,append:[{tag:"b",append:[{tag:"var",innerHTML:"0%"}]}]},{tag:"span",className:"s2",append:[{tag:"i",className:"ico_arr",innerHTML:"&nbsp;"},{tag:"var",innerHTML:"0 KB"}]},{tag:"span",append:[{tag:"i",className:"ico_less",innerHTML:"&nbsp;"},{tag:"var",innerHTML:"00:00:00"}]},{tag:"span",className:"panel",append:[{tag:"var"}]},{tag:"span",append:[{tag:"var",innerHTML:"- 00:00:00"},{tag:"i",className:"ico_more",innerHTML:"&nbsp;"}]},{tag:"span",className:"s3",append:[{tag:"i",className:"ico_doc",innerHTML:"&nbsp;"},{tag:"var",innerHTML:"0 KB"}]},{tag:"span",append:[{tag:"i",className:"ico_speed",innerHTML:"&nbsp;"},{tag:"var",innerHTML:"0 KB/s"}]}]},this.root)},createForm:function(){this.form=document.createElement("form");this.form.encoding="multipart/form-data";this.form.method="post";this.form.target="frame_"+this.args.uid;this.form.innerHTML='<iframe name="'+this.form.target+'"></iframe>';var a=this.obj;while(a.tagName.toLowerCase()!="form")a=a.parentNode;var b=a.elements;var c=0;for(var i=0,l=b.length;i<l;i++){if(!this.args.flag||(this.args.flag&&b[i].getAttribute("flag")&&b[i].getAttribute("flag")==this.args.flag)){if(b[i].getAttribute("send")&&!eval(b[i].getAttribute("send")))continue;var d=b[i].cloneNode(true);if(b[i].type=="file"&&b[i].value){b[i].parentNode.insertBefore(d,b[i]);d=b[i+1];c++;d.name="uploadname"+c}this.form.appendChild(d)}}makeHTML({append:[{tag:"input",type:"hidden",name:"numitems",value:c},{tag:"input",type:"hidden",name:"numfileelements",value:c}]},this.form);this.form.query="action=incoming&items="+c+"&serial="+this.args.uid;this.form.action=this.args.cgi+"?"+this.form.query;this.block.appendChild(this.form);if(!c)return this.end(0);setTimeout(function(){e.start()},13)},start:function(){Progressbar.uploading=true;this.bottom=0;this.onstart();this.root.style.bottom=this.bottom+"px";this.root.style.display="block";(g=new Ajax()).onready=function(a){e.update(a.obj)};g.method="script";g.file=this.args.cgi;g.query=this.form.query+"&action=get_progress_and_size";this.form.submit();f=window.setInterval(function(){e.check()},700)},check:function(){if(g)g.send()},update:function(c){if(c["error"]){if(h)return h--;else return this.end(1)}if(c["size"]){h=0;var a=Math.ceil((c["progress"]/c["size"])*100);var b=_(this.block,"~@var");b[0].innerHTML=a+" %";b[1].innerHTML=Math.floor(c["progress"]/1024)+" KB";b[2].innerHTML=c["timepass"];b[3].style.width=a*300/100+'px';b[4].innerHTML="- "+c["timerest"];b[5].innerHTML=Math.floor(c["size"]/1024)+" KB";b[6].innerHTML=Math.floor(c["speed"]/1024)+" KB/s";this.block.title="Files Uploaded: "+c["finished_file_count"]+" of "+c["total_file_count"];if(a==100){return this.end(1)}}},end:function(a,b){if(j)return false;else j=true;this.onend(a,b);Progressbar.uploading=false;clearInterval(f);this.root.removeChild(this.block);this.root.style.display="none";return false},oninit:function(){},onstart:function(){},onend:function(a,b){}}})();var SITE_LOCKED=0;var SITE_LOADED=0;var SITE_STARTED=0;var GET_SCOPE_BY_IP_TM;var PAGE_SCOPE;var BASE_TITLE;var DIRECT_LINK;LANG=COOKIE.get("_lang_")||LANG;Auth.autologin=(COOKIE.get("username")&&COOKIE.get("passwd")&&(COOKIE.get("remember")||COOKIE.get("in_session")));document.onload=function(){if(arguments.callee.inited)return;else arguments.callee.inited=1;DIRECT_LINK=_ATTR("startsite","direct")!=undefined;HTMLAJAX.loader=_("loader_ico");BASE_TITLE=_(document,"~img").alt||document.title;BASE_HREF=_ATTR(_(document,"~base"),"href");makeHTML({tag:"div",id:"ms"},_("root"),_("map"));if(GOOGLE_ANALYTICS){_uacct=GOOGLE_ANALYTICS;try{urchinTracker()}catch(e){}}if(DEBUGGER_ENABLED)Debugger.init();Fullscreen.init("dialog_fs");_dropdown.init("dropdown");_bar=new Bar(_("bar"));_menu.init("menu");_menu.onopen=function(){_popup.close("dialog_tooltip");if(_menu.cur){if(this.close_dialogs){if(!document.alert.current)_popup.close();_page.close()}else this.close_dialogs=true}_page.move.bounds.t=_page.pos.top+(_menu.cur&&_menu.cur.areabar?_menu.cur.areabar.offsetHeight:0);if(_page.isOpen&&_page.maximized)_page.repos(_page.move.bounds.t-2,1)};_menu.onclose=function(){};_menu.block.menu_reg.onopen=function(){if(!_menu.block.menu_reg.loaded_access&&_menu.block.menu_reg.andLogin){GET({ref:_ATTR(_("access_denied"),"src"),target:"access_denied",oncomplete:function(){Auth.restoreUser(_menu.block.menu_reg)}});_menu.block.menu_reg.loaded_access=1}if(!_menu.block.menu_reg.loaded_form){GET({ref:_ATTR(_("reg_form"),"src"),target:"reg_form"});_menu.block.menu_reg.loaded_form=1}_adduser.start();if(_page.isOpen&&_menu.block.menu_reg.andLogin){_menu.close_dialogs=false;_menu.block.menu_reg.andLogin=false}};_menu.block.menu_reg.onclose=function(){_adduser.finish();showhide(_("access_denied"),0)};_menu.block.menu_login.onopen=function(){_('login_login').focus();_menu.close_dialogs=false};_menu.block.menu_login.onclose=function(){showhide(_('block_forgot'),0)};_menu.block.menu_search.onopen=function(){if(_menu.last=="menu_news")_act(_(_menu.block.menu_search,"~@a")[1]);if(_menu.last=="menu_community")_act(_(_menu.block.menu_search,"~@a")[2])};_menu.block.menu_search.onclose=function(){Search.form("searchinfo").value=""};_menu.block.menu_community.onopen=function(){};_menu.block.menu_community.onclose=function(){};if(_menu.block.menu_channel){_menu.block.menu_channel.onopen=function(){_bar.close()};_menu.block.menu_channel.onclose=function(){_menu.minimize("menu_channel");if(!_page.isOpen)_bar.open()};_menu.block.menu_channel.onmininize=function(){};_menu.block.menu_channel.onmaximize=function(){_menu.block.menu_channel.box.but_close.onclick=function(){return _menu.minimize("menu_channel")};_page.close();_bar.close()}}_menu.block.menu_myplebs.onopen=function(){_page.onclose();_page.open();if(_menu.block.menu_myplebs.areabar.tab==undefined)_menu.block.menu_myplebs.areabar.tab=0;GET({ref:_ATTR(_menu.block.menu_myplebs.areabar,"src"),target:_page.content});_menu.close_dialogs=false};_menu.block.menu_myplebs.onclose=function(){_page.close()};_popup.init("content");_popup.block.dialog_ort.oninit=function(a){_popup.load(a)};_popup.block.dialog_ort.onopen=function(a){Style(_("but_my_ort")).add("act")};_popup.block.dialog_ort.onclose=function(a){Style(_("but_my_ort")).remove("act")};_popup.attachBlur("dialog_ort");_popup.block.dialog_map_type.oninit=function(a){_popup.load(a)};_popup.block.dialog_map_type.onopen=function(a){Style(_("but_map_type")).add("act")};_popup.block.dialog_map_type.onclose=function(a){Style(_("but_map_type")).remove("act")};_popup.attachBlur("dialog_map_type");_popup.block.dialog_lang.oninit=_popup.block.dialog_lang2.oninit=function(b){var a=BROWSER.ie?function(){_(b).style.width=Number(_(_popup.block[b].content,"~a").offsetWidth+34)+"px"}:null;_popup.load(b,a)};_popup.attachBlur("dialog_lang");_popup.attachBlur("dialog_lang2");_popup.block.dialog_admin.onopen=function(a){};_popup.attachBlur("dialog_admin");_popup.initBlock(_popup.block.dialog_tooltip);_popup.block.dialog_add.onopen=function(a){_menu.close()};_popup.block.dialog_add.onclose=function(){_addnews.finish()};_popup.block.dialog_upload.onopen=function(){if(!_popup.block.dialog_upload.tabs){_popup.block.dialog_upload.tabs=new Tabs(_popup.block.dialog_upload);_popup.block.dialog_upload.tabs.onopen=function(){_("tab_type_id2").value=_("tab_type_id").value=this.cur.getAttribute("type")}}_popup.block.dialog_upload.tabs.set(0);_popup.block.dialog_upload.getElementsByTagName("h1")[1].className="";_("upload_but").innerHTML=_ATTR(_("upload_but"),"title_add");_("data_is_entered").value="";if(_popup.block.dialog_upload.editor)_popup.block.dialog_upload.editor.setContent("");_popup.block.dialog_upload.progress=1;_popup.block.dialog_upload.tabs.disabled=0;showhide('upload_step1',1);showhide('upload_step2',0);showhide(_('upload_calendar'),0);try{Upload.in_process(false)}catch(e){};_popup.block.dialog_upload.modal=new Modal({opacity:10,zi:100});_multiBrowse_1=new multiBrowse(_('multiBrowse_input_1'),_('multiBrowse_items_1'))};_popup.block.dialog_upload.onclose=function(){_popup.block.dialog_upload.modal.remove();_addnews.finish();Upload.video_control.clear();Upload.link_control.clear();Forms.fieldsReset(_popup.block.dialog_upload);Upload.in_process(false);if(!_popup.block.dialog_upload.progress||_("tab_type_id").value>3)_bar.load()};_popup.block.dialog_place.onopen=function(){CUR_MARKER=_popup.block.dialog_place.marker;if(CUR_MARKER)Ask.showhide(_(CUR_MARKER.sid))};_popup.block.dialog_info.onopen=function(){_popup.block.dialog_info.modal=new Modal({opacity:40,zi:202})};_popup.block.dialog_info.onclose=function(){_popup.block.dialog_info.modal.remove()};_page.init("page");_page.onopen=function(){CUR_MARKER=_page.block.page.marker;if(!_page.minimized&&!_page.maximized)Ask.showhide((CUR_MARKER&&_(CUR_MARKER.sid)));if(_menu.block.menu_search.isOpen||_menu.block.menu_reg.isOpen)_menu.close();if(SITE_LOADED)PageEdit.channel.skin.set();if(mapa)mapa.disableScrollWheelZoom()};_page.onclose=function(){_page.zoomerSettings({});Map.onresize();if(SITE_LOADED)_page.content.innerHTML="";_page.block.page.marker=null;if(_menu.block.menu_myplebs.isOpen)_menu.close();Autoplay.stop();if(mapa)mapa.enableScrollWheelZoom()};Auth.onlogin=function(a){_("news_cat_add").onclick();_("user_cat_add").onclick();_("user_filter_add").onclick();_("channel_cat_add").onclick();if(_page.isOpen&&(_menu.block.menu_reg.isOpen||!a))_page.reload();if(_menu.block.menu_login.isOpen||_menu.block.menu_reg.isOpen)_menu.close()};Progressbar.prototype.oninit=function(){return Progressbar.uploading?document.alert(Lang["js_in_upload"]):true};Progressbar.prototype.onstart=function(){_popup.close("dialog_lang");_popup.block["dialog_lang"].disabled=1;Style("uid_lang").add("deact");if(_bar.isOpen)this.bottom=130;if(_page.isOpen)this.bottom=170};Progressbar.prototype.onend=function(b,c){var a=_EV(this.obj,b?'onuploaded':'onuploadfail');setTimeout(a,1000);if(c)document.alert(c);_popup.block["dialog_lang"].disabled=0;Style("uid_lang").remove("deact")};if(BROWSER.ie6)initPNG(document);if(START_MODE){}init_content(document)};document.onstart=function(a){_('start_modal').style.display="none";_page.open();SITE_STARTED=1;if(a=="single_marker"&&_("hash_single_marker"))_("hash_single_marker").onclick();if(a=="static"&&_("hash_static"))_("hash_static").onclick()};addEvent(window,"load",function(){Auth.restoreUser(_menu.block.menu_login);if(Auth.autologin)_("login_submit").onclick();else if(!DIRECT_LINK)getScopeByIp();Advertising(1,'ads_1',30);if(GOOGLE_MAP_ENABLED)Map.init("map");SITE_LOADED=1});HTMLAJAX.onresponse=function(b){if(!b||!b.obj)return;if(b.obj.alert||b.obj.syswin)document.alert(b.obj.alert||b.obj.syswin,b.obj.syswin);if(b.obj.site_locked){lockSite(b.obj.site_locked);HTMLAJAX.cache.reset()}if(b.obj.access_denied){Auth.logout();Auth.checkAccess()}if(b.obj.point){var a=b.obj.point[0];if(a){if(a.autoload&&(!_menu.last||_menu.last!="menu_"+a.mode)){_menu.close();_menu.open("menu_"+a.mode,1)}if(!SITE_STARTED&&a.autoload){LOCATION.latitude=a.lat;LOCATION.longitude=a.lng;Map.onload=function(){_bar.createSlides(b.obj.point)};_page.content.call_func=function(){GET({ref:a.href,target:_page.content})}}}if(SITE_STARTED){LOCK_MAP_AUTORELOAD=0;setTimeout(function(){_bar.createSlides(b.obj.point,b.obj.count)},10)}if(!SITE_STARTED)document.onstart()}};GET.onresponse=function(a){if(GOOGLE_ANALYTICS){if(gaTrackCheck(a.req.query))urchinTracker(a.obj.aref);if(a.req.response.obj["scrope"]!=undefined)urchinTracker("&scrope="+a.req.response.obj["scrope"])}};History.onhistory=function(b){var a=window.location.href.replace(/([^#?]+).*/,"$1");if(BASE_HREF!=a)window.location.href=BASE_HREF+b};if(BROWSER.ie6)document.include("css/skin.css");if(GOOGLE_MAP_ENABLED)document.include(("https:"==document.location.protocol?"sslproxy.php?":"")+"http://maps.google.com/maps?file=api&amp;v=2&amp;key="+GOOGLE_MAP_KEY+"");if(GOOGLE_ANALYTICS)document.include(("https:"==document.location.protocol?"https://ssl.":"http://www.")+"google-analytics.com/urchin.js");document.write('<script type="text/javascript">document.onload();</script>'); 