/* www.dalion.ua, build 1150 */ var IS_DEBUG=false;function addBookmark(c,d){if(!c){c=location.href;}if(!d){d=document.title;}if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel(d,c,"");}else{if(typeof window.external=="object"){window.external.AddFavorite(c,d);}else{if(window.opera&&document.createElement){var b=document.createElement("A");if(!b){return false;}b.setAttribute("rel","sidebar");b.setAttribute("href",c);b.setAttribute("title",d);b.click();}else{return false;}}}return true;}function showTopSuccess(a){showTopInfo(a,2);}function showTopError(a){showTopInfo(a,1);}function showTopMessage(a){showTopInfo(a,2);}function showTopInfo(a,b){($.browser.msie?setTimeout("showTopInfoAfterDocumentReady('"+a+"', '"+b+"');",1000):showTopInfoAfterDocumentReady(a,b));}function showTopInfoAfterDocumentReady(b,c){$("#idShowTopInfo").remove();var a={color:"#250",backgroundColor:"#cc0",timeShow:5000};if(c==1){var a={color:"#fff",backgroundColor:"#c00",timeShow:5000};}if(c==3){var a={color:"#fff",backgroundColor:"#250",timeShow:5000};}$("body").prepend('<div id="idShowTopInfo" style="position: absolute; z-index: 5000; opacity: 0; width: 100%; left: 0; top: 0; margin-left: 0; margin-right: 0; text-align: center; color: '+a.color+"; background-color: "+a.backgroundColor+';">'+b+"</div>");$("#idShowTopInfo").animate({opacity:"1"},500);if(a.timeShow>0){setTimeout(function(){$("#idShowTopInfo").animate({opacity:"0"},2300);},a.timeShow);}$("#idShowTopInfo").click(function(){$(this).animate({opacity:"0"},500);});}function goFromChild(a){if(opener){if(opener.closed){window.open(a,"");}else{if(opener.location.href.search(a)==-1){opener.location.href=a;}}self.close();return false;}return true;}function blinkByID(b,c){if(c==null){c=0;}if(c>5){return;}var a=getHTMLTagById(b);if(!a){return;}c++;n=new Number(c/2);a.style.display=((n.toFixed(0)==n)?"block":"none");setTimeout("blinkByID("+'"'+b+'"'+", "+c+")",230);}function showhide(b){var a=getHTMLTagById(b);a.style.display=((a.style.display=="none")||(a.style.display=="")?"block":"none");}function show(b){var a=getHTMLTagById(b);a.style.display="block";}function hide(b){var a=getHTMLTagById(b);a.style.display="none";}function updateTagHTML(a,c){var b=getHTMLTagById(a);if(b==null){return;}if(b.innerHTML!=c){b.innerHTML=c;}}function updateTagHREF(a,c){var b=getHTMLTagById(a);if(b==null){return;}if("undefined"!=typeof b.href){b.href=c;}}function changeColorForTagList(c,b){for(var a=0;a<c.length;a++){getHTMLTagById(c[a]).style.color=b;}}function getHTMLTagById(a){return(document.getElementById?document.getElementById(a):(document.all?document.all[a]:(document.layers?document.layers[a]:null)));}function isPresentHTMLTagById(a){return(getHTMLTagById(a)!=null);}function getElementListByName(c,b){var e=document.getElementsByTagName(b);var a=new Array();for(var d=0;d<e.length;d++){if(e[d].name==c){a[a.length]=e[d];}}return a;}function addHandler(c,a,b){if(c.addEventListener){c.addEventListener(a,b,false);}else{c.attachEvent("on"+a,b);}}function isParent(c,b){if(!c||!b){return false;}while(true){if(c==b){return true;}try{if(c.parentElement){c=c.parentElement;}else{if(c.parentNode){c=c.parentNode;}else{return false;}}}catch(a){return false;}}}function getBoundsByID(a){return getBounds(getHTMLTagById(a));}function getBounds(a){var d=a.offsetLeft;var c=a.offsetTop;for(var b=a.offsetParent;b;b=b.offsetParent){d+=b.offsetLeft-b.scrollLeft;c+=b.offsetTop-b.scrollTop;}return{left:d,top:c,width:a.offsetWidth,height:a.offsetHeight};}function unrollWindowByHeight(){if((getWindowHeight()+24)>=screen.availHeight){return;}var a=Math.round((1-getWindowHeight()/screen.availHeight)*50);window.resizeBy(0,(a<=0)?1:a);setTimeout(function(){unrollWindowByHeight();},23);}function getScrollXY(){var b=0;var a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft;}}}return{x:b,y:a};}function getDocumentHeight(){return((document.body.scrollHeight>document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight);}function getDocumentWidth(){return((document.body.scrollWidth>document.body.offsetWidth)?document.body.scrollWidth:document.body.offsetWidth);}function getWindowHeight(){return(self.innerHeight?self.innerHeight:(document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body?document.body.clientHeight:640);}function getWindowWidth(){return(self.innerWidth?self.innerWidth:(document.documentElement&&document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body?document.body.clientWidth:800);}function createScript(c,d){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("charset",d);a.setAttribute("src",c);var b=document.getElementsByTagName("head").item(0);b.insertBefore(a,b.firstChild);}function callbackInstructionsAfterLoadFromPage(){if("undefined"===typeof Page){return;}if(null===Page.runCurrentInstructionsAfterLoad){return;}eval(Page.runCurrentInstructionsAfterLoad);Page.runCurrentInstructionsAfterLoad=null;}function mousePageXY(b){var a=0,c=0;if(!b){b=window.event;}if(b.pageX||b.pageY){a=b.pageX;c=b.pageY;
}else{if(b.clientX||b.clientY){a=(b.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft);c=(b.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop);}}return{"x":a,"y":c};}function getElementText(a){return a.text||a.textContent||(function(d){var c="";if(d==null){return c;}var e=d.childNodes;var b=0;while(b<e.length){var f=e.item(b);switch(f.nodeType){case 1:case 5:c+=arguments.callee(f);break;case 3:case 2:case 4:c+=f.nodeValue;break;case 6:case 7:case 8:case 9:case 10:case 11:case 12:break;}b++;}return c;}(a));}function rolloverImage(a,f,d,h,e){var b=((h==null)?"gif":h);var g=((f==1)?(a+"_over."+b):(a+"."+b));var c=(d==null)?"":d;getHTMLTagById((e==null)?a:e).src=c+g;}function rolloverBackground(c,a){var b=((a==1)?(c+"_over.gif"):(c+".gif"));getHTMLTagById(c).style.backgroundImage="url(/images/"+b+")";}function rolloverBackgroundColor(e,d,b,c){var a=((c==1)?d:b);getHTMLTagById(e).style.backgroundColor=a;}function preloadImage(a){if("undefined"==typeof a){return;}var c=new Array();for(var b=0;b<a.length;b++){c[b]=new Image();c[b].src=a[b];}}function isEmpty(a){return((a==null)||(a.trim()==""));}if("undefined"==typeof String.prototype.ltrim){String.prototype.ltrim=function(){return this.replace(/^\s+/,"");};}if("undefined"==typeof String.prototype.rtrim){String.prototype.rtrim=function(){return this.replace(/\s+$/,"");};}if("undefined"==typeof String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"");};}if("undefined"==typeof String.prototype.trimCollapse){String.prototype.trimCollapse=function(){return this.replace(/\s+/g," ").trim();};}if("undefined"==typeof String.prototype.withoutSpecialSymbols){String.prototype.withoutSpecialSymbols=function(){var a=this.changeHTMLSpecialOnHTMLVisual();a=a.replace(/[^a-zA-Zа-яА-Я]+/g," ").trimCollapse();return a;};}if("undefined"==typeof String.prototype.changeHTMLSpecialOnHTMLVisual){String.prototype.changeHTMLSpecialOnHTMLVisual=function(){var a=this;a=a.replace(/&(quot|#34);/,'"');a=a.replace(/&(amp|#38);/,"&");a=a.replace(/&(lt|#60);/,"<");a=a.replace(/&(gt|#62);/,">");a=a.replace(/&(trade|#153);/,"TM");a=a.replace(/&(nbsp|#160);/," ");a=a.replace(/&(iexcl|#161);/,"-");a=a.replace(/&(cent|#162);/,"c");a=a.replace(/&(pound|#163);/,"p");a=a.replace(/&(copy|#169);/,"(C)");a=a.replace(/&(reg|#174);/,"(R)");return a;};}if("undefined"==typeof String.prototype.minLengthWord){String.prototype.minLengthWord=function(b,g){var a=new Array();var c=this.split(g);var e=0;for(var d=0;d<c.length;d++){var f=c[d].trim();if(f.length>=b){a[e]=f;e++;}}return a.implode(g);};}if("undefined"==typeof String.prototype.uniqueWords){String.prototype.uniqueWords=function(f){var c=new Array();var a=this.split(f);var d=0;for(var b=0;b<a.length;b++){var e=a[b].trim();if(!(c.isContain(e))){c[d]=e;d++;}}return c.implode(f);};}if("undefined"==typeof String.prototype.formatAsMoney){String.prototype.formatAsMoney=function(d,e){var c=this.split(" ");var b=Math.floor(c[0]);var f=Math.round((c[0]-b)*100);if(f<10){f="0"+f;}var a=c[1];var g="";if(b==0){g=(d&&e)?1:b;if(!d){g+=","+f;}}else{g=b;if(!d){g+="<sup>"+f+"</sup>";}else{if(f>=50){g++;}}}g+="&nbsp;"+a;return g;};}if("undefined"==typeof String.prototype.createFileInfoFromPath){String.prototype.createFileInfoFromPath=function(){workStr=this.trim();var b=workStr.lastIndexOf("/");if(b<0){b=0;}var a=workStr.indexOf(".",b);if(a<0){a=workStr.length;}return{name:workStr.substr(b+1,a-b-1),extension:workStr.substr(a+1)};};}if("undefined"==typeof String.prototype.parseURL){String.prototype.parseURL=function(){workStrURL=this.trim();var m=0;var l=workStrURL.indexOf("://");if(l<0){l=workStrURL.length;}var d=workStrURL.substr(m,l-m);var j=l+3;var g=workStrURL.indexOf("/",j);if(g<0){g=workStrURL.length;}var e=workStrURL.substr(j,g-j).toLowerCase().replace(/www./,"");var c=g+1;var b=workStrURL.indexOf("?",c);if(b<0){b=workStrURL.length;}var f=workStrURL.substr(c,b-c);var k=b+1;var h=workStrURL.indexOf("#",k);if(h<0){h=workStrURL.length;}var p=workStrURL.substr(k,h-k);var o=h+1;var a=((o>=0)?workStrURL.substr(o):"");return{scheme:d,host:e,path:f,query:p,fragment:a};};}if("undefined"==typeof String.prototype.createHREFParamList){String.prototype.createHREFParamList=function(){var d=((this.indexOf("?")===0)?this.substring(1):this);var b=d.split("&");var a=new Array();for(i=0;i<=b.length-1;i++){var c=b[i].split("=");a[c[0]]=c[1];}return a;};}if("undefined"==typeof String.prototype.explodeCookieString){String.prototype.explodeCookieString=function(){return unserialize(this);};}if("undefined"==typeof String.prototype.isFrameCircleBrackets){String.prototype.isFrameCircleBrackets=function(){var a=this.trim();return((a.indexOf("(")==0)&&(a.lastIndexOf(")")==(a.length-1)));};}if("undefined"==typeof String.prototype.isFrameAboveSmallBrackets){String.prototype.isFrameAboveSmallBrackets=function(){var a=this.trim();return(((a.indexOf("<")==0)||(a.indexOf("&#60;")==0))&&((a.lastIndexOf(">")==(a.length-1))||(a.lastIndexOf("&#62;")==(a.length-"&#62;".length))));};}if("undefined"==typeof String.prototype.isEmail){String.prototype.isEmail=function(){var a=this.trim();return(a.match(/^(.+)@(.+)$/)!=null);};}if("undefined"==typeof String.prototype.toHTML){String.prototype.toHTML=function(){return this.replace(/\r\n/g,"<br>");};}if("undefined"==typeof Array.prototype.toStringList){Array.prototype.toStringList=function(e,f){if("undefined"===typeof e){e=", ";
}if("undefined"===typeof f){f=false;}var b="";var a=(f==true)?"":"'";for(var d=0;d<this.length;d++){var c=this[d];if(c instanceof Array){c=this[d].toStringList(e,f);}else{if(c instanceof Object){c=toSourceObject(this[d]);}}b+=a+c+a+e;}return b.substr(0,b.length-(new String(e)).length);};}if("undefined"==typeof Array.prototype.implode){Array.prototype.implode=function(c){var a="";for(var b=0;b<this.length;b++){a+=this[b]+c;}return a.substr(0,a.length-(new String(c)).length);};}if("undefined"==typeof Array.prototype.isContain){Array.prototype.isContain=function(b){var d=((b==null)?null:b.toLowerCase());for(var a=0;a<this.length;a++){var c=((this[a]==null)?null:this[a].toLowerCase());if(d==c){return true;}}return false;};}if("undefined"==typeof Array.prototype.isContainAll){Array.prototype.isContainAll=function(a){if(a==null){return false;}for(var b=0;b<a.length;b++){if(!this.isContain(a[b])){return false;}}return true;};}if("undefined"==typeof Array.prototype.unique){Array.prototype.unique=function(){var b=[];for(var d=0;d<this.length;d++){for(var c=d+1;c<this.length;c++){if(this[d]==this[c]){c=++d;}}b.push(this[d]);}return b;};}if("undefined"==typeof Array.prototype.pushUnique){Array.prototype.pushUnique=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return;}}this.push(b);};}if("undefined"==typeof Array.prototype.remove){Array.prototype.remove=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){this.splice(a,1);break;}}};}if("undefined"==typeof Array.prototype.isEmptyString){Array.prototype.isEmptyString=function(){for(var a=0;a<this.length;a++){if((this[a]!==null)&&(this[a]!=="")){return false;}}return true;};}if("undefined"==typeof Array.prototype.createStateListFromObjectList){Array.prototype.createStateListFromObjectList=function(){var a=new Array();for(var b=0;b<this.length;b++){a.push(this[b].stateToArray());}return a;};}if("undefined"==typeof Array.prototype.shuffle){Array.prototype.shuffle=function(){this.sort(function(){return 0.5-Math.random();});return true;};}extend=function(a,c){function b(){}b.prototype=c.prototype;a.prototype=new b();a.prototype.constructor=a;a.baseConstructor=c;a.superClass=c.prototype;};function toSourceObject(e){var b="{ ";var d=null;for(var c in e){d=e[c];var a=e[c];if("object"==typeof d){a="{}";}if("boolean"===typeof d){}if("number"===typeof d){}if("function"===typeof d){continue;}if("undefined"===typeof d){a=null;}if((null!==d)&&(d instanceof Array)){a="new Array("+d.toStringList(undefined,false)+")";}if("string"===typeof d){a="'"+d+"'";}b+=c+": "+a+", ";}if(d!==null){b=b.substr(0,b.length-2);}return(b+" }");}function serialize(e){var f=function(m){var l=typeof m,j;if(l=="object"&&!m){return"null";}if(l=="object"){if(!m.constructor){return"object";}var h=m.constructor.toString();if(j=h.match(/(\w+)\(/)){h=j[1].toLowerCase();}var k=["boolean","number","string","array","function"];for(key in k){if(h==k[key]){l=k[key];break;}}}return l;};var b=f(e);var g;switch(b){case"undefined":g="N";break;case"boolean":g="b:"+(e?"1":"0");break;case"number":g=(Math.round(e)==e?"i":"d")+":"+e;break;case"string":g="s:"+e.length+':"'+e+'"';break;case"array":case"object":g="a";var c=0;var d="";var a;for(key in e){if("function"==typeof e[key]){continue;}a=(key.match(/^[0-9]+$/)?parseInt(key):key);d+=serialize(a)+serialize(e[key]);c++;}g+=":"+c+":{"+d+"}";break;default:g="N";break;}if((b!="object")&&(b!="array")){g+=";";}return g;}function unserialize(d){var a=function(h,j,g,f){throw new window[h](j,g,f);};var e=function(j,l,k){var f=[];var h=j.slice(l,l+1);var g=2;while(h!=k){if((g+l)>j.length){a("Error","Invalid");}f.push(h);h=j.slice(l+(g-1),l+g);g+=1;}return[f.length,f.join("")];};var c=function(j,k,h){buf=[];for(var f=0;f<h;f++){var g=j.slice(k+(f-1),k+f);buf.push(g);}return[buf.length,buf.join("")];};var b=function(A,j){if(!j){j=0;}var x=[];var y=(A.slice(j,j+1)).toLowerCase();var o=j+2;var w=new Function("x","return x");var q=0;var m=0;switch(y){case"i":w=new Function("x","return parseInt(x)");var g=e(A,o,";");var q=g[0];var z=g[1];o+=q+1;break;case"b":w=new Function("x","return (parseInt(x) == 1)");var g=e(A,o,";");var q=g[0];var z=g[1];o+=q+1;break;case"d":w=new Function("x","return parseFloat(x)");var g=e(A,o,";");var q=g[0];var z=g[1];o+=q+1;break;case"n":z=null;break;case"s":var k=e(A,o,":");var q=k[0];var f=k[1];o+=q+2;var g=c(A,o+1,parseInt(f));var q=g[0];var z=g[1];o+=q+2;if(q!=parseInt(f)&&q!=z.length){throw new IllegalArgumentException("SyntaxError. String length mismatch."+" Data: ["+A+"]");}break;case"a":var z={};var v=e(A,o,":");var q=v[0];var p=v[1];o+=q+2;for(var u=0;u<parseInt(p);u++){var h=b(A,o);var r=h[1];var B=h[2];o+=r;var t=b(A,o);var l=t[1];var s=t[2];o+=l;z[B]=s;}o+=1;break;default:throw new IllegalArgumentException("SyntaxError. Unknown / Unhandled data type(s): ["+y+"]"+" Data: ["+A+"]");break;}return[y,o-j,w(z)];};return b(d,0)[2];}function base64_encode(a){}function base64_decode(h){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var c,b,a,m,l,k,j,o,g=ac=0,e="",f=[];h+="";do{m=d.indexOf(h.charAt(g++));l=d.indexOf(h.charAt(g++));k=d.indexOf(h.charAt(g++));j=d.indexOf(h.charAt(g++));o=m<<18|l<<12|k<<6|j;c=o>>16&255;b=o>>8&255;a=o&255;if(k==64){f[ac++]=String.fromCharCode(c);}else{if(j==64){f[ac++]=String.fromCharCode(c,b);}else{f[ac++]=String.fromCharCode(c,b,a);}}}while(g<h.length);e=f.join("");e=utf8_decode(e);return e;}function utf8_encode(d){d=(d+"").replace(/\r\n/g,"\n");var b="";var h,a;var f=0;h=a=0;f=d.length;
for(var g=0;g<f;g++){var e=d.charCodeAt(g);var c=null;if(e<128){a++;}else{if((e>127)&&(e<2048)){c=String.fromCharCode((e>>6)|192)+String.fromCharCode((e&63)|128);}else{c=String.fromCharCode((e>>12)|224)+String.fromCharCode(((e>>6)&63)|128)+String.fromCharCode((e&63)|128);}}if(c!=null){if(a>h){b+=d.substring(h,a);}b+=c;h=a=g+1;}}if(a>h){b+=d.substring(h,d.length);}return b;}function utf8_decode(a){var b=[],c=ac=c1=c2=c3=0;a+="";while(c<a.length){c1=a.charCodeAt(c);if(c1<128){b[ac++]=String.fromCharCode(c1);c++;}else{if((c1>191)&&(c1<224)){c2=a.charCodeAt(c+1);b[ac++]=String.fromCharCode(((c1&31)<<6)|(c2&63));c+=2;}else{c2=a.charCodeAt(c+1);c3=a.charCodeAt(c+2);b[ac++]=String.fromCharCode(((c1&15)<<12)|((c2&63)<<6)|(c3&63));c+=3;}}}return b.join("");}function buildCookieString(a){return serialize(a);}function createObjectListFromStateList(obj,className){var resultList=createListFromObject(obj);var out=new Array();for(var i=0;i<resultList.length;i++){var obj=eval(className+".stateFromArraySerialize('"+serialize(resultList[i])+"');");out.push(obj);}return out;}function createListFromObject(f){var c=new Array();var e=false;for(i in f){var d=typeof i;var b=!isNaN(i);if(("string"==d)&&b&&(i=="0")){e=true;break;}}if(!e){return f;}for(i in f){var d=typeof i;var b=!isNaN(i);if(("string"==d)&&b){var a=f[i];c.push(a);}}return c;}function clone(d){if(!d||("object"!=typeof d)){return d;}var e=(("function"==typeof d.pop)?[]:{});for(var b in d){if(d.hasOwnProperty(b)){var a=d[b];e[b]=((a&&("object"==typeof a))?clone(a):a);}}return e;}function createHash(a){return md5((a==null)?"0":a);}function isRobot(){var c=navigator.userAgent.toLowerCase();var a=new Array("yandex/","yadirectbot/","yandexblog/","yandexsomething/","james bond","googlebot","mediapartners-google","gsa-crawler","stackrambler","ysearch/slurp","msnbot","aportcatalogrobot","ia_archiver","gigablast.com","sape.bot","cuil.com");for(var b=0;b<a.length;b++){if(c.indexOf(a[b])>=0){return true;}}return false;}
