﻿
function trim(str,chars){return ltrim(rtrim(str,chars),chars);}
function ltrim(str,chars){chars=chars||"\\s";return str.replace(new RegExp("^["+chars+"]+","g"),"");}
function rtrim(str,chars){chars=chars||"\\s";return str.replace(new RegExp("["+chars+"]+$","g"),"");}
function getURLParam(strParamName){var strReturn="";var strHref=window.location.href;if(strHref.indexOf("?")>-1){var strQueryString=strHref.substr(strHref.indexOf("?")).toLowerCase();var aQueryString=strQueryString.split("&");for(var iParam=0;iParam<aQueryString.length;iParam++){if(aQueryString[iParam].indexOf(strParamName+"=")>-1){var aParam=aQueryString[iParam].split("=");strReturn=aParam[1];break;}}}
return strReturn;}
function AddOnLoadScript(script){window.addEvent('domready',function(){eval(script);});}
function SelectValue(select_id,value,hid){var select=$(document.body).getElement(select_id);var valueFound=false;if(select!=null)
for(i=0;i<select.options.length;i++)
if(select.options[i].value==value){select.selectedIndex=i;valueFound=true;}
if((hid!='undefined')&&(valueFound)&&(value!="---"))
$(document.body).getElement(hid).value=value;}
function confirmDelete(delUrl){if(confirm("Czy na pewno usunąć?")){document.location=delUrl;}}
function StripChars(inp,chars){chars=chars||"\\s";inp.value=inp.value.replace(new RegExp("["+chars+"]+","g"),"");}
function DetectFirefox(){if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var ffversion=new Number(RegExp.$1)
if(ffversion>=3)
return 3;else if(ffversion>=2)
return 2;else if(ffversion>=1)
return 1;}}
function DetectIE(){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var ieversion=new Number(RegExp.$1)
if(ieversion>=8)
return 8;else if(ieversion>=7)
return 7;else if(ieversion>=6)
return 6;else if(ieversion>=5)
return 5;}}
function DetectOpera(){if(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var oprversion=new Number(RegExp.$1)
if(oprversion>=10)
return 10;else if(oprversion>=9)
return 9;else if(oprversion>=8)
return 8;else if(oprversion>=7)
return 7;else
return 0;}}
function getEventTarget(e){var targ;if(!e)var e=window.event;if(e.target)targ=e.target;else if(e.srcElement)targ=e.srcElement;if(targ.nodeType==3)
targ=targ.parentNode;return targ;}
function getEventKeyCode(e){var code;if(!e)var e=window.event;if(e.keyCode)code=e.keyCode;else if(e.which)code=e.which;return code;}
function IsRightClick(e){var rightclick;if(!e)var e=window.event;if(e.which)rightclick=(e.which==3);else if(e.button)rightclick=(e.button==2);return rightclick;}
function MousePosition(e){var posx=0;var posy=0;if(!e)var e=window.event;if(e.pageX||e.pageY){posx=e.pageX;posy=e.pageY;}else if(e.clientX||e.clientY){posx=e.clientX+document.body.scrollLeft
+document.documentElement.scrollLeft;posy=e.clientY+document.body.scrollTop
+document.documentElement.scrollTop;}
return posx,posy;}
function MouseX(){var e=false;var posx=0;if(!e)var e=window.event;if(e.pageX){posx=e.pageX;}else if(e.clientX){posx=e.clientX+document.body.scrollLeft
+document.documentElement.scrollLeft;}
return posx;}
function MouseY(){var e=false;var posy=0;if(!e)var e=window.event;if(e.pageY){posy=e.pageY;}else if(e.clientY){posy=e.clientY+document.body.scrollTop
+document.documentElement.scrollTop;}
return posy;}
function GetIFrame(frameId,frameName){d=document;f=d.frames?d.frames[frameName]:d.getElementById(frameId);p=f.document||f.contentWindow.document;return p;}
function runCaptcha(txt,len,postback){if(txt.value.length==len)
eval(postback);}
function sendRequest(url,callback,postData){var req=createXMLHTTPObject();if(!req)return;var method=(postData)?"POST":"GET";req.open(method,url,true);req.setRequestHeader('User-Agent','XMLHTTP/1.0');if(postData)
req.setRequestHeader('Content-type','application/x-www-form-urlencoded');req.onreadystatechange=function(){if(req.readyState!=4)return;if(req.status!=200&&req.status!=304){return;}
callback(req);}
if(req.readyState==4)return;req.send(postData);}
var XMLHttpFactories=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];function createXMLHTTPObject(){var xmlhttp=false;for(var i=0;i<XMLHttpFactories.length;i++){try{xmlhttp=XMLHttpFactories[i]();}
catch(e){continue;}
break;}
return xmlhttp;}
function noCTRL(e){var code=(document.all)?event.keyCode:e.which;var msg="Przepraszany. Ta funkcja nie jest dostępna.";if(!e)var e=window.event;if(parseInt(code)==17){e.returnValue=false;}}
function whichButton(event)
{if(event.button==2){alert("Przepraszany. Ta funkcja nie jest dostępna.");}}
var pol=['ą','ę','ó','ś','ć','ź','ż','ł','ń'];var utf=['a','e','o','s','c','z','z','l','n'];function getControl(cntrl){if($('ctl00_cntStrona_Ramka_wapNowaWiadomoscSMS_'+cntrl)!=null){return $('ctl00_cntStrona_Ramka_wapNowaWiadomoscSMS_'+cntrl);}else if($('ctl00_cntStrona_Ramka2_wapNowaWiadomoscSMS_'+cntrl)!=null){return $('ctl00_cntStrona_Ramka2_wapNowaWiadomoscSMS_'+cntrl);}else{return $('ctl00_ctnMetryka_wapNowaWiadomoscSMS_'+cntrl);}}
function przeliczZnaki(inp){var il_Sms_Znaki=getControl('il_Sms_Znaki');var znaki_count=getControl('chkUtf8').checked?80:160;var il_sms=Math.floor(inp.value.length/znaki_count)+1;var il_znakow=znaki_count-(inp.value.length%znaki_count);il_Sms_Znaki.innerHTML=il_sms+"/"+il_znakow;}
function filtrujSMS(inp){var chk=getControl('chkUtf8');if(chk!=null){var utf=false;pol.each(function(c){if(inp.value.indexOf(c)>-1){utf=true
return;}});chk.checked=utf
if(utf==true){zmienPrzycisk(true);}else{zmienPrzycisk(false);}
przeliczZnaki(inp);}}
function zmienPrzycisk(utf){if(utf==true)getControl('lnkUtf8').innerHTML="Bez polskich znaków";else getControl('lnkUtf8').innerHTML="Polskie znaki";}
function SmsUtf8_Change(chk){var test=false;var inp=getControl('txtTresc');pol.each(function(c){if(inp.value.indexOf(c)>-1){getControl('chkUtf8').checked=true;test=true;}});if(test&&!chk.checked){$('zmianaUtf8').style.display='block';}
przeliczZnaki(inp);}
function SmsUtf8_ChangeNowy(){var test=false;var inp=getControl('txtTresc');if(getControl('lnkUtf8').innerHTML=="Bez polskich znaków"){zmienPrzycisk(false)
getControl('chkUtf8').checked=false;}else{zmienPrzycisk(true);getControl('chkUtf8').checked=true;}
pol.each(function(c){if(inp.value.indexOf(c)>-1){zmienPrzycisk(true);getControl('chkUtf8').checked=true;test=true;}});if(test&&getControl('lnkUtf8').innerHTML=="Bez polskich znaków"){$('zmianaUtf8').style.display='block';}
przeliczZnaki(inp);}
function zmianaUtf8Tak(){getControl('chkUtf8').checked=false;zmienPrzycisk(false)
var inp=getControl('txtTresc');pol.each(function(c,i){inp.value=inp.value.replace(new RegExp(pol[i],"g"),utf[i]);});$('zmianaUtf8').style.display='none';przeliczZnaki(inp);}
function zmianaUtf8Nie(){getControl('chkUtf8').checked=true;zmienPrzycisk(true);$('zmianaUtf8').style.display='none';}
Hashtable.prototype.hash=null;Hashtable.prototype.keys=null;Hashtable.prototype.location=null;function Hashtable(){this.hash=new Array();this.keys=new Array();this.location=0;}
Hashtable.prototype.get=function(key){return this.hash[key];}
Hashtable.prototype.set=function(key,value){if(value==null)
return null;if(this.hash[key]==null)
this.keys[this.keys.length]=key;this.hash[key]=value;}
Hashtable.prototype.has=function(key){return this.hash[key]!=null;}
function setOpacity(e,opacity){var o=e.style;o.opacity=(opacity/100);o.MozOpacity=(opacity/100);o.KhtmlOpacity=(opacity/100);o.filter="alpha(opacity="+opacity+")";}
stary_flash=false;function hasClass(obj,cName){return new RegExp('\\b'+cName+'\\b').test(obj.className);}
function hasClasses(obj,classes){for(f=0;f<classes.length;f++){if(!hasClass(obj,classes[i]))return false;}return true;}
function addClass(obj,cName){if(!hasClass(obj,cName)){obj.className+=obj.className?' '+cName:cName;}
return true;}
function removeClass(obj,cName){if(!hasClass(obj,cName))return false;var rep=obj.className.match(' '+cName)?' '+cName:cName;obj.className=obj.className.replace(rep,'');return true;}
function swapClasses(obj,class1,class2){if(hasClass(obj,class1)){removeClass(obj,class1);addClass(obj,class2);return true;}
if(hasClass(obj,class2)){removeClass(obj,class2);addClass(obj,class1);return true;}return false;}
function switchClass(obj,to,from){if(hasClass(obj,from))removeClass(obj,from);addClass(obj,to);return true;}
function getScrollXY(){var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}
return[scrOfX,scrOfY];}
function isDefined(variable){return(!(!(variable||false)));}
function GetScrollTop(){var scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;}else if(document.body&&(document.body.scrollTop)){scrOfY=document.body.scrollTop;}else if(document.documentElement&&(document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;}
return scrOfY;}
function alertSize(){var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;}
window.alert('Width = '+myWidth);window.alert('Height = '+myHeight);}
function getClientHeight(){var myWidth=0;if(typeof(window.innerHeight)=='number'){myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientHeight)){myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientHeight)){myHeight=document.body.clientHeight;}
return myHeight;}
function pokazbutton(tag,opcja){if(opcja==1){document.getElementById(tag).style.display="none";document.getElementById(tag+"Over").style.display="block";}else{document.getElementById(tag+"Over").style.display="none";document.getElementById(tag).style.display="block";}}
function ZapamietajMnie(){if(document.getElementById('ctl00_chkZapamietaj').checked==true){document.getElementById('dvCheckbox').style.backgroundPosition="left top";document.getElementById('ctl00_chkZapamietaj').checked=false;}else{document.getElementById('dvCheckbox').style.backgroundPosition="-13px top";document.getElementById('ctl00_chkZapamietaj').checked=true;}}
function SubmitForm(e){var code=(document.all)?event.keyCode:e.which;if(parseInt(code)==13){if($$('.panelLogowania')[0]){__doPostBack('ctl00$lnkZalogujMnie','');}else if($$('.wysz1StrMini')[0]){__doPostBack('ctl00$cntStrona$btn1strSzukaj','');}else if($$('.wysz1StrFuull')[0]){__doPostBack('ctl00$cntStrona$lnkSzukaj','');}}}
function ZapiszSieNaKonkurs(idKonkursu){$$('.hidZapiszSieNaKonkurs')[0].value=idKonkursu;__doPostBack('ctl00$lnkZapiszSieNaKonkurs','');}
function PowiadomZnajomego(){__doPostBack('ctl00$lnkPowiadomZnajomego','');}
function HideAds18Minus(){$$('.banerySeparator').each(function(e){e.setStyle('display','none');});if($$('.banner1str')[0]){$$('.banner1str')[0].setStyle('display','none');}}
function ShowAds18Minus(){$$('.banerySeparator').each(function(e){e.setStyle('display','block');});if($$('.banner1str')[0]){$$('.banner1str')[0].setStyle('display','block');}}
function PokazGreOnline(wysokosc,szerokosc,adrWyk){var g=document.getElementById("RamkaGryOnline");var cccc=document.getElementById("content");var gra=document.getElementById("GraOnline");var flash=new SWFObject(adrWyk,"GraOnline",szerokosc,wysokosc,"9","#00000000");flash.write("GraOnline");g.style.display="block";gra.style.width=parseInt(szerokosc)+20+'px';gra.style.height=parseInt(wysokosc)+20+'px';g.style.paddingTop=parseInt(getClientHeight()-parseInt(wysokosc))/2+GetScrollTop()+'px';document.getElementById("Pomocniczy").style.width=parseInt(szerokosc)+20+'px';document.getElementById("ctl00_Flesz").style.marginTop=10+'px';}
function UkryjGre(){__doPostBack('ctl00$lnkWylaczGre','');document.getElementById("RamkaGryOnline").style.display="none";}
function ocena(a){document.getElementById("ctl00_ctnMetryka_hidOcena").value=a;__doPostBack('ctl00$ctnMetryka$btnDodajOcene','');}
function zamknijSwf(){if($('ctl00_ctnMetryka_lnkZamknijEdycjaZwiazanych')){__doPostBack('ctl00$ctnMetryka$lnkZamknijEdycjaZwiazanych','');}else if($('ctl00_cntPanelKopiuj_dkp_btnZamknijDodajPlik')){__doPostBack('ctl00$cntPanelKopiuj$dkp$btnZamknijDodajPlik','');}else{__doPostBack('ctl00$cntStrona$Ramka$btnZamknijDodajPlik','');}}
function zamknijSwfOk(){if($('ctl00_ctnMetryka_lnkZamknijEdycjaZwiazanych')){__doPostBack('ctl00$ctnMetryka$lnkZamknijEdycjaZwiazanych','');}else if($('ctl00_cntPanelKopiuj_dkp_btnZamknijDodajPlik')){__doPostBack('ctl00$cntPanelKopiuj$dkp$btnZamknijDodajPlik','');}else{__doPostBack('ctl00$cntStrona$Ramka$btnZamknijDodajPlik','');}}
function copyLink(){if(window.clipboardData&&clipboardData.setData){clipboardData.setData('Text',document.getElementById("ctl00_ctnMetryka_inputPrzyjaznyLink").value);}else{alert('Unsupported browser.');}}
function szukaj(e){var code=(document.all)?event.keyCode:e.which;if(parseInt(code)==13){__doPostBack('ctl00$cntStrona$lnkSzukaj','');}}
function pokazMetryke(itemId,idAnchora,dla18plus,podmiot,id){if(podmiot=='Katalog')itemId=itemId+"_"+idAnchora;itemId=itemId.replace(/_/g,"$");if(dla18plus=="True"){if(confirm(podmiot+' przeznaczony dla osób pełnoletnich. Klikając OK potwierdzasz że jesteś osobą pełnoletnią i wyrażasz zgodę na oglądanie treści przeznaczonych dla osób pełnoletnich.')){__doPostBack(itemId,id);}}else{__doPostBack(itemId,id);}}
function TylkoMojePliki(){if(document.getElementById('ctl00_cntStrona_hckMoje').checked==true){document.getElementById('dvCheckboxMoje').style.backgroundPosition="left top";document.getElementById('ctl00_cntStrona_hckMoje').checked=false;}else{document.getElementById('dvCheckboxMoje').style.backgroundPosition="-13px top";document.getElementById('ctl00_cntStrona_hckMoje').checked=true;}}
function TylkoPlikiZnajomych(){if(document.getElementById('ctl00_cntStrona_hckZnajomi').checked==true){document.getElementById('dvCheckboxZnajomi').style.backgroundPosition="left top";document.getElementById('ctl00_cntStrona_hckZnajomi').checked=false;}else{document.getElementById('dvCheckboxZnajomi').style.backgroundPosition="-13px top";document.getElementById('ctl00_cntStrona_hckZnajomi').checked=true;}}
function getMetrykaPoz()
{x=$('ctl00_ctnMetryka_dvMetryka').getStyle('top');y=$('ctl00_ctnMetryka_dvMetryka').getStyle('left');return x+','+y;}
function zamknijMetrykeFP(){__doPostBack('ctl00$ctnMetryka$lnkbtnZamknijFullPost',getMetrykaPoz());}
DDM_Engine_stopSM=new Hash();var DDM_Engine=new Class({initialize:function(){this.web_ddm_class='webDropDownMenu';this.webddms=$$('div.'+this.web_ddm_class);if(this.webddms!=null){this.webddms.each(function(e){var m=$(document.body).getElement('div[alt='+e.getAttribute('rel')+']');if(m!=null){var innerUls=e.getElements('ul');if((innerUls!=null)&&(innerUls.length>1)){e.set('class','webDropDownMenu MultiMenu');var innerDiv=new Element('div',{'class':'webDropDownMenu_Inner'});e.grab(innerDiv);innerDiv.adopt(innerUls);}
var jsbm_parent=$(document.body).getElement('.cMenu').parentNode;var jsbm_left=$(document.body).getElement('.cMenu').offsetLeft;var stop=false;while((jsbm_parent!=null)&&(!stop)){if(jsbm_parent.offsetLeft!=null){jsbm_left+=jsbm_parent.offsetLeft;jsbm_parent=jsbm_parent.parentNode;}else{stop=true;}}
var x=m.getPosition().x-jsbm_left;var shift=0;if($$('.topPasek3')[0]){shift=-19-20-31;}
var y=m.getPosition().y+shift;var h=28;e.setStyle('top',y+h+'px');e.setStyle('left',x+'px');if(e.getSize().x<m.getSize().x)
e.setStyle('width',m.getSize().x);e.setStyle('visibility','visible');e.setStyle('display','none');var m_elements=new Array();m_elements.extend(m);m_elements.extend(m.getElements('div'));m_elements.extend(m.getElements('a'));m_elements.extend(m.getElements('label'));m_elements.each(function(ml){ml.addEvents({'mouseover':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),true);e.setStyle('display','block');},'mouseout':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),false);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'")',400);}});},e);m.getElements('div').each(function(mm){mm.addEvents({'click':function(){aaa=mm.getElements('a')[0];document.location.href=aaa;}});});var e_elements=new Array();e_elements.extend([e]);e_elements.extend(e.getElements('ul'));e_elements.extend(e.getElements('li'));e_elements.extend(e.getElements('a'));e_elements.each(function(el){el.addEvents({'mouseover':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),true);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'",'+DDM_Engine_stopSM.get(e.getAttribute('rel'))+')',400);},'mouseout':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),false);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'",'+DDM_Engine_stopSM.get(e.getAttribute('rel'))+')',400);},'click':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),false);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'",'+DDM_Engine_stopSM.get(e.getAttribute('rel'))+')',400);}});},e);e.getElements('li').each(function(ee){ee.addEvents({'click':function(){aa=ee.getElements('a')[0];document.location.href=aa;}});});}});}}});function ReloadDropDownMenu(){web_ddm_class='webDropDownMenu';webddms=$$('div.'+web_ddm_class);if(webddms!=null){webddms.each(function(e){var m=$(document.body).getElement('div[alt='+e.getAttribute('rel')+']');if(m!=null){var jsbm_parent=$(document.body).getElement('.cMenu').parentNode;var jsbm_left=$(document.body).getElement('.cMenu').offsetLeft;var stop=false;while((jsbm_parent!=null)&&(!stop)){if(jsbm_parent.offsetLeft!=null){jsbm_left+=jsbm_parent.offsetLeft;jsbm_parent=jsbm_parent.parentNode;}else{stop=true;}}
var x=m.getPosition().x-jsbm_left;var y=m.getPosition().y-19-57;var h=28;e.setStyle('top',y+h+'px');e.setStyle('left',x+'px');if(e.getSize().x<m.getSize().x)
e.setStyle('width',m.getSize().x);e.setStyle('visibility','visible');e.setStyle('display','none');var m_elements=new Array();m_elements.extend(m);m_elements.extend(m.getElements('div'));m_elements.extend(m.getElements('a'));m_elements.extend(m.getElements('label'));m_elements.each(function(ml){ml.addEvents({'mouseover':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),true);e.setStyle('display','block');},'mouseout':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),false);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'")',400);}});},e);var e_elements=new Array();e_elements.extend([e]);e_elements.extend(e.getElements('ul'));e_elements.extend(e.getElements('li'));e_elements.extend(e.getElements('a'));e_elements.each(function(el){el.addEvents({'mouseover':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),true);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'",'+DDM_Engine_stopSM.get(e.getAttribute('rel'))+')',400);},'mouseout':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),false);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'",'+DDM_Engine_stopSM.get(e.getAttribute('rel'))+')',400);},'click':function(){DDM_Engine_stopSM.set(e.getAttribute('rel'),false);setTimeout('DDM_Engine_hideSubMenu("'+e.getAttribute('rel')+'",'+DDM_Engine_stopSM.get(e.getAttribute('rel'))+')',400);}});},e);}});}}
function DDM_Engine_hideSubMenu(elrel){var el=$(document.body).getElement('div.webDropDownMenu[rel='+elrel+']');if((el!=null)&&(!DDM_Engine_stopSM.get(elrel))){el.setStyle('display','none');}}
function DDM_Engine_AlternateElements(name){var at_ul=$(document.body).getElement('div.webDropDownMenu[rel='+name+']').getElement('ul');var at_lis=$(document.body).getElement('div.webDropDownMenu[rel='+name+']').getElements('li');at_lis.each(function(e,idx){e.set('onclick','location.href="'+at_ul.getAttribute('rel')+'&at='+idx+'"');e.set('alt','');});}
function DDM_Engine_ActivateAcordion(toggler,element,param,container,at){var acc=new Accordion(toggler+'.'+param,element+'.'+param,{opacity:true},$(container));if((at!=null)&&(!at==""))acc.display(at);}
function SelectTopMenuElement(alt){if($(document.body).getElements(".webTopTabMenu_EL").length>0){$(document.body).getElements(".webTopTabMenu_EL").each(function(el){el.set('class','webTopTabMenu_EL webTopTabMenu_Element');});$(document.body).getElement('div[alt='+alt+']').set('class','webTopTabMenu_EL webTopTabMenu_Element_Active');}}
DUM_singleton=null;DUM_Engine_stopSM=new Hash();DUM_Animation=false;DUM_Animation_x=true;DUM_Animation_y=true;DUM_Animation_Smoothness=5;DUM_Animation_Step=2;DUM_Opacity=true;DUM_HideAnimation=true;DUM_HideDelay=false;DUM_HideSpeed=150;hidding=false;is_el=false;ml_id="";el_id="";var DUM_Engine=new Class({initialize:function(){}});function DUM_Init(dum,reload){if(DUM_singleton!=null){dum.web_dum_class='webDropUpMenu';dum.webdums=$$('div.'+dum.web_dum_class);var m_idx=0;var e_idx=0;if(dum.webdums!=null){dum.webdums.each(function(e){e.set('ddme_id','ddme_'+e_idx);e_idx+=1;var m=$(document.body).getElement('div[alt='+e.getAttribute('rel')+']');if(m!=null){if(!reload){var jsbm_parent=$('JsBottomMenu').parentNode;var jsbm_left=$('JsBottomMenu').offsetLeft;var stop=false;while((jsbm_parent!=null)&&(!stop)){if(jsbm_parent.offsetLeft!=null){jsbm_left+=jsbm_parent.offsetLeft;jsbm_parent=jsbm_parent.parentNode;}else{stop=true;}}
var ieOffsetLeft=0;if(document.all)ieOffsetLeft=190;var x=m.getPosition().x-jsbm_left+ieOffsetLeft;var y=47;if(e.hasClass('bmprawy')){x-=65;}
e.setStyle('bottom',y+'px');e.setStyle('left',x+'px');var ex=Math.floor(e.getStyle('width').replace('px',''));var mx=Math.floor(m.getStyle('width').replace('px',''));var off_mx=Math.floor(m.getStyle('padding-left').replace('px',''))+Math.floor(m.getStyle('padding-right').replace('px',''));if(parseInt(ex)<parseInt(mx))e.setStyle('width',mx+off_mx+'px');}
e.setStyle('visibility','visible');e.setStyle('display','none');if(DUM_Animation&&DUM_Opacity){DUM_Engine_stopSM.set(e.getAttribute('rel')+"_opacity",0);setOpacity(e,DUM_Engine_stopSM.get(e.getAttribute('rel')+"_opacity"));}
m.set('ddm_id','ddm_'+m_idx);m_idx+=1;var m_elements=new Array();m_elements.extend([m]);m_elements.extend(m.getElements('div'));m_elements.extend(m.getElements('a'));m_elements.extend(m.getElements('label'));m_elements.each(function(ml){if(ml.get('ddm_id')==null)ml.set('ddm_id',m.get('ddm_id'));ml.addEvents({'mouseover':function(){DUM_Engine_stopSM.set(e.getAttribute('rel'),true);if(DUM_Animation){DUM_Engine_ShowSubMenu(e.getAttribute('rel'));}else{dum.webdums.each(function(e2){e2.setStyle('display','none');});e.setStyle('display','block');ml_id=ml.get('ddm_id');hidding=false;is_el=true;}},'mouseout':function(){DUM_Engine_stopSM.set(e.getAttribute('rel'),false);if(DUM_Animation&&DUM_HideAnimation){setTimeout('DUM_Engine_hideSubMenu("'+e.getAttribute('rel')+'")',400);}else{hidding=true;setTimeout(function(){if(hidding||ml_id!=ml.get('ddm_id')){e.setStyle('display','none');hidding=false;}},50);}}});},e);m.getElements('div').each(function(mm){mm.addEvents({'click':function(){aaa=mm.getElements('a')[0];document.location.href=aaa;}});});var e_elements=new Array();e_elements.extend([e]);e_elements.extend(e.getElements('ul'));e_elements.extend(e.getElements('li'));e_elements.extend(e.getElements('a'));e_elements.each(function(el){if(el.get('ddme_id')==null)el.set('ddme_id',e.get('ddme_id'));el.addEvents({'mouseover':function(){DUM_Engine_stopSM.set(e.getAttribute('rel'),true);if(DUM_Animation){DUM_Engine_ShowSubMenu(e.getAttribute('rel'));}else{e.setStyle('display','block');hidding=false;is_el=true;el_id=el.get('ddme_id');setTimeout(function(){is_el=false;},100);}},'mouseout':function(){DUM_Engine_stopSM.set(e.getAttribute('rel'),false);if(DUM_Animation){setTimeout('DUM_Engine_hideSubMenu("'+e.getAttribute('rel')+'")',400);}else{hidding=true;setTimeout(function(){if((hidding||el_id!=el.get('ddme_id'))&&!is_el){e.setStyle('display','none');hidding=false;is_el=false;}},50);}},'click':function(){DUM_Engine_stopSM.set(e.getAttribute('rel'),false);if(DUM_Animation){setTimeout('DUM_Engine_hideSubMenu("'+e.getAttribute('rel')+'")',400);}else{e.setStyle('display','none');}}});},e);e.getElements('li').each(function(ee){ee.addEvents({'click':function(){aa=ee.getElements('a')[0];document.location.href=aa;}});});}});}}}
function ReloadDropUpMenu(){DUM_Init(DUM_singleton,true);}
function DUM_Engine_hideSubMenu(elrel){var el=$(document.body).getElement('div.webDropUpMenu[rel='+elrel+']');if((DUM_HideDelay)&&(DUM_Engine_stopSM.get(elrel+"_run_opening"))){setTimeout('DUM_Engine_hideSubMenu("'+elrel+'")',DUM_HideSpeed);return;}
if(DUM_Animation){DUM_Engine_stopSM.set(elrel+"_run_opening",false);DUM_Engine_stopSM.set(elrel+"_fopening",false);}
if((el!=null)&&(!DUM_Engine_stopSM.get(elrel))){if((!DUM_HideAnimation)||(!DUM_Animation))el.setStyle('display','none');if(DUM_Animation&&(!DUM_Engine_stopSM.get(elrel+"_run_closing"))&&(!DUM_Engine_stopSM.get(elrel+"_fclosing"))){if(DUM_HideAnimation){DUM_Engine_stopSM.set(elrel+"_run_closing",true);DUM_Engine_stopSM.set(elrel+"_fclosing",false);DUM_Engine_AnimateHideSubMenu(elrel);}}}}
function DUM_Engine_ShowSubMenu(elrel){var el=$(document.body).getElement('div.webDropUpMenu[rel='+elrel+']');var m=$(document.body).getElement('div[alt='+elrel+']');if(DUM_Animation){DUM_Engine_stopSM.set(elrel+"_run_closing",false);DUM_Engine_stopSM.set(elrel+"_fclosing",false);}
if((el!=null)&&(!DUM_Engine_stopSM.get(elrel+"_run_opening"))&&(!DUM_Engine_stopSM.get(elrel+"_fopening"))){var start_x=el.getStyle('width').replace('px','');var start_y=el.getStyle('height').replace('px','');if(el.getStyle('display')=='none'){start_x=0;start_y=0;}
el.setStyle('display','block');var ex=Math.floor(el.getStyle('width').replace('px',''));var mx=Math.floor(m.getStyle('width').replace('px',''));var off_mx=Math.floor(m.getStyle('padding-left').replace('px',''))+Math.floor(m.getStyle('padding-right').replace('px',''));if(parseInt(ex)<parseInt(mx))ex=mx+off_mx;var ey=Math.floor(el.getStyle('height').replace('px',''));DUM_Engine_stopSM.set(elrel+"_run_opening",true);DUM_Engine_stopSM.set(elrel+"_fopening",false);if(DUM_Engine_stopSM.get(elrel+"_width")==null)DUM_Engine_stopSM.set(elrel+"_width",ex);if(DUM_Engine_stopSM.get(elrel+"_height")==null)DUM_Engine_stopSM.set(elrel+"_height",ey);if(DUM_Animation_x)el.setStyle('width',start_x+'px');if(DUM_Animation_y)el.setStyle('height',start_y+'px');DUM_Engine_AnimateShowSubMenu(elrel);}}
function DUM_Engine_AnimateShowSubMenu(elrel){var el=$(document.body).getElement('div.webDropUpMenu[rel='+elrel+']');var animation_x_stop=false;var animation_y_stop=false;if((el!=null)&&(!DUM_Engine_stopSM.get(elrel+"_fopening"))&&(!DUM_Engine_stopSM.get(elrel+"_run_closing"))){DUM_Engine_stopSM.set(elrel+"_run_closing",false);DUM_Engine_stopSM.set(elrel+"_fclosing",false);var ex=Math.floor(el.getStyle('width').replace('px',''));var ey=Math.floor(el.getStyle('height').replace('px',''));var am_x;var am_y;var am_p;if(DUM_Engine_stopSM.get(elrel+"_width")<DUM_Engine_stopSM.get(elrel+"_height")){am_p=DUM_Engine_stopSM.get(elrel+"_height")/DUM_Engine_stopSM.get(elrel+"_width");am_x=DUM_Animation_Smoothness*DUM_Animation_Step;am_y=am_p*DUM_Animation_Smoothness*DUM_Animation_Step;}else{am_p=DUM_Engine_stopSM.get(elrel+"_width")/DUM_Engine_stopSM.get(elrel+"_height");am_x=am_p*DUM_Animation_Smoothness*DUM_Animation_Step;am_y=DUM_Animation_Smoothness*DUM_Animation_Step;}
if((el.getStyle('width').replace('px','')>=DUM_Engine_stopSM.get(elrel+"_width"))||(DUM_Engine_stopSM.get(elrel+"_width")-el.getStyle('width').replace('px','')<=am_x)){if(DUM_Animation_x)el.setStyle('width',DUM_Engine_stopSM.get(elrel+"_width")+'px');animation_x_stop=true;}
if((el.getStyle('height').replace('px','')>=DUM_Engine_stopSM.get(elrel+"_height"))||(DUM_Engine_stopSM.get(elrel+"_height")-el.getStyle('height').replace('px','')<=am_y)){if(DUM_Animation_y)el.setStyle('height',DUM_Engine_stopSM.get(elrel+"_height")+'px');animation_y_stop=true;}
if(animation_x_stop&&animation_y_stop){DUM_Engine_stopSM.set(elrel+"_run_opening",false);DUM_Engine_stopSM.set(elrel+"_fopening",true);if(DUM_Opacity){DUM_Engine_stopSM.set(elrel+"_opacity",100);setOpacity(el,100);}
clearTimeout(function(){DUM_Engine_AnimateShowSubMenu(elrel)});}else{if(DUM_Animation_x)if(!animation_x_stop)el.setStyle('width',ex+am_x+'px');if(DUM_Animation_y)if(!animation_y_stop)el.setStyle('height',ey+am_y+'px');if(DUM_Opacity){var opc=((am_y/DUM_Engine_stopSM.get(elrel+"_height"))/1.5)*100;DUM_Engine_stopSM.set(elrel+"_opacity",DUM_Engine_stopSM.get(elrel+"_opacity")+opc);setOpacity(el,DUM_Engine_stopSM.get(elrel+"_opacity")+opc);}
setTimeout(function(){DUM_Engine_AnimateShowSubMenu(elrel)},5*DUM_Animation_Smoothness);}}}
function DUM_Engine_AnimateHideSubMenu(elrel){var el=$(document.body).getElement('div.webDropUpMenu[rel='+elrel+']');var animation_x_stop=false;var animation_y_stop=false;if((el!=null)&&(!DUM_Engine_stopSM.get(elrel+"_fclosing"))&&(!DUM_Engine_stopSM.get(elrel+"_run_opening"))){DUM_Engine_stopSM.set(elrel+"_run_opening",false);DUM_Engine_stopSM.set(elrel+"_fopening",false);var ex=Math.floor(el.getStyle('width').replace('px',''));var ey=Math.floor(el.getStyle('height').replace('px',''));var am_x;var am_y;var am_p;if(DUM_Engine_stopSM.get(elrel+"_width")<DUM_Engine_stopSM.get(elrel+"_height")){am_p=DUM_Engine_stopSM.get(elrel+"_height")/DUM_Engine_stopSM.get(elrel+"_width");am_x=DUM_Animation_Smoothness*DUM_Animation_Step;am_y=am_p*DUM_Animation_Smoothness*DUM_Animation_Step;}else{am_p=DUM_Engine_stopSM.get(elrel+"_width")/DUM_Engine_stopSM.get(elrel+"_height");am_x=am_p*DUM_Animation_Smoothness*DUM_Animation_Step;am_y=DUM_Animation_Smoothness*DUM_Animation_Step;}
if((el.getStyle('width').replace('px','')<=0)||(el.getStyle('width').replace('px','')<=am_x)){if(DUM_Animation_x)el.setStyle('width',0+'px');animation_x_stop=true;}
if((el.getStyle('height').replace('px','')<=0)||(el.getStyle('height').replace('px','')<=am_y)){if(DUM_Animation_y)el.setStyle('height',0+'px');animation_y_stop=true;}
if(animation_x_stop&&animation_y_stop){DUM_Engine_stopSM.set(elrel+"_run_closing",false);DUM_Engine_stopSM.set(elrel+"_fclosing",true);el.setStyle('display','none');if(DUM_Animation_x)el.setStyle('width',DUM_Engine_stopSM.get(elrel+"_width")+'px');if(DUM_Animation_y)el.setStyle('height',DUM_Engine_stopSM.get(elrel+"_height")+'px');if(DUM_Opacity){DUM_Engine_stopSM.set(elrel+"_opacity",0);setOpacity(el,0);}
clearTimeout(function(){DUM_Engine_AnimateHideSubMenu(elrel)});}else{if(DUM_Animation_x)if(!animation_x_stop)el.setStyle('width',ex-am_x+'px');if(DUM_Animation_y)if(!animation_y_stop)el.setStyle('height',ey-am_y+'px');if(DUM_Opacity){var opc=(am_y/DUM_Engine_stopSM.get(elrel+"_height"))*100;DUM_Engine_stopSM.set(elrel+"_opacity",DUM_Engine_stopSM.get(elrel+"_opacity")-opc);setOpacity(el,DUM_Engine_stopSM.get(elrel+"_opacity")-opc);}
setTimeout(function(){DUM_Engine_AnimateHideSubMenu(elrel)},5*DUM_Animation_Smoothness);}}}
var bustcachevar=1;var loadedobjects="";var rootdomain="http://"+window.location.hostname;var bustcacheparameter="";function ajaxpageget(url,containerid){var page_request=false;if(window.XMLHttpRequest)
page_request=new XMLHttpRequest();else if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){}}}
else
return false
page_request.onreadystatechange=function(){loadpageget(page_request,containerid);}
if(bustcachevar)
bustcacheparameter=(url.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime();page_request.open('GET',url+bustcacheparameter,true);page_request.send(null);}
function loadpageget(page_request,containerid){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText;}
function loadobjs(){if(!document.getElementById)
return;for(i=0;i<arguments.length;i++){var file=arguments[i];var fileref="";if(loadedobjects.indexOf(file)==-1){if(file.indexOf(".js")!=-1){fileref=document.createElement('script');fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",file);}
else if(file.indexOf(".css")!=-1){fileref=document.createElement("link")
fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href",file);}}
if(fileref!=""){document.getElementsByTagName("head").item(0).appendChild(fileref);loadedobjects+=file+" ";}}}
var bustcachevar=1;var loadedobjects="";var rootdomain="http://"+window.location.hostname;var bustcacheparameter="";function ajaxpage(url,f){var page_request=false;if(window.XMLHttpRequest)
page_request=new XMLHttpRequest();else if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){}}}
else
return false
page_request.onreadystatechange=function(){loadpage(page_request,f);}
if(bustcachevar)
bustcacheparameter=(url.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime();page_request.open('GET',url+bustcacheparameter,true);page_request.send(null);}
function loadpage(page_request,f){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1)){eval(page_request.responseText);eval(f);}}
function loadobjs(){if(!document.getElementById)
return;for(i=0;i<arguments.length;i++){var file=arguments[i];var fileref="";if(loadedobjects.indexOf(file)==-1){if(file.indexOf(".js")!=-1){fileref=document.createElement('script');fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",file);}
else if(file.indexOf(".css")!=-1){fileref=document.createElement("link")
fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href",file);}}
if(fileref!=""){document.getElementsByTagName("head").item(0).appendChild(fileref);loadedobjects+=file+" ";}}}
Q_DEBUG_ON=false;window.addEvent('domready',function(){_DDM_Engine=new DDM_Engine();if(!stary_flash){if(DUM_singleton==null)DUM_singleton=new DUM_Engine();DUM_Init(DUM_singleton,false);}
initInputHighliter();if($(document.body).getElements('.Selectable').length>0){$(document.body).getElements('.Selectable').each(function(ee){ee.store('selected','false');});}
if($(document.body).getElements('.SelectableKategory').length>0){$(document.body).getElements('.SelectableKategory').each(function(ee){ee.store('selected','false');});}
initFocus();if(!stary_flash)load();reloadButtons();StartCountDown();TinyMCE_Init();Draggables();});function Draggables()
{if(document.getElementById("ctl00_ctnMetryka_dvMetryka")){$("ctl00_ctnMetryka_dvMetryka").makeDraggable({container:"ctl00_dvBody",handle:"belka"});}
if(document.getElementById("ctl00_cntPanelKopiuj_dkp_dvKopiujPrzeniesPlik")){$("ctl00_cntPanelKopiuj_dkp_dvKopiujPrzeniesPlik").makeDraggable({container:"ctl00_dvBody",handle:"belka2a"});}
if(document.getElementById("ctl00_cntStrona_MobileWyszukiwarka")){$('ctl00_cntStrona_MobileWyszukiwarka').makeDraggable({container:'ctl00_dvBody',handle:'belka3a'});}
if(document.getElementById("ctl00_cntStrona_Ramka_MobileWyszukiwarka")){$('ctl00_cntStrona_Ramka_MobileWyszukiwarka').makeDraggable({container:'ctl00_dvBody',handle:'belka3a'});}
if(document.getElementById("ctl00_dvPanelLogowania")){$('ctl00_dvPanelLogowania').makeDraggable({container:'ctl00_dvBody',handle:'belkaLogowanie'});}}
var inp_focus=""
function initFocus(){for(var i=0,df=document.forms,len=df.length;i<len;i++)
for(j=0,els=df[i].elements;j<els.length;j++)
if(/^text/.test(els[j].type)&&!hasClass(els[j],"noautofocus"))
{els[j].hasFocus=false;els[j].onfocus=function(){this.hasFocus=true;};els[j].onblur=function(){this.hasFocus=false;};}}
function InitUpdaters(){$$('div[alt=updatable]').each(function(e){ajaxpage(e.getAttribute('rel'),e.id);});}
function load(){Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);}
function BeginRequestHandler(){var inps=$(document.body).getElements("input").each(function(inp){if(inp.hasFocus){document.getElementById('hidInputFocusHandler').value=inp.id;return;}});ZapiszSuwak();}
function ZapiszSuwak(){if($$('.hidSuwakStep')[0]){$$('.hidSuwakStep')[0].value=GetScrollTop();}}
function EndRequestHandler(){initFocus();ReloadDropDownMenu();initInputHighliter();if(document.getElementById('hidInputFocusHandler').value!=''){var inp=document.getElementById(document.getElementById('hidInputFocusHandler').value);if(inp!=null)inp.focus();}
if(document.getElementById('ctl00_cntStrona_Ramka_hddStartStopera')){if(document.getElementById('ctl00_cntStrona_Ramka_hddStartStopera').value!='0'){stop_stopera();start_stopera();czyPost=false;}else{stop_stopera();}}
if(document.getElementById('ctl00_cntStrona_Ramka_hddPostep')){if(document.getElementById('ctl00_cntStrona_Ramka_hddPostep').value!='0'){postep_start();}}
reloadButtons();StartCountDown();TinyMCE_Init();Draggables();if($$('.dvZapiszSieNaKonkurs')[0]){$$('.dvZapiszSieNaKonkurs')[0].setStyle('top',getScrollXY()[1]+(document.body.clientHeight/2)-250+'px');}
if($$('.dvZapiszSieNaKonkurs2')[0]){$$('.dvZapiszSieNaKonkurs2')[0].setStyle('top',getScrollXY()[1]+(document.body.clientHeight/2)-250+'px');}
if($$('.dvPowiadomZnajomego')[0]){$$('.dvPowiadomZnajomego')[0].setStyle('top',getScrollXY()[1]+(document.body.clientHeight/2)-250+'px');}
InitUpdaters();}
function TinyMCE_Init(){}
function TinyMCE_Init_Simple(){if(isDefined(tinyMCE)&&tinyMCE_Test()){tinyMCE.init({mode:"textareas",theme:"advanced",skin:"o2k7",skin_variant:"silver",theme_advanced_buttons1:"bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,forecolor,fontselect,fontsizeselect,separator,emotions",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_buttons4:"",plugins:"smlinebreak,emotions",theme_advanced_buttons1_add:"smlinebreak"});if($('dvKomentarzAbsolute')){$('dvKomentarzAbsolute').setStyle("position","fixed");$('dvKomentarzAbsolute').setStyle("left","40%");$('dvKomentarzAbsolute').setStyle("top","30%");$('dvKomentarzAbsolute').setStyle("z-index","5000");$('dvKomentarzAbsolute').setStyle("background-color","#111");$('dvKomentarzAbsolute').setStyle("width","452px");$('dvKomentarzAbsolute').setStyle("padding","10px");$('dvKomentarzAbsolute').setStyle("border","1px solid #333");}}}
function tinyMCE_Test(){if(document.getElementById("ctl00_ctnMetryka_txtOpisPliku")){return true;}
if(document.getElementById("ctl00_cntStrona_Ramka2_Komentarze_txtKomentarz")){return true;}
if(document.getElementById("ctl00_cntStrona_Ramka_Komentarze_txtKomentarz")){return true;}
if(document.getElementById("ctl00_ctnMetryka_Komentarze_txtKomentarz")){return true;}
return false;}
function ObejscieRamkiFlash(){var i,objs=document.getElementsByTagName('object');if(objs.id!="Object2"){for(i=0;i<objs.length;i++){objs[i].outerHTML=objs[i].outerHTML;}}}
function reloadButtons(){}
function StartCountDown(){}
var isCtrl=false;function wylaczPKlawisz(){document.oncontextmenu=new Function("return false");}
function wlaczPKlawisz(){document.oncontextmenu=new Function("return true");}
wlaczPKlawisz();function initInputHighliter(){var taba=new Array();taba=$(document.body).getElements('input');taba=taba.concat($(document.body).getElements('textarea'));$A(taba).each(function(e){if(!hasClass(e,"noautofocus")){e.addEvent('focus',function(){e.setStyle('background-color','#222222');e.setStyle('color','#169fef');e.setStyle('border-color','#b5b5b5');});e.addEvent('blur',function(){e.setStyle('background-color','#222222');e.setStyle('color','#b0b0b0');e.setStyle('border-color','#666666');});}});}
function zapiszPlik(){tinyMCE.execCommand('mceRemoveControl',true,'ctl00_ctnMetryka_txtOpisPliku');__doPostBack('ctl00$ctnMetryka$btnZapiszEdycjaPliku','');}
function zapiszKomentarz(){tinyMCE.execCommand('mceRemoveControl',true,$$('.txtKomentarzUnique')[0].getAttribute("id"));__doPostBack($$('.lnkZapiszKomentarzaUnique')[0].getAttribute("id").replace(/\_/g,'$'),'');}